Last Works on SMC ...
This commit is contained in:
@@ -468,6 +468,7 @@ class XCX121SMCStrategy : public XSCBaseAlert
|
||||
|
||||
//
|
||||
// Loop through Conditions for Filter Based on POIs ...
|
||||
int removeIDX = -1;
|
||||
for (int i = 0; i < conditionsCount; i++)
|
||||
{
|
||||
//
|
||||
@@ -495,17 +496,25 @@ class XCX121SMCStrategy : public XSCBaseAlert
|
||||
conditions.bullishOrderBlock.IsValid());
|
||||
|
||||
//
|
||||
bool hasLongConditions = isSoImportantLong;
|
||||
// ||
|
||||
// isImportantLong ||
|
||||
// isRiskyLong;
|
||||
bool hasLongConditions = isSoImportantLong ||
|
||||
isImportantLong ||
|
||||
isRiskyLong;
|
||||
|
||||
//
|
||||
if (hasLongConditions)
|
||||
{
|
||||
//
|
||||
// Find Trigger for Input Positions ...
|
||||
// - [] Breakout;
|
||||
// - [] Engulf;
|
||||
// - [] Rejection Bar;
|
||||
// - [] Momentum Bar;
|
||||
|
||||
//
|
||||
removeIDX = i;
|
||||
DrawConditions(conditions);
|
||||
Print("hasLongConditions");
|
||||
// break;
|
||||
}
|
||||
|
||||
//
|
||||
@@ -530,22 +539,42 @@ class XCX121SMCStrategy : public XSCBaseAlert
|
||||
!conditions.bearishOrderBlock.IsValid());
|
||||
|
||||
//
|
||||
bool hasShortConditions = isSoImportantShort;
|
||||
// ||
|
||||
// isImportantShort ||
|
||||
// isRiskyShort;
|
||||
bool hasShortConditions = isSoImportantShort ||
|
||||
isImportantShort ||
|
||||
isRiskyShort;
|
||||
|
||||
//
|
||||
if (hasShortConditions)
|
||||
{
|
||||
//
|
||||
// Find Trigger for Input Positions ...
|
||||
// - [] Breakout;
|
||||
// - [] Engulf;
|
||||
// - [] Rejection Bar;
|
||||
// - [] Momentum Bar;
|
||||
|
||||
//
|
||||
removeIDX = i;
|
||||
DrawConditions(conditions);
|
||||
Print("hasShortConditions");
|
||||
// break;
|
||||
}
|
||||
|
||||
//
|
||||
}
|
||||
|
||||
//
|
||||
// Rmove Signal Condition ...
|
||||
if (result &&
|
||||
IsValidIndex(removeIDX))
|
||||
{
|
||||
//
|
||||
ArrayRemove(
|
||||
mConditions,
|
||||
removeIDX,
|
||||
1);
|
||||
}
|
||||
|
||||
//
|
||||
return result;
|
||||
}
|
||||
@@ -1841,7 +1870,7 @@ class XCX121SMCStrategy : public XSCBaseAlert
|
||||
/**
|
||||
* Draw Specific Condition ...
|
||||
*
|
||||
* @param conditions: Argument 1
|
||||
* @param conditions: Argument 1
|
||||
*/
|
||||
void DrawConditions(X121SMCStrategyConditions &conditions)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user