PROTECTED SOURCE SCRIPT

Heikin Ashi Historical TF Developmental Bars

2 823
An improvement to the built-in security(heikinashi()...) method, this indicator plots Heikin Ashi (HA) candles for an input timeframe (TF) on an underlying regular candlestick chart of a shorter TF. The improvement is that it plots the value of each in-development HA bar as it would have appeared while still repainting, for each underlying chart bar. The last chart bar of each TF matches the value available from security() calls and from HA charts directly.

For best results, be sure to use a HA TF greater than chart TF (I prefer 1 minute unless longer history is required).

1 hour HA on 1 minute underlying price chart
snapshot

4 hour HA on 1 minute underlying price chart
snapshot

V3: Release.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.