Login Page - Create Account

Support Board


Date/Time: Mon, 21 Apr 2025 17:15:58 +0000



Post From: How to attached a custom name to an order using s_SCNewOrder::TextTag?

[2025-03-04 23:25:36]
LTSys - Posts: 68
I was reading the docs about TextTag and it says...

Automated Trading From an Advanced Custom Study: [Type: SCString] s_SCNewOrder::TextTag

This is an optional text string that can be set to any free-form text that you want, to help identify an order.

So I use this code to add the TextTag to the order...


  s_SCNewOrder order;
  
  order.OrderType = SCT_ORDERTYPE_MARKET;
  order.TimeInForce = SCT_TIF_GOOD_TILL_CANCELED;
  // additional order code
  
  SCString tag;
  
  order.TextTag = tag.Format("Buy Order %u", count);

But when retrieving the order's TexTag later I get this text "SimpleBracket.twconfig"

Is there some extra step I'm missing?

TIA
Date Time Of Last Edit: 2025-03-04 23:29:27