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

Back to topics list To post a new topic, please log in or register
avatar
12
shehab116080 2015.03.12 00: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 

Attached files:
  ilan1.6dynamic.mq4  (20.93 KB)
avatar
12984
WHRoeder 2015.03.12 13: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.
avatar
12
shehab116080 2015.03.12 15: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 

avatar
12984
WHRoeder 2015.03.12 17: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.

Back to topics list  

To add comments, please log in or register