[PropertyEditor("NinjaTrader.Gui.Tools.MultilineEditor")]
namespace NinjaTrader.NinjaScript.Indicators.MyTroubleshoot
{
public class MultilinePropertyStringIssue : Indicator
{
protected override void OnStateChange()
{
if (State == State.SetDefaults)
{
Description = @"Enter the description for your new custom Indicator here.";
Name = "MultilinePropertyStringIssue";
Calculate = Calculate.OnBarClose;
IsOverlay = false;
DisplayInDataBox = true;
DrawOnPricePanel = true;
DrawHorizontalGridLines = true;
DrawVerticalGridLines = true;
PaintPriceMarkers = true;
ScaleJustification = NinjaTrader.Gui.Chart.ScaleJustification.Right;
//Disable this property if your indicator requires custom values that cumulate with each new market data event.
//See Help Guide for additional information.
IsSuspendedWhileInactive = true;
}
else if (State == State.Configure)
{
}
}
protected override void OnBarUpdate()
{
//Add your custom indicator logic here.
}
#region Properties
[PropertyEditor("NinjaTrader.Gui.Tools.MultilineEditor")]
[Display(Name="DisplayText", Description="This is supposed to be a multiline string text", Order=1, GroupName="Parameters")]
public string DisplayText
{ get; set; }
#endregion
}
}

Comment