Support Board
Date/Time: Mon, 15 Sep 2025 21:45:34 +0000
Post From: FlatToFlatClosedProfitLoss
[2019-11-15 16:16:02] |
ForgivingComputers.com - Posts: 1122 |
I am testing the Get Flat to Flat TradeList using the example given for sc.GetTradeList Entry, but modifying the two function names like this: std::vector <s_ACSTrade> TradesList; s_ACSTrade TradeEntry; int Size = sc.GetFlatToFlatTradeListSize(); // <------------------ Here for (int Index = 0; Index < Size; Index++) { if (sc.GetFlatToFlatTradeListEntry](Index, TradeEntry)) // <----------- and Here TradesList.push_back(TradeEntry); } for (unsigned int TradeIndex = 0; TradeIndex < TradesList.size(); TradeIndex++) { double ProfitLoss = TradesList[TradeIndex].ClosedProfitLoss; } My results in sim after one trade using this code do not match the ClosedPL from the Trade Activity Log. Am I doing something wrong? |
![]() Attachment Deleted. |