last ...
This commit is contained in:
@@ -2906,6 +2906,100 @@ struct X121SMCStrategyConditionParser
|
||||
bool hasSignalBox = iSignalBox.IsValid();
|
||||
bool isSignalBoxBullish = IsBullish(iSignalBox.ob.dir);
|
||||
|
||||
//
|
||||
// Check Consolidation Zone ...
|
||||
XBoxZone cZone;
|
||||
XBoxZone tmpBoxes[];
|
||||
if (isSignalBoxBullish)
|
||||
{
|
||||
//
|
||||
ToBox(
|
||||
cState.bullishConsolidationZones,
|
||||
tmpBoxes //
|
||||
);
|
||||
}
|
||||
else
|
||||
{
|
||||
//
|
||||
ToBox(
|
||||
cState.bearishConsolidationZones,
|
||||
tmpBoxes //
|
||||
);
|
||||
}
|
||||
has = HasChild(tmpBoxes);
|
||||
if (has)
|
||||
{
|
||||
//
|
||||
XBoxZone selectedBox;
|
||||
if (iSignalBox.fvg.IsValid())
|
||||
{
|
||||
selectedBox = iSignalBox.fvg;
|
||||
}
|
||||
else
|
||||
{
|
||||
selectedBox = iSignalBox.ob;
|
||||
}
|
||||
|
||||
//
|
||||
idx = GetYoungest(tmpBoxes);
|
||||
has = IsValidIndex(idx);
|
||||
if (has)
|
||||
{
|
||||
//
|
||||
cZone = tmpBoxes[idx];
|
||||
|
||||
//
|
||||
// Check Consolidation Zone Place ...
|
||||
has =
|
||||
//
|
||||
(
|
||||
//
|
||||
IsBoxInsideOr(
|
||||
cZone,
|
||||
selectedBox //
|
||||
)
|
||||
//
|
||||
&&
|
||||
//
|
||||
cZone.from >= selectedBox.from
|
||||
//
|
||||
)
|
||||
//
|
||||
||
|
||||
//
|
||||
(
|
||||
//
|
||||
IsBoxInsideOr(
|
||||
selectedBox,
|
||||
cZone //
|
||||
)
|
||||
//
|
||||
&&
|
||||
//
|
||||
selectedBox.from >= cZone.from
|
||||
//
|
||||
)
|
||||
//
|
||||
;
|
||||
if (!has)
|
||||
{
|
||||
cZone.Clean();
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
selectedBox.Clean();
|
||||
}
|
||||
Clean(tmpBoxes);
|
||||
|
||||
//
|
||||
bool hasBullishCZone = cZone.IsValid() &&
|
||||
cZone.IsBullish();
|
||||
|
||||
//
|
||||
bool hasBearishZone = cZone.IsValid() &&
|
||||
cZone.IsBearish();
|
||||
|
||||
//
|
||||
// Bullish Conditions ...
|
||||
isBullish =
|
||||
@@ -2914,6 +3008,7 @@ struct X121SMCStrategyConditionParser
|
||||
(
|
||||
//
|
||||
hasSignalBox &&
|
||||
hasBullishCZone &&
|
||||
isSignalBoxBullish &&
|
||||
isSignalBoxRetested &&
|
||||
isBarValidForBullish
|
||||
@@ -2930,6 +3025,7 @@ struct X121SMCStrategyConditionParser
|
||||
(
|
||||
//
|
||||
hasSignalBox &&
|
||||
hasBearishZone &&
|
||||
!isSignalBoxBullish &&
|
||||
isSignalBoxRetested &&
|
||||
isBarValidForBearish
|
||||
@@ -3124,6 +3220,7 @@ struct X121SMCStrategyConditionParser
|
||||
zBar.Clean();
|
||||
cBar.Clean();
|
||||
pBar.Clean();
|
||||
cZone.Clean();
|
||||
cState.Clean();
|
||||
iSignalBox.Clean();
|
||||
ZeroMemory(cHelper);
|
||||
@@ -4642,7 +4739,9 @@ struct X121SMCStrategyConditionParser
|
||||
cBar.Clean();
|
||||
pBar.Clean();
|
||||
pPBar.Clean();
|
||||
cZone.Clean();
|
||||
cState.Clean();
|
||||
zoneBox.Clean();
|
||||
iSignalBox.Clean();
|
||||
ZeroMemory(cHelper);
|
||||
cConditions.Clean();
|
||||
|
||||
Reference in New Issue
Block a user