This commit is contained in:
2025-05-04 19:31:25 +03:30
parent 2dbdc2ecc1
commit f561cf6785
2 changed files with 240 additions and 2 deletions
+91 -2
View File
@@ -258,6 +258,7 @@ int ExtractPivots(
//
bool IsFakeBreakeout(
XBoxZone &pivot,
XCXCAEAHelper *helper,
int barIndex = 0 //
)
{
@@ -276,7 +277,7 @@ bool IsFakeBreakeout(
//
int fromIDX = pivot.FromIndex();
result = barIndex > fromIDX;
result = barIndex < fromIDX;
if (!result)
{
return result;
@@ -313,6 +314,90 @@ bool IsFakeBreakeout(
//
return result;
}
//
// Bars Conditions ...
//
ENUM_X_DIRECTION cBarDir;
//
// Hammer ...
bool isCBarHammer = helper
.barAnalyser
.IsHammer(
cBar,
cBarDir //
);
bool isCBarBullishHammer =
isCBarHammer &&
IsBullish(cBarDir);
bool isCBarBearishHammer =
isCBarHammer &&
IsBearish(cBarDir);
//
// Rejected ...
bool isCBarRejected = helper
.barAnalyser
.IsRejected(
cBar,
cBarDir,
false, // Force Type ...
true // Force Fibo Pressure ...
);
bool isCBarBullishRejected =
isCBarRejected &&
IsBullish(cBarDir);
bool isCBarBearishRejected =
isCBarRejected &&
IsBearish(cBarDir);
//
// Engulfed ...
bool isCBarEngulfed = helper
.barAnalyser
.IsEngulfed(
cBar,
cBarDir //
);
bool isCBarBullishEngulfed =
isCBarEngulfed &&
IsBullish(cBarDir);
bool isCBarBearishEngulfed =
isCBarEngulfed &&
IsBearish(cBarDir);
//
// Momentum ...
bool isCBarMomentum = helper
.barAnalyser
.IsMomentum(
cBar,
cBarDir,
1 //
);
bool isCBarBullishMomentum =
isCBarMomentum &&
IsBullish(cBarDir);
bool isCBarBearishMomentum =
isCBarMomentum &&
IsBearish(cBarDir);
//
bool isCBarHasBullishPower = isCBarBullishRejected ||
isCBarBullishEngulfed ||
isCBarBullishMomentum;
//
bool isCBarHasBearishPower = isCBarBearishRejected ||
isCBarBearishEngulfed ||
isCBarBearishMomentum;
//
bool isBarPowerfull =
isBullish
? isCBarHasBullishPower
: isCBarHasBearishPower;
//
double breakPrice =
@@ -321,6 +406,7 @@ bool IsFakeBreakeout(
: pivot.upper;
//
// CBar Must Go back InSide Box ...
bool isBarInside =
cBar.GetUp() > breakPrice &&
cBar.GetDown() < breakPrice &&
@@ -330,7 +416,10 @@ bool IsFakeBreakeout(
result =
//
// Bar Must Inside Pivot ...
isBarInside
isBarInside &&
//
// Bar Must Has Required Direction Power ...
isBarPowerfull
//
;