This commit is contained in:
2025-04-28 19:59:13 +03:30
parent 28f5ffac63
commit 806fdeb4bb
3 changed files with 81 additions and 12 deletions
+50
View File
@@ -5569,6 +5569,56 @@ struct XBoxZone
return result;
}
/**
* Calculate Box Middle Price ...
*
* @return ( double )
*/
double GetMid()
{
//
double result = 0;
//
if (!IsValid())
{
return result;
}
//
double diffAvg = (upper - lower) / 2;
result = lower + diffAvg;
//
return result;
}
/**
* Extract Rejection Price based on Box Direction ...
*
* @return ( double )
*/
double GetRejection()
{
//
double result = 0;
//
if (!IsValid())
{
return result;
}
//
result =
IsBullish()
? upper
: lower;
//
return result;
}
/**
* To Bar Index ...
*