if (UseExtendedLine)
{
// Draw.HorizontalLine(this, "Currprice", false, SLTPLineC, LineColor, LineStyle, LineWidth);
Draw.HorizontalLine(this, "Currprice1", false, Close[0]+SLTPLine1, LineColor1, LineStyle1, LineWidth1);
Draw.HorizontalLine(this, "Currprice2", false, Close[0]-SLTPLine1, LineColor1, LineStyle1, LineWidth1);
Draw.HorizontalLine(this, "Currprice3", false, Close[0]+SLTPLine2, LineColor2, LineStyle2, LineWidth2);
Draw.HorizontalLine(this, "Currprice4", false, Close[0]-SLTPLine2, LineColor2, LineStyle2, LineWidth2);
Draw.HorizontalLine(this, "Currprice5", false, Close[0]+SLTPLine3, LineColor3, LineStyle3, LineWidth3);
Draw.HorizontalLine(this, "Currprice6", false, Close[0]-SLTPLine3, LineColor3, LineStyle3, LineWidth3);
}
I tried using the draw.line code below, but it wasn't drawing the line on the chart.
Draw.Line(this, "CurrPrice7", false, 20, Close[0]+SLTPLine1, 0, Close[0]+SLTPLine1, LineColor1, LineStyle1, LineWidth1)
What am I doing wrong?

Comment