chore: Update .gitignore to exclude SonarQube files and add Codacy and SonarScanner scripts

refactor: Remove WarmupPeriod logging from SMA and WMA examples
This commit is contained in:
Miha Kralj
2025-11-30 17:17:55 -08:00
parent 4dd753f7c0
commit 626a2afa9b
7 changed files with 109 additions and 10 deletions
+2
View File
@@ -68,6 +68,7 @@ public readonly struct TBar : IEquatable<TBar>
public override string ToString() => $"[{AsDateTime:yyyy-MM-dd HH:mm:ss}: O={Open:F2}, H={High:F2}, L={Low:F2}, C={Close:F2}, V={Volume:F2}]";
[MethodImpl(MethodImplOptions.AggressiveInlining)]
#pragma warning disable S1244 // Floating point equality is intentional for exact struct comparison
public bool Equals(TBar other) =>
Time == other.Time &&
Open == other.Open &&
@@ -75,6 +76,7 @@ public readonly struct TBar : IEquatable<TBar>
Low == other.Low &&
Close == other.Close &&
Volume == other.Volume;
#pragma warning restore S1244
public override bool Equals(object? obj) => obj is TBar other && Equals(other);
public override int GetHashCode() => HashCode.Combine(Time, Open, High, Low, Close, Volume);