apply fix on Helpers Class Calculating buffers for Prevent Large Allocationg Error ...

This commit is contained in:
2024-06-21 17:10:13 +03:30
parent 214601711d
commit 225c0f1ae1
18 changed files with 54 additions and 5 deletions
+3
View File
@@ -662,6 +662,9 @@ private:
{ {
// //
int totalBars = CountBars(); int totalBars = CountBars();
if (totalBars > 1000) {
totalBars = 1000;
}
// //
// Strength Buffer ... // Strength Buffer ...
+3
View File
@@ -299,6 +299,9 @@ private:
{ {
// //
int totalBars = CountBars(); int totalBars = CountBars();
if (totalBars > 1000) {
totalBars = 1000;
}
// //
// Main Buffer ... // Main Buffer ...
+3
View File
@@ -546,6 +546,9 @@ private:
{ {
// //
int totalBars = CountBars(); int totalBars = CountBars();
if (totalBars > 1000) {
totalBars = 1000;
}
// //
// Longs Buffer ... // Longs Buffer ...
+3 -1
View File
@@ -751,7 +751,9 @@ private:
{ {
// //
int totalBars = CountBars(); int totalBars = CountBars();
int calculatedBars = CountCalculatedBars(); if (totalBars > 1000) {
totalBars = 1000;
}
// //
// Long Exit 1 ... // Long Exit 1 ...
+3
View File
@@ -968,6 +968,9 @@ private:
{ {
// //
int totalBars = CountBars(); int totalBars = CountBars();
if (totalBars > 1000) {
totalBars = 1000;
}
// //
// Open ... // Open ...
+3
View File
@@ -1195,6 +1195,9 @@ private:
{ {
// //
int totalBars = CountBars(); int totalBars = CountBars();
if (totalBars > 1000) {
totalBars = 1000;
}
// //
// Open Buffer ... // Open Buffer ...
+3
View File
@@ -642,6 +642,9 @@ private:
{ {
// //
int totalBars = CountBars(); int totalBars = CountBars();
if (totalBars > 1000) {
totalBars = 1000;
}
// //
// Up Buffer ... // Up Buffer ...
+3 -1
View File
@@ -1478,7 +1478,9 @@ private:
{ {
// //
int totalBars = CountBars(); int totalBars = CountBars();
int calculatedBars = CountCalculatedBars(); if (totalBars > 1000) {
totalBars = 1000;
}
// //
// TenkanSen ... // TenkanSen ...
+3
View File
@@ -1057,6 +1057,9 @@ private:
{ {
// //
int totalBars = CountBars(); int totalBars = CountBars();
if (totalBars > 1000) {
totalBars = 1000;
}
// //
// Sar ... // Sar ...
+3
View File
@@ -1453,6 +1453,9 @@ private:
{ {
// //
int totalBars = CountBars(); int totalBars = CountBars();
if (totalBars > 1000) {
totalBars = 1000;
}
// //
// Fast Buffer ... // Fast Buffer ...
+3 -1
View File
@@ -1139,7 +1139,9 @@ private:
{ {
// //
int totalBars = CountBars(); int totalBars = CountBars();
int calculatedBars = CountCalculatedBars(); if (totalBars > 1000) {
totalBars = 1000;
}
// //
// ATR ... // ATR ...
+3
View File
@@ -2812,6 +2812,9 @@ private:
{ {
// //
int totalBars = CountBars(); int totalBars = CountBars();
if (totalBars > 1000) {
totalBars = 1000;
}
// //
// Peaks and Vales ... // Peaks and Vales ...
+3
View File
@@ -599,6 +599,9 @@ private:
{ {
// //
int totalBars = CountBars(); int totalBars = CountBars();
if (totalBars > 1000) {
totalBars = 1000;
}
// //
// Up ... // Up ...
+3 -1
View File
@@ -611,7 +611,9 @@ private:
{ {
// //
int totalBars = CountBars(); int totalBars = CountBars();
int calculatedBars = CountCalculatedBars(); if (totalBars > 1000) {
totalBars = 1000;
}
// //
// Trend ... // Trend ...
+3
View File
@@ -638,6 +638,9 @@ private:
{ {
// //
int totalBars = CountBars(); int totalBars = CountBars();
if (totalBars > 1000) {
totalBars = 1000;
}
// //
// Bullish ... // Bullish ...
+3
View File
@@ -292,6 +292,9 @@ private:
{ {
// //
int totalBars = CountBars(); int totalBars = CountBars();
if (totalBars > 1000) {
totalBars = 1000;
}
// //
// Main Buffer ... // Main Buffer ...
+3 -1
View File
@@ -532,7 +532,9 @@ private:
{ {
// //
int totalBars = CountBars(); int totalBars = CountBars();
int calculatedBars = CountCalculatedBars(); if (totalBars > 1000) {
totalBars = 1000;
}
// //
// Trend ... // Trend ...
+3
View File
@@ -476,6 +476,9 @@ private:
{ {
// //
int totalBars = CountBars(); int totalBars = CountBars();
if (totalBars > 1000) {
totalBars = 1000;
}
// //
// Main Buffer ... // Main Buffer ...