add support for remains indicators in X121MarketCycle and also it's Conditions ...
This commit is contained in:
Vendored
+13
-13
@@ -44,19 +44,6 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"in-progress": [
|
"in-progress": [
|
||||||
{
|
|
||||||
"assignedTo": {
|
|
||||||
"name": "Hadi Khazaee Asl"
|
|
||||||
},
|
|
||||||
"creation_time": "2024-06-01T00:56:22.059Z",
|
|
||||||
"description": {
|
|
||||||
"content": "Indicators:\n- [] XHULL;\n- [] XSSL;\n- [] XAMA;\n- [] XTM;\n\nfor each indicator:\n- [] Buffers;\n- [] Conditions;\n- [] Clean;\n- [] Score;\n- [] Summary;\n",
|
|
||||||
"mime": "text/markdown"
|
|
||||||
},
|
|
||||||
"id": "71",
|
|
||||||
"references": [],
|
|
||||||
"title": "add XHULL/XSSLC/XAMA/XTM Indicators also to X121MarketCycle Calss"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"assignedTo": {
|
"assignedTo": {
|
||||||
"name": "Hadi Khazaee Asl"
|
"name": "Hadi Khazaee Asl"
|
||||||
@@ -97,6 +84,19 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"testing": [
|
"testing": [
|
||||||
|
{
|
||||||
|
"assignedTo": {
|
||||||
|
"name": "Hadi Khazaee Asl"
|
||||||
|
},
|
||||||
|
"creation_time": "2024-06-01T00:56:22.059Z",
|
||||||
|
"description": {
|
||||||
|
"content": "Indicators:\n- [x] XHULL;\n- [x] XSSL;\n- [x] XAMA;\n- [x] XTM;\n\nfor each indicator:\n- [x] Buffers;\n- [x] Conditions;\n- [x] Clean;\n- [x] Score;\n- [x] Summary;\n\nignore XAMA and XTM ...",
|
||||||
|
"mime": "text/markdown"
|
||||||
|
},
|
||||||
|
"id": "71",
|
||||||
|
"references": [],
|
||||||
|
"title": "add XHULL/XSSLC/XAMA/XTM Indicators also to X121MarketCycle Calss"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"assignedTo": {
|
"assignedTo": {
|
||||||
"name": "Hadi Khazaee Asl"
|
"name": "Hadi Khazaee Asl"
|
||||||
|
|||||||
@@ -687,9 +687,21 @@ public:
|
|||||||
|
|
||||||
//
|
//
|
||||||
// XHULL ...
|
// XHULL ...
|
||||||
|
bool isHullBullish;
|
||||||
|
bool isHullBearish;
|
||||||
|
bool isHullUpBullish;
|
||||||
|
bool isHullUpBearish;
|
||||||
|
bool isHullDownBullish;
|
||||||
|
bool isHullDownBearish;
|
||||||
|
bool isHullSwitchedToBullish;
|
||||||
|
bool isHullSwitchedToBearish;
|
||||||
|
|
||||||
//
|
//
|
||||||
// XSSLC ...
|
// XSSLC ...
|
||||||
|
bool isSSLCBullish;
|
||||||
|
bool isSSLCBearish;
|
||||||
|
bool isSSLCSwitchedToBullish;
|
||||||
|
bool isSSLCSwitchedToBearish;
|
||||||
|
|
||||||
//
|
//
|
||||||
// XPV ...
|
// XPV ...
|
||||||
@@ -1129,9 +1141,21 @@ public:
|
|||||||
|
|
||||||
//
|
//
|
||||||
// XHULL ...
|
// XHULL ...
|
||||||
|
isHullBullish = false;
|
||||||
|
isHullBearish = false;
|
||||||
|
isHullUpBullish = false;
|
||||||
|
isHullUpBearish = false;
|
||||||
|
isHullDownBullish = false;
|
||||||
|
isHullDownBearish = false;
|
||||||
|
isHullSwitchedToBullish = false;
|
||||||
|
isHullSwitchedToBearish = false;
|
||||||
|
|
||||||
//
|
//
|
||||||
// XSSLC ...
|
// XSSLC ...
|
||||||
|
isSSLCBullish = false;
|
||||||
|
isSSLCBearish = false;
|
||||||
|
isSSLCSwitchedToBullish = false;
|
||||||
|
isSSLCSwitchedToBearish = false;
|
||||||
|
|
||||||
//
|
//
|
||||||
// XPV ...
|
// XPV ...
|
||||||
@@ -1420,9 +1444,57 @@ public:
|
|||||||
|
|
||||||
//
|
//
|
||||||
// XHULL ...
|
// XHULL ...
|
||||||
|
if (isHullBullish)
|
||||||
|
{
|
||||||
|
bullScore++;
|
||||||
|
}
|
||||||
|
if (isHullBearish)
|
||||||
|
{
|
||||||
|
bearScore++;
|
||||||
|
}
|
||||||
|
if (isHullUpBullish)
|
||||||
|
{
|
||||||
|
bullScore++;
|
||||||
|
}
|
||||||
|
if (isHullUpBearish)
|
||||||
|
{
|
||||||
|
bearScore++;
|
||||||
|
}
|
||||||
|
if (isHullDownBullish)
|
||||||
|
{
|
||||||
|
bullScore++;
|
||||||
|
}
|
||||||
|
if (isHullDownBearish)
|
||||||
|
{
|
||||||
|
bearScore++;
|
||||||
|
}
|
||||||
|
if (isHullSwitchedToBullish)
|
||||||
|
{
|
||||||
|
bullScore++;
|
||||||
|
}
|
||||||
|
if (isHullSwitchedToBearish)
|
||||||
|
{
|
||||||
|
bearScore++;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// XSSLC ...
|
// XSSLC ...
|
||||||
|
if (isSSLCBullish)
|
||||||
|
{
|
||||||
|
bullScore++;
|
||||||
|
}
|
||||||
|
if (isSSLCBearish)
|
||||||
|
{
|
||||||
|
bearScore++;
|
||||||
|
}
|
||||||
|
if (isSSLCSwitchedToBullish)
|
||||||
|
{
|
||||||
|
bullScore++;
|
||||||
|
}
|
||||||
|
if (isSSLCSwitchedToBearish)
|
||||||
|
{
|
||||||
|
bearScore++;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// XPV ...
|
// XPV ...
|
||||||
@@ -2148,7 +2220,7 @@ public:
|
|||||||
""
|
""
|
||||||
//
|
//
|
||||||
;
|
;
|
||||||
candlestickStr = SetLabel(": ", candlestickStr, separator);
|
candlestickStr = SetLabel("XOHCL: ", candlestickStr, separator);
|
||||||
|
|
||||||
//
|
//
|
||||||
// XZG ...
|
// XZG ...
|
||||||
@@ -2159,7 +2231,7 @@ public:
|
|||||||
""
|
""
|
||||||
//
|
//
|
||||||
;
|
;
|
||||||
zgStr = SetLabel(": ", zgStr, separator);
|
zgStr = SetLabel("XZG: ", zgStr, separator);
|
||||||
|
|
||||||
//
|
//
|
||||||
// XSTR ...
|
// XSTR ...
|
||||||
@@ -2172,7 +2244,7 @@ public:
|
|||||||
""
|
""
|
||||||
//
|
//
|
||||||
;
|
;
|
||||||
strStr = SetLabel(": ", strStr, separator);
|
strStr = SetLabel("XSTR: ", strStr, separator);
|
||||||
|
|
||||||
//
|
//
|
||||||
// XCHE ...
|
// XCHE ...
|
||||||
@@ -2185,7 +2257,7 @@ public:
|
|||||||
""
|
""
|
||||||
//
|
//
|
||||||
;
|
;
|
||||||
cheStr = SetLabel(": ", cheStr, separator);
|
cheStr = SetLabel("XCHE: ", cheStr, separator);
|
||||||
|
|
||||||
//
|
//
|
||||||
// XTD ...
|
// XTD ...
|
||||||
@@ -2198,7 +2270,37 @@ public:
|
|||||||
""
|
""
|
||||||
//
|
//
|
||||||
;
|
;
|
||||||
tdStr = SetLabel(": ", tdStr, separator);
|
tdStr = SetLabel("XTD: ", tdStr, separator);
|
||||||
|
|
||||||
|
//
|
||||||
|
// XSSLC ...
|
||||||
|
string sslcStr =
|
||||||
|
//
|
||||||
|
ToString("isSSLCBullish", isSSLCBullish, ignoreFalseConditions, separator) +
|
||||||
|
ToString("isSSLCBearish", isSSLCBearish, ignoreFalseConditions, separator) +
|
||||||
|
ToString("isSSLCSwitchedToBullish", isSSLCSwitchedToBullish, ignoreFalseConditions, separator) +
|
||||||
|
ToString("isSSLCSwitchedToBearish", isSSLCSwitchedToBearish, ignoreFalseConditions, separator) +
|
||||||
|
""
|
||||||
|
//
|
||||||
|
;
|
||||||
|
sslcStr = SetLabel("XSSLC: ", sslcStr, separator);
|
||||||
|
|
||||||
|
//
|
||||||
|
// XHULL ...
|
||||||
|
string hullStr =
|
||||||
|
//
|
||||||
|
ToString("isHullBullish", isHullBullish, ignoreFalseConditions, separator) +
|
||||||
|
ToString("isHullBearish", isHullBearish, ignoreFalseConditions, separator) +
|
||||||
|
ToString("isHullUpBullish", isHullUpBullish, ignoreFalseConditions, separator) +
|
||||||
|
ToString("isHullUpBearish", isHullUpBearish, ignoreFalseConditions, separator) +
|
||||||
|
ToString("isHullDownBullish", isHullDownBullish, ignoreFalseConditions, separator) +
|
||||||
|
ToString("isHullDownBearish", isHullDownBearish, ignoreFalseConditions, separator) +
|
||||||
|
ToString("isHullSwitchedToBullish", isHullSwitchedToBullish, ignoreFalseConditions, separator) +
|
||||||
|
ToString("isHullSwitchedToBearish", isHullSwitchedToBearish, ignoreFalseConditions, separator) +
|
||||||
|
""
|
||||||
|
//
|
||||||
|
;
|
||||||
|
hullStr = SetLabel("XHULL: ", hullStr, separator);
|
||||||
|
|
||||||
//
|
//
|
||||||
// XHK ...
|
// XHK ...
|
||||||
@@ -2219,7 +2321,7 @@ public:
|
|||||||
""
|
""
|
||||||
//
|
//
|
||||||
;
|
;
|
||||||
hkStr = SetLabel(": ", hkStr, separator);
|
hkStr = SetLabel("XHK: ", hkStr, separator);
|
||||||
|
|
||||||
//
|
//
|
||||||
// XDON ...
|
// XDON ...
|
||||||
@@ -2240,7 +2342,7 @@ public:
|
|||||||
""
|
""
|
||||||
//
|
//
|
||||||
;
|
;
|
||||||
donStr = SetLabel(": ", donStr, separator);
|
donStr = SetLabel("XDON: ", donStr, separator);
|
||||||
|
|
||||||
//
|
//
|
||||||
// XMC ...
|
// XMC ...
|
||||||
@@ -2261,7 +2363,7 @@ public:
|
|||||||
""
|
""
|
||||||
//
|
//
|
||||||
;
|
;
|
||||||
mcStr = SetLabel(": ", mcStr, separator);
|
mcStr = SetLabel("XMC: ", mcStr, separator);
|
||||||
|
|
||||||
//
|
//
|
||||||
// XMRB ...
|
// XMRB ...
|
||||||
@@ -2282,7 +2384,7 @@ public:
|
|||||||
""
|
""
|
||||||
//
|
//
|
||||||
;
|
;
|
||||||
mrbStr = SetLabel(": ", mrbStr, separator);
|
mrbStr = SetLabel("XMRB: ", mrbStr, separator);
|
||||||
|
|
||||||
//
|
//
|
||||||
// XICH ...
|
// XICH ...
|
||||||
@@ -2313,7 +2415,7 @@ public:
|
|||||||
""
|
""
|
||||||
//
|
//
|
||||||
;
|
;
|
||||||
ichStr = SetLabel(": ", ichStr, separator);
|
ichStr = SetLabel("XICH: ", ichStr, separator);
|
||||||
|
|
||||||
//
|
//
|
||||||
// XPV ...
|
// XPV ...
|
||||||
@@ -2379,7 +2481,7 @@ public:
|
|||||||
""
|
""
|
||||||
//
|
//
|
||||||
;
|
;
|
||||||
pvStr = SetLabel(": ", pvStr, separator);
|
pvStr = SetLabel("XPV: ", pvStr, separator);
|
||||||
|
|
||||||
//
|
//
|
||||||
result =
|
result =
|
||||||
@@ -2391,6 +2493,8 @@ public:
|
|||||||
strStr +
|
strStr +
|
||||||
cheStr +
|
cheStr +
|
||||||
tdStr +
|
tdStr +
|
||||||
|
sslcStr +
|
||||||
|
hullStr +
|
||||||
hkStr +
|
hkStr +
|
||||||
donStr +
|
donStr +
|
||||||
mcStr +
|
mcStr +
|
||||||
@@ -3614,11 +3718,54 @@ public:
|
|||||||
bool isSMHKSwitchedToBullish = cSMHKBar.IsBullish() && !pSMHKBar.IsBullish();
|
bool isSMHKSwitchedToBullish = cSMHKBar.IsBullish() && !pSMHKBar.IsBullish();
|
||||||
bool isSMHKSwitchedToBearish = cSMHKBar.IsBearish() && !pSMHKBar.IsBearish();
|
bool isSMHKSwitchedToBearish = cSMHKBar.IsBearish() && !pSMHKBar.IsBearish();
|
||||||
|
|
||||||
|
//
|
||||||
|
// XSSLC ...
|
||||||
|
|
||||||
|
//
|
||||||
|
bool isSSLCBullish = conditions.sslcUps[cIndex] > conditions.sslcDowns[cIndex];
|
||||||
|
bool isSSLCBullishPrev = conditions.sslcUps[pIndex] > conditions.sslcDowns[pIndex];
|
||||||
|
|
||||||
|
//
|
||||||
|
bool isSSLCBearish = conditions.sslcDowns[cIndex] > conditions.sslcUps[cIndex];
|
||||||
|
bool isSSLCBearishPrev = conditions.sslcDowns[pIndex] > conditions.sslcUps[pIndex];
|
||||||
|
|
||||||
|
//
|
||||||
|
bool isSSLCSwitchedToBullish = isSSLCBullish &&
|
||||||
|
!isSSLCBullishPrev;
|
||||||
|
bool isSSLCSwitchedToBearish = isSSLCBearish &&
|
||||||
|
!isSSLCBearishPrev;
|
||||||
|
|
||||||
//
|
//
|
||||||
// XHULL ...
|
// XHULL ...
|
||||||
|
|
||||||
//
|
//
|
||||||
// XSSLC ...
|
bool isHullUpBullish = conditions.hullUps[cIndex] > conditions.hullUps[pIndex];
|
||||||
|
bool isHullUpBullishPrev = conditions.hullUps[pIndex] > conditions.hullUps[ppIndex];
|
||||||
|
|
||||||
|
//
|
||||||
|
bool isHullUpBearish = conditions.hullUps[cIndex] < conditions.hullUps[pIndex];
|
||||||
|
bool isHullUpBearishPrev = conditions.hullUps[pIndex] < conditions.hullUps[ppIndex];
|
||||||
|
|
||||||
|
//
|
||||||
|
bool isHullDownBullish = conditions.hullDowns[cIndex] > conditions.hullDowns[pIndex];
|
||||||
|
bool isHullDownBullishPrev = conditions.hullDowns[pIndex] > conditions.hullDowns[ppIndex];
|
||||||
|
|
||||||
|
//
|
||||||
|
bool isHullDownBearish = conditions.hullDowns[cIndex] < conditions.hullDowns[pIndex];
|
||||||
|
bool isHullDownBearishPrev = conditions.hullDowns[pIndex] < conditions.hullDowns[ppIndex];
|
||||||
|
|
||||||
|
//
|
||||||
|
bool isHullBullish = isHullUpBullish && isHullDownBullish;
|
||||||
|
bool isHullBullishPrev = isHullUpBullishPrev && isHullDownBullishPrev;
|
||||||
|
|
||||||
|
//
|
||||||
|
bool isHullBearish = isHullUpBearish && isHullDownBearish;
|
||||||
|
bool isHullBearishPrev = isHullUpBearishPrev && isHullDownBearishPrev;
|
||||||
|
|
||||||
|
bool isHullSwitchedToBullish = isHullBullish &&
|
||||||
|
!isHullBullishPrev;
|
||||||
|
bool isHullSwitchedToBearish = isHullBearish &&
|
||||||
|
!isHullBearishPrev;
|
||||||
|
|
||||||
//
|
//
|
||||||
// XICH ...
|
// XICH ...
|
||||||
@@ -4246,6 +4393,22 @@ public:
|
|||||||
conditions.isCurrentMidLineOverLastMidLine = isCurrentMidLineOverLastMidLine;
|
conditions.isCurrentMidLineOverLastMidLine = isCurrentMidLineOverLastMidLine;
|
||||||
conditions.isCurrentMidLineUnderLastMidLine = isCurrentMidLineUnderLastMidLine;
|
conditions.isCurrentMidLineUnderLastMidLine = isCurrentMidLineUnderLastMidLine;
|
||||||
|
|
||||||
|
//
|
||||||
|
conditions.isSSLCBullish = isSSLCBullish;
|
||||||
|
conditions.isSSLCBearish = isSSLCBearish;
|
||||||
|
conditions.isSSLCSwitchedToBullish = isSSLCSwitchedToBullish;
|
||||||
|
conditions.isSSLCSwitchedToBearish = isSSLCSwitchedToBearish;
|
||||||
|
|
||||||
|
//
|
||||||
|
conditions.isHullBullish = isHullBullish;
|
||||||
|
conditions.isHullBearish = isHullBearish;
|
||||||
|
conditions.isHullUpBullish = isHullUpBullish;
|
||||||
|
conditions.isHullUpBearish = isHullUpBearish;
|
||||||
|
conditions.isHullDownBullish = isHullDownBullish;
|
||||||
|
conditions.isHullDownBearish = isHullDownBearish;
|
||||||
|
conditions.isHullSwitchedToBullish = isHullSwitchedToBullish;
|
||||||
|
conditions.isHullSwitchedToBearish = isHullSwitchedToBearish;
|
||||||
|
|
||||||
//
|
//
|
||||||
conditions.isHKBullish = isHKBullish;
|
conditions.isHKBullish = isHKBullish;
|
||||||
conditions.isHKBearish = isHKBearish;
|
conditions.isHKBearish = isHKBearish;
|
||||||
|
|||||||
Reference in New Issue
Block a user