How do I convert the time say from a 4 hour chart to a 1 Minute chart.
so if the 4Hour chart says a specific time and date, how do I find that index on a 1Minute time frame?
I used this code but it doesnt give the correct index. the chart is on a 4 chart.
Print("Time of day:"+TimeDay(Time[i])+" Hour:"+TimeHour(Time[i]));
Print("MTime of day:"+TimeDay(iTime(NULL,PERIOD_M1,i*240))+" Hour:"+TimeHour(iTime(NULL,PERIOD_M1,i*240))+" Minute:"+TimeMinute(iTime(NULL,PERIOD_M1,i*240)));
How do I convert the time say from a 4 hour chart to a 1 Minute chart.
so if the 4Hour chart says a specific time and date, how do I find that index on a 1Minute time frame?
I used this code but it doesnt give the correct index. the chart is on a 4 chart.