Download MetaTrader 5
To add comments, please log in or register
Use MQL5 Cloud Network. Test robots at a super speed!
Alain Verleyen
Moderator
30299
Alain Verleyen 2013.12.20 21:03 
Comments that do not relate to the "Who can help me?", have been moved into this topic.
ttt
10
ttt 2013.12.20 18:55  

   ZeroMemory(request);
   request.action=TRADE_ACTION_PENDING;
   request.symbol=_Symbol;
   request.volume=Lots;
   request.type=ORDER_TYPE_BUY_STOP;
   request.type_filling=ORDER_FILLING_FOK;
   request.deviation=100;
   request.sl=NormalizeDouble(last_tick.bid-Safety*_Point+Way*_Point,_Digits);
   request.price=NormalizeDouble(last_tick.ask+Way*_Point,_Digits);

 hello, i am new to mql5 

 Can someone help me?

 How "request.deviation=100" works here?

 then price goes up through buy stop level,  can buy dealed price be more than request.price+ 100*_Point?

/
To add comments, please log in or register