apply latest optimization on indicator helpers classes and also add time tracking configurations into ea ...
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user