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)
- sell short on next bar
- Highs and lows of the past bars
- Various
Read the documentation - iBarShift - MQL4 Documentation
Awesome! Just what I needed. Thanks!
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register