This commit is contained in:
2025-01-27 08:45:57 +03:30
parent 24d152b41d
commit d54fb854c9
3 changed files with 294 additions and 197 deletions
+20 -3
View File
@@ -804,10 +804,21 @@ struct X121SMCCycleState
//
};
/**
* Detect Price inside Box ...
*
* @param box: XBoxZone instance Reference, Founded Price Inside Box ...
* @param orderBlock: XCOrderBlock pointer Reference, Founded Price Inside Order Block ...
* @param xConditions: X121Conditions instance Reference, provides Market Conditions ...
* @param state: X121SMCCycleState instance Reference ...
*
* @return ( bool )
*/
bool DetectPriceInsideBox(
XBoxZone &box,
X121Conditions &xConditions,
X121SMCCycleState &state //
XBoxZone &box, // Price Inside Bo ...
XCOrderBlock *&orderBlock, // Price Inside Order Block ...
X121Conditions &xConditions, // X121Conditions for Validation ...
X121SMCCycleState &state // Cycle State ...
)
{
//
@@ -912,6 +923,12 @@ bool DetectPriceInsideBox(
}
}
//
if (hasPriceInsideOB)
{
orderBlock = priceInsideOB;
}
//
bool hasBullishFVGs = state.HasBullishFVGs();
bool hasBearishFVGs = state.HasBearishFVGs();