last ...
This commit is contained in:
@@ -2006,7 +2006,7 @@ class XCMarketPatternDetector : public XCBase
|
|||||||
double momentumBarApprovedMultiplier = 3,
|
double momentumBarApprovedMultiplier = 3,
|
||||||
//
|
//
|
||||||
// TrueGap ...
|
// TrueGap ...
|
||||||
double trueGapApprovedStrength = 2,
|
double trueGapApprovedStrength = 1,
|
||||||
//
|
//
|
||||||
// Pin ...
|
// Pin ...
|
||||||
double pinBarShadowApprovedMultiplier = 3,
|
double pinBarShadowApprovedMultiplier = 3,
|
||||||
|
|||||||
@@ -3930,11 +3930,11 @@ bool ToBox(
|
|||||||
iUpper =
|
iUpper =
|
||||||
isBullish
|
isBullish
|
||||||
? valePrice
|
? valePrice
|
||||||
: peakPrice;
|
: tmpBar.GetPrice(valePriceType);
|
||||||
iLower =
|
iLower =
|
||||||
isBullish
|
isBullish
|
||||||
? tmpBar.GetPrice(peakPriceType)
|
? tmpBar.GetPrice(peakPriceType)
|
||||||
: tmpBar.GetPrice(valePriceType);
|
: peakPrice;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@@ -3986,18 +3986,16 @@ bool ToBox(
|
|||||||
);
|
);
|
||||||
if (has)
|
if (has)
|
||||||
{
|
{
|
||||||
|
//
|
||||||
iFrom = tmpBar.time;
|
iFrom = tmpBar.time;
|
||||||
}
|
|
||||||
|
|
||||||
//
|
//
|
||||||
iUpper =
|
int idx = -1;
|
||||||
isBullish
|
int mLength = tmpBar.Index() - bar.Index();
|
||||||
? peakPrice
|
iLower = bar.FindLowest(idx, mLength, valePriceType);
|
||||||
: valePrice;
|
iUpper = bar.FindHighest(idx, mLength, peakPriceType);
|
||||||
iLower =
|
}
|
||||||
isBullish
|
|
||||||
? peakPrice
|
|
||||||
: valePrice;
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@@ -4021,14 +4019,8 @@ bool ToBox(
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
iUpper =
|
iUpper = valePrice;
|
||||||
isBullish
|
iLower = valePrice;
|
||||||
? peakPrice
|
|
||||||
: valePrice;
|
|
||||||
iLower =
|
|
||||||
isBullish
|
|
||||||
? peakPrice
|
|
||||||
: valePrice;
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
@@ -1248,7 +1248,7 @@ class XCXFIMAStrategy1Signaller : public XCXFIMABaseSignaller
|
|||||||
IsXBullish(_patternDir)
|
IsXBullish(_patternDir)
|
||||||
? ANCHOR_TOP
|
? ANCHOR_TOP
|
||||||
: ANCHOR_BOTTOM,
|
: ANCHOR_BOTTOM,
|
||||||
"Pivot_" + _pivot.prefix + "_" + ToXString(TimeToSeconds(_pivot.time)),
|
_pivot.prefix + "_Pivot_" + ToXString(TimeToSeconds(_pivot.time)),
|
||||||
true, // Ignore Bar Tag ...
|
true, // Ignore Bar Tag ...
|
||||||
arrowThreshold // Threshold ...
|
arrowThreshold // Threshold ...
|
||||||
);
|
);
|
||||||
@@ -1271,7 +1271,7 @@ class XCXFIMAStrategy1Signaller : public XCXFIMABaseSignaller
|
|||||||
_zone,
|
_zone,
|
||||||
iObj,
|
iObj,
|
||||||
ignoreBoxAt,
|
ignoreBoxAt,
|
||||||
"Zone_" + _zone.type + "_" + ToXString(TimeToSeconds(_zone.from)) //
|
_zone.type + "_Zone_" + ToXString(TimeToSeconds(_zone.from)) //
|
||||||
);
|
);
|
||||||
if (has)
|
if (has)
|
||||||
{
|
{
|
||||||
@@ -1329,32 +1329,32 @@ class XCXFIMAStrategy1Signaller : public XCXFIMABaseSignaller
|
|||||||
XClean(config.allowedDrawPivots);
|
XClean(config.allowedDrawPivots);
|
||||||
|
|
||||||
//
|
//
|
||||||
// MOMENTUM ...
|
// X_BAR_PATTERN_PIERCING ...
|
||||||
Add(
|
Add(
|
||||||
X_BAR_PATTERN_MOMENTUM,
|
X_BAR_PATTERN_PIERCING,
|
||||||
config.allowedDraws //
|
config.allowedDraws //
|
||||||
);
|
);
|
||||||
Add(
|
Add(
|
||||||
X_BAR_PATTERN_MOMENTUM,
|
X_BAR_PATTERN_PIERCING,
|
||||||
config.allowedDrawZones //
|
config.allowedDrawZones //
|
||||||
);
|
);
|
||||||
Add(
|
Add(
|
||||||
X_BAR_PATTERN_MOMENTUM,
|
X_BAR_PATTERN_PIERCING,
|
||||||
config.allowedDrawPivots //
|
config.allowedDrawPivots //
|
||||||
);
|
);
|
||||||
|
|
||||||
//
|
//
|
||||||
// ENGULFED ...
|
// X_BAR_PATTERN_STAR ...
|
||||||
Add(
|
Add(
|
||||||
X_BAR_PATTERN_ENGULFED,
|
X_BAR_PATTERN_STAR,
|
||||||
config.allowedDraws //
|
config.allowedDraws //
|
||||||
);
|
);
|
||||||
Add(
|
Add(
|
||||||
X_BAR_PATTERN_ENGULFED,
|
X_BAR_PATTERN_STAR,
|
||||||
config.allowedDrawZones //
|
config.allowedDrawZones //
|
||||||
);
|
);
|
||||||
Add(
|
Add(
|
||||||
X_BAR_PATTERN_ENGULFED,
|
X_BAR_PATTERN_STAR,
|
||||||
config.allowedDrawPivots //
|
config.allowedDrawPivots //
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user