This commit is contained in:
2025-10-08 00:44:29 +03:30
parent 69e155e050
commit 96972931a7
3 changed files with 22 additions and 30 deletions
@@ -2006,7 +2006,7 @@ class XCMarketPatternDetector : public XCBase
double momentumBarApprovedMultiplier = 3,
//
// TrueGap ...
double trueGapApprovedStrength = 2,
double trueGapApprovedStrength = 1,
//
// Pin ...
double pinBarShadowApprovedMultiplier = 3,
+11 -19
View File
@@ -3930,11 +3930,11 @@ bool ToBox(
iUpper =
isBullish
? valePrice
: peakPrice;
: tmpBar.GetPrice(valePriceType);
iLower =
isBullish
? tmpBar.GetPrice(peakPriceType)
: tmpBar.GetPrice(valePriceType);
: peakPrice;
}
}
break;
@@ -3986,18 +3986,16 @@ bool ToBox(
);
if (has)
{
//
iFrom = tmpBar.time;
//
int idx = -1;
int mLength = tmpBar.Index() - bar.Index();
iLower = bar.FindLowest(idx, mLength, valePriceType);
iUpper = bar.FindHighest(idx, mLength, peakPriceType);
}
//
iUpper =
isBullish
? peakPrice
: valePrice;
iLower =
isBullish
? peakPrice
: valePrice;
}
break;
@@ -4021,14 +4019,8 @@ bool ToBox(
}
//
iUpper =
isBullish
? peakPrice
: valePrice;
iLower =
isBullish
? peakPrice
: valePrice;
iUpper = valePrice;
iLower = valePrice;
}
break;
@@ -1248,7 +1248,7 @@ class XCXFIMAStrategy1Signaller : public XCXFIMABaseSignaller
IsXBullish(_patternDir)
? ANCHOR_TOP
: ANCHOR_BOTTOM,
"Pivot_" + _pivot.prefix + "_" + ToXString(TimeToSeconds(_pivot.time)),
_pivot.prefix + "_Pivot_" + ToXString(TimeToSeconds(_pivot.time)),
true, // Ignore Bar Tag ...
arrowThreshold // Threshold ...
);
@@ -1271,7 +1271,7 @@ class XCXFIMAStrategy1Signaller : public XCXFIMABaseSignaller
_zone,
iObj,
ignoreBoxAt,
"Zone_" + _zone.type + "_" + ToXString(TimeToSeconds(_zone.from)) //
_zone.type + "_Zone_" + ToXString(TimeToSeconds(_zone.from)) //
);
if (has)
{
@@ -1329,32 +1329,32 @@ class XCXFIMAStrategy1Signaller : public XCXFIMABaseSignaller
XClean(config.allowedDrawPivots);
//
// MOMENTUM ...
// X_BAR_PATTERN_PIERCING ...
Add(
X_BAR_PATTERN_MOMENTUM,
X_BAR_PATTERN_PIERCING,
config.allowedDraws //
);
Add(
X_BAR_PATTERN_MOMENTUM,
X_BAR_PATTERN_PIERCING,
config.allowedDrawZones //
);
Add(
X_BAR_PATTERN_MOMENTUM,
X_BAR_PATTERN_PIERCING,
config.allowedDrawPivots //
);
//
// ENGULFED ...
// X_BAR_PATTERN_STAR ...
Add(
X_BAR_PATTERN_ENGULFED,
X_BAR_PATTERN_STAR,
config.allowedDraws //
);
Add(
X_BAR_PATTERN_ENGULFED,
X_BAR_PATTERN_STAR,
config.allowedDrawZones //
);
Add(
X_BAR_PATTERN_ENGULFED,
X_BAR_PATTERN_STAR,
config.allowedDrawPivots //
);