From 366e55a9de1305a0ebc1a333351f8779bf9f6f14 Mon Sep 17 00:00:00 2001 From: Hadi Khazaee Asl Date: Mon, 8 Jul 2024 15:51:35 +0330 Subject: [PATCH] apply Speed Improvement into XPV indicator ... --- Indicators/x-saherelm.xpv.mq5 | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Indicators/x-saherelm.xpv.mq5 b/Indicators/x-saherelm.xpv.mq5 index 038dfbfc..6ea90fe1 100644 --- a/Indicators/x-saherelm.xpv.mq5 +++ b/Indicators/x-saherelm.xpv.mq5 @@ -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); }