Code example to prevent Indicator loading

 
Hello all,

(Great week huh?)

I created an Indicator that loads into a seperate window. Can someone provide a code example that will prevent the Indicator from loading UNLESS the chart is < D1?

I thought that doing a return(-1) would do it.... except the Indicator stills creates the seperate window (although it is not populated).

Thanks in advance.
-charliev
 
You cannot prevent loading but you can prevent running.
 
You cannot prevent loading but you can prevent running.


Ok, could you provide an example?
Thanks!
-charliev
 
You cannot prevent loading but you can prevent running.


Ok, could you provide an example?
Thanks!
-charliev


if(Time[0] - Time[1] >= 86400) return(0);
Reason: