I ran it on playback. Runs for about 9 days then completely stops plotting on lower panel.
In addition the plot it had created for the past 9 days vanishes too.
double high0 = High[0];
double low0 = Low[0];
double close0 = Close[0];
double open0 = Open[0];
double volume0 = Volume[0];
AD[0]= (((close0 - open0) - (high0 - low0)) / (high0 - low0)) * volume0;

Comment