Draw.Line(NinjaScriptBase owner, string tag, bool isAutoScale, DateTime startTime, double startY, DateTime endTime, double endY, Brush brush, DashStyleHelper dashStyle, int width, bool drawOnPricePanel)
Iam getting compilation error of:
protected void DrawTrend(TrendDrawType drawObj, string objName, int dir, int bar1, double price1, int bar2, double price2, double distance,
Brush upBrush, Brush downBrush, Stroke upStroke, Stroke downStroke, int opacity)
{
switch (drawObj)
{
case TrendDrawType.TrendLine:
Draw.Line(this,objName,false,CurrentBar-bar1,price1,CurrentBar-bar2,price2,(dir<0?downStroke.Brush:upStroke.Brush ),
(dir<0?downStroke.DashStyleHelper:upStroke.DashSty leHelper),(dir<0?downStroke.Width:upStroke.Width), true);
break;
case TrendDrawType.TouchZone: case TrendDrawType.TerminateZone: case TrendDrawType.TrendSignalZone: case TrendDrawType.BreakSignalZone:
List<ChartAnchor> anchors = new List<ChartAnchor>();
anchors.Add(new ChartAnchor(Time[CurrentBar-bar1], price1-distance, ChartControl));
anchors.Add(new ChartAnchor(Time[CurrentBar-bar1], price1+distance, ChartControl));
anchors.Add(new ChartAnchor(Time[CurrentBar-bar2], price2+distance, ChartControl));
anchors.Add(new ChartAnchor(Time[CurrentBar-bar2], price2-distance, ChartControl));
Draw.Polygon(this, objName, false, anchors, Brushes.Transparent, DashStyleHelper.Solid, (dir<0?upBrush:downBrush), opacity);
break;
}
}

Comment