Consolidation Breakout [Indian Market Timing]
Sep 4, 2022

The Consolidation Breakout [Indian Market Timing] indicator is a specialized intraday strategy designed to capture trend reversals and volatility breakouts specifically tailored for the Indian equity market hours. It combines standard deviation bands with ATR-based trailing stops to provide a complete framework for entering and exiting trades within the local market session.
Usage
The tool is primarily used to identify breakouts from periods of low volatility. When the price action consolidates within the calculated bands, users wait for a confirmed close outside the range:
- Long Condition: A buy signal is generated when the price crosses above the upper band. This is visually represented by the band changing color to green.
- Short Condition: A sell signal occurs when the price crosses below the lower band, indicated by a red color shift.
- Trailing Exit: Once a position is active, the script calculates an ATR-based trailing stop (Long Stop) to manage risk and lock in profits as the price moves in the desired direction.
The strategy is optimized for short timeframes (e.g., 3-minute charts) on symbols like NIFTY or BANKNIFTY.
Details
The script focuses on "Time Condition" logic to ensure trades are only initiated during high-liquidity windows of the Indian market. It opens the entry window at 09:35 AM and ceases new entries at 02:30 PM. To avoid the restrictions some brokers place on intraday orders after 03:00 PM, the script includes a hard "Close All" function at 02:57 PM.
The bands are constructed using a Simple Moving Average (SMA) and a multiplier of the Standard Deviation, similar to Bollinger Bands, but optimized for catching sustained consolidation breakouts.
Settings
- LENGTH: Determines the lookback period for the SMA and Standard Deviation calculations (Default: 75).
- MULT_STDEV: Adjusts the width of the consolidation bands. Higher values require more significant price movement to trigger a breakout (Default: 3.2).
- ATR TRAIL: A multiplier applied to the Average True Range (ATR) to determine the distance of the trailing stop loss (Default: 10.0).
FAQ
How do I use this during specific market hours? The script automatically handles timing for the Indian market. It looks for entries between 09:35 and 14:30 and automatically exits all positions at 14:57.
Can I change the sensitivity of the breakouts? Yes, by adjusting the LENGTH and MULT_STDEV settings, you can make the indicator more or less sensitive to price fluctuations.
How can I access the Consolidation Breakout [Indian Market Timing]? 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.