Indicator:
AddPlot(new Stroke([COLOR=#f1c40f][B]SMAColor[/B][/COLOR], DashStyleHelper.Dash, 2, 100), PlotStyle.Line, "SMASlopeColor"); [NinjaScriptProperty] [XmlIgnore] [Display(Name = "SMA Color", Description = "Color for normal condition", Order = 6, GroupName = "Parameters")] public Brush [B][COLOR=#f1c40f]SMAColor [/COLOR][/B] { get; set; }
private SidiSMA sidiSMA; protected override void OnStateChange() { else if (State == State.DataLoaded) { sidiSMA = SidiSMA(20, false, Brushes.Green, Brushes.Red, [COLOR=#f1c40f][B]Brushes.IndianRed[/B][/COLOR]); AddChartIndicator(sidiSMA); }
Comment