This commit is contained in:
2025-03-09 01:03:44 +03:30
parent f428892c6d
commit d14f07ba80
8 changed files with 573 additions and 31 deletions
+44 -2
View File
@@ -24,6 +24,7 @@
// Imports ...
#include "../Helpers/x-saherelm.x121.x3ma.helper.mq5"
#include "../Helpers/x-saherelm.x121.xatr.helper.mq5"
#include "../Helpers/x-saherelm.x121.xcc.helper.mq5"
#include "../Helpers/x-saherelm.x121.xche.helper.mq5"
#include "../Helpers/x-saherelm.x121.xdon.helper.mq5"
#include "../Helpers/x-saherelm.x121.xhk.helper.mq5"
@@ -39,6 +40,7 @@ struct X121Inputs
//
// Props ...
bool showRSI;
X121XCCInputs xccInputs;
X121XPVInputs xpvInputs;
X121XHKInputs xhkInputs;
X121XATRInputs xatrInputs;
@@ -65,6 +67,7 @@ struct X121Inputs
void Clean()
{
//
xccInputs.Clean();
xpvInputs.Clean();
xhkInputs.Clean();
xatrInputs.Clean();
@@ -84,6 +87,7 @@ struct X121Inputs
void Default()
{
//
xccInputs.Default();
xpvInputs.Default();
xhkInputs.Default();
xatrInputs.Default();
@@ -108,6 +112,7 @@ struct X121Inputs
//
result =
//
xccInputs.IsValid() &&
xpvInputs.IsValid() &&
xhkInputs.IsValid() &&
xatrInputs.IsValid() &&
@@ -223,6 +228,8 @@ struct X121Conditions
double xhkRawHighBuffer[];
double xhkSMCloseBuffer[];
double vwapVolumeBuffer[];
double peaksGoldenBuffer[];
double valesGoldenBuffer[];
double xhkRawCloseBuffer[];
double atrUpperRawBuffer[];
double atrLowerRawBuffer[];
@@ -623,11 +630,11 @@ struct X121Conditions
Clean(adxBuffer);
Clean(adxPBuffer);
Clean(adxMBuffer);
Clean(volumeBuffer);
Clean(peaksBuffer);
Clean(valesBuffer);
Clean(strUpBuffer);
Clean(downTBuffer);
Clean(volumeBuffer);
Clean(strDownBuffer);
Clean(vwapMidBuffer);
Clean(upTrendBuffer);
@@ -654,6 +661,8 @@ struct X121Conditions
Clean(xhkRawHighBuffer);
Clean(xhkSMCloseBuffer);
Clean(vwapVolumeBuffer);
Clean(peaksGoldenBuffer);
Clean(valesGoldenBuffer);
Clean(xhkRawCloseBuffer);
Clean(atrUpperRawBuffer);
Clean(atrLowerRawBuffer);
@@ -696,11 +705,11 @@ struct X121Conditions
ArraySetAsSeries(adxBuffer, true);
ArraySetAsSeries(adxPBuffer, true);
ArraySetAsSeries(adxMBuffer, true);
ArraySetAsSeries(volumeBuffer, true);
ArraySetAsSeries(peaksBuffer, true);
ArraySetAsSeries(valesBuffer, true);
ArraySetAsSeries(strUpBuffer, true);
ArraySetAsSeries(downTBuffer, true);
ArraySetAsSeries(volumeBuffer, true);
ArraySetAsSeries(strDownBuffer, true);
ArraySetAsSeries(vwapMidBuffer, true);
ArraySetAsSeries(upTrendBuffer, true);
@@ -727,6 +736,8 @@ struct X121Conditions
ArraySetAsSeries(xhkRawHighBuffer, true);
ArraySetAsSeries(xhkSMCloseBuffer, true);
ArraySetAsSeries(vwapVolumeBuffer, true);
ArraySetAsSeries(peaksGoldenBuffer, true);
ArraySetAsSeries(valesGoldenBuffer, true);
ArraySetAsSeries(xhkRawCloseBuffer, true);
ArraySetAsSeries(atrUpperRawBuffer, true);
ArraySetAsSeries(atrLowerRawBuffer, true);
@@ -2383,6 +2394,7 @@ class XCX121Helper : public XCBase
//
// Helpers ...
XCX121XCCHelper *xccHelper;
XCX121XPVHelper *xpvHelper;
XCX121XHKHelper *xhkHelper;
XCX121XATRHelper *xatrHelper;
@@ -2405,6 +2417,7 @@ class XCX121Helper : public XCBase
{
//
mInputs.Clean();
xccInputs.Clean();
xpvInputs.Clean();
xhkInputs.Clean();
xatrInputs.Clean();
@@ -2416,6 +2429,7 @@ class XCX121Helper : public XCBase
xtrendInputs.Clean();
//
delete xccHelper;
delete xpvHelper;
delete xhkHelper;
delete xatrHelper;
@@ -2427,6 +2441,7 @@ class XCX121Helper : public XCBase
delete xtrendHelper;
//
ZeroMemory(xccHelper);
ZeroMemory(xpvHelper);
ZeroMemory(xhkHelper);
ZeroMemory(xatrHelper);
@@ -2490,6 +2505,7 @@ class XCX121Helper : public XCBase
//
mInputs = inputs;
xccInputs = inputs.xccInputs;
xpvInputs = inputs.xpvInputs;
xhkInputs = inputs.xhkInputs;
xatrInputs = inputs.xatrInputs;
@@ -2503,6 +2519,19 @@ class XCX121Helper : public XCBase
//
// Initial Helpers ...
//
// XCC ...
xccHelper = new XCX121XCCHelper();
result = xccHelper.Init(
symbol,
period,
xccInputs //
);
if (!result)
{
return result;
}
//
// XPV ...
xpvHelper = new XCX121XPVHelper();
@@ -3086,6 +3115,18 @@ class XCX121Helper : public XCBase
conditions.valesBuffer //
);
//
Copy(
xpvConditions.peaksGoldenBuffer,
conditions.peaksGoldenBuffer //
);
//
Copy(
xpvConditions.valesGoldenBuffer,
conditions.valesGoldenBuffer //
);
//
Copy(
xpvConditions.sarBuffer,
@@ -4447,6 +4488,7 @@ class XCX121Helper : public XCBase
//
// Inputs ...
X121Inputs mInputs;
X121XCCInputs xccInputs;
X121XPVInputs xpvInputs;
X121XHKInputs xhkInputs;
X121XATRInputs xatrInputs;
+1 -1
View File
@@ -195,8 +195,8 @@ class XCX121XCCHelper : public XCBaseHelper
mInputs.upColor, // Up Color
mInputs.downColor, // Down Color
mInputs.lineColor, // Line mode and Doji candlestick Color
mInputs.bearishColor, // Bullish Color
mInputs.bullishColor, // Bearish Color
mInputs.bearishColor, // Bullish Color
mInputs.volumesColor, // Volumes Color
//
// Presentation ...
+1 -1
View File
@@ -110,7 +110,7 @@ struct X121XVWAPInputs
//
vwapFastLength = 20;
vwapMidLength = 50;
vwapSlowLength = 100;
vwapSlowLength = 200;
vwapAppliedTo = PRICE_CLOSE;
//