Hello value Traders.
We do need your help using iClose, iOpen, iHigh and iLow.
The problem we have is these instructions are in a WHILE command:
while(true)
{
A=iOpen("GBPUSD",15,1);
B=iClose("GBPUSD",15,1);
C=iHigh("GBPUSD",15,1);
D=iLow("GBPUSD",15,1);
//Then a Print to see the values
Print("A=",A);
Print("B=",B);
Print("C=",C);
Print("D=",D);
}
We let this peace of EA running for 2 hours on M15. It does update the values. It dispalys the same values all the time. But at a restart, it gives new values and stick to them again.
What should we do to refresh the values with those instructions.
Thank you for your help.
Pat
UPDATE: To all those who would have helped, thank you very much.
Problem is solved.
We do need your help using iClose, iOpen, iHigh and iLow.
The problem we have is these instructions are in a WHILE command:
while(true)
{
A=iOpen("GBPUSD",15,1);
B=iClose("GBPUSD",15,1);
C=iHigh("GBPUSD",15,1);
D=iLow("GBPUSD",15,1);
//Then a Print to see the values
Print("A=",A);
Print("B=",B);
Print("C=",C);
Print("D=",D);
}
We let this peace of EA running for 2 hours on M15. It does update the values. It dispalys the same values all the time. But at a restart, it gives new values and stick to them again.
What should we do to refresh the values with those instructions.
Thank you for your help.
Pat
UPDATE: To all those who would have helped, thank you very much.
Problem is solved.