Login Page - Create Account

Support Board


Date/Time: Sun, 12 Jan 2025 04:27:21 +0000



sc.Index jumping from 0 to ArraySize-1.

View Count: 754

[2017-01-28 08:13:14]
enemyspy - Posts: 306
I started experiencing a problem with a custom study not calculating. So I went to debug it and noticed that when the function returns from it's first cycle on the 0 index it jumps to sc.ArraySize-1, and I have no idea why. Removed all charts and studies from the chart book except for one chart and one custom study. I stripped the study down to the following code block and still experiencing the issue:

version 1507

SCSFExport scsf_Trade_Tracker(SCStudyInterfaceRef sc)
{

  int dbgindex = sc.Index;

  if (sc.SetDefaults)
  {
    sc.GraphName = "TradeTracker";
    
    return;
  }


  return;
}

[2017-01-28 10:17:21]
Sierra Chart Engineering - Posts: 104368
The study is using manual looping:
ACSIL Interface Members - Variables and Arrays: sc.AutoLoop
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

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

Login

Login Page - Create Account