Download MetaTrader 5

Close prices from different cadles.

To add comments, please log in or register
Having troubles understanding the code? Perhaps, you can find an article on that topic!
Vojtech Slavinsky
155
Vojtech Slavinsky 2015.01.06 14:30 

Hello,

 How I get actual closes prices from differnt periods in strategy. E.g. from m1 and m5 and m30.

 

Thank you. 

honest_knave
Moderator
2192
honest_knave 2015.01.06 15:38  

You can use iClose.

If you want to access more than the current values (i.e. shift 0), then you will also need to look at iBarShift

Vojtech Slavinsky
155
Vojtech Slavinsky 2015.01.06 16:07  
honest_knave:

You can use iClose.

If you want to access more than the current values (i.e. shift 0), then you will also need to look at iBarShift

 

Thank You.
To add comments, please log in or register