Download MetaTrader 5

Is there a way to record a bar using iTime?

To add comments, please log in or register
1mathboy1
118
1mathboy1  
I'm coding an EA based on price action, but I have one part where I need to record a "signal bar," (for example a pin bar or a second bar of a 2 bar reversal). So if I see such a bar, I can assign the value iTime of that bar to a global variable. Now, given the datetime of that bar, how can I find its high, low, open and close? (assume we are ahead by a few bars now, like 3)
whroeder1
14785
whroeder1  
Read the documentation - iBarShift - MQL4 Documentation
1mathboy1
118
1mathboy1  
Awesome! Just what I needed. Thanks!
To add comments, please log in or register