Login Page - Create Account

Support Board


Date/Time: Sat, 18 Apr 2026 21:31:34 +0000



Post From: Drawing routines fail in latest Sierra Chart version

[2026-04-18 18:42:16]
Sierra_Chart Engineering - Posts: 23537
We do not know what the problem is. We do not observe any problem like this.

It does not make any sense to us. But we cannot debug your own study functions. Maybe the study relies on Time and Sales or Volume at Price data? If so, the study will need to be recompiled for newer versions.


You can verify that these Draw Styles work correctly just by using this function and setting the Draw Style to Triangle Up (An example):
SCSFExport scsf_MovingAverageSimple(SCStudyInterfaceRef sc)
{
  SCSubgraphRef Subgraph_Avg = sc.Subgraph[0];

  SCInputRef Input_Data = sc.Input[0];
  SCInputRef Input_Length = sc.Input[3];

  if (sc.SetDefaults)
  {
    sc.GraphName = "Moving Average - Simple";

    sc.GraphRegion = 0;
    sc.ValueFormat = VALUEFORMAT_INHERITED;
    sc.AutoLoop = 1;

    Subgraph_Avg.Name = "Avg";
    Subgraph_Avg.DrawStyle = DRAWSTYLE_LINE;
    Subgraph_Avg.PrimaryColor = RGB(0, 255, 0);
    Subgraph_Avg.LineWidth = 1;
    Subgraph_Avg.DrawZeros = true;

    Input_Data.Name = "Input Data";
    Input_Data.SetInputDataIndex(SC_LAST);

    Input_Length.Name = "Length";
    Input_Length.SetInt(10);
    Input_Length.SetIntLimits(1, MAX_STUDY_LENGTH);

    return;
  }

  sc.DataStartIndex = Input_Length.GetInt() - 1;

  sc.SimpleMovAvg(sc.BaseDataIn[Input_Data.GetInputDataIndex()], Subgraph_Avg, Input_Length.GetInt());
}

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, use the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2026-04-18 18:43:17