Support Board
Date/Time: Sun, 22 Dec 2024 22:23:36 +0000
Post From: ACSIL - List Closed Orders
[2015-08-04 16:53:54] |
ejtrader - Posts: 688 |
SC Team - Wanted to get further clarification on couple of items on this subject. Appreciate if you can reply. Background / Observation: I am trying to get the history of trades that made up the current open position and have been using the structure - s_SCTradeOrder/sc.GetOrderByIndex and the following are my observations: Simulated Account: Trade -> Trade Orders and position -> Orders -- This structure seems to get cleared as soon as SC is closed and re-opened. Non-Simulated Account: same as above - just that as soon as a connection to trade service is made - it re-populates this data for the most recent trading day as defined under Global settings -> Global Trade Settings. for both sim/non-sim accounts - I can see the trade activity listed under trade -> trade activity log - which includes ALL the trades for all the days. Questions: - Can you confirm that you try to clear this data at SC restart time. For non-sim only - you populate again for the most recent trading day. - How to access the trades list that makes up the current open trade in case if the above is cleared from Orders and Position -> orders? - Which structure to use to get the data that is listed under Trade -> Trade Activity log? Just trying to find a reliable way to find all the trades that makes up the current position since most recent flat - even if trades are initiated 'n' number of days back. thanks Date Time Of Last Edit: 2015-08-04 19:08:50
|