last works ...

adding some tools to ch helper classes ...
This commit is contained in:
2024-07-26 03:36:40 +03:30
parent 35d814fc9c
commit fc9bca9c37
6 changed files with 1878 additions and 77 deletions
+7 -2
View File
@@ -1522,7 +1522,9 @@ public:
hasLong =
//
hasBullishPower &&
cBar.IsBullish() &&
hasBullishPressure &&
chhkConditions.isHBullish &&
chstrConditions.isHBullish &&
cheConditions.isStrongBullish &&
cBar.low > pvConditions.fib2s[cIndex]
@@ -1534,7 +1536,7 @@ public:
{
//
type = POSITION_TYPE_BUY;
sl = pvConditions.fib3s[cIndex];
sl = pvConditions.fib2s[cIndex];
}
}
@@ -1546,7 +1548,9 @@ public:
hasShort =
//
hasBearishPower &&
cBar.IsBearish() &&
hasBearishPressure &&
chhkConditions.isHBearish &&
chstrConditions.isHBearish &&
cheConditions.isStrongBearish &&
cBar.high < pvConditions.fib4s[cIndex]
@@ -1558,7 +1562,7 @@ public:
{
//
type = POSITION_TYPE_SELL;
sl = pvConditions.fib3s[cIndex];
sl = pvConditions.fib4s[cIndex];
}
}
@@ -1874,6 +1878,7 @@ private:
chhkInputs.hcPeriod = hcPeriod;
//
chhkInputs.ignoreShadows = true;
chhkInputs.showCurrent = false;
chhkInputs.showShort = false;
chhkInputs.showMedium = false;