Slippage and stop losses

To add comments, please log in or register
Batuhan
67
Batuhan  

For the purpose of reducing the exposure to slippage, is there any difference between using regular stop losses embedded in open orders or using OrderClose() function at the relevant price level?

Which method would you advise?

Thanks.

Marcin Madrzak
477
Marcin Madrzak  
Batuhan:

For the purpose of reducing the exposure to slippage, is there any difference between using regular stop losses embedded in open orders or using OrderClose() function at the relevant price level?

Which method would you advise?

Thanks.

I would go with regular SL, since it's set on the broker's server not on client terminal. Using so called virtual SL on client you have extra time needed to catch the event & send OrderClose() to broker. Not to mention that you are exposed to higher risk due to additional potential points of failure like hardware or software error of your computer and network problems.  

Batuhan
67
Batuhan  
I see ... thank you so much.
Batuhan
67
Batuhan  

So, I think that, in professionally written codes, coders never use market orders always use pending orders. Can we make such a generalization?

Marcin Madrzak
477
Marcin Madrzak  
Batuhan:

So, I think that, in professionally written codes, coders never use market orders always use pending orders. Can we make such a generalization?

No, we can't. If you want to enter the market based on factors other than fixed price level you need to use market order.

Batuhan
67
Batuhan  

I hope I don't bore you with my newbie questions, thanks a lot.


One more about slippage,

The document says that: "At opening of a market order (OP_SELL or OP_BUY), only the latest prices of Bid (for selling) or Ask (for buying) can be used as open price."

Is there any function of slippage when sending market orders?

It seems to me that there is not.

Marcin Madrzak
477
Marcin Madrzak  
Batuhan:

I hope I don't bore you with my newbie questions, thanks a lot.


One more about slippage,

The document says that: "At opening of a market order (OP_SELL or OP_BUY), only the latest prices of Bid (for selling) or Ask (for buying) can be used as open price."

Is there any function of slippage when sending market orders?

It seems to me that there is not.

https://docs.mql4.com/trading/ordersend

OrderSend - Trade Functions - MQL4 Reference
OrderSend - Trade Functions - MQL4 Reference
  • docs.mql4.com
Returns number of the ticket assigned to the order by the trade server or -1 if it fails. To get additional error information, one has to call the GetLastError() function. At opening of a market order (OP_SELL or OP_BUY), only the latest prices of Bid (for selling) or Ask (for buying) can be used as open price. If operation is performed with a...
Batuhan
67
Batuhan  

For understanding better, I needed to get some information about execution types.

Mostly clear, I think.


Just would like to ask one more about pending orders:

My broker uses market execution for market orders.

When the pending orders (as well as stops and take profits) are triggered, does the broker use the market execution as well?

To add comments, please log in or register