Login Page - Create Account

Support Board


Date/Time: Sun, 05 May 2024 22:34:04 +0000



Post From: Order modification failed | Order is not in a working state errors in Trade Service Log

[2019-05-27 18:35:17]
uM8137 - Posts: 180
I am getting a bunch of these weird errors in the Trade Service Log, on a bar based backtest.

Apparently these have to do with the trailing stop logic. Might indicate a bug in the trailing-stop implementation logic.

...
TradeActivity files query time: 0.000429 seconds. | 2019-05-27 18:18:25
TradeActivity files query time: 0.008452 seconds. | 2019-05-27 18:18:25
Order modification failed | Order is not in a working state. Order cannot be modified. Internal Order ID: 226640. Service Order ID: 226640. Symbol: CLN19 | 2019-05-27 18:18:26 *
Order modification failed | Order is not in a working state. Order cannot be modified. Internal Order ID: 227027. Service Order ID: 227027. Symbol: CLN19 | 2019-05-27 18:18:39 *
Order modification failed | Order is not in a working state. Order cannot be modified. Internal Order ID: 227072. Service Order ID: 227072. Symbol: CLN19 | 2019-05-27 18:18:39 *
Order modification failed | Order is not in a working state. Order cannot be modified. Internal Order ID: 227153. Service Order ID: 227153. Symbol: CLN19 | 2019-05-27 18:18:40 *
Order modification failed | Order is not in a working state. Order cannot be modified. Internal Order ID: 227243. Service Order ID: 227243. Symbol: CLN19 | 2019-05-27 18:18:42 *
Order modification failed | Order is not in a working state. Order cannot be modified. Internal Order ID: 227288. Service Order ID: 227288. Symbol: CLN19 | 2019-05-27 18:18:43 *
Order modification failed | Order is not in a working state. Order cannot be modified. Internal Order ID: 227324. Service Order ID: 227324. Symbol: CLN19 | 2019-05-27 18:18:44 *
Order modification failed | Order is not in a working state. Order cannot be modified. Internal Order ID: 227432. Service Order ID: 227432. Symbol: CLN19 | 2019-05-27 18:18:48 *
Order modification failed | Order is not in a working state. Order cannot be modified. Internal Order ID: 227504. Service Order ID: 227504. Symbol: CLN19 | 2019-05-27 18:18:51 *
Cleared trade data | Symbol: [Sim]CLN19 | TradeAccount: Sim1 | 2019-05-27 18:18:52


How I have the targets and stops configured: attached as threefer.twconfig ; screenshot in attached as threestops.png ;

in text:

Trade qty 3 with targets/stops:

Target 1: 10 ticks, qty 1
Target 2: 20 ticks, qty 1
Target 3: 30 ticks, qty 1
Stop 1: 10 ticks, qty 1, Stop
Stop 2: 10 ticks | 11 tick Trigger Offset | 10 tick Trail offset | qty 1, Triggered Trail Stop
Stop 3: 10 ticks | 11 tick Trigger Offset | 10 tick Trail offset | qty 1, Triggered Trail Stop

SC version 1915.

Additional note:

I place the original trades as market orders from within the ACSIL DLL. I have
the sc.UseGUIAttachedOrderSetting=1; set during SetDefaults.

It also feels like a bug because the whole GUI for SC will lock up for several minutes. Eventually
it will come out of its non-responsive state when the backtest has made some progress. But it is
atypical behavior.
Date Time Of Last Edit: 2019-05-27 18:56:51
attachmentthreefer.twconfig - Attached On 2019-05-27 18:23:00 UTC - Size: 6.52 KB - 294 views
imagethreestops.png / V - Attached On 2019-05-27 18:27:41 UTC - Size: 55.68 KB - 296 views