I am using the HA8 indicator on the 1min candlestick chart, which plots Heiken Ashi bars using the OnRender() method. How to change the colors of these bars using a different indicator?
For the past 2 days, I have been trying to change the color of bars according to dynamic conditions.
I tried using the BarBrushes method but it plots the underlying candlestick candles but not the Heikanashi(I understand why).
Secondly, I thought of drawing a rectangle on top of it but seems like won't be possible using draw.rectangle() method as it doesn't plot on a single bar. It'd have been perfect so I am wondering if it is possible to override it.
Lastly, I merged the conditions in the HA8 indicator itself but it isn't working according to my conditions as I believe it doesn't track bar time.
Can you please help?
(Shifting to inbuilt HA charts isn't an option for me because of the logic I am using in it.)
This is how the Rendered chart looks.
Looking forward to hearing from you soon.

Comment