add x121 signaller ...

This commit is contained in:
2024-06-04 18:56:17 +03:30
parent 1637a6ba92
commit 0b3587431f
2 changed files with 100 additions and 7 deletions
@@ -42,6 +42,7 @@ public:
void X121Signaller()
{
name = X121;
Default();
}
//
@@ -61,6 +62,48 @@ public:
//
bool result = false;
//
sl = 0;
tp = 0;
//
result = enableLong;
if (!result)
{
return result;
}
//
result =
//
(conditions.isMRBFastCrossedOverSlow &&
(conditions.isCHEBullish &&
conditions.isTrendBullish &&
conditions.isMCFastOverSlow))
//
||
//
(conditions.isMRBSlowCrossedtOverVerifier &&
(conditions.isCHEBullish &&
conditions.isTrendBullish &&
conditions.isMCFastOverSlow &&
conditions.isMRBFastOverSlow))
//
||
//
(conditions.isCHESwitchedToBullish &&
(conditions.isTrendBullish &&
conditions.isMCFastOverSlow &&
conditions.isMRBFastOverSlow))
//
;
//
if (result)
{
sl = conditions.mrbSlows[1];
}
//
return result;
}
@@ -75,6 +118,54 @@ public:
//
bool result = false;
//
sl = 0;
tp = 0;
//
result = enableShort;
if (!result)
{
return result;
}
//
result =
//
(conditions.isSMHKSwitchedToBearish &&
(conditions.isTDBearish &&
conditions.isCHEBearish &&
conditions.isTrendBearish))
//
||
//
(conditions.isTDSwitchedToBearish &&
(conditions.isSMHKBearish &&
conditions.isCHEBearish &&
conditions.isTrendBearish))
//
||
//
(conditions.isCHESwitchedToBearish &&
(conditions.isTDBearish &&
conditions.isSMHKBearish &&
conditions.isTrendBearish))
//
||
//
(conditions.isTrendSwitchedToBearish &&
(conditions.isTDBearish &&
conditions.isCHEBearish &&
conditions.isSMHKBearish))
//
;
//
if (result)
{
sl = conditions.mrbFasts[1];
}
//
return result;
}