Support Board
Date/Time: Fri, 22 Nov 2024 18:32:28 +0000
Post From: GetTradeList cpu exception
[2013-05-21 06:53:09] |
onnb - Posts: 662 |
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; } |