All indicators

Heikin-Ashi Bar Color Change Alert

Aug 30, 2018

Static chart image
Dynamic OverlaysSignalsCandlestick

The Heikin-Ashi Bar Color Change Alert indicator is a visualization and notification tool designed to track Heikin-Ashi candle transitions while maintaining a standard candlestick chart for price action analysis.

Usage

This script is designed to be applied to a standard candlestick chart rather than a Heikin-Ashi chart. It calculates Heikin-Ashi values in the background and highlights the current sentiment through visual cues:

  • Background Color: The chart background changes color based on the calculated Heikin-Ashi candle state. A green background indicates a bullish Heikin-Ashi bar, while a red background indicates a bearish one.
  • Arrows: Green up-arrows appear below the bar when the Heikin-Ashi color shifts from red to green. Red down-arrows appear above the bar when the color shifts from green to red.
  • Alerts: Users can set up alerts to be notified immediately when a color change occurs, helping to identify potential trend reversals or momentum shifts.

Details

Heikin-Ashi (HA) candles are a derived candlestick type that aims to filter market noise by averaging price data. The script implements the standard HA OHLC calculations:

  • HA-Close: Average of the actual Open, High, Low, and Close.
  • HA-Open: Average of the previous HA-Open and previous HA-Close.
  • HA-High: Maximum of the actual High, HA-Open, or HA-Close.
  • HA-Low: Minimum of the actual Low, HA-Open, or HA-Close.

By monitoring the relationship between the HA-Close and HA-Open, the script identifies transitions in market sentiment.

Settings

As this script is a lightweight utility focused on price action transitions, it utilizes default calculation variables:

  • Turn Green Shape: Controls the visual representation of the bullish reversal arrow.
  • Turn Red Shape: Controls the visual representation of the bearish reversal arrow.
  • Alert Conditions: Users can select "ha_green" or "ha_red" within the TradingView alert menu to trigger notifications on specific color changes.

FAQ

How do I use this indicator?

Apply the indicator to a standard candlestick chart. It will automatically calculate the Heikin-Ashi state and display background colors and arrows corresponding to trend changes.

Can I set up mobile notifications for color changes?

Yes, you can use the built-in alert conditions (ha_green and ha_red) to trigger TradingView alerts, which can be sent as app notifications, emails, or webhooks.

Where can I find 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.