Fix some issues on Hedging ...
This commit is contained in:
@@ -3815,7 +3815,7 @@ class XC121SMCTradeHandler : public XCBaseAlert
|
|||||||
if (canHedge)
|
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(
|
int closedPositionsCount = mTrader.Close(
|
||||||
positions,
|
positions,
|
||||||
comment //
|
comment //
|
||||||
@@ -3839,7 +3839,7 @@ class XC121SMCTradeHandler : public XCBaseAlert
|
|||||||
ResetProtections();
|
ResetProtections();
|
||||||
|
|
||||||
//
|
//
|
||||||
string message = "Hedge (" + ToString(count) + ") Positions By: " +
|
string message = "Hedge (" + ToString(ArraySize(positions)) + ") Positions By: " +
|
||||||
ToString(profitSummary) + " Successfully ...";
|
ToString(profitSummary) + " Successfully ...";
|
||||||
Alert(message);
|
Alert(message);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user