I am developing an indicator that calculates the maximun volumen of the candle (VPOC) I do the calculation and I am able to draw a circle when the candle finishes forming in its timeframe. I do it in the Onbarupdate() event. I don't draw one VPOC per candle but I do some extra calculation and I draw only some of them. But I want to be able to draw a custom line using the onrender() event.
I have looked at some examples in this forum and in external webs but I am not able to get the logic about how to get the exact point in the bar to draw the custom line.
When in the ONBARUPDATE() I know I have to draw the VPOC of the candle , how am I able to "connect" with the onrender() event to draw in the current bar of the chart ? And do that only when I needed based of my calculations ?
Thanks for the help
Helios

Comment