This commit is contained in:
2026-01-04 16:38:38 +03:30
parent 9fc8892c5d
commit 69f0ca8bb2
2 changed files with 41 additions and 7 deletions
@@ -973,7 +973,6 @@ class XCX121XKIStrategy1Signaller : public XCX121XKIBaseSignaller
}
//
int score = 0;
int scoreBullish = 0;
int scoreBearish = 0;
bool isBullish = false;
@@ -1152,9 +1151,7 @@ class XCX121XKIStrategy1Signaller : public XCX121XKIBaseSignaller
// #endregion
// #endregion
//
// Summarize Directional Conditions ...
// #region Summarize Directional Conditions ...
//
isBullish =
isATRUp &&
@@ -1174,6 +1171,7 @@ class XCX121XKIStrategy1Signaller : public XCX121XKIBaseSignaller
isKIWaveBearish ||
isLowerTFBearish ||
isCandlestickBearish);
// #endregion
//
// Validate Conditions ...
@@ -1238,7 +1236,43 @@ class XCX121XKIStrategy1Signaller : public XCX121XKIBaseSignaller
zone.IsValid();
if (result)
{
//
// Refine Zone ...
poiDetector.RefineZone(zone);
//
// SL Refactoring ...
//
XOHCL toBar;
if (zone.ToBar(toBar))
{
//
int to = zone.ToIndex();
int from = zone.FromIndex();
int length = from - to;
double iValue =
isBullish
? toBar.FindLowest(length, MODE_LOW)
: isBearish
? toBar.FindHighest(length, MODE_HIGH)
: EMPTY_VALUE;
if (NotEmptyZero(iValue))
{
//
if (isBullish)
{
zone.lower = MathMin(zone.lower, iValue);
}
//
if (isBearish)
{
zone.upper = MathMax(zone.upper, iValue);
}
}
}
toBar.Clean();
}
//