Afirma + documentation +semver: patch

This commit is contained in:
Miha Kralj
2024-09-24 16:41:26 -07:00
parent 07efb4b0de
commit 133c65ceaf
250 changed files with 14425 additions and 713 deletions
+5 -4
View File
@@ -1,5 +1,5 @@
using TradingPlatform.BusinessLayer;
namespace QuanTAlib;
using QuanTAlib;
public class AlmaIndicator : IndicatorBase
{
@@ -7,21 +7,22 @@ public class AlmaIndicator : IndicatorBase
public int Period { get; set; } = 10;
[InputParameter("Offset", sortIndex: 5)]
public double Offset { get; set; } = 0.85;
public double Offset = 0.85;
[InputParameter("Sigma", sortIndex: 6)]
public double Sigma { get; set; } = 6.0;
public double Sigma = 6.0;
private Alma? ma;
protected override AbstractBase QuanTAlib => ma!;
public override string ShortName => $"ALMA {Period} : {Offset:F2} : {Sigma:F0} : {SourceName}";
public AlmaIndicator()
public AlmaIndicator() : base()
{
Name = "ALMA - Arnaud Legoux Moving Average";
}
protected override void InitIndicator()
{
base.InitIndicator();
ma = new Alma(period: Period, offset: Offset, sigma: Sigma);
}
}