mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-22 12:38:06 +00:00
+semver: fix
This commit is contained in:
@@ -81,6 +81,8 @@ jobs:
|
|||||||
run: dotnet build ./quantower/Averages/Averages.csproj --configuration Release --nologo
|
run: dotnet build ./quantower/Averages/Averages.csproj --configuration Release --nologo
|
||||||
- name: Build Statistics DLL
|
- name: Build Statistics DLL
|
||||||
run: dotnet build ./quantower/Statistics/Statistics.csproj --configuration Release --nologo
|
run: dotnet build ./quantower/Statistics/Statistics.csproj --configuration Release --nologo
|
||||||
|
- name: Build SyntheticVendor DLL
|
||||||
|
run: dotnet build ./SyntheticVendor/SyntheticVendor.csproj --configuration Release --nologo
|
||||||
|
|
||||||
- name: DotCover Test HTML
|
- name: DotCover Test HTML
|
||||||
if: ${{ github.ref == 'refs/heads/dev' }}
|
if: ${{ github.ref == 'refs/heads/dev' }}
|
||||||
|
|||||||
@@ -82,9 +82,6 @@ public class Dema : AbstractBase
|
|||||||
ManageState(Input.IsNew);
|
ManageState(Input.IsNew);
|
||||||
|
|
||||||
double result, _ema1, _ema2;
|
double result, _ema1, _ema2;
|
||||||
|
|
||||||
// dynamic k when within period; (index is zero-based, therefore +2)
|
|
||||||
//double _dk = (_index + 1 >= _period) ? _k : 2.0 / (_index + 2);
|
|
||||||
// compensator for early ema values
|
// compensator for early ema values
|
||||||
_e = (_e > 1e-10) ? (1 - _k) * _e : 0;
|
_e = (_e > 1e-10) ? (1 - _k) * _e : 0;
|
||||||
double _invE = (_e > 1e-10) ? 1 / (1 - _e) : 1;
|
double _invE = (_e > 1e-10) ? 1 / (1 - _e) : 1;
|
||||||
|
|||||||
@@ -77,9 +77,6 @@ public class Epma : AbstractBase
|
|||||||
kernel[i] /= weightSum;
|
kernel[i] /= weightSum;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reverse the kernel for convolution
|
|
||||||
//Array.Reverse(kernel);
|
|
||||||
|
|
||||||
return kernel;
|
return kernel;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
using QuanTAlib;
|
namespace QuanTAlib;
|
||||||
|
|
||||||
//https://user42.tuxfamily.org/chart/manual/Regularized-Exponential-Moving-Average.html
|
//https://user42.tuxfamily.org/chart/manual/Regularized-Exponential-Moving-Average.html
|
||||||
|
|
||||||
|
|||||||
@@ -53,7 +53,6 @@ public class Rma : AbstractBase {
|
|||||||
rma = (_lastRMA * (_index - 1) + Input.Value) / _index;
|
rma = (_lastRMA * (_index - 1) + Input.Value) / _index;
|
||||||
} else {
|
} else {
|
||||||
// Wilder's smoothing method
|
// Wilder's smoothing method
|
||||||
//rma = (_lastRMA * (_period - 1) + Input.Value) / _period;
|
|
||||||
rma = _alpha * (Input.Value - _lastRMA) + _lastRMA;
|
rma = _alpha * (Input.Value - _lastRMA) + _lastRMA;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -30,7 +30,6 @@ public class Sma : AbstractBase
|
|||||||
|
|
||||||
public override void Init()
|
public override void Init()
|
||||||
{
|
{
|
||||||
//_buffer.Clear();
|
|
||||||
base.Init();
|
base.Init();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -58,8 +58,7 @@ public class Tema : AbstractBase
|
|||||||
{
|
{
|
||||||
double result, _ema1, _ema2, _ema3;
|
double result, _ema1, _ema2, _ema3;
|
||||||
ManageState(Input.IsNew);
|
ManageState(Input.IsNew);
|
||||||
|
|
||||||
//double _dk = (_index + 1 >= _period) ? _k : 2.0 / (_index + 2);
|
|
||||||
_e = (_e > 1e-10) ? (1 - _k) * _e : 0;
|
_e = (_e > 1e-10) ? (1 - _k) * _e : 0;
|
||||||
double _invE = (_e > 1e-10) ? 1 / (1 - _e) : 1;
|
double _invE = (_e > 1e-10) ? 1 / (1 - _e) : 1;
|
||||||
|
|
||||||
|
|||||||
@@ -31,6 +31,9 @@
|
|||||||
Quantitative;Historical;Quotes;
|
Quantitative;Historical;Quotes;
|
||||||
</PackageTags>
|
</PackageTags>
|
||||||
<NoWarn>$(NoWarn);NU5104</NoWarn>
|
<NoWarn>$(NoWarn);NU5104</NoWarn>
|
||||||
|
<GenerateAssemblyVersionAttribute>false</GenerateAssemblyVersionAttribute>
|
||||||
|
<GenerateAssemblyFileVersionAttribute>false</GenerateAssemblyFileVersionAttribute>
|
||||||
|
<GenerateAssemblyInformationalVersionAttribute>false</GenerateAssemblyInformationalVersionAttribute>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<PackageIcon>QuanTAlib2.png</PackageIcon>
|
<PackageIcon>QuanTAlib2.png</PackageIcon>
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using TradingPlatform.BusinessLayer;
|
using TradingPlatform.BusinessLayer;
|
||||||
using TradingPlatform.BusinessLayer.Chart;
|
using TradingPlatform.BusinessLayer.Chart;
|
||||||
using QuanTAlib;
|
|
||||||
using System.Runtime.CompilerServices;
|
using System.Runtime.CompilerServices;
|
||||||
using System.Drawing.Drawing2D;
|
using System.Drawing.Drawing2D;
|
||||||
|
namespace QuanTAlib;
|
||||||
|
|
||||||
#pragma warning disable CA1416 // Validate platform compatibility
|
#pragma warning disable CA1416 // Validate platform compatibility
|
||||||
public abstract class AbstractIndicatorBase : Indicator
|
public abstract class AbstractIndicatorBase : Indicator
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
using TradingPlatform.BusinessLayer;
|
using TradingPlatform.BusinessLayer;
|
||||||
using QuanTAlib;
|
namespace QuanTAlib;
|
||||||
|
|
||||||
public class HmaIndicator : IndicatorBase
|
public class HmaIndicator : IndicatorBase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
using TradingPlatform.BusinessLayer;
|
using TradingPlatform.BusinessLayer;
|
||||||
using QuanTAlib;
|
namespace QuanTAlib;
|
||||||
|
|
||||||
public class HtitIndicator : IndicatorBase
|
public class HtitIndicator : IndicatorBase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
using TradingPlatform.BusinessLayer;
|
using TradingPlatform.BusinessLayer;
|
||||||
using QuanTAlib;
|
namespace QuanTAlib;
|
||||||
|
|
||||||
public class HwmaIndicator : IndicatorBase
|
public class HwmaIndicator : IndicatorBase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
using TradingPlatform.BusinessLayer;
|
using TradingPlatform.BusinessLayer;
|
||||||
using QuanTAlib;
|
namespace QuanTAlib;
|
||||||
|
|
||||||
public class JmaIndicator : IndicatorBase
|
public class JmaIndicator : IndicatorBase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
using TradingPlatform.BusinessLayer;
|
using TradingPlatform.BusinessLayer;
|
||||||
using QuanTAlib;
|
namespace QuanTAlib;
|
||||||
|
|
||||||
public class KamaIndicator : IndicatorBase
|
public class KamaIndicator : IndicatorBase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
using TradingPlatform.BusinessLayer;
|
using TradingPlatform.BusinessLayer;
|
||||||
using QuanTAlib;
|
namespace QuanTAlib;
|
||||||
|
|
||||||
public class LtmaIndicator : IndicatorBase
|
public class LtmaIndicator : IndicatorBase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
using TradingPlatform.BusinessLayer;
|
using TradingPlatform.BusinessLayer;
|
||||||
using QuanTAlib;
|
namespace QuanTAlib;
|
||||||
|
|
||||||
public class MaafIndicator : IndicatorBase
|
public class MaafIndicator : IndicatorBase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
using TradingPlatform.BusinessLayer;
|
using TradingPlatform.BusinessLayer;
|
||||||
using QuanTAlib;
|
namespace QuanTAlib;
|
||||||
|
|
||||||
public class MamaIndicator : IndicatorBase
|
public class MamaIndicator : IndicatorBase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
using TradingPlatform.BusinessLayer;
|
using TradingPlatform.BusinessLayer;
|
||||||
using QuanTAlib;
|
namespace QuanTAlib;
|
||||||
|
|
||||||
public class MgdiIndicator : IndicatorBase
|
public class MgdiIndicator : IndicatorBase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
using TradingPlatform.BusinessLayer;
|
using TradingPlatform.BusinessLayer;
|
||||||
using QuanTAlib;
|
namespace QuanTAlib;
|
||||||
|
|
||||||
public class MmaIndicator : IndicatorBase
|
public class MmaIndicator : IndicatorBase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
using TradingPlatform.BusinessLayer;
|
using TradingPlatform.BusinessLayer;
|
||||||
using QuanTAlib;
|
namespace QuanTAlib;
|
||||||
|
|
||||||
public class QemaIndicator : IndicatorBase
|
public class QemaIndicator : IndicatorBase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
using TradingPlatform.BusinessLayer;
|
using TradingPlatform.BusinessLayer;
|
||||||
using QuanTAlib;
|
namespace QuanTAlib;
|
||||||
|
|
||||||
public class RemaIndicator : IndicatorBase
|
public class RemaIndicator : IndicatorBase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
using TradingPlatform.BusinessLayer;
|
using TradingPlatform.BusinessLayer;
|
||||||
using QuanTAlib;
|
namespace QuanTAlib;
|
||||||
|
|
||||||
public class RmaIndicator : IndicatorBase
|
public class RmaIndicator : IndicatorBase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
using TradingPlatform.BusinessLayer;
|
using TradingPlatform.BusinessLayer;
|
||||||
using QuanTAlib;
|
namespace QuanTAlib;
|
||||||
|
|
||||||
public class SinemaIndicator : IndicatorBase
|
public class SinemaIndicator : IndicatorBase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
using TradingPlatform.BusinessLayer;
|
using TradingPlatform.BusinessLayer;
|
||||||
using QuanTAlib;
|
namespace QuanTAlib;
|
||||||
|
|
||||||
public class SmaIndicator : IndicatorBase
|
public class SmaIndicator : IndicatorBase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
using TradingPlatform.BusinessLayer;
|
using TradingPlatform.BusinessLayer;
|
||||||
using QuanTAlib;
|
namespace QuanTAlib;
|
||||||
|
|
||||||
public class SmmaIndicator : IndicatorBase
|
public class SmmaIndicator : IndicatorBase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
using TradingPlatform.BusinessLayer;
|
using TradingPlatform.BusinessLayer;
|
||||||
using QuanTAlib;
|
namespace QuanTAlib;
|
||||||
|
|
||||||
public class T3Indicator : IndicatorBase
|
public class T3Indicator : IndicatorBase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
using TradingPlatform.BusinessLayer;
|
using TradingPlatform.BusinessLayer;
|
||||||
using QuanTAlib;
|
namespace QuanTAlib;
|
||||||
|
|
||||||
public class TemaIndicator : IndicatorBase
|
public class TemaIndicator : IndicatorBase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
using TradingPlatform.BusinessLayer;
|
using TradingPlatform.BusinessLayer;
|
||||||
using QuanTAlib;
|
namespace QuanTAlib;
|
||||||
|
|
||||||
public class TrimaIndicator : IndicatorBase
|
public class TrimaIndicator : IndicatorBase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
using TradingPlatform.BusinessLayer;
|
using TradingPlatform.BusinessLayer;
|
||||||
using QuanTAlib;
|
namespace QuanTAlib;
|
||||||
|
|
||||||
public class VidyaIndicator : IndicatorBase
|
public class VidyaIndicator : IndicatorBase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
using TradingPlatform.BusinessLayer;
|
using TradingPlatform.BusinessLayer;
|
||||||
using QuanTAlib;
|
namespace QuanTAlib;
|
||||||
|
|
||||||
public class WmaIndicator : IndicatorBase
|
public class WmaIndicator : IndicatorBase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
using TradingPlatform.BusinessLayer;
|
using TradingPlatform.BusinessLayer;
|
||||||
using QuanTAlib;
|
namespace QuanTAlib;
|
||||||
|
|
||||||
public class ZlemaIndicator : IndicatorBase
|
public class ZlemaIndicator : IndicatorBase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
using TradingPlatform.BusinessLayer;
|
using TradingPlatform.BusinessLayer;
|
||||||
using QuanTAlib;
|
namespace QuanTAlib;
|
||||||
|
|
||||||
public class EntropyIndicator : IndicatorBase
|
public class EntropyIndicator : IndicatorBase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
using TradingPlatform.BusinessLayer;
|
using TradingPlatform.BusinessLayer;
|
||||||
using QuanTAlib;
|
namespace QuanTAlib;
|
||||||
|
|
||||||
public class KurtosisIndicator : IndicatorBase
|
public class KurtosisIndicator : IndicatorBase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
using TradingPlatform.BusinessLayer;
|
using TradingPlatform.BusinessLayer;
|
||||||
using QuanTAlib;
|
namespace QuanTAlib;
|
||||||
|
|
||||||
public class MaxIndicator : IndicatorBase
|
public class MaxIndicator : IndicatorBase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
using TradingPlatform.BusinessLayer;
|
using TradingPlatform.BusinessLayer;
|
||||||
using QuanTAlib;
|
namespace QuanTAlib;
|
||||||
|
|
||||||
public class MedianIndicator : IndicatorBase
|
public class MedianIndicator : IndicatorBase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
using TradingPlatform.BusinessLayer;
|
using TradingPlatform.BusinessLayer;
|
||||||
using QuanTAlib;
|
namespace QuanTAlib;
|
||||||
|
|
||||||
public class MinIndicator : IndicatorBase
|
public class MinIndicator : IndicatorBase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
using TradingPlatform.BusinessLayer;
|
using TradingPlatform.BusinessLayer;
|
||||||
using QuanTAlib;
|
namespace QuanTAlib;
|
||||||
|
|
||||||
public class ModeIndicator : IndicatorBase
|
public class ModeIndicator : IndicatorBase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
using TradingPlatform.BusinessLayer;
|
using TradingPlatform.BusinessLayer;
|
||||||
using QuanTAlib;
|
namespace QuanTAlib;
|
||||||
public class PercentileIndicator : IndicatorBase
|
public class PercentileIndicator : IndicatorBase
|
||||||
{
|
{
|
||||||
[InputParameter("Period", sortIndex: 1, 2, 2000, 1, 0)]
|
[InputParameter("Period", sortIndex: 1, 2, 2000, 1, 0)]
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
using TradingPlatform.BusinessLayer;
|
using TradingPlatform.BusinessLayer;
|
||||||
using QuanTAlib;
|
namespace QuanTAlib;
|
||||||
|
|
||||||
public class SkewIndicator : IndicatorBase
|
public class SkewIndicator : IndicatorBase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
using TradingPlatform.BusinessLayer;
|
using TradingPlatform.BusinessLayer;
|
||||||
using QuanTAlib;
|
namespace QuanTAlib;
|
||||||
|
|
||||||
public class StddevIndicator : IndicatorBase
|
public class StddevIndicator : IndicatorBase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
using TradingPlatform.BusinessLayer;
|
using TradingPlatform.BusinessLayer;
|
||||||
using QuanTAlib;
|
namespace QuanTAlib;
|
||||||
|
|
||||||
public class VarianceIndicator : IndicatorBase
|
public class VarianceIndicator : IndicatorBase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
using TradingPlatform.BusinessLayer;
|
using TradingPlatform.BusinessLayer;
|
||||||
using QuanTAlib;
|
namespace QuanTAlib;
|
||||||
|
|
||||||
public class ZScoreIndicator : IndicatorBase
|
public class ZScoreIndicator : IndicatorBase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3,10 +3,11 @@ using TradingPlatform.BusinessLayer;
|
|||||||
using TradingPlatform.BusinessLayer.Chart;
|
using TradingPlatform.BusinessLayer.Chart;
|
||||||
using System.Runtime.CompilerServices;
|
using System.Runtime.CompilerServices;
|
||||||
using System.Drawing.Drawing2D;
|
using System.Drawing.Drawing2D;
|
||||||
using QuanTAlib;
|
|
||||||
using System.Collections;
|
using System.Collections;
|
||||||
using TradingPlatform.BusinessLayer.TimeSync;
|
using TradingPlatform.BusinessLayer.TimeSync;
|
||||||
|
|
||||||
|
namespace QuanTAlib;
|
||||||
|
|
||||||
#pragma warning disable CA1416 // Validate platform compatibility
|
#pragma warning disable CA1416 // Validate platform compatibility
|
||||||
public abstract class IndicatorBase : Indicator, IWatchlistIndicator
|
public abstract class IndicatorBase : Indicator, IWatchlistIndicator
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user