Login Page - Create Account

Support Board


Date/Time: Sun, 12 Jan 2025 08:09:25 +0000



Post From: sc.Index jumping from 0 to ArraySize-1.

[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;
}