cleanup unused collections and also disable drawings for memory improvement ...
This commit is contained in:
@@ -425,45 +425,6 @@ class XCX121SMCBaseStrategy : public XCBaseAlert
|
||||
mLastTick = cTick;
|
||||
SaveTickData();
|
||||
|
||||
//
|
||||
// Update POIs ...
|
||||
|
||||
//
|
||||
// Trigger ...
|
||||
ENUM_XPOI_EVENTS mTriggerEvents[];
|
||||
mTriggerDetector.Update(mTriggerEvents);
|
||||
mTriggerDetector.GetState(mTriggerState);
|
||||
|
||||
//
|
||||
// Decision ...
|
||||
ENUM_XPOI_EVENTS mDecisionEvents[];
|
||||
mDecisionDetector.Update(mDecisionEvents);
|
||||
mDecisionDetector.GetState(mDecisionState);
|
||||
|
||||
//
|
||||
// Analyse ...
|
||||
ENUM_XPOI_EVENTS mAnalyseEvents[];
|
||||
mAnalyseDetector.Update(mAnalyseEvents);
|
||||
mAnalyseDetector.GetState(mAnalyseState);
|
||||
|
||||
//
|
||||
// Verification ...
|
||||
ENUM_XPOI_EVENTS mVerificationEvents[];
|
||||
mVerificationDetector.Update(mVerificationEvents);
|
||||
mVerificationDetector.GetState(mVerificationState);
|
||||
|
||||
//
|
||||
// Consolidation ...
|
||||
ENUM_XPOI_EVENTS mConsolidationEvents[];
|
||||
mConsolidationDetector.Update(mConsolidationEvents);
|
||||
mConsolidationDetector.GetState(mConsolidationState);
|
||||
|
||||
//
|
||||
// Vision ...
|
||||
ENUM_XPOI_EVENTS mVisionEvents[];
|
||||
mVisionDetector.Update(mVisionEvents);
|
||||
mVisionDetector.GetState(mVisionState);
|
||||
|
||||
//
|
||||
// Check Current Processing Tick has Signal or not ...
|
||||
XSignal signal;
|
||||
@@ -548,23 +509,6 @@ class XCX121SMCBaseStrategy : public XCBaseAlert
|
||||
//
|
||||
// Props ...
|
||||
|
||||
//
|
||||
// Point Of Interests ...
|
||||
XCPOIDetector *mVisionDetector;
|
||||
XCPOIDetector *mConsolidationDetector;
|
||||
XCPOIDetector *mVerificationDetector;
|
||||
XCPOIDetector *mAnalyseDetector;
|
||||
XCPOIDetector *mDecisionDetector;
|
||||
XCPOIDetector *mTriggerDetector;
|
||||
|
||||
//
|
||||
XPOIState mVisionState;
|
||||
XPOIState mConsolidationState;
|
||||
XPOIState mVerificationState;
|
||||
XPOIState mAnalyseState;
|
||||
XPOIState mDecisionState;
|
||||
XPOIState mTriggerState;
|
||||
|
||||
//
|
||||
XCPOIDrawer *mPOIDrawer; // POI Drawer Class ...
|
||||
CArrayObj mDrawnObjects;
|
||||
@@ -924,66 +868,6 @@ class XCX121SMCBaseStrategy : public XCBaseAlert
|
||||
period //
|
||||
);
|
||||
|
||||
//
|
||||
// Initialize POIs ...
|
||||
|
||||
//
|
||||
int poiRequired = 40;
|
||||
|
||||
//
|
||||
// Trigger ...
|
||||
mTriggerDetector = new XCPOIDetector(
|
||||
symbol,
|
||||
PERIOD_M1 //
|
||||
);
|
||||
mTriggerDetector.MaxNumberOfRequiredPOIs(poiRequired);
|
||||
mTriggerDetector.Init();
|
||||
|
||||
//
|
||||
// Decision ...
|
||||
mDecisionDetector = new XCPOIDetector(
|
||||
symbol,
|
||||
PERIOD_M5 //
|
||||
);
|
||||
mDecisionDetector.MaxNumberOfRequiredPOIs(poiRequired);
|
||||
mDecisionDetector.Init();
|
||||
|
||||
//
|
||||
// Analyse ...
|
||||
mAnalyseDetector = new XCPOIDetector(
|
||||
symbol,
|
||||
PERIOD_M15 //
|
||||
);
|
||||
mAnalyseDetector.MaxNumberOfRequiredPOIs(poiRequired);
|
||||
mAnalyseDetector.Init();
|
||||
|
||||
//
|
||||
// Verification ...
|
||||
mVerificationDetector = new XCPOIDetector(
|
||||
symbol,
|
||||
PERIOD_M30 //
|
||||
);
|
||||
mVerificationDetector.MaxNumberOfRequiredPOIs(poiRequired);
|
||||
mVerificationDetector.Init();
|
||||
|
||||
//
|
||||
// Consolidation ...
|
||||
mConsolidationDetector = new XCPOIDetector(
|
||||
symbol,
|
||||
PERIOD_H1 //
|
||||
);
|
||||
mConsolidationDetector.MaxNumberOfRequiredPOIs(poiRequired);
|
||||
mConsolidationDetector.Init();
|
||||
|
||||
//
|
||||
// Vision ...
|
||||
mVisionDetector = new XCPOIDetector(
|
||||
symbol,
|
||||
PERIOD_H4 //
|
||||
);
|
||||
mVisionDetector.MaxNumberOfRequiredPOIs(poiRequired);
|
||||
mVisionDetector.Init();
|
||||
|
||||
//
|
||||
}
|
||||
|
||||
@@ -992,14 +876,6 @@ class XCX121SMCBaseStrategy : public XCBaseAlert
|
||||
*/
|
||||
void DeInit()
|
||||
{
|
||||
//
|
||||
delete mVisionDetector;
|
||||
delete mConsolidationDetector;
|
||||
delete mVerificationDetector;
|
||||
delete mAnalyseDetector;
|
||||
delete mDecisionDetector;
|
||||
delete mTriggerDetector;
|
||||
|
||||
//
|
||||
delete mPOIDrawer;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user