HOW TO FIND DAILY OPEN CANDLE

 

HI ...

How Can I Find Daily Open Cabdel?

I want use this for an Expert that set Orders some Pips above OR Below this candle.

Please help Me.

thanks.

 
Hi, Did you every find this?
 

For today day open:

iOpen(NULL,PERIOD_D1,0);

For yesterday day open:

iOpen(NULL,PERIOD_D1,1);

 

The difference between codersguru's code options are the shift values zero and one-

// For today day open:

iOpen(NULL,PERIOD_D1,0);

// For yesterday day open:

iOpen(NULL,PERIOD_D1,1);

Zero represents the current bar open and one represents the last bar open. All code can be reviewed in 'Documentation'.


Thank you

 
ABBAS8786:

HI ...

How Can I Find Daily Open Cabdel?

I want use this for an Expert that set Orders some Pips above OR Below this candle.

Please help Me.

thanks.


If you want use it for an Expert that set Orders some Pips above OR Below this candle 

then you have to check before you gonna use it

the count of daily candels your broker has in a week

It can be it is 5 then it is no problem  to use solution of codersguru and WhooDoo22

But your broker can have also 6 Daily candels in a week  then this solution might not work for what you want...

Reason: