lastpunisher:
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.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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