Rectangle object not showing when end point isn't last bar
Hi,
This code does not work unless EndBar value is 0.
I would like to draw a rectangle that is not pointing to the last bar.
Any suggestions on what to do?
Thank you,
Hendrik
Hi
Add a switch
bool redrawNow at the end of the function parameters
and ,above the
return Name; add
if(redrawNow){ChartRedraw();}
or the
ChartRedraw(); without the switch at all
Thank you for response Lorentzos.
I made a silly mistake in other part of the code where I cleared the chart and therefore it disappeared instantly.
Hi,
This code does not work unless EndBar value is 0.
I would like to draw a rectangle that is not pointing to the last bar.
Any suggestions on what to do?
Thank you,
Hendrik