last works on x Signalling ...

This commit is contained in:
2025-01-25 03:20:15 +03:30
parent 7e64f25b11
commit 416d3c4a04
5 changed files with 1651 additions and 605 deletions
+305 -16
View File
@@ -28,8 +28,8 @@
//
#include "../Signals/x-121.smc.x.signal.lib.mq5"
#include "../Signals/x-121.smc.xpz.signal.lib.mq5"
#include "../Signals/x-121.smc.xpvt.signal.lib.mq5"
#include "../Signals/x-121.smc.xpz.signal.lib.mq5"
#include "../Signals/x-121.smc.xrspvi.signal.lib.mq5"
#include "../Signals/x-121.smc.xstrpv.signal.lib.mq5"
@@ -185,14 +185,15 @@ class XCX121SMCStrategy : public XCX121SMCBaseStrategy
//
// Check Spread for Signalling Conditions ...
bool isSpreadPassed = IsSpreadPass();
result = isSpreadPassed;
if (!result)
{
//
conditions.Clean();
return result;
}
// TODO: Uncomment this ...
// bool isSpreadPassed = IsSpreadPass();
// result = isSpreadPassed;
// if (!result)
// {
// //
// conditions.Clean();
// return result;
// }
//
// Detect Signal Conditions ...
@@ -1722,8 +1723,8 @@ class XCX121SMCStrategy : public XCX121SMCBaseStrategy
//
// XATR ...
x121Inputs.xatrInputs.showATRUpper = showAll || true;
x121Inputs.xatrInputs.showATRLower = showAll || true;
x121Inputs.xatrInputs.showATRUpper = showAll || false;
x121Inputs.xatrInputs.showATRLower = showAll || false;
//
x121Inputs.xatrInputs.atrMultiplier = 1.5;
@@ -1731,16 +1732,16 @@ class XCX121SMCStrategy : public XCX121SMCBaseStrategy
//
// XSTR ...
x121Inputs.xstrInputs.showStr = true || false;
x121Inputs.xstrInputs.showStr = showAll || false;
x121Inputs.xstrInputs.showStrUpper = showAll || false;
x121Inputs.xstrInputs.showStrLower = showAll || false;
//
// XCHE ...
x121Inputs.xcheInputs.showLE1 = showAll || true;
x121Inputs.xcheInputs.showLE2 = showAll || true;
x121Inputs.xcheInputs.showSE1 = showAll || true;
x121Inputs.xcheInputs.showSE2 = showAll || true;
x121Inputs.xcheInputs.showLE1 = showAll || false;
x121Inputs.xcheInputs.showLE2 = showAll || false;
x121Inputs.xcheInputs.showSE1 = showAll || false;
x121Inputs.xcheInputs.showSE2 = showAll || false;
//
// XDON ...
@@ -1762,6 +1763,7 @@ class XCX121SMCStrategy : public XCX121SMCBaseStrategy
int requiredPOIS = MaxAllowedRequiredPOIs();
//
// Trigger Cycle ...
mTriggerCycleHelper = new XC121SMCCycleHelper();
isInited = mTriggerCycleHelper.Init(
symbol,
@@ -1769,8 +1771,56 @@ class XCX121SMCStrategy : public XCX121SMCBaseStrategy
x121Inputs,
requiredPOIS //
);
if (isInited)
{
//
// Configure POI Drawer ...
color bullishColor = clrYellowGreen;
color bearishColor = clrChocolate;
//
// 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);
}
//
// Decision Cycle ...
mDecisionCycleHelper = new XC121SMCCycleHelper();
isInited = mDecisionCycleHelper.Init(
symbol,
@@ -1778,8 +1828,56 @@ class XCX121SMCStrategy : public XCX121SMCBaseStrategy
x121Inputs,
requiredPOIS //
);
if (isInited)
{
//
// Configure POI Drawer ...
color bullishColor = clrDodgerBlue;
color bearishColor = clrSienna;
//
// Bars ...
mDecisionCycleHelper.mPOIDrawer.BarBullishColor(bullishColor);
mDecisionCycleHelper.mPOIDrawer.BarBearishColor(bearishColor);
//
// Swings ...
mDecisionCycleHelper.mPOIDrawer.SwingLowColor(bullishColor);
mDecisionCycleHelper.mPOIDrawer.SwingHighColor(bearishColor);
//
// Momentum ...
mDecisionCycleHelper.mPOIDrawer.BullishMomentumBarColor(bullishColor);
mDecisionCycleHelper.mPOIDrawer.BearishMomentumBarColor(bearishColor);
//
// Rejection ...
mDecisionCycleHelper.mPOIDrawer.BullishRejectionBarColor(bullishColor);
mDecisionCycleHelper.mPOIDrawer.BearishRejectionBarColor(bearishColor);
//
// Support and Resistance ...
mDecisionCycleHelper.mPOIDrawer.SupportZoneColor(bullishColor);
mDecisionCycleHelper.mPOIDrawer.ResistanceZoneColor(bearishColor);
//
// Demand and Supply ...
mDecisionCycleHelper.mPOIDrawer.DemandZoneColor(bullishColor);
mDecisionCycleHelper.mPOIDrawer.SupplyZoneColor(bearishColor);
//
// Order Blocks ...
mDecisionCycleHelper.mPOIDrawer.BullishOrderBlockColor(bullishColor);
mDecisionCycleHelper.mPOIDrawer.BearishOrderBlockColor(bearishColor);
//
// Fair Value Gaps ...
mDecisionCycleHelper.mPOIDrawer.BullishFVGColor(bullishColor);
mDecisionCycleHelper.mPOIDrawer.BearishFVGColor(bearishColor);
}
//
// Analyse Cycle ...
mAnalyseCycleHelper = new XC121SMCCycleHelper();
isInited = mAnalyseCycleHelper.Init(
symbol,
@@ -1787,8 +1885,56 @@ class XCX121SMCStrategy : public XCX121SMCBaseStrategy
x121Inputs,
requiredPOIS //
);
if (isInited)
{
//
// Configure POI Drawer ...
color bullishColor = clrMediumSeaGreen;
color bearishColor = clrBlueViolet;
//
// Bars ...
mAnalyseCycleHelper.mPOIDrawer.BarBullishColor(bullishColor);
mAnalyseCycleHelper.mPOIDrawer.BarBearishColor(bearishColor);
//
// Swings ...
mAnalyseCycleHelper.mPOIDrawer.SwingLowColor(bullishColor);
mAnalyseCycleHelper.mPOIDrawer.SwingHighColor(bearishColor);
//
// Momentum ...
mAnalyseCycleHelper.mPOIDrawer.BullishMomentumBarColor(bullishColor);
mAnalyseCycleHelper.mPOIDrawer.BearishMomentumBarColor(bearishColor);
//
// Rejection ...
mAnalyseCycleHelper.mPOIDrawer.BullishRejectionBarColor(bullishColor);
mAnalyseCycleHelper.mPOIDrawer.BearishRejectionBarColor(bearishColor);
//
// Support and Resistance ...
mAnalyseCycleHelper.mPOIDrawer.SupportZoneColor(bullishColor);
mAnalyseCycleHelper.mPOIDrawer.ResistanceZoneColor(bearishColor);
//
// Demand and Supply ...
mAnalyseCycleHelper.mPOIDrawer.DemandZoneColor(bullishColor);
mAnalyseCycleHelper.mPOIDrawer.SupplyZoneColor(bearishColor);
//
// Order Blocks ...
mAnalyseCycleHelper.mPOIDrawer.BullishOrderBlockColor(bullishColor);
mAnalyseCycleHelper.mPOIDrawer.BearishOrderBlockColor(bearishColor);
//
// Fair Value Gaps ...
mAnalyseCycleHelper.mPOIDrawer.BullishFVGColor(bullishColor);
mAnalyseCycleHelper.mPOIDrawer.BearishFVGColor(bearishColor);
}
//
// Verification Cycle ...
mVerificationCycleHelper = new XC121SMCCycleHelper();
isInited = mVerificationCycleHelper.Init(
symbol,
@@ -1796,8 +1942,56 @@ class XCX121SMCStrategy : public XCX121SMCBaseStrategy
x121Inputs,
requiredPOIS //
);
if (isInited)
{
//
// Configure POI Drawer ...
color bullishColor = clrOliveDrab;
color bearishColor = clrSteelBlue;
//
// 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();
isInited = mConsolidationCycleHelper.Init(
symbol,
@@ -1805,8 +1999,56 @@ class XCX121SMCStrategy : public XCX121SMCBaseStrategy
x121Inputs,
requiredPOIS //
);
if (isInited)
{
//
// Configure POI Drawer ...
color bullishColor = clrLime;
color bearishColor = clrRed;
//
// Bars ...
mConsolidationCycleHelper.mPOIDrawer.BarBullishColor(bullishColor);
mConsolidationCycleHelper.mPOIDrawer.BarBearishColor(bearishColor);
//
// Swings ...
mConsolidationCycleHelper.mPOIDrawer.SwingLowColor(bullishColor);
mConsolidationCycleHelper.mPOIDrawer.SwingHighColor(bearishColor);
//
// Momentum ...
mConsolidationCycleHelper.mPOIDrawer.BullishMomentumBarColor(bullishColor);
mConsolidationCycleHelper.mPOIDrawer.BearishMomentumBarColor(bearishColor);
//
// Rejection ...
mConsolidationCycleHelper.mPOIDrawer.BullishRejectionBarColor(bullishColor);
mConsolidationCycleHelper.mPOIDrawer.BearishRejectionBarColor(bearishColor);
//
// Support and Resistance ...
mConsolidationCycleHelper.mPOIDrawer.SupportZoneColor(bullishColor);
mConsolidationCycleHelper.mPOIDrawer.ResistanceZoneColor(bearishColor);
//
// Demand and Supply ...
mConsolidationCycleHelper.mPOIDrawer.DemandZoneColor(bullishColor);
mConsolidationCycleHelper.mPOIDrawer.SupplyZoneColor(bearishColor);
//
// Order Blocks ...
mConsolidationCycleHelper.mPOIDrawer.BullishOrderBlockColor(bullishColor);
mConsolidationCycleHelper.mPOIDrawer.BearishOrderBlockColor(bearishColor);
//
// Fair Value Gaps ...
mConsolidationCycleHelper.mPOIDrawer.BullishFVGColor(bullishColor);
mConsolidationCycleHelper.mPOIDrawer.BearishFVGColor(bearishColor);
}
//
// Vision Cycle ...
mVisionCycleHelper = new XC121SMCCycleHelper();
isInited = mVisionCycleHelper.Init(
symbol,
@@ -1814,6 +2056,53 @@ class XCX121SMCStrategy : public XCX121SMCBaseStrategy
x121Inputs,
requiredPOIS //
);
if (isInited)
{
//
// Configure POI Drawer ...
color bullishColor = clrAqua;
color bearishColor = clrMagenta;
//
// Bars ...
mVisionCycleHelper.mPOIDrawer.BarBullishColor(bullishColor);
mVisionCycleHelper.mPOIDrawer.BarBearishColor(bearishColor);
//
// Swings ...
mVisionCycleHelper.mPOIDrawer.SwingLowColor(bullishColor);
mVisionCycleHelper.mPOIDrawer.SwingHighColor(bearishColor);
//
// Momentum ...
mVisionCycleHelper.mPOIDrawer.BullishMomentumBarColor(bullishColor);
mVisionCycleHelper.mPOIDrawer.BearishMomentumBarColor(bearishColor);
//
// Rejection ...
mVisionCycleHelper.mPOIDrawer.BullishRejectionBarColor(bullishColor);
mVisionCycleHelper.mPOIDrawer.BearishRejectionBarColor(bearishColor);
//
// Support and Resistance ...
mVisionCycleHelper.mPOIDrawer.SupportZoneColor(bullishColor);
mVisionCycleHelper.mPOIDrawer.ResistanceZoneColor(bearishColor);
//
// Demand and Supply ...
mVisionCycleHelper.mPOIDrawer.DemandZoneColor(bullishColor);
mVisionCycleHelper.mPOIDrawer.SupplyZoneColor(bearishColor);
//
// Order Blocks ...
mVisionCycleHelper.mPOIDrawer.BullishOrderBlockColor(bullishColor);
mVisionCycleHelper.mPOIDrawer.BearishOrderBlockColor(bearishColor);
//
// Fair Value Gaps ...
mVisionCycleHelper.mPOIDrawer.BullishFVGColor(bullishColor);
mVisionCycleHelper.mPOIDrawer.BearishFVGColor(bearishColor);
}
}
//