style patterns

This commit is contained in:
Miha Kralj
2026-01-25 16:01:45 -08:00
parent 2836f253c4
commit e59665c8f0
399 changed files with 6892 additions and 1323 deletions
@@ -211,7 +211,7 @@ public class VwapbandsIndicatorTests
// Same prices but different volume distributions
// Process both bars for each indicator
// Indicator1: high volume on low price, low volume on high price
indicator1.HistoricalData.AddBar(now, 100, 102, 98, 100, 10000);
indicator1.ProcessUpdate(new UpdateArgs(UpdateReason.HistoricalBar));
@@ -231,4 +231,4 @@ public class VwapbandsIndicatorTests
// VWAP2 should be higher (weighted toward 110 due to high volume at high price)
Assert.True(vwap1 < vwap2, $"VWAP1 ({vwap1}) should be less than VWAP2 ({vwap2}) due to volume weighting");
}
}
}
@@ -76,4 +76,4 @@ public class VwapbandsIndicator : Indicator, IWatchlistIndicator
Lower2Series!.SetValue(vwapbands.Lower2.Value, vwapbands.IsHot, ShowColdValues);
WidthSeries!.SetValue(vwapbands.Width.Value, vwapbands.IsHot, ShowColdValues);
}
}
}
+1 -1
View File
@@ -602,4 +602,4 @@ public class VwapbandsTests
Assert.Equal(expectedVwap, vwapbands.Vwap.Value, precision: 10);
Assert.True(vwapbands.Vwap.Value < 110, "VWAP should be heavily weighted toward 100");
}
}
}
@@ -518,4 +518,4 @@ public sealed class VwapbandsValidationTests : IDisposable
_output.WriteLine("VWAPBANDS static Calculate validated successfully");
}
}
}
+1 -1
View File
@@ -414,4 +414,4 @@ public sealed class Vwapbands : AbstractBase
lower2[i] = vwapVal - 2.0 * multiplier * stdev;
}
}
}
}