Login Page - Create Account

Support Board


Date/Time: Fri, 29 Mar 2024 09:52:44 +0000



Post From: GetTradeList cpu exception

[2013-05-21 06:53:09]
onnb - Posts: 660
I am getting a cpu exception with GetTradeList. It comes by just adding the study to a chart.
The size of the list is 4293719478 (from the debugger)

Code used is below.
Any ideas?


std::vector<s_ACSTrade> tradeList;
sc.GetTradeList(tradeList);

for (int i = 0; i < tradeList.size(); i++)
{
  SCDateTime closeDT = tradeList[i].CloseDateTime;
  
  int index = sc.GetContainingIndexForSCDateTime(sc.ChartNumber, closeDT);
  equity[index] = tradeList[i].ClosedProfitLoss;
}