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