Login Page - Create Account

Support Board


Date/Time: Thu, 25 Apr 2024 23:22:40 +0000



Post From: ACSIL questions: colour in between subgraphs

[2014-01-29 17:23:41]
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[3].Name = "test 2";
    sc.Subgraph[3].PrimaryColor = RGB(255,0,0);
    sc.Subgraph[3].LineWidth = 2;
    
    sc.Subgraph[5].Name = "test 3";
    sc.Subgraph[5].PrimaryColor = RGB(255,0,0);
    sc.Subgraph[5].LineWidth = 1;
    
    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;





}


Subgraph test3 is NOT plotted, however when changing index [5] into [1] it IS plotted, any index above 3 is NOT plotted ???!!!