Why would my EA that is set to buy or sell 0.1 lot size trigger 2 identical orders?
And sometimes, for example, if a “Buy is triggered for 0.1 lots of say... EUR/USD, it doubles up buys and sells simultaneously in this way:
BUY EUR/USD 0.1
BUY EUR/USD 0.1
SELL EUR/USD 0.1
SELL EUR/USD 0.1
BUY EUR/USD 0.1
BUY EUR/USD 0.1
... it’s only supposed to be a BUY for 0.1.
Any help is greatly appreciated.
- MetaTrader 5 for Forex, stocks and futures
- Flexible MetaTrader 5 trading system with all order types
- MetaTrader 5 Built-in Trading Strategy Tester
Because it's coded to do that.
Royhobbs9:
Why would my EA that is set to buy or sell 0.1 lot size trigger 2 identical orders?
It depends on your code. Are you only trading on a new bar, and then only if a current order doesn't exist? Show some code....
Why would my EA that is set to buy or sell 0.1 lot size trigger 2 identical orders?
And sometimes, for example, if a “Buy is triggered for 0.1 lots of say... EUR/USD, it doubles up buys and sells simultaneously in this way:
BUY EUR/USD 0.1
BUY EUR/USD 0.1
SELL EUR/USD 0.1
SELL EUR/USD 0.1
BUY EUR/USD 0.1
BUY EUR/USD 0.1
... it’s only supposed to be a BUY for 0.1.
Any help is greatly appreciated.
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