Time[0] Time[1]

 

if(Time[0] == prevtime)
return(0);

this clause is to aviod repeatly order

but i do not quite know Time[0]

it stand for what??

 

PLG

Time[0] is the date and time of the opening of the current bar

The value of it cannot change until a new bar forms

Good Luck

-BB-