Files
QuanTAlib/quantower/Statistics/KurtosisIndicator.cs
T

27 lines
807 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 KurtosisIndicator : IndicatorBase
{
[InputParameter("Period", sortIndex: 1, 4, 2000, 1, 0)]
public int Period { get; set; } = 20;
private Kurtosis? kurtosis;
protected override AbstractBase QuanTAlib => kurtosis!;
public override string ShortName => $"KURTOSIS {Period} : {SourceName}";
2024-09-24 16:41:26 -07:00
public KurtosisIndicator() : base()
2024-09-22 17:31:24 -07:00
{
Name = "KURTOSIS - Relative Flatness";
2024-10-11 18:02:09 -07:00
Description = "Measures the 'tailedness' of price distribution, indicating potential for extreme market movements.";
2024-09-22 17:31:24 -07:00
SeparateWindow = true;
}
protected override void InitIndicator()
{
kurtosis = new(Period);
MinHistoryDepths = kurtosis.WarmupPeriod;
2024-09-24 16:41:26 -07:00
base.InitIndicator();
2024-09-22 17:31:24 -07:00
}
2024-10-11 18:02:09 -07:00
}