2024-09-22 17:31:24 -07:00
|
|
|
using TradingPlatform.BusinessLayer;
|
2024-09-24 16:41:26 -07:00
|
|
|
using QuanTAlib;
|
2024-09-22 17:31:24 -07:00
|
|
|
|
|
|
|
|
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}";
|
|
|
|
|
|
2024-09-24 16:41:26 -07:00
|
|
|
public EpmaIndicator() : base()
|
2024-09-22 17:31:24 -07:00
|
|
|
{
|
|
|
|
|
Name = "EPMA - Endpoint Moving Average";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override void InitIndicator()
|
|
|
|
|
{
|
2024-09-24 16:41:26 -07:00
|
|
|
base.InitIndicator();
|
2024-09-22 17:31:24 -07:00
|
|
|
ma = new Epma(period: Period);
|
|
|
|
|
}
|
|
|
|
|
}
|