Hi, i have an unusual problem about my ea. I couldn't find any topic so I am writing here. The ea performs in different ways on different terminals or computers.
I am testing it on demo accounts alive on different terminals and computers simultaneously. For example it opens eurusd orders in two of the terminals but dosn’t open the same order in the rest three teminals.
The terminals runs the same ea with the same parameters but work differently. I couldn’t find any error or solution. Thank You…
it may be possible, that you have all different broker mt5 and if your ea is based in tf candlestick formation, due to different time in broker brokers mt4 ea is opening orders according.
it may be possible, that you have all different broker mt5 and if your ea is based in tf candlestick formation, due to different time in broker brokers mt4 ea is opening orders according.
Thank you and now i solved i think. I designed my ea to perform independent from the selected timeframe but while coding i used 'bars' instead of 'bars(symbol,timeframe)'. that's why the terminal confuses calculating the bars depending on the selected timeframe...
- You can't use any {MT4: predefined variables, MT5: predefined variables,} can't use the tester, must poll (not OnTick,) and usually other problems, e.g. A problem with iBarShift - MQL4 and MetaTrader 4 - MQL4 programming forum- Page 2
- You must handle History {MT4: 4066/4073 errors: Download history in MQL4 EA - MQL4 and MetaTrader 4 - MQL4 programming forum , MT5: Timeseries and Indicators Access / Data Access - Reference on algorithmic/automated trading language for MetaTrader 5.}
- Code it to trade the chart pair only. Look at the others if you must. (Don't assume that Time[i] == iTime(otherPair,TF, i) always use iBarShift.)
- Then put it on other charts to trade the other pairs. Done.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi, i have an unusual problem about my ea. I couldn't find any topic so I am writing here. The ea performs in different ways on different terminals or computers.
I am testing it on demo accounts alive on different terminals and computers simultaneously. For example it opens eurusd orders in two of the terminals but dosn’t open the same order in the rest three teminals.
The terminals runs the same ea with the same parameters but work differently. I couldn’t find any error or solution. Thank You…