Convert indicator from 1H to daily graph please...

 

The attached indicator was created to work with 1H graphs and I don't understand why it doesn't work on daily graphs...

Could you help me?


Thank you very much!!!

Alberto

Files:
 

x=Period();
if (x>240) return(-1);
.

It exits if the timeframe is greater than 240 minutes.

 

Thank you, now it works better.

The condition

if (TimeDay(Time[i])!=TimeDay(Time[i+1]))

move the graph when we have a new day.

I wrote the condition

if (iVolume(NULL,PERIOD_W1,i)==1)

to move the graph when we have a new week, but it doesn’t work.