# Three Rising Valleys & Falling Peaks

Three Rising Valleys & Falling Peaks is an indicator on [Vela](https://vela.luxalgo.com/chart), our next-generation charting platform, written in Pine Script®.

Detects Bulkowski's three rising valleys and three falling peaks from confirmed swings: three successively higher lows or lower highs, alike in height and width. A pattern confirms only on a close beyond its highest peak or lowest valley, then Bulkowski's scaled measure-rule target and a stop beyond the third swing are tracked, with his early-entry trendline for rising valleys and the prior-trend context in each tooltip.

- Indicator in the LuxAlgo Library, by LuxAlgo, published Jan 28, 2026.
- Access: free.
- Concepts: [three rising valleys/falling peaks](https://www.luxalgo.com/library/concept/three-rising-valleys-falling-peaks/) (primary)
- Open on Vela: https://vela.luxalgo.com/chart?pineScriptCodeId=pdy6qux1jlgou5ibozcu4bxn
- Page: https://www.luxalgo.com/library/indicator/three-rising-valleys-falling-peaks/

The **Three Rising Valleys & Falling Peaks** indicator is a sophisticated pattern detection tool designed to identify specific price structures derived from classical technical analysis research. This indicator automates the identification of three sequential valleys that progressively rise or three sequential peaks that progressively fall. By quantifying these patterns through volatility based metrics and proportional tolerance, it provides traders with objective confirmation levels, potential early entry signals, and statistically derived price targets, helping to remove subjective guesswork when evaluating market reversals and continuations.

## How to Trade the Three Rising Valleys & Falling Peaks?

Trading these patterns relies on identifying the completion of the three-point structure and waiting for the confirmed breakout. For Three Rising Valleys, the pattern identifies a series of higher lows, suggesting potential bullish momentum. The pattern is officially confirmed when the price closes above the highest peak formed between these valleys. Some traders may opt for an early entry if the price breaks above a descending trendline drawn across the peaks before the official confirmation occurs.

For Three Falling Peaks, the indicator tracks a series of lower highs, which often indicates bearish pressure or a weakening rally. This pattern is confirmed when the price closes below the lowest valley formed during the structure. 

Once confirmed, the indicator displays a target level and a stop level based on the pattern height and volatility. The stop is generally placed near the third extreme of the pattern, while the target is calculated as a percentage of the pattern height. Traders should monitor the post confirmation window to ensure the price moves toward the target before the pattern expires or is invalidated by a break of the stop level.

## Three Rising Valleys & Falling Peaks Settings

### Pattern Detection
* **Swing Length**: Defines how many bars to the left and right a high or low must dominate to be considered a confirmed swing.
* **Minimum Step (ATR)**: Sets the required distance in average true range units between each valley or peak.
* **Maximum Span (bars)**: The maximum number of bars allowed from the first to the third valley or peak.
* **ATR Length**: The period used for calculating volatility for step and stop distance measurements.

### Shape & Context
* **Proportion Tolerance (x)**: Controls the consistency of the pattern. It ensures the height and width of each leg remain within a specific ratio to maintain structural similarity.
* **Prior Trend Window (bars)**: The period used to determine the price direction before the pattern begins, which helps classify the sequence as a continuation or reversal.

### Confirmation & Targets
* **Early Entry Trendline**: Enables an early buy signal for rising valleys when the price closes above a trendline connecting the two highest peaks.
* **Confirmation Window (bars)**: The time allowed for a price close to breach the confirmation level before the pattern is considered invalid.
* **Rising Valleys Target %**: The projected target for bull patterns based on the pattern height.
* **Falling Peaks Target %**: The projected target for bear patterns based on the pattern height.
* **Stop Buffer (ATR)**: Adds a buffer to the stop loss level, placed just beyond the third valley or peak.
* **Post-Confirmation Watch (bars)**: How long the indicator tracks the target and stop levels after the initial confirmation.

## Frequently Asked Questions

### Does this indicator work on all timeframes?
Yes, the indicator is designed to function on any timeframe by using the ATR to adjust its detection logic to the current market volatility.

### How does the Proportion Tolerance setting affect my results?
Lower values force the indicator to find highly symmetric patterns that look nearly identical, while higher values allow for more irregular, mixed-shape patterns.

### Can I set alerts for these patterns?
Yes, the indicator includes various alert conditions, including pattern formation, early entry, official confirmation, and target or stop hits.

## Related indicators

- [N Bar Reversal Detector](https://www.luxalgo.com/library/indicator/n-bar-reversal-detector/) (Key Reversal): markdown at https://www.luxalgo.com/library/indicator/n-bar-reversal-detector.md
- [Bart Pattern](https://www.luxalgo.com/library/indicator/bart-pattern/) (Chart & Candlestick Patterns): markdown at https://www.luxalgo.com/library/indicator/bart-pattern.md
- [Head & Shoulders](https://www.luxalgo.com/library/indicator/head-and-shoulders/) (Chart & Candlestick Patterns): markdown at https://www.luxalgo.com/library/indicator/head-and-shoulders.md
- [Wolfe Wave Detector](https://www.luxalgo.com/library/indicator/wolfe-wave-detector/) (Wolfe Waves): markdown at https://www.luxalgo.com/library/indicator/wolfe-wave-detector.md
- [Island Reversal](https://www.luxalgo.com/library/indicator/island-reversal/) (Chart & Candlestick Patterns): markdown at https://www.luxalgo.com/library/indicator/island-reversal.md
- [McDonald's Pattern](https://www.luxalgo.com/library/indicator/mcdonalds-pattern/) (Double Top/bottom): markdown at https://www.luxalgo.com/library/indicator/mcdonalds-pattern.md
- [Diamond Top/bottom](https://www.luxalgo.com/library/indicator/diamond-top-bottom/) (Chart & Candlestick Patterns): markdown at https://www.luxalgo.com/library/indicator/diamond-top-bottom.md
- [Horns Pattern Identifier](https://www.luxalgo.com/library/indicator/horns-pattern-identifier/) (Rare Reversal Patterns): markdown at https://www.luxalgo.com/library/indicator/horns-pattern-identifier.md

---

Source: https://www.luxalgo.com/library/indicator/three-rising-valleys-falling-peaks/ (LuxAlgo Library). Free to use with attribution: https://www.luxalgo.com/library/license/
