mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-24 13:38:05 +00:00
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:
@@ -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()
|
||||
{
|
||||
|
||||
@@ -233,4 +233,3 @@ public sealed class Adxr : ITValuePublisher
|
||||
return new TSeries(tList, [.. v]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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,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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -241,4 +241,3 @@ public sealed class AroonOsc : ITValuePublisher
|
||||
return new TSeries(tList, [.. v]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -180,4 +180,3 @@ public sealed class Bop : ITValuePublisher
|
||||
return new TSeries(t, v);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -269,4 +269,3 @@ public sealed class RsiValidationTests : IDisposable
|
||||
_output.WriteLine("RSI validated successfully against Ooples");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user