Display TP and SL orders placed via FIX API in cTrader Desktop/Mobile apps as TP and SL on order
Display TP and SL orders placed via FIX API in cTrader Desktop/Mobile apps as TP and SL on order
04 Jan 2020, 05:29
I can place orders via FIX API to act as SL and TP for an order, however these are displayed in the cTrader Desktop and Mobile apps as separate orders. I include the posMaintRptID when setting the SL and TP orders however this does not seem to be recognised in the cTrader Desktop/mobile apps. Each of the TP and SL orders are shown as a separate order instead of TP and SL on the existing order.
Steps I have followed using FIX API;
1) Place Sell Limit Order and receive ExecutionReport with posMaintRptID
8=FIX.4.49=21935=834=249=CSERVER50=TRADE52=20200104-03:23:30.23056=PEPPERSTONE.332708857=TRADE11=ORD_1_TEST_STRATEGY14=037=6566836938=139=040=244=760554=255=1001159=160=20200104-03:23:30.087150=0151=1721=3653994710=140
2) Place Buy Stop Order (SL) with the posMaintRptID received in the first step
8=FIX.4.49=18835=D34=649=PEPPERSTONE.332708850=TRADE52=20200104-03:25:15.18956=CSERVER57=TRADE11=ORD_1_TEST_STRATEGY_SL38=140=354=155=1001159=160=20200104-13:25:15.18899=7610721=3653994710=175
3) Place Buy Limit Order (TP) with the posMaintRptID received in the first step
8=FIX.4.49=18835=D34=949=PEPPERSTONE.332708850=TRADE52=20200104-03:26:36.44356=CSERVER57=TRADE11=ORD_1_TEST_STRATEGY_TP38=140=244=760054=155=1001159=160=20200104-13:26:36.442721=3653994710=165
a) How can I set a SL and TP order via FIX API that is displayed in cTrader as the SL and TP on an existing order?
b) The ClOrdID set for an order placed through the FIX API is also not displayed in the cTrader Desktop/Mobile apps. How can the label field displayed in cTrader DeskTop/Mobile apps be set in FIX API?
Many Thanks
PanagiotisCharalampous
07 Jan 2020, 09:06
Hi ac,
This is by design. You cannot place SL and TP via FIX API.
Best Regards,
Panagiotis
Join us on Telegram
@PanagiotisCharalampous