Is there any relationship between spread and slippage?

 

When trading with codes, you have to define slippage and below are examples with SRC. 

However, I have a few questions: 

. May I understand  that there's some relationship between spread and slippage in live trading? E.g. Less spread and less slippage. Or other relationship or corresponding?

. Does 'slippage' really work? How to define it correctly in codes or EA?

. Or does it depend on broker for 'slippage' to really work?

Thank you! 

 

OrderSend(Symbol(),OP_SELL,lotSize,Bid,slippage,0,0,TradeComment,MAGIC,0,clrMediumVioletRed);
OrderClose(OrderTicket(),OrderLots(),Ask,slippage,clrDodgerBlue);
 

- spread >> ask-bid. a gap for buy and sell

- slippage >> how much you are willing to offset your requested price because usually the requested price is no longer available is mere seconds.

 
jollydragon: . Does 'slippage' really work? How to define it correctly in codes or EA?. Or does it depend on broker
  1. Slippage is in points. You need to adjust for 4/5 digit brokers
  2. ECN brokers ignore it completely.
 
WHRoeder:
  1. ECN brokers ignore it completely.
What price will the order be trading at a ECN broker? How much is the slippage or no slippage?
 
jollydragon:
What price will the order be trading at a ECN broker? How much is the slippage or no slippage?
See this topic : https://www.mql5.com/en/forum/150990
 
What is Slippage?

Slippage is the difference between what you expect to pay for a stock or ETF and the actual price you get. It is also the difference between what you expect to sell a stock or ETF for and what you actually receive.

Slippage is a big problem with discount brokers. They often have rock bottom prices – and rock bottom execution as a result. So you might save a few dollars on commissions but pay hundreds more for the stocks you buy. To make sure that doesn’t happen, check out Scottrade Online Broker. They have consistently provided customers with prices that are even better than the national averages.


Spread

A spread combines both a long and a short position put on at the same time in related futures contracts. The idea behind the strategy is to mitigate the risks of holding only a long or a short position. For example, a trade may have put on a spread in gold. If gold increases in price, the gain on the long position will offset the loss on the short one. If gold were to fall, the reverse would hold. As with any protective trading arrangement, a spread may be vulnerable to both legs moving in the opposite direction of what the trader may have anticipated, losing money. Margin requirements tend to be lower due to the more risk adverse nature of this arrangement.
Reason: