Download MetaTrader 5

SL and TP with OrderSend() in market execution

To add comments, please log in or register
Deposit to your account via WebMoney
kemalturgay
265
kemalturgay 2015.01.08 18:58 

When sending an order with TRADE_ACTION_DEAL in market execution, sl and tp fields of the MqlTradeRequest structure are neither obligatory nor optional according to the reference.

Additionally, I have also checked it from the Andrew Young's book and it says that sl and tp are not placed and ignored if the broker uses market execution.


But, in my experience, we can place sl and tp in market execution. I use Alpari demo account and it uses market execution and sl and tp can be placed with the TRADE_ACTION_DEAL.


I would like to ask ...

For placing sl and tp, should we use our original order ... or should we modify our placed order with the TRADE_ACTION_SLTP? 

Alain Verleyen
Moderator
30746
Alain Verleyen 2015.01.08 20:13  
kemalturgay:

When sending an order with TRADE_ACTION_DEAL in market execution, sl and tp fields of the MqlTradeRequest structure are neither obligatory nor optional according to the reference.

Additionally, I have also checked it from the Andrew Young's book and it says that sl and tp are not placed and ignored if the broker uses market execution.


But, in my experience, we can place sl and tp in market execution. I use Alpari demo account and it uses market execution and sl and tp can be placed with the TRADE_ACTION_DEAL.


I would like to ask ...

For placing sl and tp, should we use our original order ... or should we modify our placed order with the TRADE_ACTION_SLTP? 

You can place your sl/tp directly or after. Both are allowed now.
kemalturgay
265
kemalturgay 2015.01.08 22:44  
Thank you.
To add comments, please log in or register