Open Bar in another Timeframe

 

Hello,

I would like to generate a simple query in the other Timeframe.

here an example:

if (Open[pos+2]>Close[pos+2]) LongSignal [pos+1] = Low[pos+1];

This query i need for Period_H4

how is the Syntax ?

if (Open[PERIOD_H4,pos+2] > Close[PERIOD_H4] LongSignal [pos+1] = Low[pos+1]; Thats false !!!

can anyone help me ?

sorry for my bad English !!

Thank you very much !!!

 
DrCreep:

Hello,

I would like to generate a simple query in the other Timeframe.

here an example:

if (Open[pos+2]>Close[pos+2]) LongSignal [pos+1] = Low[pos+1];

This query i need for Period_H4

how is the Syntax ?

if (Open[PERIOD_H4,pos+2] > Close[PERIOD_H4] LongSignal [pos+1] = Low[pos+1]; Thats false !!!


Use iOpen()
 
if (iOpen(NULL,Period_H4,2) > iClose(NULL,Period_H4,2)........
 

Thank you very much for all help !!!!!