Generally, I was used to just "not plot" on that OnBarUpdate, like:
if (myCondition) myPlot[0] = Close[0];
but how can we use in ternary operator, like this?
myPlot[0] = myCondition ? Close[0] : Double.NaN;
if i use
myPlot[0] = myCondition ? Close[0] : myPlot[1];
what is workaround?
yes, i know that i should not set value at all , or use .Reset(), but is there any value to assing to it, which will just force the chart not to shown line, as it is wasnt set at all on that bar?
hope my question is simple.
Comment