Login Page - Create Account

Support Board


Date/Time: Wed, 05 Mar 2025 19:31:51 +0000



Flatten order gives error Trade Account is empty

View Count: 536

[2022-01-17 07:47:43]
User726340 - Posts: 30
Using latest (2346) , i recall it was working before, not sure something changed. If i submit a flatten order (account and symbol correctly set), i see "Trade Account is empty" message. I am using Trading Evaluator to test.
Date Time Of Last Edit: 2022-01-17 08:15:08
[2022-01-17 08:12:50]
User726340 - Posts: 30
Below is the message received, after submitting flatten order. Also, for NEW_ORDER_REJECTED (8) , why is ClientOrderID empty, we need this to identify which order this message belongs to.

OrderUpdate:
Account:
Symbol:
OrderStatus: 9
OrderUpdateReason: 8
InfoText: Trade Account is empty
FreeFormText:
ClientOrderID:
ServerOrderID:
PreviousServerOrderID:
ExchangeOrderID:
Date Time Of Last Edit: 2022-01-17 08:14:24
[2022-01-17 23:00:26]
Sierra Chart Engineering - Posts: 104368
We may have inadvertently made a change to this data structure. Use the updated DTC message data structure when you are sending this message. The latest header files are provided with Sierra Chart in the Sierra Chart installation folder.

The client order ID is given in the rejection message.
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: 2022-01-18 00:26:36
[2022-01-18 07:40:59]
User726340 - Posts: 30
do we need newer SC?

i am using latest Flatten message
Order Entry and Modification Messages: SUBMIT_FLATTEN_POSITION_ORDER [s_SubmitFlattenPositionOrder structure] Client >> Server

still see the issue, did i miss something.
[2022-01-19 03:14:29]
User726340 - Posts: 30
looks like a bug in DTCProtocol.cpp , it has few typos of using FreeFormText instead of correct fields. It works now after i made below changes.

3190c3190
< strncpy(Symbol, NewValue, sizeof(Symbol) - 1);
---
> strncpy(FreeFormText, NewValue, sizeof(Symbol) - 1);
3207c3207
< strncpy(Exchange, NewValue, sizeof(Exchange) - 1);
---
> strncpy(FreeFormText, NewValue, sizeof(Exchange) - 1);
3224c3224
< strncpy(TradeAccount, NewValue, sizeof(TradeAccount) - 1);
---
> strncpy(FreeFormText, NewValue, sizeof(TradeAccount) - 1);
3241c3241
< strncpy(ClientOrderID, NewValue, sizeof(ClientOrderID) - 1);
---
> strncpy(FreeFormText, NewValue, sizeof(ClientOrderID) - 1);
[2022-01-19 03:55:52]
Sierra Chart Engineering - Posts: 104368
do we need newer SC?
Use the DTC header file provided with the Sierra Chart version you are sending the Flatten position message to.

looks like a bug in DTCProtocol.cpp , it has few typos of using FreeFormText instead of correct fields. It works now after i made below changes.
Yes that is true. These are corrected. We will have a new release out by tomorrow. We did not catch this because we do not use the fixed length binary encoding messages. We use the variable length string messages.
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: 2022-01-19 03:56:07

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account