It is possible to create new stop order asociated with opened position by PID?

Created at 06 Nov 2019, 12:44
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
DE

developer

Joined 30.10.2018

It is possible to create new stop order asociated with opened position by PID?
06 Nov 2019, 12:44


Hi, we use FIX api for manage our positions and we set stop and limit orders associated with a main position by PID. Can we replicate this behaviour on Ctrader Desktop?

 

Thanks in advance,

Luis


@developer
Replies

PanagiotisCharalampous
07 Nov 2019, 08:06

Hi Luis,

It is not clear what you are trying to do. Which behavior do you try to replicate? Why do you need to assosiate limit order and stop orders to a position? Can you please elaborate?

Best Regards,

Panagiotis


@PanagiotisCharalampous

developer
07 Nov 2019, 18:54

Hi,

We send through FIX an order without SL or TP that opens a position, through FIX it is not possible to put TakeProfit or StopLost to a position.

The solution we have implemented through FIX is to place a Limit / Stop order with the same PositionMaintenanceId as the main position. When this order is activated when the price is touched, we receive an ExecutionReport event with the information and the original position is closed.

We would like to be able to manually place an Limit / Stop order associated with an open position and that the behavior is the same as when we do it through FIX.

 

Regards,

Luis


@developer