implement trend pivots ...

This commit is contained in:
2025-05-04 00:27:11 +03:30
parent e9a012aa24
commit 637deda2c1
3 changed files with 850 additions and 30 deletions
+44 -12
View File
@@ -207,16 +207,12 @@ class XCXCAEASignaller : XCBase
// drawer.Draw(cTime);
//
drawer.DrawPeakPivots(cTime);
drawer.DrawValePivots(cTime);
drawer.DrawFVGBullishPivots(cTime);
drawer.DrawFVGBearishPivots(cTime);
// drawer.DrawRSICrossedOverOSPivots(cTime);
// drawer.DrawRSICrossedUnderOBPivots(cTime);
// drawer.DrawPeakResSWHPivots(cTime);
// drawer.DrawValeSupSWLPivots(cTime);
// drawer.DrawRSIPeakPivots(cTime);
// drawer.DrawRSIValePivots(cTime);
// drawer.DrawPeakPivots(cTime);
// drawer.DrawValePivots(cTime);
// drawer.DrawFVGBullishPivots(cTime);
// drawer.DrawFVGBearishPivots(cTime);
drawer.DrawTrendBullishPivots(cTime);
drawer.DrawTrendBearishPivots(cTime);
//
// Retrieve Valid Pviots ...
@@ -828,7 +824,7 @@ class XCXCAEASignaller : XCBase
inputs.caInputs.showMAL = false;
inputs.caInputs.showMAC = true;
inputs.caInputs.showVidya = false;
inputs.caInputs.showTrend = false;
inputs.caInputs.showTrend = true;
inputs.caInputs.showSwings = false;
inputs.caInputs.showLongCycle = false;
inputs.caInputs.showHindCycle = false;
@@ -887,7 +883,7 @@ class XCXCAEASignaller : XCBase
// PV ...
detector.applySwingsOnPVPivots = true;
detector.selectRejectedPVPivots = true;
detector.selectEngulfedPVPivots = true;
detector.selectEngulfedPVPivots = true;
detector.applySupportAndResistanceOnPVPivots = true;
//
@@ -906,9 +902,22 @@ class XCXCAEASignaller : XCBase
detector.applyPVToFVGBoundary = false;
detector.detectFVGBullishPivots = true;
detector.detectFVGBearishPivots = true;
detector.selectRejectedFVGPivots = true;
detector.selectEngulfedFVGPivots = true;
detector.applyLastBarToFVGBoundary = false;
detector.selectOnlyFVGWhichHasIndirectionalLastBar = true;
//
// TREND ...
//
// Bullish ...
detector.detectTrendBullishPivots = true;
//
// Bearish ...
detector.detectTrendBearishPivots = true;
//
// Initialize and Configure Drawer ...
drawer = new XCXCAEAPOIDrawer(detector);
@@ -922,6 +931,8 @@ class XCXCAEASignaller : XCBase
drawer.drawValePivots = true;
drawer.drawFVGBullishPivots = true;
drawer.drawFVGBearishPivots = true;
drawer.drawTrendBullishPivots = true;
drawer.drawTrendBearishPivots = true;
//
// Configure Styles ...
@@ -968,6 +979,27 @@ class XCXCAEASignaller : XCBase
drawer.fvgBearishPivotStyle = fvgBearishStyle;
fvgBearishStyle.Clean();
//
// TREND ...
//
// Bullish ...
XCAPivotStyle trendBullishStyle;
trendBullishStyle.width = 2;
trendBullishStyle.clr = clrLime;
trendBullishStyle.style = STYLE_DOT;
drawer.trendBullishPivotStyle = trendBullishStyle;
trendBullishStyle.Clean();
//
// Bearish ...
XCAPivotStyle trendBearishStyle;
trendBearishStyle.width = 2;
trendBearishStyle.clr = clrRed;
trendBearishStyle.style = STYLE_DOT;
drawer.trendBearishPivotStyle = trendBearishStyle;
trendBearishStyle.Clean();
//
}