diff --git a/Helpers/x-saherelm.xadxtd.helper.mq5 b/Helpers/x-saherelm.xadxtd.helper.mq5 index 59b463ed..206b20ed 100644 --- a/Helpers/x-saherelm.xadxtd.helper.mq5 +++ b/Helpers/x-saherelm.xadxtd.helper.mq5 @@ -662,6 +662,9 @@ private: { // int totalBars = CountBars(); + if (totalBars > 1000) { + totalBars = 1000; + } // // Strength Buffer ... diff --git a/Helpers/x-saherelm.xama.helper.mq5 b/Helpers/x-saherelm.xama.helper.mq5 index 227800b5..a394f6cd 100644 --- a/Helpers/x-saherelm.xama.helper.mq5 +++ b/Helpers/x-saherelm.xama.helper.mq5 @@ -299,6 +299,9 @@ private: { // int totalBars = CountBars(); + if (totalBars > 1000) { + totalBars = 1000; + } // // Main Buffer ... diff --git a/Helpers/x-saherelm.xasct.helper.mq5 b/Helpers/x-saherelm.xasct.helper.mq5 index 9cc3fd3c..1352885c 100644 --- a/Helpers/x-saherelm.xasct.helper.mq5 +++ b/Helpers/x-saherelm.xasct.helper.mq5 @@ -546,6 +546,9 @@ private: { // int totalBars = CountBars(); + if (totalBars > 1000) { + totalBars = 1000; + } // // Longs Buffer ... diff --git a/Helpers/x-saherelm.xche.helper.mq5 b/Helpers/x-saherelm.xche.helper.mq5 index 894776aa..a3ac938a 100644 --- a/Helpers/x-saherelm.xche.helper.mq5 +++ b/Helpers/x-saherelm.xche.helper.mq5 @@ -751,7 +751,9 @@ private: { // int totalBars = CountBars(); - int calculatedBars = CountCalculatedBars(); + if (totalBars > 1000) { + totalBars = 1000; + } // // Long Exit 1 ... diff --git a/Helpers/x-saherelm.xdon.helper.mq5 b/Helpers/x-saherelm.xdon.helper.mq5 index 3e7355d0..c7ec287a 100644 --- a/Helpers/x-saherelm.xdon.helper.mq5 +++ b/Helpers/x-saherelm.xdon.helper.mq5 @@ -968,6 +968,9 @@ private: { // int totalBars = CountBars(); + if (totalBars > 1000) { + totalBars = 1000; + } // // Open ... diff --git a/Helpers/x-saherelm.xhk.helper.mq5 b/Helpers/x-saherelm.xhk.helper.mq5 index 3be5a92c..29445c8b 100644 --- a/Helpers/x-saherelm.xhk.helper.mq5 +++ b/Helpers/x-saherelm.xhk.helper.mq5 @@ -1195,6 +1195,9 @@ private: { // int totalBars = CountBars(); + if (totalBars > 1000) { + totalBars = 1000; + } // // Open Buffer ... diff --git a/Helpers/x-saherelm.xhull.helper.mq5 b/Helpers/x-saherelm.xhull.helper.mq5 index 85413c48..741e23d2 100644 --- a/Helpers/x-saherelm.xhull.helper.mq5 +++ b/Helpers/x-saherelm.xhull.helper.mq5 @@ -642,6 +642,9 @@ private: { // int totalBars = CountBars(); + if (totalBars > 1000) { + totalBars = 1000; + } // // Up Buffer ... diff --git a/Helpers/x-saherelm.xich.helper.mq5 b/Helpers/x-saherelm.xich.helper.mq5 index 717ed6a6..30e060e4 100644 --- a/Helpers/x-saherelm.xich.helper.mq5 +++ b/Helpers/x-saherelm.xich.helper.mq5 @@ -1478,7 +1478,9 @@ private: { // int totalBars = CountBars(); - int calculatedBars = CountCalculatedBars(); + if (totalBars > 1000) { + totalBars = 1000; + } // // TenkanSen ... diff --git a/Helpers/x-saherelm.xmc.helper.mq5 b/Helpers/x-saherelm.xmc.helper.mq5 index 033867a9..b2dcdf50 100644 --- a/Helpers/x-saherelm.xmc.helper.mq5 +++ b/Helpers/x-saherelm.xmc.helper.mq5 @@ -1057,6 +1057,9 @@ private: { // int totalBars = CountBars(); + if (totalBars > 1000) { + totalBars = 1000; + } // // Sar ... diff --git a/Helpers/x-saherelm.xmrb.helper.mq5 b/Helpers/x-saherelm.xmrb.helper.mq5 index ccd73324..4c4423ca 100644 --- a/Helpers/x-saherelm.xmrb.helper.mq5 +++ b/Helpers/x-saherelm.xmrb.helper.mq5 @@ -1453,6 +1453,9 @@ private: { // int totalBars = CountBars(); + if (totalBars > 1000) { + totalBars = 1000; + } // // Fast Buffer ... diff --git a/Helpers/x-saherelm.xosc.helper.mq5 b/Helpers/x-saherelm.xosc.helper.mq5 index 20f738ec..8de18fd1 100644 --- a/Helpers/x-saherelm.xosc.helper.mq5 +++ b/Helpers/x-saherelm.xosc.helper.mq5 @@ -1139,7 +1139,9 @@ private: { // int totalBars = CountBars(); - int calculatedBars = CountCalculatedBars(); + if (totalBars > 1000) { + totalBars = 1000; + } // // ATR ... diff --git a/Helpers/x-saherelm.xpv.helper.mq5 b/Helpers/x-saherelm.xpv.helper.mq5 index b0f91e6a..9df5fdb3 100644 --- a/Helpers/x-saherelm.xpv.helper.mq5 +++ b/Helpers/x-saherelm.xpv.helper.mq5 @@ -2812,6 +2812,9 @@ private: { // int totalBars = CountBars(); + if (totalBars > 1000) { + totalBars = 1000; + } // // Peaks and Vales ... diff --git a/Helpers/x-saherelm.xsslc.helper.mq5 b/Helpers/x-saherelm.xsslc.helper.mq5 index 31b51244..d9b7049c 100644 --- a/Helpers/x-saherelm.xsslc.helper.mq5 +++ b/Helpers/x-saherelm.xsslc.helper.mq5 @@ -599,6 +599,9 @@ private: { // int totalBars = CountBars(); + if (totalBars > 1000) { + totalBars = 1000; + } // // Up ... diff --git a/Helpers/x-saherelm.xstr.helper.mq5 b/Helpers/x-saherelm.xstr.helper.mq5 index 2fdaf48b..61d9867f 100644 --- a/Helpers/x-saherelm.xstr.helper.mq5 +++ b/Helpers/x-saherelm.xstr.helper.mq5 @@ -611,7 +611,9 @@ private: { // int totalBars = CountBars(); - int calculatedBars = CountCalculatedBars(); + if (totalBars > 1000) { + totalBars = 1000; + } // // Trend ... diff --git a/Helpers/x-saherelm.xtd.helper.mq5 b/Helpers/x-saherelm.xtd.helper.mq5 index 1103f19a..4a4aacf6 100644 --- a/Helpers/x-saherelm.xtd.helper.mq5 +++ b/Helpers/x-saherelm.xtd.helper.mq5 @@ -638,6 +638,9 @@ private: { // int totalBars = CountBars(); + if (totalBars > 1000) { + totalBars = 1000; + } // // Bullish ... diff --git a/Helpers/x-saherelm.xtm.helper.mq5 b/Helpers/x-saherelm.xtm.helper.mq5 index a55a04b3..b8e1c7c4 100644 --- a/Helpers/x-saherelm.xtm.helper.mq5 +++ b/Helpers/x-saherelm.xtm.helper.mq5 @@ -292,6 +292,9 @@ private: { // int totalBars = CountBars(); + if (totalBars > 1000) { + totalBars = 1000; + } // // Main Buffer ... diff --git a/Helpers/x-saherelm.xvlm.helper.mq5 b/Helpers/x-saherelm.xvlm.helper.mq5 index 48149c7f..2b9db8ec 100644 --- a/Helpers/x-saherelm.xvlm.helper.mq5 +++ b/Helpers/x-saherelm.xvlm.helper.mq5 @@ -532,7 +532,9 @@ private: { // int totalBars = CountBars(); - int calculatedBars = CountCalculatedBars(); + if (totalBars > 1000) { + totalBars = 1000; + } // // Trend ... diff --git a/Helpers/x-saherelm.xzg.helper.mq5 b/Helpers/x-saherelm.xzg.helper.mq5 index a51158d2..a68318d8 100644 --- a/Helpers/x-saherelm.xzg.helper.mq5 +++ b/Helpers/x-saherelm.xzg.helper.mq5 @@ -476,6 +476,9 @@ private: { // int totalBars = CountBars(); + if (totalBars > 1000) { + totalBars = 1000; + } // // Main Buffer ...