All indicators

Previous Day High and Low Breakout Bar Color

Jun 5, 2019

Static chart image
Price Action BasedSupport and ResistanceSignals

The Previous Day High and Low Breakout Bar Color indicator highlights price breakouts above or below the previous day's range by dynamically changing bar colors, helping traders identify momentum shifts on intraday charts.

Usage

The Usage section focuses on identifying trend shifts relative to the previous day's extreme price levels. When price action breaks above the previous day's high, the bars turn green, signaling a bullish breakout. Conversely, when price action drops below the previous day's low, the bars turn red, signaling a bearish breakout.

Examples of usage include:

  • Intraday Trend Following: Use the bar colors to stay aligned with the current day's breakout direction.
  • Support/Resistance Validation: Use the plotted daily high and low lines as dynamic levels to watch for rejections or successful breakouts.
  • Alert Integration: Utilize the built-in buy and sell signals to get notified the moment a breakout occurs.

Details

The indicator functions by fetching the previous day's high and low values using request.security. It then compares the current intraday price action against these levels.

  • Bullish State: Established when the current high exceeds the previous day's high. The state remains bullish until a bearish breakout occurs.
  • Bearish State: Established when the current low drops below the previous day's low. The state remains bearish until a bullish breakout occurs.
  • Visuals: The script plots two horizontal lines representing the previous day's high (Green) and low (Red) on intraday timeframes.

Settings

  • Daily High Plot: Visualizes the high of the previous trading day as a horizontal line.
  • Daily Low Plot: Visualizes the low of the previous trading day as a horizontal line.
  • Bar Coloring: Automatically adjusts chart candles to reflect the current breakout state (Green for bullish, Red for bearish).

FAQ

How do I use the Previous Day High and Low Breakout Bar Color?

The indicator is best used on intraday timeframes (e.g., 5m, 15m, 1h) to see how current price action interacts with yesterday's range. Watch for the color change to signify a breakout.

Can I set alerts for breakouts?

Yes, the indicator includes alert conditions for both "Buy" (crossing above the previous day's high) and "Sell" (crossing below the previous day's low).

Where can I access this tool?

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.

TradingView
NinjaTrader
MetaTrader 4/5

Unlock the entire LuxAlgo Library

Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.