This commit is contained in:
2024-07-09 17:28:07 +03:30
parent 669f0b8377
commit 78b2ac283a
2 changed files with 69 additions and 30 deletions
+14 -28
View File
@@ -1070,20 +1070,13 @@ struct XOHCL
}
//
// Prev Bar Must be Bearish ...
result = pBar.IsBearish();
if (!result)
{
return result;
}
//
// Close of Current Bar must be Higher than High of Prev Bar ...
result = close > pBar.high;
if (!result)
{
return result;
}
result =
//
pBar.IsBearish() &&
open < pBar.close && close > pBar.open &&
high >= pBar.high && low <= pBar.low
//
;
//
return result;
@@ -1114,20 +1107,13 @@ struct XOHCL
}
//
// Prev Bar Must be Bullish ...
result = pBar.IsBullish();
if (!result)
{
return result;
}
//
// Close of Current Bar must be Lower than Low of Prev Bar ...
result = close < pBar.low;
if (!result)
{
return result;
}
result =
//
pBar.IsBullidh() &&
open > pBar.close && close < pBar.open &&
high >= pBar.high && low <= pBar.low
//
;
//
return result;