indicator debugging and buffer redrawing
when you debug an indicator, buffer variables are not drawn on graph until event handling function is not exited.
is there a way to bypass this, i.e. to draw buffer content immediately while stepping through the code?
Why you want to do that ?
Maybe, ... comment out the handle (or make the handle a valid one) and then fill the buffer with some value ?
Why you want to do that ?
Maybe, ... comment out the handle (or make the handle a valid one) and then fill the buffer with some value ?
it seems you misunderstood me.
i would like to see the buffer drawn on chart the moment i step through the code while i am debugging step by step through code.
this doesn't happen because refresh of chart (actual drawing) is done after event handling function (e.g. OnTick()) is exited.
the way it is working is the normal and best way when running program, but it would be useful to have this feature while debugging.
- www.mql5.com
it seems you misunderstood me.
i would like to see the buffer drawn on chart the moment i step through the code while i am debugging step by step through code.
this doesn't happen because refresh of chart (actual drawing) is done after event handling function (e.g. OnTick()) is exited.
the way it is working is the normal and best way when running program, but it would be useful to have this feature while debugging.
That's why my first reaction was a question not an answer "Why you want to do that ?".
AFAIK, there's no way to do that :(
when you debug an indicator, buffer variables are not drawn on graph until event handling function is not exited.
is there a way to bypass this, i.e. to draw buffer content immediately while stepping through the code?