This commit is contained in:
2025-06-20 00:54:33 +03:30
parent aedf10cace
commit bcf652d40e
3 changed files with 371 additions and 127 deletions
+39 -2
View File
@@ -1052,7 +1052,9 @@ struct XOHCL
//
bool IsBreaked(
double price,
ENUM_X_DIRECTION forDir //
ENUM_X_DIRECTION forDir,
ENUM_X_FIBO_LEVELS fibLevel = X_FIBO_LEVEL_500,
ENUM_X_BOUNDARY_PRICE boundaryType = X_BOUNDARY_PRICE_UP_DOWN //
)
{
//
@@ -1061,12 +1063,16 @@ struct XOHCL
//
result = IsValid() &&
price > 0 &&
HasDirection(forDir);
HasDirection(forDir) &&
IsValid(boundaryType);
if (!result)
{
return result;
}
//
bool isUpDownPriceType = boundaryType == X_BOUNDARY_PRICE_UP_DOWN;
//
bool isBullish =
IsBullish() &&
@@ -1084,6 +1090,37 @@ struct XOHCL
//
result = isBullish ||
isBearish;
if (result)
{
//
// Calculate Range ...
double range =
isUpDownPriceType
? GetBody()
: GetRange();
//
// Apply Edge Range ...
double iReqRange =
(range / 100) * GetFiboLevelValue(fibLevel);
//
// Calculate Boundary Price ...
double iBoundary =
isUpDownPriceType
? iBullish
? GetUp()
: GetDown()
: isBullish
? high
: low;
//
// Detect Breaked Value ...
result =
isBullish
?
}
//
return result;