last ...
This commit is contained in:
@@ -112,8 +112,10 @@ class XCX121SMCStrategy : public XCX121SMCBaseStrategy
|
||||
void Destroy() override
|
||||
{
|
||||
//
|
||||
ZeroMemory(mTriggerCycleHelper);
|
||||
ZeroMemory(mDecisionCycleHelper);
|
||||
ZeroMemory(mAnalyseCycleHelper);
|
||||
ZeroMemory(mVerificationCycleHelper);
|
||||
ZeroMemory(mConsolidationCycleHelper);
|
||||
ZeroMemory(mVisionCycleHelper);
|
||||
|
||||
@@ -487,6 +489,7 @@ class XCX121SMCStrategy : public XCX121SMCBaseStrategy
|
||||
|
||||
//
|
||||
// XC121SMCCycleHelper *mTriggerCycleHelper;
|
||||
XC121SMCCycleHelper *mTriggerCycleHelper;
|
||||
XC121SMCCycleHelper *mDecisionCycleHelper;
|
||||
XC121SMCCycleHelper *mAnalyseCycleHelper;
|
||||
XC121SMCCycleHelper *mVerificationCycleHelper;
|
||||
@@ -509,21 +512,6 @@ class XCX121SMCStrategy : public XCX121SMCBaseStrategy
|
||||
//
|
||||
bool result = false;
|
||||
|
||||
//
|
||||
// Validate Cycle Helpers ...
|
||||
result =
|
||||
//
|
||||
mVisionCycleHelper != NULL &&
|
||||
mAnalyseCycleHelper != NULL &&
|
||||
mDecisionCycleHelper != NULL &&
|
||||
mConsolidationCycleHelper != NULL
|
||||
//
|
||||
;
|
||||
if (!result)
|
||||
{
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
bool isBullish = false;
|
||||
bool isBearish = false;
|
||||
@@ -867,7 +855,7 @@ class XCX121SMCStrategy : public XCX121SMCBaseStrategy
|
||||
mDecisionCycleHelper = new XC121SMCCycleHelper();
|
||||
isInited = mDecisionCycleHelper.Init(
|
||||
symbol,
|
||||
PERIOD_M5,
|
||||
PERIOD_M1,
|
||||
x121Inputs,
|
||||
requiredPOIS //
|
||||
);
|
||||
@@ -919,6 +907,63 @@ class XCX121SMCStrategy : public XCX121SMCBaseStrategy
|
||||
mDecisionCycleHelper.mPOIDrawer.BearishFVGColor(bearishColor);
|
||||
}
|
||||
|
||||
//
|
||||
// Trigger Cycle ...
|
||||
mTriggerCycleHelper = new XC121SMCCycleHelper();
|
||||
isInited = mTriggerCycleHelper.Init(
|
||||
symbol,
|
||||
PERIOD_M5,
|
||||
x121Inputs,
|
||||
requiredPOIS //
|
||||
);
|
||||
if (isInited)
|
||||
{
|
||||
//
|
||||
// Configure POI Drawer ...
|
||||
color bullishColor = clrDodgerBlue;
|
||||
color bearishColor = clrSienna;
|
||||
|
||||
//
|
||||
// Bars ...
|
||||
mTriggerCycleHelper.mPOIDrawer.BarBullishColor(bullishColor);
|
||||
mTriggerCycleHelper.mPOIDrawer.BarBearishColor(bearishColor);
|
||||
|
||||
//
|
||||
// Swings ...
|
||||
mTriggerCycleHelper.mPOIDrawer.SwingLowColor(bullishColor);
|
||||
mTriggerCycleHelper.mPOIDrawer.SwingHighColor(bearishColor);
|
||||
|
||||
//
|
||||
// Momentum ...
|
||||
mTriggerCycleHelper.mPOIDrawer.BullishMomentumBarColor(bullishColor);
|
||||
mTriggerCycleHelper.mPOIDrawer.BearishMomentumBarColor(bearishColor);
|
||||
|
||||
//
|
||||
// Rejection ...
|
||||
mTriggerCycleHelper.mPOIDrawer.BullishRejectionBarColor(bullishColor);
|
||||
mTriggerCycleHelper.mPOIDrawer.BearishRejectionBarColor(bearishColor);
|
||||
|
||||
//
|
||||
// Support and Resistance ...
|
||||
mTriggerCycleHelper.mPOIDrawer.SupportZoneColor(bullishColor);
|
||||
mTriggerCycleHelper.mPOIDrawer.ResistanceZoneColor(bearishColor);
|
||||
|
||||
//
|
||||
// Demand and Supply ...
|
||||
mTriggerCycleHelper.mPOIDrawer.DemandZoneColor(bullishColor);
|
||||
mTriggerCycleHelper.mPOIDrawer.SupplyZoneColor(bearishColor);
|
||||
|
||||
//
|
||||
// Order Blocks ...
|
||||
mTriggerCycleHelper.mPOIDrawer.BullishOrderBlockColor(bullishColor);
|
||||
mTriggerCycleHelper.mPOIDrawer.BearishOrderBlockColor(bearishColor);
|
||||
|
||||
//
|
||||
// Fair Value Gaps ...
|
||||
mTriggerCycleHelper.mPOIDrawer.BullishFVGColor(bullishColor);
|
||||
mTriggerCycleHelper.mPOIDrawer.BearishFVGColor(bearishColor);
|
||||
}
|
||||
|
||||
//
|
||||
// Analyse Cycle ...
|
||||
mAnalyseCycleHelper = new XC121SMCCycleHelper();
|
||||
@@ -976,6 +1021,63 @@ class XCX121SMCStrategy : public XCX121SMCBaseStrategy
|
||||
mAnalyseCycleHelper.mPOIDrawer.BearishFVGColor(bearishColor);
|
||||
}
|
||||
|
||||
//
|
||||
// Verification Cycle ...
|
||||
mVerificationCycleHelper = new XC121SMCCycleHelper();
|
||||
isInited = mVerificationCycleHelper.Init(
|
||||
symbol,
|
||||
PERIOD_M30,
|
||||
x121Inputs,
|
||||
requiredPOIS //
|
||||
);
|
||||
if (isInited)
|
||||
{
|
||||
//
|
||||
// Configure POI Drawer ...
|
||||
color bullishColor = clrDodgerBlue;
|
||||
color bearishColor = clrSienna;
|
||||
|
||||
//
|
||||
// Bars ...
|
||||
mVerificationCycleHelper.mPOIDrawer.BarBullishColor(bullishColor);
|
||||
mVerificationCycleHelper.mPOIDrawer.BarBearishColor(bearishColor);
|
||||
|
||||
//
|
||||
// Swings ...
|
||||
mVerificationCycleHelper.mPOIDrawer.SwingLowColor(bullishColor);
|
||||
mVerificationCycleHelper.mPOIDrawer.SwingHighColor(bearishColor);
|
||||
|
||||
//
|
||||
// Momentum ...
|
||||
mVerificationCycleHelper.mPOIDrawer.BullishMomentumBarColor(bullishColor);
|
||||
mVerificationCycleHelper.mPOIDrawer.BearishMomentumBarColor(bearishColor);
|
||||
|
||||
//
|
||||
// Rejection ...
|
||||
mVerificationCycleHelper.mPOIDrawer.BullishRejectionBarColor(bullishColor);
|
||||
mVerificationCycleHelper.mPOIDrawer.BearishRejectionBarColor(bearishColor);
|
||||
|
||||
//
|
||||
// Support and Resistance ...
|
||||
mVerificationCycleHelper.mPOIDrawer.SupportZoneColor(bullishColor);
|
||||
mVerificationCycleHelper.mPOIDrawer.ResistanceZoneColor(bearishColor);
|
||||
|
||||
//
|
||||
// Demand and Supply ...
|
||||
mVerificationCycleHelper.mPOIDrawer.DemandZoneColor(bullishColor);
|
||||
mVerificationCycleHelper.mPOIDrawer.SupplyZoneColor(bearishColor);
|
||||
|
||||
//
|
||||
// Order Blocks ...
|
||||
mVerificationCycleHelper.mPOIDrawer.BullishOrderBlockColor(bullishColor);
|
||||
mVerificationCycleHelper.mPOIDrawer.BearishOrderBlockColor(bearishColor);
|
||||
|
||||
//
|
||||
// Fair Value Gaps ...
|
||||
mVerificationCycleHelper.mPOIDrawer.BullishFVGColor(bullishColor);
|
||||
mVerificationCycleHelper.mPOIDrawer.BearishFVGColor(bearishColor);
|
||||
}
|
||||
|
||||
//
|
||||
// Consolidation Cycle ...
|
||||
mConsolidationCycleHelper = new XC121SMCCycleHelper();
|
||||
@@ -1093,8 +1195,10 @@ class XCX121SMCStrategy : public XCX121SMCBaseStrategy
|
||||
//
|
||||
// Initial Cycle Provider ...
|
||||
cycleProvider.Init(
|
||||
mTriggerCycleHelper,
|
||||
mDecisionCycleHelper,
|
||||
mAnalyseCycleHelper,
|
||||
mVerificationCycleHelper,
|
||||
mConsolidationCycleHelper,
|
||||
mVisionCycleHelper //
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user