I am using normal candles on my chart, but I want to make some calculations with Heikin Ashi bar. I would like to get the color of the previous day Heikin Ashi bar. Is that possible? Thanks
How to get values of Heikin Ashi bar from a chart with candles bar?
2.8k views Asked by somtam At
1
Tradingview user Allanster shared a open source multi timeframe(to access the daily data) heikin-ashi pinescript here:
https://www.tradingview.com/script/HtNYMuBO-Heikin-Ashi-Source-Function/
what you are looking for is in line 39:
boolean upBar indicates the green Heikin Ashi candle.