add adxtd into indicator for control behaviour ...

This commit is contained in:
2024-06-21 15:59:30 +03:30
parent 9041f22045
commit fdf5442255
9 changed files with 3821 additions and 339 deletions
+3 -4
View File
@@ -3562,11 +3562,10 @@ public:
//
// XADXTD ...
adxtdHelper = new XSCXADXTDHelper(
inputs.symbol,
inputs.period //
);
adxtdHelper = new XSCXADXTDHelper();
result = adxtdHelper.Init(
inputs.symbol,
inputs.period,
inputs.adxtdInputs //
);
if (!result)
+12 -31
View File
@@ -4767,25 +4767,16 @@ private:
{
//
// Check Force State Hedging ...
bool isHedged = DoEQMForceClose(2);
if (isHedged)
{
//
ForceState(false);
return;
}
//
isHedged = DoEQMForceClose(1);
if (isHedged)
{
//
ForceState(false);
return;
}
// bool isHedged = DoEQMForceClose();
// if (isHedged)
// {
// //
// ForceState(false);
// return;
// }
// //
// isHedged = DoEQMForceClose(0.5);
// isHedged = DoEQMForceClose(5);
// if (isHedged)
// {
// //
@@ -4793,15 +4784,7 @@ private:
// return;
// }
// isHedged = DoEQMForceClose(0.3);
// if (isHedged)
// {
// //
// ForceState(false);
// return;
// }
//
// //
return;
}
@@ -4839,10 +4822,9 @@ private:
// Now Comparing items for enabling force State ...
bool isForceState =
//
longs > 0 &&
shorts > 0 &&
youngestAge >= 20 && // TODO: Make this Configurable ...
longVolumes == shortVolumes
youngestAge >= 20 &&
//
(longProfits + shortProfits < 0)
//
;
if (isForceState)
@@ -4880,7 +4862,6 @@ private:
// Supporting Force States ...
bool isProtectionForce =
supportsCount >= 1;
// supportsCount >= (maxSupports + maxGrids + maxRecoveries);
if (isProtectionForce)
{
//