Login Page - Create Account

Support Board


Date/Time: Thu, 30 Oct 2025 23:44:45 +0000



s_SCTradeOrder.TextTag empty when using sc.GetOrderForSymbolAndAccountByIndex() for other

View Count: 85

[2025-10-27 07:05:25]
aurel19230 - Posts: 8
Hello SC Engineering,

I’m seeing unexpected behavior with the TextTag field when retrieving orders for a different symbol than the current chart’s symbol.

Environment

Sierra Chart 2784 (64-bit)

Build/Rev: 53903

Data/Trade service: [fill in]

Account: SIM account

Mode tested: real-time on SIM

Repro steps

Submit an order for a different symbol and set TextTag:

s_SCNewOrder o{};
o.Symbol = "MNQZ5.CME"; // different from current chart symbol
o.OrderQuantity = 1;
o.TextTag = "SPREAD_TEST_X";
sc.BuyOrder(o);


Read orders via sc.GetOrderForSymbolAndAccountByIndex:

s_SCTradeOrder ord{};
const SCString sym = "MNQZ5.CME";
const SCString acct = sc.SelectedTradeAccount;

for (int i = 0; sc.GetOrderForSymbolAndAccountByIndex(sym, acct, i, ord); ++i)
{
sc.AddMessageToLog(sc.FormatString(
"i=%d, InternalID=%d, TextTag='%s' (len=%d), Symbol='%s'",
i,
ord.InternalOrderID,
ord.TextTag.GetChars(),
ord.TextTag.GetLength(),
ord.Symbol.GetChars()
), 0);
}


Observed

For these cross-symbol orders, TextTag is empty ("", length 0).

In Trade » Trade Orders, the Text Tag column is also blank for the cross-symbol orders.

For orders on the study’s chart symbol, the Text Tag shows correctly in the Trade Orders window (e.g., a custom tag) and GetOrderByIndex returns a non-empty TextTag.

Expected vs Actual

Expected: GetOrderForSymbolAndAccountByIndex() should populate s_SCTradeOrder::TextTag just like GetOrderByIndex().

Actual: TextTag remains empty when the order was submitted for a different symbol than the chart.

Questions

Is this a known limitation of sc.GetOrderForSymbolAndAccountByIndex() with cross-symbol orders?

If not, could this be a bug, and is there a build that addresses it?

Is there a recommended workaround or alternative API to reliably retrieve the TextTag for cross-symbol orders?


Thanks
imageScreenshot 2025-10-27 110030.png / V - Attached On 2025-10-27 07:04:39 UTC - Size: 27.49 KB - 9 views
[2025-10-28 15:40:38]
Sierra_Chart Engineering - Posts: 21264
We see why this is the case and this will be resolved in the next release.
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, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2025-10-28 18:40:39]
aurel19230 - Posts: 8
Ok thank you.
[2025-10-29 14:00:53]
aurel19230 - Posts: 8
Hello,
Do you have an estimated date for the next release that will include this patch? Will I be notified when it becomes available?
Thank you.
[2025-10-29 15:34:28]
John - SC Support - Posts: 42683
You will not be directly notified.

We do not have a specific rollout for releases. Releases occur at a rate of about 1 a week to 3 a week.

Check our homepage for the information on the releases, which is on the right side about 1/3 of the way down. Here is the link:
https://www.sierrachart.com/

You will want to watch for the Pre-Release to update and then you can download that Pre-Release by following these instructions:
Software Download: Fast Update
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2025-10-29 19:44:56]
Sierra_Chart Engineering - Posts: 21264
We will put out a new release today.
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, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2025-10-30 13:56:58]
Sierra_Chart Engineering - Posts: 21264
We have released prerelease version 2805 now.
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, use the Teton service:
Sierra Chart Teton Futures Order Routing

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

Login

Login Page - Create Account