This commit is contained in:
2024-06-23 08:29:09 +03:30
parent de8143585b
commit 96c154701c
2 changed files with 98 additions and 85 deletions
+3
View File
@@ -138,7 +138,9 @@ int OnCalculate(
//
if (ArrayRange(work, 0) != rates_total)
{
//
ArrayResize(work, rates_total);
ArrayResize(stateBuffer, rates_total);
}
//
@@ -153,6 +155,7 @@ int OnCalculate(
work[i][lHi] = high[i];
work[i][lLo] = low[i];
work[i][trend] = -1;
stateBuffer[i] = -1;
continue;
}