i need help on my ea. it does not enter orders on another chart if there is any open order on mt4. e.g if there is order on eurusd, then ea will not open order on another chart like gbpusd or usdcad or anyother. i tried changing the magicnumber but it does not work. please any help will do
- Testing indicators
- Request Execution - Opening and Closing Positions - Trade - MetaTrader 5 for Android
- Forced test stop: TesterStop
Yuzayd:
i need help on my ea. it does not enter orders on another chart if there is any open order on mt4. e.g if there is order on eurusd, then ea will not open order on another chart like gbpusd or usdcad or anyother. i tried changing the magicnumber but it does not work. please any help will do
You need to check is any order open into the trade mode for a specific pair , then make an condition if pair open trade is 1 then no trade ... Simple
i need help on my ea. it does not enter orders on another chart if there is any open order on mt4. e.g if there is order on eurusd, then ea will not open order on another chart like gbpusd or usdcad or anyother. i tried changing the magicnumber but it does not work. please any help will do
Komoles Kumar:
You need to check is any order open into the trade mode for a specific pair , then make an condition if pair open trade is 1 then no trade ... Simple
thanks for the reply. i am a newbie in mql4 coding... the problem is not related to pair. i think the problem is with ordersTotal(), but if you can assist me to write a simple code to check, i willbe grateful
You need to check is any order open into the trade mode for a specific pair , then make an condition if pair open trade is 1 then no trade ... Simple
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