add adxtd into indicator for control behaviour ...
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user