iClose(NULL,0,0), iLow(Null,0,0), iHigh(NULL,0,0), iOpen(NULL,0,0) give me the same value = iOpen(NULL,0,0)

 

Hello:

I need your help,

When I put: PRINT (iClose(NULL,0,0), iLow(Null,0,0), iHigh(NULL,0,0), iOpen(NULL,0,0)), the result is the equal, iOpen(NULL,0,0). Why?.

But when I put (iClose(NULL,0,1), iLow(Null,0,1), iHigh(NULL,0,1), iOpen(NULL,0,1)) the result is OK.

The problem is with the parameter (NULL,0,0).

Thanks,

Sincerely Regards.

 
try (Symbol(),0,0)
 

Hello

I have the same problem and unfortunatelly the change for (Symbol(),0,0) did not help. Any ideas ?

Thanks in advance

 
kanar:

Hello

I have the same problem and unfortunatelly the change for (Symbol(),0,0) did not help. Any ideas ?

iClose() for Bar 0 is Bid . . . for the 1st tick of Bar 0 iLow(), iOpen() and iHigh() will be the same . . .  what timeframe are you using ?   at what point during the Bar,  start, middle or end are you printing these values ?  what were you expecting to see ?


By the way,  for (NULL, 0, x)  . . .  meaning current symbol and current timeframe it is much, much faster to use High[], Open[], Low[], Close[]
Reason: