apply latest optimization on indicator helpers classes and also add time tracking configurations into ea ...
This commit is contained in:
@@ -155,6 +155,21 @@ public:
|
||||
{
|
||||
//
|
||||
delete mTrader;
|
||||
|
||||
//
|
||||
Clean(mOnSignalEventHandlers);
|
||||
|
||||
//
|
||||
mOnSignal = NULL;
|
||||
mOnModifyPosition = NULL;
|
||||
mOnStopLossTriggered = NULL;
|
||||
mOnTakeProfitTriggered = NULL;
|
||||
mOnForceClosePosition = NULL;
|
||||
mOnDealsChangedHandler = NULL;
|
||||
mOnPartialClosePosition = NULL;
|
||||
mOnOrdersChangedHandler = NULL;
|
||||
mOnPositionsChangedHandler = NULL;
|
||||
mOnTradeStateChangedHandler = NULL;
|
||||
}
|
||||
|
||||
//
|
||||
@@ -345,6 +360,10 @@ public:
|
||||
//
|
||||
// Execute Signals ...
|
||||
HandleSignalsExecution(signals);
|
||||
|
||||
//
|
||||
Clean(guards);
|
||||
Clean(signals);
|
||||
}
|
||||
|
||||
//
|
||||
@@ -987,6 +1006,9 @@ protected:
|
||||
supports //
|
||||
);
|
||||
|
||||
//
|
||||
Clean(supports);
|
||||
|
||||
//
|
||||
return result;
|
||||
}
|
||||
@@ -1065,6 +1087,11 @@ protected:
|
||||
|
||||
//
|
||||
mTrader.CancelOrders(mustCancel);
|
||||
|
||||
//
|
||||
Clean(orders);
|
||||
Clean(positions);
|
||||
Clean(mustCancel);
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user