implement valeSupSWL Pivots ...
This commit is contained in:
@@ -182,6 +182,11 @@ class XCXCAEASignaller : XCBase
|
||||
detector.Update(
|
||||
zIndex //
|
||||
);
|
||||
|
||||
//
|
||||
if (detector.newValeSupSWLPivotDetected) {
|
||||
Print("Salam");
|
||||
}
|
||||
|
||||
//
|
||||
// Validate Pivots ...
|
||||
@@ -197,29 +202,29 @@ class XCXCAEASignaller : XCBase
|
||||
//
|
||||
// Retrieve Valid Boxes ...
|
||||
|
||||
//
|
||||
// Bullish ...
|
||||
int bullishBoxesCount =
|
||||
detector
|
||||
.FillBullishBoxes(bullishBoxes);
|
||||
// //
|
||||
// // Bullish ...
|
||||
// int bullishBoxesCount =
|
||||
// detector
|
||||
// .FillBullishBoxes(bullishBoxes);
|
||||
|
||||
//
|
||||
// Bearish ...
|
||||
int bearishBoxesCount =
|
||||
detector
|
||||
.FillBearishBoxes(bearishBoxes);
|
||||
// //
|
||||
// // Bearish ...
|
||||
// int bearishBoxesCount =
|
||||
// detector
|
||||
// .FillBearishBoxes(bearishBoxes);
|
||||
|
||||
//
|
||||
Copy(
|
||||
bullishBoxes,
|
||||
boxes,
|
||||
false //
|
||||
);
|
||||
Copy(
|
||||
bearishBoxes,
|
||||
boxes,
|
||||
false //
|
||||
);
|
||||
// //
|
||||
// Copy(
|
||||
// bullishBoxes,
|
||||
// boxes,
|
||||
// false //
|
||||
// );
|
||||
// Copy(
|
||||
// bearishBoxes,
|
||||
// boxes,
|
||||
// false //
|
||||
// );
|
||||
int boxesCount = ArraySize(boxes);
|
||||
bool hasBoxes = IsValidSize(boxesCount);
|
||||
|
||||
@@ -267,32 +272,33 @@ class XCXCAEASignaller : XCBase
|
||||
//
|
||||
|
||||
//
|
||||
if (hasBoxes)
|
||||
// if (hasBoxes)
|
||||
// {
|
||||
// }
|
||||
|
||||
//
|
||||
// Detect Sinal Box ...
|
||||
hasSignalBox = DetectXCAEAConditions(
|
||||
boxes,
|
||||
conditions,
|
||||
pivotBox,
|
||||
signalBox,
|
||||
additionalSL,
|
||||
signalBoxDir,
|
||||
helper,
|
||||
zIndex,
|
||||
loopback //
|
||||
);
|
||||
|
||||
//
|
||||
// Make Pivot Box UnAvailable ...
|
||||
if (pivotBox.IsValid())
|
||||
{
|
||||
//
|
||||
// Detect Sinal Box ...
|
||||
hasSignalBox = DetectXCAEAConditions(
|
||||
boxes,
|
||||
conditions,
|
||||
AddRef(
|
||||
pivotBox,
|
||||
signalBox,
|
||||
additionalSL,
|
||||
signalBoxDir,
|
||||
helper,
|
||||
zIndex,
|
||||
loopback //
|
||||
unAvailableBoxes //
|
||||
);
|
||||
|
||||
//
|
||||
// Make Pivot Box UnAvailable ...
|
||||
if (pivotBox.IsValid())
|
||||
{
|
||||
//
|
||||
AddRef(
|
||||
pivotBox,
|
||||
unAvailableBoxes //
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
@@ -701,9 +707,10 @@ class XCXCAEASignaller : XCBase
|
||||
|
||||
//
|
||||
inputs.caInputs.showKI = true;
|
||||
inputs.caInputs.showTKI = true;
|
||||
inputs.caInputs.showSar = true;
|
||||
inputs.caInputs.showTrend = true;
|
||||
inputs.caInputs.showTKI = false;
|
||||
inputs.caInputs.showSar = false;
|
||||
inputs.caInputs.showVidya = true;
|
||||
inputs.caInputs.showTrend = false;
|
||||
inputs.caInputs.showSwings = false;
|
||||
inputs.caInputs.showLongCycle = false;
|
||||
inputs.caInputs.showHindCycle = false;
|
||||
@@ -746,103 +753,33 @@ class XCXCAEASignaller : XCBase
|
||||
detector = new XCXCAEAPOIDetector(helper);
|
||||
|
||||
//
|
||||
detector.detectSWHPivot = false;
|
||||
detector.detectSWLPivot = false;
|
||||
detector.detectPeakPivot = false;
|
||||
detector.detectValePivot = false;
|
||||
detector.detectRSIPeakPivot = true;
|
||||
detector.detectRSIValePivot = true;
|
||||
detector.detectCCIPeakPivot = true;
|
||||
detector.detectCCIValePivot = true;
|
||||
detector.detectKIBullishPivot = false;
|
||||
detector.detectKIBearishPivot = false;
|
||||
detector.detectFVGBullishPivot = true;
|
||||
detector.detectFVGBearishPivot = true;
|
||||
detector.detectPeakSWHResPivot = true;
|
||||
detector.detectValeSWLSupPivot = true;
|
||||
detector.detectTKIBullishPivot = false;
|
||||
detector.detectCycleSameLLPivot = false;
|
||||
detector.detectCycleSameHHPivot = false;
|
||||
detector.detectTKIBearishPivot = false;
|
||||
detector.detectTrendBullishPivot = true;
|
||||
detector.detectTrendBearishPivot = true;
|
||||
detector.detectTKITRNDBullishPivot = false;
|
||||
detector.detectTKITRNDBearishPivot = false;
|
||||
detector.detectRSICrossedOverOSPivot = false;
|
||||
detector.detectRSICrossedUnderOBPivot = false;
|
||||
detector.detectCCICrossedOverOSPivot = false;
|
||||
detector.detectCCICrossedUnderOBPivot = false;
|
||||
// Configure Detector ...
|
||||
detector.detectRSIPeakPivots = true;
|
||||
detector.detectRSIValePivots = true;
|
||||
detector.detectCCIPeakPivots = true;
|
||||
detector.detectCCIValePivots = true;
|
||||
detector.detectFVGBullishPivots = true;
|
||||
detector.detectFVGBearishPivots = true;
|
||||
detector.detectValeSupSWLPivots = true;
|
||||
detector.detectPeakResSWHPivots = true;
|
||||
|
||||
//
|
||||
// Initialize and Configure Drawer ...
|
||||
drawer = new XCXCAEAPOIDrawer(detector);
|
||||
|
||||
//
|
||||
// Configure Drawer ...
|
||||
drawer.drawRSIPeakPivots = true;
|
||||
drawer.drawRSIValePivots = true;
|
||||
drawer.drawCCIPeakPivots = true;
|
||||
drawer.drawCCIValePivots = true;
|
||||
drawer.drawFVGBullishPivots = true;
|
||||
drawer.drawFVGBearishPivots = true;
|
||||
drawer.drawValeSupSWLPivots = true;
|
||||
drawer.drawPeakResSWHPivots = true;
|
||||
|
||||
//
|
||||
// UnActive Pivots ...
|
||||
drawer.drawSWHPivots = false;
|
||||
drawer.drawSWLPivots = false;
|
||||
drawer.drawPeakPivots = false;
|
||||
drawer.drawValePivots = false;
|
||||
drawer.drawRSIPeakPivots = true; // true;
|
||||
drawer.drawRSIValePivots = true; // true;
|
||||
drawer.drawCCIPeakPivots = false; // true;
|
||||
drawer.drawCCIValePivots = false; // true;
|
||||
drawer.drawKIBullishPivots = false;
|
||||
drawer.drawKIBearishPivots = false;
|
||||
drawer.drawFVGBullishPivots = false;
|
||||
drawer.drawFVGBearishPivots = false;
|
||||
drawer.drawPeakSWHResPivots = false; // true;
|
||||
drawer.drawValeSWLSupPivots = false; // true;
|
||||
drawer.drawTKIBullishPivots = false;
|
||||
drawer.drawTKIBearishPivots = false;
|
||||
drawer.drawPVFVGBullishPivots = false; // true;
|
||||
drawer.drawPVFVGBearishPivots = false; // true;
|
||||
drawer.drawCycleSameLLPivots = false;
|
||||
drawer.drawCycleSameHHPivots = false;
|
||||
drawer.drawTrendBullishPivots = false;
|
||||
drawer.drawTrendBearishPivots = false;
|
||||
drawer.drawTKITRNDBullishPivots = false;
|
||||
drawer.drawTKITRNDBearishPivots = false;
|
||||
drawer.drawRSICrossedOverOSPivots = true;
|
||||
drawer.drawRSICrossedUnderOBPivots = true;
|
||||
drawer.drawCCICrossedOverOSPivots = false;
|
||||
drawer.drawCCICrossedUnderOBPivots = false;
|
||||
|
||||
//
|
||||
drawer.drawTicks = true;
|
||||
|
||||
//
|
||||
// Configure Width ...
|
||||
drawer.peakPivotWidth = 1;
|
||||
drawer.valePivotWidth = 1;
|
||||
drawer.ticksBullishWidth = 2;
|
||||
drawer.ticksBearishWidth = 2;
|
||||
drawer.fvgBullishPivotWidth = 1;
|
||||
drawer.fvgBearishPivotWidth = 1;
|
||||
drawer.oscsBullishPivotWidth = 2;
|
||||
drawer.oscsBearishPivotWidth = 2;
|
||||
|
||||
//
|
||||
// Configure Colors ...
|
||||
drawer.peakPivotColor = clrMagenta;
|
||||
drawer.valePivotColor = clrAqua;
|
||||
drawer.ticksBullishColor = clrYellow;
|
||||
drawer.ticksBearishColor = clrOrange;
|
||||
drawer.fvgBullishPivotColor = clrLime;
|
||||
drawer.fvgBearishPivotColor = clrRed;
|
||||
drawer.oscsBullishPivotColor = clrYellow;
|
||||
drawer.oscsBearishPivotColor = clrOrange;
|
||||
|
||||
//
|
||||
// Configure Style ...
|
||||
drawer.peakPivotStyle = STYLE_SOLID;
|
||||
drawer.valePivotStyle = STYLE_SOLID;
|
||||
drawer.ticksBullishStyle = STYLE_DOT;
|
||||
drawer.ticksBearishStyle = STYLE_DOT;
|
||||
drawer.fvgBullishPivotStyle = STYLE_DASH;
|
||||
drawer.fvgBearishPivotStyle = STYLE_DASH;
|
||||
drawer.oscsBullishPivotStyle = STYLE_SOLID;
|
||||
drawer.oscsBearishPivotStyle = STYLE_SOLID;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user