apply latest optimization on indicator helpers classes and also add time tracking configurations into ea ...

This commit is contained in:
2024-07-09 12:40:59 +03:30
parent 47e21cece6
commit ee9f04b817
39 changed files with 499 additions and 399 deletions
+9 -2
View File
@@ -307,7 +307,13 @@ public:
//
// Deconstructor ...
~XSCXADXTDHelper() {}
~XSCXADXTDHelper()
{
//
Clean(bullpBuffer);
Clean(bearpBuffer);
Clean(strengthBuffer);
}
//
// Tools ...
@@ -662,7 +668,8 @@ private:
{
//
int totalBars = CountBars();
if (totalBars > 1000) {
if (totalBars > 1000)
{
totalBars = 1000;
}
+4 -1
View File
@@ -141,7 +141,10 @@ public:
//
// Deconstructor ...
~XSCXAMAHelper() {}
~XSCXAMAHelper() {
//
Clean(mainBuffer);
}
//
// Tools ...
+13 -7
View File
@@ -277,7 +277,12 @@ public:
//
// Deconstructor ...
~XSCXASCTHelper() {}
~XSCXASCTHelper()
{
//
Clean(longsBuffer);
Clean(shortsBuffer);
}
//
// Tools ...
@@ -465,8 +470,8 @@ public:
//
bool GetConditions(
XASCTConditions &conditions, //
int barIndex = 0, //
int loopback = 3 //
int barIndex = 0, //
int loopback = 3 //
)
{
//
@@ -513,14 +518,14 @@ public:
//
bool isLongSignal = NotEmptyZero(conditions.longSignal[cIndex]);
bool isShortSignal = NotEmptyZero(conditions.shortSignal[cIndex]);
//
//
conditions.isLongSignal = isLongSignal;
conditions.isShortSignal = isShortSignal;
//
return result;
}
}
//
// Protected ...
@@ -546,7 +551,8 @@ private:
{
//
int totalBars = CountBars();
if (totalBars > 1000) {
if (totalBars > 1000)
{
totalBars = 1000;
}
+4 -1
View File
@@ -285,7 +285,10 @@ public:
//
// Deconstructor ...
~XSCXATSLHelper() {}
~XSCXATSLHelper()
{
Clean(atslBuffer);
}
//
// Tools ...
+10 -2
View File
@@ -353,7 +353,14 @@ public:
//
// Deconstructor ...
~XSCXCHEHelper() {}
~XSCXCHEHelper()
{
//
Clean(longExit1Buffer);
Clean(longExit2Buffer);
Clean(shortExit1Buffer);
Clean(shortExit2Buffer);
}
//
// Tools ...
@@ -751,7 +758,8 @@ private:
{
//
int totalBars = CountBars();
if (totalBars > 1000) {
if (totalBars > 1000)
{
totalBars = 1000;
}
+16 -1
View File
@@ -2218,7 +2218,22 @@ public:
//
// Deconstructor ...
~XSCXCHMAHelper() {}
~XSCXCHMAHelper()
{
//
Clean(fastBuffer);
Clean(slowBuffer);
Clean(cFastBuffer);
Clean(cSlowBuffer);
Clean(sFastBuffer);
Clean(sSlowBuffer);
Clean(mFastBuffer);
Clean(mSlowBuffer);
Clean(lFastBuffer);
Clean(lSlowBuffer);
Clean(hFastBuffer);
Clean(hSlowBuffer);
}
//
// Tools ...
+6 -1
View File
@@ -263,7 +263,12 @@ public:
//
// Deconstructor ...
~XSCXDMNTHelper() {}
~XSCXDMNTHelper()
{
//
Clean(bullBuffer);
Clean(bearBuffer);
}
//
// Tools ...
+14 -2
View File
@@ -164,7 +164,18 @@ public:
//
// Deconstructor ...
~XSCXDONHelper() {}
~XSCXDONHelper()
{
//
Clean(upperOBuffer);
Clean(lowerOBuffer);
Clean(upperCBuffer);
Clean(lowerCBuffer);
Clean(upperHBuffer);
Clean(lowerHBuffer);
Clean(upperLBuffer);
Clean(lowerLBuffer);
}
//
// Tools ...
@@ -968,7 +979,8 @@ private:
{
//
int totalBars = CountBars();
if (totalBars > 1000) {
if (totalBars > 1000)
{
totalBars = 1000;
}
+15 -3
View File
@@ -335,7 +335,18 @@ public:
//
// Deconstructor ...
~XSCXHKHelper() {}
~XSCXHKHelper()
{
//
Clean(openBuffer);
Clean(highBuffer);
Clean(lowBuffer);
Clean(closeBuffer);
Clean(smOpenBuffer);
Clean(smHighBuffer);
Clean(smLowBuffer);
Clean(smCloseBuffer);
}
//
// Tools ...
@@ -1160,7 +1171,7 @@ public:
conditions.isSMHKSwitchedToBullish = isSMHKSwitchedToBullish;
conditions.isSMHKBearish = isSMHKBearish;
conditions.isSMHKSwitchedToBearish = isSMHKSwitchedToBearish;
//
return result;
}
@@ -1195,7 +1206,8 @@ private:
{
//
int totalBars = CountBars();
if (totalBars > 1000) {
if (totalBars > 1000)
{
totalBars = 1000;
}
+3 -1
View File
@@ -292,7 +292,9 @@ public:
//
// Deconstructor ...
~XSCXHTDHelper() {}
~XSCXHTDHelper() {
Clean(htdBuffer);
}
//
// Tools ...
+8 -2
View File
@@ -337,7 +337,12 @@ public:
//
// Deconstructor ...
~XSCXHULLHelper() {}
~XSCXHULLHelper()
{
//
Clean(upBuffer);
Clean(downBuffer);
}
//
// Tools ...
@@ -642,7 +647,8 @@ private:
{
//
int totalBars = CountBars();
if (totalBars > 1000) {
if (totalBars > 1000)
{
totalBars = 1000;
}
+13 -2
View File
@@ -770,7 +770,17 @@ public:
//
// Deconstructor ...
~XSCXICHHelper() {}
~XSCXICHHelper()
{
//
Clean(kijunSenBuffer);
Clean(tenkanSenBuffer);
Clean(chikouSpanBuffer);
Clean(senkouSpanABuffer);
Clean(senkouSpanBBuffer);
Clean(futureSenkouSpanABuffer);
Clean(futureSenkouSpanBBuffer);
}
//
// Tools ...
@@ -1478,7 +1488,8 @@ private:
{
//
int totalBars = CountBars();
if (totalBars > 1000) {
if (totalBars > 1000)
{
totalBars = 1000;
}
+10 -2
View File
@@ -542,7 +542,14 @@ public:
//
// Deconstructor ...
~XSCXMCHelper() {}
~XSCXMCHelper()
{
//
Clean(sarBuffer);
Clean(fastBuffer);
Clean(slowBuffer);
Clean(verifierBuffer);
}
//
// Tools ...
@@ -1057,7 +1064,8 @@ private:
{
//
int totalBars = CountBars();
if (totalBars > 1000) {
if (totalBars > 1000)
{
totalBars = 1000;
}
+18 -1
View File
@@ -455,7 +455,24 @@ public:
//
// Deconstructor ...
~XSCXMRBHelper() {}
~XSCXMRBHelper()
{
//
Clean(fastBuffer);
Clean(slowBuffer);
Clean(r1FastBuffer);
Clean(r1SlowBuffer);
Clean(r2FastBuffer);
Clean(r2SlowBuffer);
Clean(r3FastBuffer);
Clean(r3SlowBuffer);
Clean(r4FastBuffer);
Clean(r4SlowBuffer);
Clean(r5FastBuffer);
Clean(r5SlowBuffer);
Clean(r6FastBuffer);
Clean(r6SlowBuffer);
}
//
// Tools ...
+21 -2
View File
@@ -272,7 +272,25 @@ public:
//
// Deconstructor ...
~XSCXOSCHelper() {}
~XSCXOSCHelper()
{
//
Clean(atrBuffer);
Clean(rsiBuffer);
Clean(cciBuffer);
Clean(sarBuffer);
Clean(bullPBuffer);
Clean(bearPBuffer);
Clean(stddevBuffer);
Clean(volumeBuffer);
Clean(rviMainBuffer);
Clean(momentumBuffer);
Clean(macdMainBuffer);
Clean(rviSignalBuffer);
Clean(stochMainBuffer);
Clean(macdSignalBuffer);
Clean(stochSignalBuffer);
}
//
// Tools ...
@@ -1139,7 +1157,8 @@ private:
{
//
int totalBars = CountBars();
if (totalBars > 1000) {
if (totalBars > 1000)
{
totalBars = 1000;
}
+21 -1
View File
@@ -964,7 +964,27 @@ public:
//
// Deconstructor ...
~XSCXPVHelper() {}
~XSCXPVHelper()
{
//
Clean(fib1Buffer);
Clean(fib2Buffer);
Clean(fib3Buffer);
Clean(fib4Buffer);
Clean(fib5Buffer);
Clean(scHHBuffer);
Clean(scLLBuffer);
Clean(mcHHBuffer);
Clean(mcLLBuffer);
Clean(lcHHBuffer);
Clean(lcLLBuffer);
Clean(hcHHBuffer);
Clean(hcLLBuffer);
Clean(peaksBuffer);
Clean(valesBuffer);
Clean(supportBuffer);
Clean(resistanceBuffer);
}
//
// Tools ...
+10 -1
View File
@@ -405,7 +405,16 @@ public:
//
// Deconstructor ...
~XSCXRLHelper() {}
~XSCXRLHelper()
{
//
Clean(fastBuffer);
Clean(slowBuffer);
Clean(verifierBuffer);
Clean(fastStateBuffer);
Clean(slowStateBuffer);
Clean(verifierStateBuffer);
}
//
// Tools ...
+6 -1
View File
@@ -282,7 +282,12 @@ public:
//
// Deconstructor ...
~XSCXSLNHelper() {}
~XSCXSLNHelper()
{
//
Clean(slnBuffer);
Clean(stateBuffer);
}
//
// Tools ...
+8 -2
View File
@@ -309,7 +309,12 @@ public:
//
// Deconstructor ...
~XSCXSSLCHelper() {}
~XSCXSSLCHelper()
{
//
Clean(upBuffer);
Clean(downBuffer);
}
//
// Tools ...
@@ -599,7 +604,8 @@ private:
{
//
int totalBars = CountBars();
if (totalBars > 1000) {
if (totalBars > 1000)
{
totalBars = 1000;
}
+8 -2
View File
@@ -298,7 +298,12 @@ public:
//
// Deconstructor ...
~XSCXSTRHelper() {}
~XSCXSTRHelper()
{
//
Clean(trendBuffer);
Clean(stateBuffer);
}
//
// Tools ...
@@ -611,7 +616,8 @@ private:
{
//
int totalBars = CountBars();
if (totalBars > 1000) {
if (totalBars > 1000)
{
totalBars = 1000;
}
+9 -2
View File
@@ -306,7 +306,13 @@ public:
//
// Deconstructor ...
~XSCXTDHelper() {}
~XSCXTDHelper()
{
//
Clean(signalBuffer);
Clean(bullishBuffer);
Clean(bearishBuffer);
}
//
// Tools ...
@@ -638,7 +644,8 @@ private:
{
//
int totalBars = CountBars();
if (totalBars > 1000) {
if (totalBars > 1000)
{
totalBars = 1000;
}
+3 -1
View File
@@ -135,7 +135,9 @@ public:
//
// Deconstructor ...
~XSCXTMHelper() {}
~XSCXTMHelper() {
Clean(mainBuffer);
}
//
// Tools ...
+3 -1
View File
@@ -279,7 +279,9 @@ public:
//
// Deconstructor ...
~XSCXVLMHelper() {}
~XSCXVLMHelper() {
Clean(volumeBuffer);
}
//
// Tools ...
+10 -2
View File
@@ -160,7 +160,14 @@ public:
//
// Deconstructor ...
~XSCXZGHelper() {}
~XSCXZGHelper()
{
//
Clean(mainBuffer);
Clean(lowsBuffer);
Clean(highsBuffer);
Clean(PeaksAndValesBuffer);
}
//
// Tools ...
@@ -476,7 +483,8 @@ private:
{
//
int totalBars = CountBars();
if (totalBars > 1000) {
if (totalBars > 1000)
{
totalBars = 1000;
}