I have developed an indicator which, when placed on the chart, is displayed correctly but as soon as a new bar appears, it is erased and only the new bar is displayed.
I imagine this is due to the condition if ( BarsInProgress != 0 )...
I'd like to know how to remedy this problem.
Thanks for your help.

Comment