Refactor validation tests for various indicators to utilize shared test data structure

This commit is contained in:
Miha Kralj
2025-12-12 13:47:57 -08:00
parent e6033638ad
commit cea3e0c46d
29 changed files with 1167 additions and 1804 deletions
+1 -1
View File
@@ -173,7 +173,7 @@ public static class IndicatorExtensions
using Pen defaultPen = new(series.Color, series.Width) { DashStyle = ConvertLineStyleToDashStyle(series.Style) };
using Pen coldPen = new(series.Color, series.Width) { DashStyle = DashStyle.Dot };
int hotCount = indicator.Count - warmupPeriod - rightIndex;
int hotCount = (warmupPeriod >= 0) ? (indicator.Count - warmupPeriod - rightIndex) : 0;
// Draw the hot part
if (hotCount > 0)