This commit is contained in:
2024-06-22 08:33:18 +03:30
parent 532be35f74
commit 6063d3be61
5 changed files with 597 additions and 57 deletions
+49
View File
@@ -69,6 +69,7 @@ enum ENUM_X121_SIGNAL_PROVIDER
PROVIDER_XASCT = 16,
PROVIDER_XVLM = 17,
PROVIDER_XPVF = 18,
PROVIDER_XPVSAR = 19,
};
//
@@ -197,6 +198,10 @@ ENUM_X121_SIGNAL_PROVIDER FromString(string value)
{
result = PROVIDER_XPVF;
}
else if (Contains(value, (EnumToString(PROVIDER_XPVSAR))))
{
result = PROVIDER_XPVSAR;
}
//
return result;
@@ -1422,6 +1427,24 @@ struct X121SignalGenerator
provider = ToString(PROVIDER_XPVF);
}
//
// XPVSAR ...
bool long19 =
//
// Starting Conditions ...
conditions.mcConditions.isSARSwitchedToBullish &&
conditions.pvConditions.vales[zIndex] == conditions.mcConditions.psar[zIndex] &&
conditions.strConditions.isTrendBullish &&
conditions.cheConditions.isStrongBullish
//
;
if (long19)
{
//
pusher += 2;
provider = ToString(PROVIDER_XPVSAR);
}
//
result =
//
@@ -1500,6 +1523,10 @@ struct X121SignalGenerator
//
long18
//
||
//
long19
//
)
//
;
@@ -2068,6 +2095,24 @@ struct X121SignalGenerator
provider = ToString(PROVIDER_XPVF);
}
//
// XPVSAR ...
bool short19 =
//
// Starting Conditions ...
conditions.mcConditions.isSARSwitchedToBearish &&
conditions.pvConditions.peaks[zIndex] == conditions.mcConditions.psar[zIndex] &&
conditions.strConditions.isTrendBearish &&
conditions.cheConditions.isStrongBearish
//
;
if (short19)
{
//
pusher += 2;
provider = ToString(PROVIDER_XPVSAR);
}
//
result =
//
@@ -2146,6 +2191,10 @@ struct X121SignalGenerator
//
short18
//
||
//
short19
//
)
//
;