Support Board
Date/Time: Tue, 14 Jan 2025 09:58:23 +0000
Post From: sc.FlattenAndCancelAllOrders during Replay mode
[2017-05-01 23:19:22] |
Sierra Chart Engineering - Posts: 104368 |
We cannot debug what you are doing. This is completely outside the scope of our support. We ran a test of the sc.FlattenAndCancelAllOrders() function. And it does work properly: ActivityType Symbol DateTime OrderActionSource InternalOrderID OrderStatus ServiceOrderID OrderType PositionQuantity Quantity BuySell Price Price2 FillPrice FilledQuantity TradeAccount OpenClose ParentInternalOrderID FillExecutionServiceID HighDuringPosition LowDuringPosition
Order [Sim]GCM17 2017-04-26 15:14:30.000 Replay 60.0X: GCM17 3 Min #1 | User order entry | Last: 1268.6 88 Order Sent Market 4 Buy Sim1 Open Order [Sim]GCM17 2017-04-26 15:14:30.001 Simulated order accepted 88 Open 88 Market 4 Buy Sim1 Open Order [Sim]GCM17 2017-04-26 15:14:30.002 Trade simulation fill. Bid: 1268.2 Ask: 1268.3 Last: 1268.2 88 Filled 88 Market 4 Buy 1268.3 4 Sim1 Open Fill [Sim]GCM17 2017-04-26 15:14:30.003 Trade simulation fill. Bid: 1268.2 Ask: 1268.3 Last: 1268.2 88 Filled 88 Market 4 4 Buy 1268.3 4 Sim1 Open 88.1 1268.3 1268.3 Order [Sim]GCM17 2017-04-26 15:14:37.000 Auto-trade: Replay 60.0X: GCM17 3 Min #1 | Trading Test 2 | Source: ACSIL Flatten & Cancel | Bar start date-time: 2017-04-26 15:12:00.000. Flatten&Cancel | Last: 1268.2. Current Position quantity: 4 89 Order Sent Market 4 4 Sell Sim1 Close Order [Sim]GCM17 2017-04-26 15:14:37.001 Simulated order accepted 89 Open 89 Market 4 4 Sell Sim1 Close Order [Sim]GCM17 2017-04-26 15:14:37.002 Trade simulation fill. Bid: 1268.2 Ask: 1268.3 Last: 1268.2 89 Filled 89 Market 4 4 Sell 1268.2 4 Sim1 Close Fill [Sim]GCM17 2017-04-26 15:14:37.003 Trade simulation fill. Bid: 1268.2 Ask: 1268.3 Last: 1268.2 89 Filled 89 Market 4 Sell 1268.2 4 Sim1 Close 89.2 1268.2 1268.2 The times do match up with the replay time in the chart. Refer to: Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service: Sierra Chart Teton Futures Order Routing Date Time Of Last Edit: 2017-05-01 23:19:58
|