Login Page - Create Account

Support Board


Date/Time: Sun, 24 Nov 2024 22:28:44 +0000



Post From: v 1054 -

[2013-11-29 00:41:00]
Kiwi - Posts: 375
The line int Size = sc.GetTradeListSize(); is causing this error:

Warning: The Custom DLL study "KiEx._scsf_ControlEntries" has just caused a CPU exception. | 2013-11-29 10:37:13
Warning: This Custom DLL study may cause Sierra Chart to be unstable until you remove the study from your chart and restart Sierra Chart. | 2013-11-29 10:37:13

The chart has no history of live orders and gives the error when there were no sim orders but also after I'd created a couple in replay.




SCSFExport _scsf_ControlEntries(SCStudyGraphRef sc)
{
SCSubgraphRef o0 = sc.Subgraph[0], o1 = sc.Subgraph[1],
o2 = sc.Subgraph[2], o3 = sc.Subgraph[3],
o4 = sc.Subgraph[4], o5 = sc.Subgraph[5];

if (sc.SetDefaults)
{
sc.GraphName=" ";
sc.StudyDescription="Expt";
sc.Subgraph[0].Name="o1 ";
sc.Subgraph[1].Name="o2 ";
sc.Subgraph[2].Name="o3 ";
sc.Subgraph[3].Name="o3 ";
sc.Subgraph[4].Name="o4 ";
sc.Subgraph[5].Name="o5 ";

sc.GraphRegion=0;
sc.ScaleRangeType = SCALE_SAMEASREGION;
sc.CalculationPrecedence = VERY_LOW_PREC_LEVEL;
}
sc.FreeDLL=1;

bool killOrders = false;
int as = sc.ArraySize - 1;

  std::vector <s_ACSTrade> TradesList;
  s_ACSTrade TradeEntry;
  int Size = sc.GetTradeListSize();

  //for(int i = 0; i < Size;i++)
  //{
    //if(sc.GetTradeListEntry(i, TradeEntry))
      //TradesList.push_back(TradeEntry);
  //}

  //for (unsigned int i = 0, ti = TradesList.size() - 1; ti >= 0 ; i++, ti--)
  //{
//o4[as-i] = TradesList[ti].ClosedProfitLoss;
  //}



}


sc1054, wine, debian jessie