mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-03 19:57:44 +00:00
24 lines
594 B
C#
24 lines
594 B
C#
using TradingPlatform.BusinessLayer;
|
|
namespace QuanTAlib;
|
|
|
|
public class SinemaIndicator : IndicatorBase
|
|
{
|
|
[InputParameter("Period", sortIndex: 1, 1, 2000, 1, 0)]
|
|
public int Period { get; set; } = 10;
|
|
|
|
private Sinema? ma;
|
|
protected override AbstractBase QuanTAlib => ma!;
|
|
public override string ShortName => $"SINEMA {Period} : {SourceName}";
|
|
|
|
public SinemaIndicator() : base()
|
|
{
|
|
Name = "SINEMA - Sine-Weighted Moving Average";
|
|
}
|
|
|
|
protected override void InitIndicator()
|
|
{
|
|
ma = new Sinema(Period);
|
|
base.InitIndicator();
|
|
}
|
|
}
|