Files
QuanTAlib/quantower/Averages/ZlemaIndicator.cs
T

24 lines
545 B
C#
Raw Normal View History

2024-09-22 17:31:24 -07:00
using TradingPlatform.BusinessLayer;
2024-09-22 20:10:05 -07:00
namespace QuanTAlib;
2024-09-22 17:31:24 -07:00
public class ZlemaIndicator : IndicatorBase
{
[InputParameter("Period", sortIndex: 1, 1, 2000, 1, 0)]
public int Period { get; set; } = 10;
private Zlema? ma;
protected override AbstractBase QuanTAlib => ma!;
public override string ShortName => $"ZLEMA {Period} : {SourceName}";
2024-09-23 22:08:40 -07:00
public ZlemaIndicator()
2024-09-22 17:31:24 -07:00
{
Name = "ZLEMA - Weighted Moving Average";
}
protected override void InitIndicator()
{
ma = new Zlema(Period);
}
}