Download MetaTrader 5
To add comments, please log in or register
Track all payments in your profile. It is easy!
shehab116080
38
shehab116080 2015.03.11 23:04 

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
13644
whroeder1 2015.03.12 12:47  
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 2015.03.12 14:14  
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
13644
whroeder1 2015.03.12 16:40  
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