I am testing Ilan1.6Dynamic1.mq4 robot it does sell orders only but not buy orders can you please help me
ticket = OrderSend(Symbol(), OP_SELLSTOP, pLots, pLevel, sp, StopShort(pr, sl), TakeShort(pLevel, tp), pComment, pMagic, pDatetime, pColor); err = GetLastError();
- Do not look at GetLastError unless you have an error (ticket = -1)
- If you Sleep, you must RefreshRates
- Put Print statements before and inside your if, printing your variables and tract it down.
WHRoeder:
- Do not look at GetLastError unless you have an error (ticket = -1)
- If you Sleep, you must RefreshRates
- Put Print statements before and inside your if, printing your variables and tract it down.
Thank you for your respons, but actually i could not get your point, how this will make the EA go in Buy orders as it goes in Sell Orders.
Your response in highly appreciated.
Best Regards,
Shehab
shehab116080: how this will make the EA go in Buy orders as it goes in Sell Orders.
| It won't. It will allow you to find out the problem. |

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
Hi team,
I am testing robot called Ilan1.6Dynamic1.mq4 when i tried to test it i found that this EA execute short orders only but not buy orders at all,
Can you please help me and make it excute buy orders as well. I have attached the file to my topic.
Regards,
Shehab