mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-08 22:17:44 +00:00
27 lines
758 B
C#
27 lines
758 B
C#
using TradingPlatform.BusinessLayer;
|
|
namespace QuanTAlib;
|
|
|
|
public class SkewIndicator : IndicatorBase
|
|
{
|
|
[InputParameter("Period", sortIndex: 1, 3, 2000, 1, 0)]
|
|
public int Period { get; set; } = 20;
|
|
|
|
private Skew? skew;
|
|
protected override AbstractBase QuanTAlib => skew!;
|
|
public override string ShortName => $"SKEW {Period} : {SourceName}";
|
|
|
|
public SkewIndicator() : base()
|
|
{
|
|
Name = "SKEW - Skewness";
|
|
Description = "Measures the asymmetry of price distribution, indicating potential trend direction or reversal.";
|
|
SeparateWindow = true;
|
|
}
|
|
|
|
protected override void InitIndicator()
|
|
{
|
|
skew = new(Period);
|
|
MinHistoryDepths = skew.WarmupPeriod;
|
|
base.InitIndicator();
|
|
}
|
|
}
|