I'd like to plot a discontinuous indicator which is defined only in some intervals.
My indicator only has one buffer:
I am assuming that it is possible to assign NULL in some positions of myOnlyBuffer (if you assign NaN values to arrays in GNU/Octave then they are not plotted) in order for MT5 to ignore those points later, when plotting the indicator. However those points are plotted and the indicator doesn't look very good in the empty intervals.
How can you define arrays in order to plot discontinous indicators? Is this approach ok?
Thks in advance for your tips
myOnlyBuffer[i] = EMPTY_VALUE;