Calculate = Calculate.OnBarClose;
IsOverlay = false;
DisplayInDataBox = true;
DrawOnPricePanel = false;
DrawHorizontalGridLines = true;
DrawVerticalGridLines = true;
PaintPriceMarkers = true;
ScaleJustification = NinjaTrader.Gui.Chart.ScaleJustification.Right;
this is my loop
Draw.HorizontalLine(this,"Horizontal",0,Brushes.Wh ite);
// Is last bar on chart
for (int nCount = 1; nCount < drawList.Count - 1; nCount++)
{
if (drawList[nCount].PivotType == 1)
{ Print("Pivot1");
Draw.Line(this,"Long" + nCount.ToString(), false, drawList[nCount].Time,0,drawList[nCount].Time, 10, eLongBrushColor,DashStyleHelper.Solid,nBarWidth);
}
else if (drawList[nCount].PivotType == -1)
{
Print("Pivot-1");
Draw.Line(this,"Short" + nCount.ToString(),
false,
drawList[nCount].Time,0, drawList[nCount].Time,-10,
eShortBrushColor,DashStyleHelper.Solid,nBarWidth);
}
}
The print statements of Pivot -1 and Pivot 1 are showing in the output box butthe lines are not showing on the panel
Comment