feat: update Qodana configuration to disable failure conditions and improve build stability

refactor: enhance Bilateral and SMA indicators to handle edge cases and improve state management
refactor: clean up whitespace and formatting in various test files for consistency
This commit is contained in:
Miha Kralj
2025-12-28 16:22:45 -08:00
parent 5c3b3fbab4
commit 14c5f21d9e
50 changed files with 111 additions and 77 deletions
-1
View File
@@ -28,7 +28,6 @@ public class AdxIndicatorTests
Assert.Equal(0, watchlistIndicator.MinHistoryDepths);
}
[Fact]
public void AdxIndicator_Initialize_CreatesInternalAdx()
{
@@ -28,7 +28,6 @@ public class AdxrIndicatorTests
Assert.Equal(0, watchlistIndicator.MinHistoryDepths);
}
[Fact]
public void AdxrIndicator_Initialize_CreatesInternalAdxr()
{
-1
View File
@@ -233,4 +233,3 @@ public sealed class Adxr : ITValuePublisher
return new TSeries(tList, [.. v]);
}
}
+2 -2
View File
@@ -99,7 +99,7 @@ public sealed class Ao : ITValuePublisher
double ao = sFast.Value - sSlow.Value;
Last = new TValue(input.Time, ao);
Pub?.Invoke(this, new TValueEventArgs { Value = Last, IsNew = true });
Pub?.Invoke(this, new TValueEventArgs { Value = Last, IsNew = isNew });
return Last;
}
@@ -117,7 +117,7 @@ public sealed class Ao : ITValuePublisher
double ao = sFast.Value - sSlow.Value;
Last = new TValue(input.Time, ao);
Pub?.Invoke(this, new TValueEventArgs { Value = Last, IsNew = true });
Pub?.Invoke(this, new TValueEventArgs { Value = Last, IsNew = isNew });
return Last;
}
+1 -2
View File
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using Skender.Stock.Indicators;
@@ -136,5 +136,4 @@ public sealed class AroonValidationTests : IDisposable
// Verify Oscillator
ValidationHelper.VerifyData(results, tulipOsc, lookback: 14);
}
}
-1
View File
@@ -255,4 +255,3 @@ public sealed class Aroon : ITValuePublisher
return new TSeries(tList, [.. v]);
}
}
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using Skender.Stock.Indicators;
@@ -96,5 +96,4 @@ public sealed class AroonOscValidationTests : IDisposable
// Verify Oscillator
ValidationHelper.VerifyData(results, tulipOsc, lookback: 14);
}
}
-1
View File
@@ -241,4 +241,3 @@ public sealed class AroonOsc : ITValuePublisher
return new TSeries(tList, [.. v]);
}
}
-1
View File
@@ -180,4 +180,3 @@ public sealed class Bop : ITValuePublisher
return new TSeries(t, v);
}
}
-1
View File
@@ -188,7 +188,6 @@ public sealed class Cfb : ITValuePublisher
double ratio = netMove / _runningSums[i];
if (ratio >= 0.25)
{
sumWeightedLen += L * ratio;
@@ -245,4 +245,3 @@ public sealed class MacdValidationTests : IDisposable
_output.WriteLine("MACD Streaming validated successfully against Tulip");
}
}
+1 -1
View File
@@ -377,7 +377,7 @@ public class RsiTests
// Should not crash and produce finite results
for (int i = 0; i < output.Length; i++)
{
Assert.True(double.IsFinite(output[i]) || output[i] == 0);
Assert.True(double.IsFinite(output[i]) || Math.Abs(output[i]) < 1e-10);
}
}
-1
View File
@@ -269,4 +269,3 @@ public sealed class RsiValidationTests : IDisposable
_output.WriteLine("RSI validated successfully against Ooples");
}
}