help with the Slippage parameter - page 4

 
correct me if I'm wrong)))))
 
Thank you all, if the discussion continues and there is a suggestion on how to limit the price spread from the requested one I would appreciate it, and a special thanks to Taras for the illustrative logs)))
 
alsu:

That's if you have to open a trade anyway. But what if it is important to keep the opening level as planned?

We must proceed from what is more important - to open or to hit exactly the level. If it is not important to open or not, and it is important to hit the level, then 0.
 

If i have a good working relationship with RVD technical support i replied to them that i do not want any slippage and the order is opened at the price i ordered, i use stop orders and this is an interesting issue, i put the price in my comments through the market info, i compared the market price of the pending order and the initial price, it turns out that the stop order is at the same price as in the comments, but the market price is worse for me, how can it be))))

 

here is a line from the code

if (Stopovie == true) g_ticket = OrderSend(g_symbol, OP_BUYSTOP, Lots, Ask, 0, 0, 0, "requested price" + DoubleToStr((Ask), 5), Magic, 0,MediumBlue);

Print("Ask", g_symbol, "Asked price", (DoubleToStr((Ask),5)), "Ask price" , MarketInfo(Symbol(),MODE_ASK), " error: ", ErrorDescription(GetLastError()))

Help, can i see where there is an error?

 
ex_kalibur:
And how can I try to avoid this? I consulted the technical support in mt4 of saxo bank, one would hope that saxo is not a kitchen)))), but in response to a market order there comes a message in the log - off quotas, the guy told me that the requested price does not exist, how to avoid this, he answered well - try to increase the speed of the Internet, I have the highest for my region, 6 meters, what do you say to this answer?

What do we say? Accept the situation as fact. Our model must be insensitive to a few pips of slippage. Or do not work during high volatility. All the rest - an attempt to outplay the casino owner in his casino :-).
How many copies have been broken on this subject...
 

Please advise how to place a stop order correctly

I was also told that this feature is disabled in their account. When I place a stop order the following bug will appear 2013.02.26 16:03:02 '15071': order sell stop 0.10 EURUSD opening at 1.30550 sl: 0.00000 tp: 0.00000 failed [Invalid S/L or T/P].

how to remove it?
 
ex_kalibur:

Please advise how to place a stop order correctly

I was also told that this feature is disabled in their account. When I place a stop order the following bug will appear 2013.02.26 16:03:02 '15071': order sell stop 0.10 EURUSD opening at 1.30550 sl: 0.00000 tp: 0.00000 failed [Invalid S/L or T/P].

how to remove it?

I will give you the preparation at the beginning to open any order and any account with a guarantee against errors:

  Spread = MarketInfo(Symbol(),MODE_SPREAD);
  spread = NormalizeDouble(Spread*Point,Digits);
  StopLevel = MarketInfo(Symbol(),MODE_STOPLEVEL)*Point;
  FreezeLevel = MarketInfo(Symbol(),MODE_FREEZELEVEL)*Point;
  slip = NormalizeDouble(MathMax(MathMax(Slip*Point,spread*2.0),MathMax(StopLevel,FreezeLevel)),Digits);
 
I understand that, but on rvds, the slip is disabled and cannot be set at all
 
ex_kalibur:
I understand that, but on rvds the slip is disabled, you can't set it at all.
This is a necessary protection against everything, especially with high volatility. If nothing prevents it, the ECN does not take into account the slippage as if it were zero! I am on ECN myself! They don't ban slips and they don't know what is put out. The price is set automatically when yours is accepted, but they set theirs according to whoever rules the ball!
Reason: