last ...
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user