How can I find the Bars number corresponding to different time zone
Posted: Sat Sep 18, 2021 4:29 am
How can I find the Bars number corresponding to different time zone at the same time in a piece of code running on the 5 minute chart.
OPenTF15=iClose(Symbol(),15,i]; how can I find the value corresponding to the i value in the 5 minute chart in the code.
If i=25 in the 5-minute chart, using it as i=25 in m15 will return an incorrect result.
OPenTF15=iClose(Symbol(),15,i]; how can I find the value corresponding to the i value in the 5 minute chart in the code.
If i=25 in the 5-minute chart, using it as i=25 in m15 will return an incorrect result.
Code: Select all
void OnStart()
{
//---
int total=2543;
for(int i=0;i<total;i++)
{
double OpenTF5=Open[i];
double OPenTF15=iClose(Symbol(),15,i]; // how do find this Bars numbers on TFm15
}
}