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
- www.mql5.com
Standard Constants, Enumerations and Structures / Data Structures / Trade Request Structure - Documentation on MQL5
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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