Files
QuanTAlib/quantower/Averages/EpmaIndicator.cs
T
2024-09-24 16:41:26 -07:00

24 lines
581 B
C#

using TradingPlatform.BusinessLayer;
using QuanTAlib;
public class EpmaIndicator : IndicatorBase
{
[InputParameter("Period", sortIndex: 1, 1, 2000, 1, 0)]
public int Period { get; set; } = 10;
private Epma? ma;
protected override AbstractBase QuanTAlib => ma!;
public override string ShortName => $"EPMA {Period} : {SourceName}";
public EpmaIndicator() : base()
{
Name = "EPMA - Endpoint Moving Average";
}
protected override void InitIndicator()
{
base.InitIndicator();
ma = new Epma(period: Period);
}
}