This commit is contained in:
2025-02-17 04:59:30 +03:30
parent 62aead0094
commit a6b05d349e
5 changed files with 7695 additions and 1049 deletions
+15 -4
View File
@@ -5943,7 +5943,7 @@ struct XConsolidationZone
//
string result =
//
GetTypeName(this) + "_" +
"ConsolidationZone" + "_" +
symbol + "_" +
ToString(period) + "_" +
ToString(upper) + "_" +
@@ -7357,13 +7357,15 @@ bool IsBoxAbove(
* @param source: XBoxZone instance Reference ...
* @param dest: XBoxZone instance Reference ...
* @param forceSideOut: bool, force check Box has One Side Out ...
* @param ignoreSideOut: bool, Accept if source Box one Side is out of Dest Box ...
*
* @return ( bool )
*/
bool IsBoxInside(
XBoxZone &source,
XBoxZone &dest,
bool forceSideOut = false //
bool forceSideOut = false, //
bool ignoreSideOut = true //
)
{
//
@@ -7385,8 +7387,17 @@ bool IsBoxInside(
if (!forceSideOut)
{
//
result = source.lower >= dest.lower &&
source.upper <= dest.upper;
if (ignoreSideOut)
{
//
result = source.lower >= dest.lower &&
source.upper <= dest.upper;
}
else
{
result = source.lower >= dest.lower ||
source.upper <= dest.upper;
}
}
else
{