From 8a8b6abd19deec4e73efbd4e5d9f7d8d286256c0 Mon Sep 17 00:00:00 2001 From: moshferatu Date: Mon, 6 Jan 2025 10:25:27 -0800 Subject: [PATCH] Trivial formatting changes to SuperSmoother indicator --- indicators/super-smoother/SuperSmoother.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/indicators/super-smoother/SuperSmoother.cs b/indicators/super-smoother/SuperSmoother.cs index dbba05f..db3cbe9 100644 --- a/indicators/super-smoother/SuperSmoother.cs +++ b/indicators/super-smoother/SuperSmoother.cs @@ -33,7 +33,9 @@ namespace NinjaTrader.NinjaScript.Indicators PaintPriceMarkers = true; ScaleJustification = ScaleJustification.Right; IsSuspendedWhileInactive = true; + Period = 10; + AddPlot(new Stroke(Brushes.Yellow, DashStyleHelper.Solid, 2), PlotStyle.Line, "SuperSmoother"); } else if (State == State.Configure) @@ -67,9 +69,11 @@ namespace NinjaTrader.NinjaScript.Indicators } #region Properties + [Range(1, int.MaxValue), NinjaScriptProperty] [Display(Name = "Period", Order = 1, GroupName = "SuperSmoother")] public int Period { get; set; } + #endregion } }