Update calculations, indicators, strategies, and tests for trends

This commit is contained in:
Miha Kralj
2023-05-10 14:13:03 -07:00
parent 2defde9d94
commit 2b71b307d5
6 changed files with 272 additions and 358 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ public class Tulip_Test
double[][] arrin = { inhigh, inlow, inclose };
double[][] arrout = { outdata };
ATR_Series QL = new(bars, period, false);
ATR_Series QL = new(bars, period:period, useNaN:false);
Tulip.Indicators.atr.Run(inputs: arrin, options: new double[] { period }, outputs: arrout);
//Tulip ATR doesn't use warm-up SMA, compensating with 200 warming bars
for (int i = QL.Length - 1; i > 200+skip; i--)