Breakout Strategy #1
Jan 12, 2020

The Breakout Strategy #1 tool identifies and executes trades based on price breakouts above previous pivot highs and exits positions when price closes below previous pivot lows. It is designed to capture significant price movements during trending market conditions.
Usage
The Breakout Strategy #1 is primarily used to identify momentum-driven entries. When the price closes above a established pivot high, a long entry is triggered. The position remains open until a bearish breakdown occurs, defined as a close below the established pivot low. This approach allows users to stay in a trend as long as the structural support (the pivot low) holds.
Details
The strategy relies on the ta.pivothigh and ta.pivotlow functions to define market structure. These pivots are determined by looking at a specific number of bars to the left and right of a candle to confirm it as a local peak or trough.
- Bullish Breakout: Occurs when the current closing price is higher than the most recent confirmed pivot high.
- Bearish Breakdown: Occurs when the current closing price is lower than the most recent confirmed pivot low, serving as an exit signal for long positions.
The script also includes a built-in backtesting window, allowing users to define specific start and end dates to evaluate the strategy's historical performance.
Settings
- Left: The number of bars to the left of a candle required to confirm a pivot point.
- Right: The number of bars to the right of a candle required to confirm a pivot point.
- Backtest Start Year/Month/Day/Hour/Minute: Defines the exact starting point for the strategy's backtesting simulation.
- Backtest Stop Year/Month/Day: Defines the ending point for the strategy's backtesting simulation.
FAQ
How do I adjust the sensitivity of the breakouts?
You can adjust the "Left" and "Right" length settings. Smaller values will identify more frequent, short-term pivots, while larger values will focus on more significant, long-term structural levels.
What market conditions are best for this strategy?
This strategy is most effective during strong trending markets where price consistently breaks old highs and maintains support above old lows. It may experience whipsaws in sideways or range-bound markets.
How can I access Breakout Strategy #1?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Free indicator
Get free access to this indicator on the platforms below.
Unlock the entire LuxAlgo Library
Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.