mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-01 03:07:43 +00:00
25 lines
577 B
C#
25 lines
577 B
C#
using TradingPlatform.BusinessLayer;
|
|
using QuanTAlib;
|
|
|
|
public class GmaIndicator : IndicatorBase
|
|
{
|
|
[InputParameter("Period", sortIndex: 1, 1, 2000, 1, 0)]
|
|
public int Period { get; set; } = 10;
|
|
|
|
private Gma? ma;
|
|
protected override AbstractBase QuanTAlib => ma!;
|
|
public override string ShortName => $"GMA {Period} : {SourceName}";
|
|
|
|
|
|
public GmaIndicator() : base()
|
|
{
|
|
Name = "GMA - Gaussian-Weighted Moving Average";
|
|
}
|
|
|
|
protected override void InitIndicator()
|
|
{
|
|
ma = new Gma(Period);
|
|
base.InitIndicator();
|
|
}
|
|
}
|