Skip to content
All library documents

Heikin-Ashi Color Changes for Long and Short Signals

Article TradingView scripts

Summary

This strategy calculates Heikin-Ashi open and close values from ordinary candle data, then treats their relationship as a directional state. A change from a non-green Heikin-Ashi bar to a green one triggers a long entry; a change from green to red triggers a short entry. The script also computes the high and low values, colors the chart background by Heikin-Ashi direction, and marks the transition bars with arrows.

The accompanying note says to apply the script to regular candles rather than a Heikin-Ashi chart, since the script performs the Heikin-Ashi calculations itself. The example provides entry logic and visual signals but no exit rules beyond the opposing entry, and it reports no backtest statistics or evidence of profitability. Because Heikin-Ashi values are derived and smoothed from price data, the signals describe a transformed view of price rather than exact traded prices; execution assumptions and market-specific testing would be needed to assess practical results.

Key ideas

  • The script calculates Heikin-Ashi values from standard open, high, low, and close data.
  • A shift to a green Heikin-Ashi bar triggers a long entry, while a shift to red triggers a short entry.
  • Background colors and arrows display the current state and its transitions.
  • The author’s note specifies using ordinary candles as the chart input.
  • No performance results or dedicated risk-management rules are provided.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.