mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-01 19:27:44 +00:00
24 lines
657 B
C#
24 lines
657 B
C#
using TradingPlatform.BusinessLayer;
|
|
namespace QuanTAlib;
|
|
|
|
public class CurvatureIndicator : IndicatorBase
|
|
{
|
|
[InputParameter("Period", sortIndex: 1, 2, 2000, 1, 0)]
|
|
public int Period { get; set; } = 20;
|
|
|
|
private Curvature? curvature;
|
|
protected override AbstractBase QuanTAlib => curvature!;
|
|
public override string ShortName => $"CURVATURE {Period} : {SourceName}";
|
|
|
|
public CurvatureIndicator()
|
|
{
|
|
Name = "CURVATURE - Rate of Change of Slope";
|
|
SeparateWindow = true;
|
|
}
|
|
|
|
protected override void InitIndicator()
|
|
{
|
|
curvature = new(Period);
|
|
MinHistoryDepths = curvature.WarmupPeriod;
|
|
}
|
|
} |