mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-23 13:08:04 +00:00
Afirma + documentation +semver: patch
This commit is contained in:
@@ -7,13 +7,13 @@ public class JmaIndicator : IndicatorBase
|
||||
public int Period { get; set; } = 10;
|
||||
|
||||
[InputParameter("Phase", sortIndex: 2, -100, 100, 1, 0)]
|
||||
public int Phase { get; set; }
|
||||
public int Phase { get; set; } = 0;
|
||||
private Jma? ma;
|
||||
protected override AbstractBase QuanTAlib => ma!;
|
||||
public override string ShortName => $"JMA {Period} : {Phase} : {SourceName}";
|
||||
|
||||
|
||||
public JmaIndicator()
|
||||
public JmaIndicator() : base()
|
||||
{
|
||||
Name = "JMA - Jurik Moving Average";
|
||||
}
|
||||
@@ -21,5 +21,6 @@ public class JmaIndicator : IndicatorBase
|
||||
protected override void InitIndicator()
|
||||
{
|
||||
ma = new Jma(period: Period, phase: (double)Phase);
|
||||
base.InitIndicator();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user