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

24 lines
595 B
C#

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