I am now trying to overlay in the price panel and using
if ( CurrentBar < 20 )
return;
which results in the indicator plotting at 0 on the 21st bar.
In other panels this does not matter as they have a small scale and 0 center line. However in the price panel of course this compresses the price scale.
I have tried everything I can think of to initialize the plot at the session start etc and nothing works. How do I start it at a realisitic value? Or even better stop it from plotting until the value > 0?
I am using
if ( !Historical && myPrice > 0 )
myPlot(0).Value.Set( myPrice );
and that makes no difference. It still plots on the 21st bar at 0.
Thanks in advance.
ATI
Comment