newbie in need of help

 
   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 somehow be more than request.price+ 100*_Point?

can someone explain, if there is mistake somethere 

 

then price goes up more than BUY_STOP price, does deviation works here?

 
larva27:

then price goes up more than BUY_STOP price, does deviation works here?

Can you please, use SRC button when posting code.

Please read documentation. Pending orders doesn't need or use "deviation".

Documentation on MQL5: Standard Constants, Enumerations and Structures / Data Structures / Trade Request Structure
Documentation on MQL5: Standard Constants, Enumerations and Structures / Data Structures / Trade Request Structure
  • www.mql5.com
Standard Constants, Enumerations and Structures / Data Structures / Trade Request Structure - Documentation on MQL5
Reason: