Download MetaTrader 5

I am testing Ilan1.6Dynamic1.mq4 robot it does sell orders only but not buy orders can you please help me

To add comments, please log in or register
shehab116080
38
shehab116080  

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 

Files:
whroeder1
16096
whroeder1  
ticket = OrderSend(Symbol(), OP_SELLSTOP, pLots, pLevel, sp, StopShort(pr, sl), TakeShort(pLevel, tp), pComment, pMagic, pDatetime, pColor);
err = GetLastError();
  1. Do not look at GetLastError unless you have an error (ticket = -1)
  2. If you Sleep, you must RefreshRates
  3. Put Print statements before and inside your if, printing your variables and tract it down.
shehab116080
38
shehab116080  
WHRoeder:
  1. Do not look at GetLastError unless you have an error (ticket = -1)
  2. If you Sleep, you must RefreshRates
  3. 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 

whroeder1
16096
whroeder1  
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.
To add comments, please log in or register