Smart FlexRange Breakout
May 10, 2025

The Smart FlexRange Breakout indicator identifies trading opportunities by detecting price breakouts from dynamic resistance (CALL) and support (PUT) levels derived from high-impact candlestick analysis.
Usage
The indicator is designed to help traders capitalize on volatility by highlighting key breakout points and subsequent price targets.
- Setup: Users should first configure the market type, search period (1–6 hours), and the base timeframe (15, 30, or 60 minutes) to align with their specific trading strategy and asset class.
- Signals: A BUY signal is triggered when the price crosses above the upper "CALL" resistance line. Conversely, a SELL signal is generated when the price crosses below the lower "PUT" support line.
- Targets: Once a breakout occurs, the tool automatically plots up to 8 Take-Profit (TP) levels based on a user-defined percentage, providing clear exit points.
- Trend Confirmation: The inclusion of Pivot Point-based trend lines helps traders identify the broader market direction to filter out counter-trend signals.
Details
The core logic of the script relies on scoring candles within a specific lookback period to find the "Most Important Candle." This importance is determined by a weighted combination of:
- Candlestick Patterns: Reversal patterns like Hammers or Engulfing candles receive higher scores.
- Volume Analysis: Candles with significant trading volume relative to the lookback period are prioritized.
The high and low of this most significant candle become the dynamic breakout boundaries. A dotted centerline is also plotted at the midpoint to act as a visual pivot; prices above the centerline indicate bullish momentum toward the resistance, while prices below suggest bearish pressure toward support.
Settings
General Settings
- Market: Select the specific market or exchange to synchronize the analysis start times.
- Search Hours: Define the number of hours (1-6) the script analyzes to find the key candle.
- Timeframe: Choose between 15, 30, or 60-minute candle intervals for the analysis.
- TP Percentage (%): Sets the distance between each take-profit target level.
- Timezone: Adjust the local time offset to match your region.
Visuals and Targets
- Enable TP1–TP8: Individual toggles to display specific take-profit levels on the chart.
- Line Styles/Colors: Customize the appearance of upper/lower breakout lines and trend lines.
- TP Offset: Controls the horizontal positioning of target labels for better chart clarity.
Main Trend Line Settings
- Main Trend Line Length: Adjusts the period used for the Pivot Point trend line calculation.
- Trendline Style/Color: Visual customization for the bullish and bearish trend lines.
FAQ
How do I access Smart FlexRange Breakout?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
How are the CALL and PUT levels calculated?
These levels represent the high and low of the most significant candle found within the specified "Search Hours" period, determined by candlestick patterns and volume.
Can I use this on any timeframe?
While you can use the indicator on any chart, the internal analysis logic is specifically optimized for 15, 30, and 60-minute candle data as selected in the settings.
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.