Login Page - Create Account

Support Board


Date/Time: Thu, 02 May 2024 00:18:20 +0000



Post From: Update documentation to support latest version of Visual Studio

[2019-05-21 15:03:46]
grantx - Posts: 244
Thanks for updating the documentation.
I have followed it step by step. I can connect to the Sierrachart process just fine and load up the CPP file just fine but when I set the breakpoint and hover over it the message says:

The breakpoint will not currently be hit. No symbols have been loaded for this document.

When I recalculate the chart, the breakpoint is not hit.

Here is the code I am using:

#include "sierrachart.h"
/****************************************************************************/

SCDLLName("Hor Line")
SCSFExport scsf_HorizontalLine(SCStudyGraphRef sc)
{
  // Configuration
  if (sc.SetDefaults)
  {
    sc.GraphName = "Horizontal Line"; // study name shown in Chart Studies window

    sc.StudyDescription = "Test of horizontal line";

    sc.AutoLoop = 1; // true

    sc.GraphRegion = 1; // zero based chart region number

    // 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[0].Name = "Line";
    sc.Subgraph[0].DrawStyle = DRAWSTYLE_LINE;
    sc.Subgraph[0].PrimaryColor = RGB(0,255,0); // green
    
    sc.Input[0].Name = "Line Value";
    sc.Input[0].SetFloat(50); // default value
    sc.Input[0].SetFloatLimits(1, 20000); // min-max value
    sc.FreeDLL = 1;
    
    return;
  }
  
// Data processing

  sc.DataStartIndex = 0;


  float LineVal = sc.Input[0].GetFloat(); // get integer value from Input 0
  
  sc.Subgraph[0][sc.Index] = LineVal;
}