apply latest optimization on indicator helpers classes and also add time tracking configurations into ea ...
This commit is contained in:
@@ -52,6 +52,13 @@ struct X121SetupCycleInputs
|
||||
{
|
||||
}
|
||||
|
||||
//
|
||||
// Deconstructor Constructor ...
|
||||
void ~X121SetupCycleInputs()
|
||||
{
|
||||
delete setup;
|
||||
}
|
||||
|
||||
//
|
||||
// Initialization ...
|
||||
bool Init(
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
// Imports ...
|
||||
|
||||
//
|
||||
#include "../Classes/x-saherelm.x121.setup.cycle.class.mq5"
|
||||
#include "../Classes/x-saherelm.xea.class.mq5"
|
||||
#include "../Classes/x-saherelm.x121.setup.cycle.class.mq5"
|
||||
|
||||
//
|
||||
// Definitions ...
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
@@ -586,6 +586,17 @@ public:
|
||||
// Remove Pointer ...
|
||||
delete mTrader;
|
||||
delete mAccount;
|
||||
|
||||
//
|
||||
Clean(mOnModifyEventHandlers);
|
||||
Clean(mStopLossEventHandlers);
|
||||
Clean(mTakeProfitEventHandlers);
|
||||
Clean(mOnForceCloseEventHandlers);
|
||||
Clean(mDealsChangedEventHandlers);
|
||||
Clean(mOrdersChangedEventHandlers);
|
||||
Clean(mOnPartialCloseEventHandlers);
|
||||
Clean(mPositionsChangedEventHandlers);
|
||||
Clean(mTradeStateChangedEventHandlers);
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user