This commit is contained in:
2024-11-03 17:35:58 +03:30
parent 7f1f0cd4e5
commit 13e880f25c
2 changed files with 60 additions and 0 deletions
+60
View File
@@ -159,6 +159,66 @@ struct X121SMCStrategyConditions
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 ...
bool IsValid()