apply fix on Helpers Class Calculating buffers for Prevent Large Allocationg Error ...
This commit is contained in:
@@ -662,6 +662,9 @@ private:
|
|||||||
{
|
{
|
||||||
//
|
//
|
||||||
int totalBars = CountBars();
|
int totalBars = CountBars();
|
||||||
|
if (totalBars > 1000) {
|
||||||
|
totalBars = 1000;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Strength Buffer ...
|
// Strength Buffer ...
|
||||||
|
|||||||
@@ -299,6 +299,9 @@ private:
|
|||||||
{
|
{
|
||||||
//
|
//
|
||||||
int totalBars = CountBars();
|
int totalBars = CountBars();
|
||||||
|
if (totalBars > 1000) {
|
||||||
|
totalBars = 1000;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Main Buffer ...
|
// Main Buffer ...
|
||||||
|
|||||||
@@ -546,6 +546,9 @@ private:
|
|||||||
{
|
{
|
||||||
//
|
//
|
||||||
int totalBars = CountBars();
|
int totalBars = CountBars();
|
||||||
|
if (totalBars > 1000) {
|
||||||
|
totalBars = 1000;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Longs Buffer ...
|
// Longs Buffer ...
|
||||||
|
|||||||
@@ -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 ...
|
||||||
|
|||||||
@@ -968,6 +968,9 @@ private:
|
|||||||
{
|
{
|
||||||
//
|
//
|
||||||
int totalBars = CountBars();
|
int totalBars = CountBars();
|
||||||
|
if (totalBars > 1000) {
|
||||||
|
totalBars = 1000;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Open ...
|
// Open ...
|
||||||
|
|||||||
@@ -1195,6 +1195,9 @@ private:
|
|||||||
{
|
{
|
||||||
//
|
//
|
||||||
int totalBars = CountBars();
|
int totalBars = CountBars();
|
||||||
|
if (totalBars > 1000) {
|
||||||
|
totalBars = 1000;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Open Buffer ...
|
// Open Buffer ...
|
||||||
|
|||||||
@@ -642,6 +642,9 @@ private:
|
|||||||
{
|
{
|
||||||
//
|
//
|
||||||
int totalBars = CountBars();
|
int totalBars = CountBars();
|
||||||
|
if (totalBars > 1000) {
|
||||||
|
totalBars = 1000;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Up Buffer ...
|
// Up Buffer ...
|
||||||
|
|||||||
@@ -1478,7 +1478,9 @@ private:
|
|||||||
{
|
{
|
||||||
//
|
//
|
||||||
int totalBars = CountBars();
|
int totalBars = CountBars();
|
||||||
int calculatedBars = CountCalculatedBars();
|
if (totalBars > 1000) {
|
||||||
|
totalBars = 1000;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// TenkanSen ...
|
// TenkanSen ...
|
||||||
|
|||||||
@@ -1057,6 +1057,9 @@ private:
|
|||||||
{
|
{
|
||||||
//
|
//
|
||||||
int totalBars = CountBars();
|
int totalBars = CountBars();
|
||||||
|
if (totalBars > 1000) {
|
||||||
|
totalBars = 1000;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Sar ...
|
// Sar ...
|
||||||
|
|||||||
@@ -1453,6 +1453,9 @@ private:
|
|||||||
{
|
{
|
||||||
//
|
//
|
||||||
int totalBars = CountBars();
|
int totalBars = CountBars();
|
||||||
|
if (totalBars > 1000) {
|
||||||
|
totalBars = 1000;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Fast Buffer ...
|
// Fast Buffer ...
|
||||||
|
|||||||
@@ -1139,7 +1139,9 @@ private:
|
|||||||
{
|
{
|
||||||
//
|
//
|
||||||
int totalBars = CountBars();
|
int totalBars = CountBars();
|
||||||
int calculatedBars = CountCalculatedBars();
|
if (totalBars > 1000) {
|
||||||
|
totalBars = 1000;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// ATR ...
|
// ATR ...
|
||||||
|
|||||||
@@ -2812,6 +2812,9 @@ private:
|
|||||||
{
|
{
|
||||||
//
|
//
|
||||||
int totalBars = CountBars();
|
int totalBars = CountBars();
|
||||||
|
if (totalBars > 1000) {
|
||||||
|
totalBars = 1000;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Peaks and Vales ...
|
// Peaks and Vales ...
|
||||||
|
|||||||
@@ -599,6 +599,9 @@ private:
|
|||||||
{
|
{
|
||||||
//
|
//
|
||||||
int totalBars = CountBars();
|
int totalBars = CountBars();
|
||||||
|
if (totalBars > 1000) {
|
||||||
|
totalBars = 1000;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Up ...
|
// Up ...
|
||||||
|
|||||||
@@ -611,7 +611,9 @@ private:
|
|||||||
{
|
{
|
||||||
//
|
//
|
||||||
int totalBars = CountBars();
|
int totalBars = CountBars();
|
||||||
int calculatedBars = CountCalculatedBars();
|
if (totalBars > 1000) {
|
||||||
|
totalBars = 1000;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Trend ...
|
// Trend ...
|
||||||
|
|||||||
@@ -638,6 +638,9 @@ private:
|
|||||||
{
|
{
|
||||||
//
|
//
|
||||||
int totalBars = CountBars();
|
int totalBars = CountBars();
|
||||||
|
if (totalBars > 1000) {
|
||||||
|
totalBars = 1000;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Bullish ...
|
// Bullish ...
|
||||||
|
|||||||
@@ -292,6 +292,9 @@ private:
|
|||||||
{
|
{
|
||||||
//
|
//
|
||||||
int totalBars = CountBars();
|
int totalBars = CountBars();
|
||||||
|
if (totalBars > 1000) {
|
||||||
|
totalBars = 1000;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Main Buffer ...
|
// Main Buffer ...
|
||||||
|
|||||||
@@ -532,7 +532,9 @@ private:
|
|||||||
{
|
{
|
||||||
//
|
//
|
||||||
int totalBars = CountBars();
|
int totalBars = CountBars();
|
||||||
int calculatedBars = CountCalculatedBars();
|
if (totalBars > 1000) {
|
||||||
|
totalBars = 1000;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Trend ...
|
// Trend ...
|
||||||
|
|||||||
@@ -476,6 +476,9 @@ private:
|
|||||||
{
|
{
|
||||||
//
|
//
|
||||||
int totalBars = CountBars();
|
int totalBars = CountBars();
|
||||||
|
if (totalBars > 1000) {
|
||||||
|
totalBars = 1000;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Main Buffer ...
|
// Main Buffer ...
|
||||||
|
|||||||
Reference in New Issue
Block a user