mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-20 11:38:05 +00:00
New version merge
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
using TradingPlatform.BusinessLayer;
|
||||
using QuanTAlib;
|
||||
|
||||
public class MamaIndicator : IndicatorBase
|
||||
{
|
||||
[InputParameter("Fast limit", sortIndex: 2, 0, 1, 0.01, 2)]
|
||||
public double Fast { get; set; } = 0.4;
|
||||
[InputParameter("Slow limit", sortIndex: 3, 0, 1, 0.01, 2)]
|
||||
public double Slow { get; set; } = 0.04;
|
||||
private Mama? ma;
|
||||
protected override AbstractBase QuanTAlib => ma!;
|
||||
public override string ShortName => $"MAMA : {Fast} : {Slow} : {SourceName}";
|
||||
|
||||
|
||||
public MamaIndicator() : base()
|
||||
{
|
||||
Name = "MAMA - MESA Adaptive Moving Average";
|
||||
}
|
||||
|
||||
protected override void InitIndicator()
|
||||
{
|
||||
ma = new Mama(Fast, Slow);
|
||||
base.InitIndicator();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user