This commit is contained in:
Miha Kralj
2024-10-10 16:23:23 -07:00
parent c1cb0ceb54
commit 839313c9f2
14 changed files with 123 additions and 13 deletions
+23
View File
@@ -0,0 +1,23 @@
using TradingPlatform.BusinessLayer;
namespace QuanTAlib;
public class PwmaIndicator : IndicatorBase
{
[InputParameter("Period", sortIndex: 1, 1, 2000, 1, 0)]
public int Period { get; set; } = 10;
private Pwma? ma;
protected override AbstractBase QuanTAlib => ma!;
public override string ShortName => $"PWMA {Period} : {SourceName}";
public PwmaIndicator() : base()
{
Name = "PWMA - Pascal's Weighted Moving Average";
}
protected override void InitIndicator()
{
base.InitIndicator();
ma = new Pwma(period: Period);
}
}