Login Page - Create Account

Support Board


Date/Time: Mon, 10 Mar 2025 23:26:08 +0000



Post From: Suggested way of displaying InternalOrderID per bar in ACSIL?

[2022-04-12 13:42:16]
jwick - Posts: 142
Thanks for your suggestion.

Alas, setting sc.ValueFormat to VALUEFORMAT_WHOLE_NUMBER didn't help. For reference, both 35428518 and 35428219 appear as 35428520 in the subgraph regardless of the ValueFormat I specify. Here is a simple example to demonstrate:


SCSFExport scsf_DisplayInts(SCStudyInterfaceRef sc) {
  SCSubgraphRef sg = sc.Subgraph[0];
  if (sc.SetDefaults) {
    sc.GraphName = "DisplayInts"; sc.AutoLoop = false; sc.GraphRegion = 0;
    sg.Name = "Test"; sg.DrawStyle = DRAWSTYLE_IGNORE;
    return;
  }
  if (sc.UpdateStartIndex == 0) sc.ValueFormat = VALUEFORMAT_WHOLE_NUMBER;
  for (int i = sc.UpdateStartIndex; i < sc.ArraySize; i++) sg[i] = (float)35428518;
}

Any other advice on how to display an internalorderid per bar? Alternatively is there a way to reset the InternalOrderID count within sierra charts so it provides smaller ID's?
Date Time Of Last Edit: 2022-04-12 13:53:07