Login Page - Create Account

Support Board


Date/Time: Mon, 25 Nov 2024 01:53:46 +0000



Post From: Get error during compilation

[2013-12-23 05:03:58]
User52100 - Posts: 2

#include "sierrachart.h"
#include <string>
SCDLLName("Gilad")
//SCDLLInit("Delta Divergence Gilad");
/***********************************************************************/
SCSFExport scsf_DeltaDivergence(SCStudyGraphRef sc)
{
  SCSubgraphRef ddVolSubgraph = sc.Subgraph[0];
  SCSubgraphRef ddBuySubgraph = sc.Subgraph[1];
  SCSubgraphRef buyPriceSubgraph = sc.Subgraph[2];
  SCSubgraphRef ddSellSubgraph = sc.Subgraph[3];
  SCSubgraphRef sellPriceSubgraph = sc.Subgraph[4];
  SCSubgraphRef ma1Subgraph = sc.Subgraph[5];
  SCSubgraphRef ma2Subgraph = sc.Subgraph[6];
  SCSubgraphRef tSetupSubgraph = sc.Subgraph[7];
  SCSubgraphRef stSubgraph = sc.Subgraph[8];
  SCSubgraphRef btSubgraph = sc.Subgraph[9];
  SCSubgraphRef sslSubgraph = sc.Subgraph[10];
  SCSubgraphRef bslSubgraph = sc.Subgraph[11];
  SCSubgraphRef lossCntSubgraph = sc.Subgraph[12];
  SCSubgraphRef winCntSubgraph = sc.Subgraph[13];
  SCSubgraphRef lossPLSubgraph = sc.Subgraph[14];
  SCSubgraphRef winPLSubgraph = sc.Subgraph[15];
  SCSubgraphRef test = sc.Subgraph[16];
  
  SCInputRef version = sc.Input[0];
  SCInputRef useCumVolInput = sc.Input[1];
  SCInputRef volTypeInput = sc.Input[2];
  SCInputRef ddModeInput = sc.Input[3];
  SCInputRef useCSTInput = sc.Input[4];
  SCInputRef ddPeriodInput = sc.Input[5];
  SCInputRef ma1Input = sc.Input[6];
  SCInputRef ma2Input = sc.Input[7];
  SCInputRef maTypeInput = sc.Input[8];
  SCInputRef maInputDataInput = sc.Input[9];
  SCInputRef ddOffsetInput = sc.Input[10];
  SCInputRef maZoneInput = sc.Input[11];
  SCInputRef sigZoneInput = sc.Input[12];
  SCInputRef tradeModeInput = sc.Input[13]; //if to get in this bar(false) or when it's broken on next bar (true)
  SCInputRef tPriceInput = sc.Input[14];
  
  if(sc.SetDefaults)
  {
    sc.GraphName="Delta Divergence Gilad";
    sc.StudyDescription="Delta Divergence Gilad checking how to b.t.";
    
    ddVolSubgraph.Name = "Delta Volume";
    /*
    ddVolSubgraph.DrawStyle = DRAWSTYLE_DONOTDRAW;
    */
    //ddVolSubgraph.DrawStyle = DRAWSTYLE_TEXT;
    //ddVolSubgraph.DrawStyleText ="ddVolSubgraph";
    //ddVolSubgraph.PrimaryColor = RGB(0, 255, 0);
    //ddVolSubgraph.Line Width = 10;
    ddVolSubgraph.TextDrawStyleText ="ddVolSubgraph";
    ddVolSubgraph.LineWidth = 2;

    ddBuySubgraph.Name = "Delta Divergence Buy";
    ddBuySubgraph.DrawStyle = DRAWSTYLE_ARROWUP;
    ddBuySubgraph.PrimaryColor = RGB(0, 255, 0);
    ddBuySubgraph.LineWidth = 2;
    
    buyPriceSubgraph.Name = "Buy Price";
    buyPriceSubgraph.DrawStyle = DRAWSTYLE_DASH;
    buyPriceSubgraph.PrimaryColor = RGB(128,255,128);
    buyPriceSubgraph.LineWidth = 4;
    
    ddSellSubgraph.Name = "Delta Divergence Sell";
    ddSellSubgraph.DrawStyle = DRAWSTYLE_ARROWDOWN;
    ddSellSubgraph.PrimaryColor = RGB(255, 0, 0);
    ddSellSubgraph.LineWidth = 2;
    
    sellPriceSubgraph.Name = "Sell Price";
    sellPriceSubgraph.DrawStyle = DRAWSTYLE_DASH;
    sellPriceSubgraph.PrimaryColor = RGB(255,128,128);
    sellPriceSubgraph.LineWidth = 4;