namespace NinjaTrader.NinjaScript.Indicators
{
public class PL : Indicator
{
private double pol;
protected override void OnStateChange()
{
if (State == State.SetDefaults)
{
Description = @"PL";
Name = "PL";
Calculate = Calculate.OnBarClose;
IsOverlay = true;
DisplayInDataBox = true;
DrawOnPricePanel = true;
DrawHorizontalGridLines = true;
DrawVerticalGridLines = true;
PaintPriceMarkers = true;
ScaleJustification = NinjaTrader.Gui.Chart.ScaleJustification.Right;
IsSuspendedWhileInactive = true;
AddPlot(new Stroke(Brushes.Red), PlotStyle.Line, "Plot0");
}
else if (State == State.Configure)
{
}
}
protected override void OnBarUpdate()
{
}
#region Properties
[Browsable(false)]
[XmlIgnore]
public Series<double> Plot0
{
get { return Values[0]; }
}
#endregion

Comment