mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-20 03:28:05 +00:00
chore: repo cleanup and code quality improvements
- Remove global.json (SDK pinning unnecessary) - Remove nuget.config, move MyGet source to .csproj RestoreAdditionalProjectSources - Gitignore ndepend/ entirely, move badges to docs/img/ - Update README.md and docs/ndepend.md badge paths - Add NDepend project property to QuanTAlib.slnx - Expand .editorconfig ReSharper/diagnostic suppressions - Use ArgumentOutOfRangeException instead of ArgumentException - Use discard _ for unused event sender parameters - Remove quantalib.code-workspace and sonar-suppressions.json - Add filter signature SVGs
This commit is contained in:
@@ -110,7 +110,7 @@ public class VfValidationTests
|
||||
vfHigh.Update(bar2High, isNew: true);
|
||||
|
||||
// Higher volume should produce larger absolute VF
|
||||
Assert.True(System.Math.Abs(vfHigh.Last.Value) > System.Math.Abs(vfLow.Last.Value),
|
||||
Assert.True(Math.Abs(vfHigh.Last.Value) > Math.Abs(vfLow.Last.Value),
|
||||
$"High volume VF ({vfHigh.Last.Value}) should exceed low volume VF ({vfLow.Last.Value})");
|
||||
}
|
||||
|
||||
|
||||
@@ -36,16 +36,10 @@ public sealed class Vf : ITValuePublisher
|
||||
private State _ps;
|
||||
private readonly int _period;
|
||||
private readonly double _alpha;
|
||||
|
||||
/// <inheritdoc/>
|
||||
public TValue Last { get; private set; }
|
||||
/// <inheritdoc/>
|
||||
public bool IsHot => _s.Index >= _period;
|
||||
/// <inheritdoc/>
|
||||
public int WarmupPeriod => _period;
|
||||
/// <inheritdoc/>
|
||||
public string Name { get; }
|
||||
/// <inheritdoc/>
|
||||
public event TValuePublishedHandler? Pub;
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user