apply Speed Improvement into XPV indicator ...

This commit is contained in:
2024-07-08 15:51:35 +03:30
parent 6d2501697e
commit 366e55a9de
+7 -4
View File
@@ -39,25 +39,21 @@ input group "Makret Cycles";
input group "Short";
input ENUM_X_PERIOD_METHOD scMethod = X_PERIOD_AUTO; // How to Find Period
input ENUM_TIMEFRAMES scPeriod = NULL; // Time Period
// input int scLength = 0; // Length
//
input group "Medium";
input ENUM_X_PERIOD_METHOD mcMethod = X_PERIOD_AUTO; // How to Find Period
input ENUM_TIMEFRAMES mcPeriod = NULL; // Time Period
// input int mcLength = 0; // Length
//
input group "Long";
input ENUM_X_PERIOD_METHOD lcMethod = X_PERIOD_AUTO; // How to Find Period
input ENUM_TIMEFRAMES lcPeriod = NULL; // Time Period
// input int lcLength = 0; // Length
//
input group "Hind";
input ENUM_X_PERIOD_METHOD hcMethod = X_PERIOD_AUTO; // How to Find Period
input ENUM_TIMEFRAMES hcPeriod = NULL; // Time Period
// input int hcLength = 0; // Length
//
input group "Fibonacci";
@@ -511,6 +507,13 @@ int OnCalculate(
// Main Loop ...
for (int i = limit - 1; i >= 0 && !IsStopped(); i--)
{
//
// For Improve Indicator Speed ...
if (i > 1000) {
continue;
}
//
CalculateBuffers(i);
}