Download MetaTrader 5

How "deviation" works ?

To add comments, please log in or register
Alain Verleyen
Moderator
33629
Alain Verleyen  
Comments that do not relate to the "Who can help me?", have been moved into this topic.
ttt
10
ttt  

   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