Access to contingent/OCO orders via TradeManager interface before the initial order is filled  [SOLVED]

Questions about MultiCharts .NET and user contributed studies.
jarym
Posts: 58
Joined: 16 Feb 2015
Has thanked: 14 times
Been thanked: 6 times

Access to contingent/OCO orders via TradeManager interface before the initial order is filled

Postby jarym » 05 Jul 2019

Hi,

I've created a PM feature request over here: https://www.multicharts.com/pm/public/m ... es/MC-2596 :
I'm using the TradeManager interface to keep track of my orders and positions to monitor risk. I've found that at least with PaperTrader, I can see new orders but if there's an attached Profit / Stop order then these only appear after the initial entry order has been filled. Further, while OCOGroupId exists so I can see which orders are part of the same group, I am not able to see which order triggered the OCO order.

This prevents me from assessing risk at the point orders are placed. It is really essential for me if there was a way that for any sent/submitted order to check what any attached exit orders are before the initial order is filled.

I suggest that maybe:
  1. The TradeManager.Order structure be enhanced to include a list of any contingent orders and that a mechanism exists to query/obtain details about these orders.
  2. When an OCO order finally appears via the TradeManager order events API, it includes a reference to the OrderID that triggered the submission.
If in the meantime support can suggest any workaround it'd be of great help.


Thanks,

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Access to contingent/OCO orders via TradeManager interface before the initial order is filled  [SOLVED]

Postby Henry MultiСharts » 09 Jul 2019

Hello jarym,

This has been already discussed via email – there is no way to get this information at the moment.
I have forwarded this suggestion to the dev team, but it can be considered only when we start the work on the new AT/BT engine:
http://www.multicharts.com/pm/viewissue ... no=MC-1497


Return to “MultiCharts .NET”