Login Page - Create Account

Support Board


Date/Time: Mon, 25 Nov 2024 12:42:43 +0000



Post From: ACSIL questions: colour in between subgraphs

[2014-01-29 18:29:13]
User40117 - Posts: 56

/*============================================================================
  This is another template function you can copy and modify to start a new study
  function.
----------------------------------------------------------------------------*/
SCSFExport scsf_test(SCStudyGraphRef sc)
{

  

  if (sc.SetDefaults)
  {
    
  
    sc.GraphName = "test";
    sc.GraphRegion = 0;
    sc.StudyDescription = "Insert description here.";
        
    sc.AutoLoop = 1; // true

    // During development set this flag to 1, so the DLL can be rebuilt without restarting Sierra Chart. When development is completed, set it to 0 to improve performance.
    sc.FreeDLL = 1;

    sc.Subgraph[2].Name = "test 1";
    sc.Subgraph[2].PrimaryColor = RGB(0,255,0);
    sc.Subgraph[2].LineWidth = 2;
    sc.Subgraph[2].LineStyle = LINESTYLE_DOT; // Optionally, you may predefine a line style
    
    sc.Subgraph[3].Name = "test 2";
    sc.Subgraph[3].PrimaryColor = RGB(255,0,0);
    sc.Subgraph[3].LineWidth = 2;
    sc.Subgraph[3].LineStyle = LINESTYLE_DOT; // Optionally, you may predefine a line style
    
    sc.Subgraph[5].Name = "test 3";
    sc.Subgraph[5].PrimaryColor = RGB(255,0,0);
    sc.Subgraph[5].LineWidth = 1;
    sc.Subgraph[5].LineStyle = LINESTYLE_DOT; // Optionally, you may predefine a line style
    
    return;
  }

  
    sc.Subgraph[2][sc.Index] = sc.BaseData[SC_HIGH][sc.Index];
    sc.Subgraph[3][sc.Index] = sc.Subgraph[2][sc.Index] + 5.0;
    sc.Subgraph[5][sc.Index] = sc.Subgraph[2][sc.Index] + 15.0;





}

test 3 does not plot! at least in my chart. change [5] into [1] it plots !