Fix some issues on Hedging ...
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user