Support Board
Date/Time: Mon, 03 Feb 2025 15:59:06 +0000
Post From: FlatToFlatClosedProfitLoss
[2019-11-15 16:16:02] |
ForgivingComputers.com - Posts: 994 |
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? |
Test_Flat_to_Flat_Closed_Profit.cpp - Attached On 2019-11-15 16:10:04 UTC - Size: 1.12 KB - 374 views Attachment Deleted. |