protected override void OnStateChange()
{
if (State == State.SetDefaults)
{
Description = @"";
Name = "LP16807SR";
Calculate = Calculate.OnBarClose;
IsOverlay = true;
IsAutoScale = false;
DisplayInDataBox = true;
DrawOnPricePanel = true;
DrawHorizontalGridLines = true;
DrawVerticalGridLines = true;
PaintPriceMarkers = true;
ScaleJustification = NinjaTrader.Gui.Chart.ScaleJustification.Right;
IsSuspendedWhileInactive = false;
LineColor =Brushes.Black;
Width = 4;
BarsRequiredToPlot = 14;
Stroke ibStroke = new Stroke(Brushes.Black, DashStyleHelper.Dash, Width);
Stroke iyStroke = new Stroke(Brushes.Yellow, DashStyleHelper.Dash, Width);
}
else if (State == State.Configure)
{
AddDataSeries( BarsPeriodType.Tick, 16807);
}
}
Comment