Support Board
Date/Time: Fri, 31 Oct 2025 06:11:39 +0000
Post From: s_SCTradeOrder.TextTag empty when using sc.GetOrderForSymbolAndAccountByIndex() for other
| [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 | 
|  Screenshot 2025-10-27 110030.png / V - Attached On 2025-10-27 07:04:39 UTC - Size: 27.49 KB - 10 views | 
