double lookBackEURGBP = iOpen("EURGBP",0,1); double lookBackEURAUD = iOpen("EURAUD",0,1);
On MT4: Unless the current chart is that specific pair/TF referenced, you must handle 4066/4073 errors.
Download history in MQL4 EA - MQL4 and MetaTrader 4 - MQL4 programming forum- Don't assume that Time[i] == iTime(otherPair,TF, i) always use iBarShift.
int MagicNumberGenerator()
No need for multiple MNs per symbol.
Symbol Doesn't equal Ordersymbol when another currency is added to another seperate chart . - MQL4 and MetaTrader 4 - MQL4 programming forum- Use the debugger or print out your variables, including _LastError and find out why.
whroeder1:
-
On MT4: Unless the current chart is that specific pair/TF referenced, you must handle 4066/4073 errors.
Download history in MQL4 EA - MQL4 and MetaTrader 4 - MQL4 programming forum - Don't assume that Time[i] == iTime(otherPair,TF, i) always use iBarShift.
- No need for multiple MNs per symbol.
Symbol Doesn't equal Ordersymbol when another currency is added to another seperate chart . - MQL4 and MetaTrader 4 - MQL4 programming forum - Use the debugger or print out your variables, including _LastError and find out why.
Thank you. aside from taking a look at the things you mentioned. Having an extra set of eyes on this has made me realize when I changed this from an indicator to an EA I changed all my arrays to variables and in doing so broke my lookback calculation. Once I fixed it I started getting trades.

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
Could someone please help point out why this EA I have been working on will not place trades live. It seems to place them in the strategy tester fine.