This commit is contained in:
2025-04-18 09:26:32 +03:30
parent 04535223ea
commit 3c34e0cb66
2 changed files with 623 additions and 279 deletions
+100 -18
View File
@@ -524,38 +524,40 @@ class XCXCAEASignaller : XCBase
datetime cTime = TimeCurrent();
//
bool drawSWHPivots = false;
bool drawSWLPivots = false;
bool drawPeakPivots = false;
bool drawValePivots = false;
bool drawSWHPivots = true;
bool drawSWLPivots = true;
bool drawPeakSWHResPivots = false;
bool drawValeSWLSupPivots = false;
bool drawKIBullishPivots = false;
bool drawKIBearishPivots = false;
bool drawTKIBullishPivots = false;
bool drawTKIBearishPivots = false;
bool drawTrendBullishPivots = true;
bool drawTrendBearishPivots = true;
bool drawTrendBullishPivots = false;
bool drawTrendBearishPivots = false;
//
// Draw Peak SWH Res Pivots ...
// Draw Peak Pivots ...
if (drawPeakPivots)
{
//
has = detector.HasPeakSWHResPivots();
has = detector.HasPeakPivots();
if (has)
{
//
count = detector.CountPeakSWHResPivots();
count = detector.CountPeakPivots();
for (int i = 0; i < count; i++)
{
//
XBoxZone iBox;
has = detector
.peakSWHResPivots[i]
.peakPivots[i]
.AsBox(iBox);
if (has)
{
//
iBox.to = cTime;
// iBox.to = cTime;
//
XCBoxObject *iObj;
@@ -576,26 +578,26 @@ class XCXCAEASignaller : XCBase
}
//
// Draw Vale SWL Sup Pivots ...
// Draw Vale Pivots ...
if (drawValePivots)
{
//
has = detector.HasValeSWLSupPivots();
has = detector.HasValePivots();
if (has)
{
//
count = detector.CountValeSWLSupPivots();
count = detector.CountValePivots();
for (int i = 0; i < count; i++)
{
//
XBoxZone iBox;
has = detector
.valeSWLSupPivots[i]
.valePivots[i]
.AsBox(iBox);
if (has)
{
//
iBox.to = cTime;
// iBox.to = cTime;
//
XCBoxObject *iObj;
@@ -635,7 +637,7 @@ class XCXCAEASignaller : XCBase
if (has)
{
//
iBox.to = cTime;
// iBox.to = cTime;
//
XCBoxObject *iObj;
@@ -674,7 +676,7 @@ class XCXCAEASignaller : XCBase
if (has)
{
//
iBox.to = cTime;
// iBox.to = cTime;
//
XCBoxObject *iObj;
@@ -693,6 +695,86 @@ class XCXCAEASignaller : XCBase
}
}
//
// Draw Peak SWH Res Pivots ...
if (drawPeakSWHResPivots)
{
//
has = detector.HasPeakSWHResPivots();
if (has)
{
//
count = detector.CountPeakSWHResPivots();
for (int i = 0; i < count; i++)
{
//
XBoxZone iBox;
has = detector
.peakSWHResPivots[i]
.AsBox(iBox);
if (has)
{
//
// iBox.to = cTime;
//
XCBoxObject *iObj;
has = helper.poiDrawer.DrawBox(
iBox,
iObj //
);
if (has)
{
mObjects.Add(iObj);
}
}
//
iBox.Clean();
}
}
}
//
// Draw Vale SWL Sup Pivots ...
if (drawValeSWLSupPivots)
{
//
has = detector.HasValeSWLSupPivots();
if (has)
{
//
count = detector.CountValeSWLSupPivots();
for (int i = 0; i < count; i++)
{
//
XBoxZone iBox;
has = detector
.valeSWLSupPivots[i]
.AsBox(iBox);
if (has)
{
//
// iBox.to = cTime;
//
XCBoxObject *iObj;
has = helper.poiDrawer.DrawBox(
iBox,
iObj //
);
if (has)
{
mObjects.Add(iObj);
}
}
//
iBox.Clean();
}
}
}
//
// Draw KI Bullish Pivots ...
if (drawKIBullishPivots)
@@ -713,7 +795,7 @@ class XCXCAEASignaller : XCBase
if (has)
{
//
iBox.to = cTime;
// iBox.to = cTime;
//
XCBoxObject *iObj;
@@ -752,7 +834,7 @@ class XCXCAEASignaller : XCBase
if (has)
{
//
iBox.to = cTime;
// iBox.to = cTime;
//
XCBoxObject *iObj;