Fix some issues on Hedging ...

This commit is contained in:
2025-02-12 05:37:47 +03:30
parent 6c3daccc94
commit 712e425b88
@@ -3815,7 +3815,7 @@ class XC121SMCTradeHandler : public XCBaseAlert
if (canHedge)
{
//
string comment = "Hedge (" + ToString(count) + ") Positions By: " + ToString(profitSummary) + "...";
string comment = "Hedge (" + ToString(ArraySize(positions)) + ") Positions By: " + ToString(profitSummary) + "...";
int closedPositionsCount = mTrader.Close(
positions,
comment //
@@ -3839,7 +3839,7 @@ class XC121SMCTradeHandler : public XCBaseAlert
ResetProtections();
//
string message = "Hedge (" + ToString(count) + ") Positions By: " +
string message = "Hedge (" + ToString(ArraySize(positions)) + ") Positions By: " +
ToString(profitSummary) + " Successfully ...";
Alert(message);
}