CMO - Chande Momentum Oscillator

This commit is contained in:
Miha Kralj
2024-10-22 05:46:48 -07:00
parent e3d7cd9896
commit 7748bdd101
7 changed files with 163 additions and 5 deletions
+1 -1
View File
@@ -345,7 +345,7 @@ public class SkenderTests
var atrValues = quotes.GetAtr(lookbackPeriods: period).Select(i => i.Atr.Null2NaN()!);
const int AdditionalPeriods = 500;
for (int i = QL.Length - 1; i > period + AdditionalPeriods; i--)
for (int i = QL.Length - 1; i > 1000 + AdditionalPeriods; i--)
{
Assert.InRange(atrValues.ElementAt(i) - QL[i].Value, -range, range);
}