last ...
This commit is contained in:
@@ -2906,6 +2906,100 @@ struct X121SMCStrategyConditionParser
|
|||||||
bool hasSignalBox = iSignalBox.IsValid();
|
bool hasSignalBox = iSignalBox.IsValid();
|
||||||
bool isSignalBoxBullish = IsBullish(iSignalBox.ob.dir);
|
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 ...
|
// Bullish Conditions ...
|
||||||
isBullish =
|
isBullish =
|
||||||
@@ -2914,6 +3008,7 @@ struct X121SMCStrategyConditionParser
|
|||||||
(
|
(
|
||||||
//
|
//
|
||||||
hasSignalBox &&
|
hasSignalBox &&
|
||||||
|
hasBullishCZone &&
|
||||||
isSignalBoxBullish &&
|
isSignalBoxBullish &&
|
||||||
isSignalBoxRetested &&
|
isSignalBoxRetested &&
|
||||||
isBarValidForBullish
|
isBarValidForBullish
|
||||||
@@ -2930,6 +3025,7 @@ struct X121SMCStrategyConditionParser
|
|||||||
(
|
(
|
||||||
//
|
//
|
||||||
hasSignalBox &&
|
hasSignalBox &&
|
||||||
|
hasBearishZone &&
|
||||||
!isSignalBoxBullish &&
|
!isSignalBoxBullish &&
|
||||||
isSignalBoxRetested &&
|
isSignalBoxRetested &&
|
||||||
isBarValidForBearish
|
isBarValidForBearish
|
||||||
@@ -3124,6 +3220,7 @@ struct X121SMCStrategyConditionParser
|
|||||||
zBar.Clean();
|
zBar.Clean();
|
||||||
cBar.Clean();
|
cBar.Clean();
|
||||||
pBar.Clean();
|
pBar.Clean();
|
||||||
|
cZone.Clean();
|
||||||
cState.Clean();
|
cState.Clean();
|
||||||
iSignalBox.Clean();
|
iSignalBox.Clean();
|
||||||
ZeroMemory(cHelper);
|
ZeroMemory(cHelper);
|
||||||
@@ -4642,7 +4739,9 @@ struct X121SMCStrategyConditionParser
|
|||||||
cBar.Clean();
|
cBar.Clean();
|
||||||
pBar.Clean();
|
pBar.Clean();
|
||||||
pPBar.Clean();
|
pPBar.Clean();
|
||||||
|
cZone.Clean();
|
||||||
cState.Clean();
|
cState.Clean();
|
||||||
|
zoneBox.Clean();
|
||||||
iSignalBox.Clean();
|
iSignalBox.Clean();
|
||||||
ZeroMemory(cHelper);
|
ZeroMemory(cHelper);
|
||||||
cConditions.Clean();
|
cConditions.Clean();
|
||||||
|
|||||||
@@ -1248,7 +1248,7 @@ struct X121SMCStrategyXWZWorkingZone
|
|||||||
// ---------------------------------------------
|
// ---------------------------------------------
|
||||||
// Rejected Box ...
|
// Rejected Box ...
|
||||||
// ---------------------------------------------
|
// ---------------------------------------------
|
||||||
bool useSenario1 = false;
|
bool useSenario1 = true;
|
||||||
bool isSenario1Happend = false;
|
bool isSenario1Happend = false;
|
||||||
bool isSenario1Bullish = false;
|
bool isSenario1Bullish = false;
|
||||||
bool isSenario1Bearish = false;
|
bool isSenario1Bearish = false;
|
||||||
@@ -1368,7 +1368,7 @@ struct X121SMCStrategyXWZWorkingZone
|
|||||||
// -----------------------------------------------
|
// -----------------------------------------------
|
||||||
// Detect Signal Box Based On XHKMA Conditions ...
|
// Detect Signal Box Based On XHKMA Conditions ...
|
||||||
// -----------------------------------------------
|
// -----------------------------------------------
|
||||||
bool useSenario4 = true;
|
bool useSenario4 = false;
|
||||||
bool isSenario4Happend = false;
|
bool isSenario4Happend = false;
|
||||||
bool isSenario4Bullish = false;
|
bool isSenario4Bullish = false;
|
||||||
bool isSenario4Bearish = false;
|
bool isSenario4Bearish = false;
|
||||||
@@ -1422,6 +1422,23 @@ struct X121SMCStrategyXWZWorkingZone
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// Senario 6:
|
||||||
|
// ---------------------------------------------
|
||||||
|
// ---------------------------------------------
|
||||||
|
bool useSenario6 = false;
|
||||||
|
bool isSenario6Happend = false;
|
||||||
|
bool isSenario6Bullish = false;
|
||||||
|
bool isSenario6Bearish = false;
|
||||||
|
if (!isSenario1Happend &&
|
||||||
|
!isSenario2Happend &&
|
||||||
|
!isSenario3Happend &&
|
||||||
|
!isSenario4Happend &&
|
||||||
|
!isSenario5Happend &&
|
||||||
|
useSenario6)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Summarize All Senario(s) Conditions ...
|
// Summarize All Senario(s) Conditions ...
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user