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
}
}