last ...
This commit is contained in:
@@ -159,6 +159,66 @@ struct X121SMCStrategyConditions
|
|||||||
Clean(bearishRejectionBars);
|
Clean(bearishRejectionBars);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool ValidateSupply()
|
||||||
|
{
|
||||||
|
//
|
||||||
|
bool result = false;
|
||||||
|
|
||||||
|
//
|
||||||
|
result = IsValid();
|
||||||
|
if (!result)
|
||||||
|
{
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
result =
|
||||||
|
//
|
||||||
|
supplyZone.IsValid() &&
|
||||||
|
bearishOrderBlock.IsValid() &&
|
||||||
|
(ArraySize(swingHighs) > 0 ||
|
||||||
|
ArraySize(bearishFVGs) > 0 ||
|
||||||
|
ArraySize(resistances) > 0 ||
|
||||||
|
ArraySize(bearishOrderBlocks) > 0 ||
|
||||||
|
ArraySize(bearishMomentumBars) > 0 ||
|
||||||
|
ArraySize(bearishRejectionBars) > 0)
|
||||||
|
//
|
||||||
|
;
|
||||||
|
|
||||||
|
//
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool ValidateDemand()
|
||||||
|
{
|
||||||
|
//
|
||||||
|
bool result = false;
|
||||||
|
|
||||||
|
//
|
||||||
|
result = IsValid();
|
||||||
|
if (!result)
|
||||||
|
{
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
result =
|
||||||
|
//
|
||||||
|
demandZone.IsValid() &&
|
||||||
|
bullishOrderBlock.IsValid() &&
|
||||||
|
(ArraySize(supports) > 0 ||
|
||||||
|
ArraySize(swingLows) > 0 ||
|
||||||
|
ArraySize(bullishFVGs) > 0 ||
|
||||||
|
ArraySize(bullishOrderBlocks) > 0 ||
|
||||||
|
ArraySize(bullishMomentumBars) > 0 ||
|
||||||
|
ArraySize(bullishRejectionBars) > 0)
|
||||||
|
//
|
||||||
|
;
|
||||||
|
|
||||||
|
//
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Validate ...
|
// Validate ...
|
||||||
bool IsValid()
|
bool IsValid()
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user