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
+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;
}