Adeodatus
Member
Maybe a hand with this too? this part won't clear out all the red highlighted script:
for i = 0 to 19
{
plot extendedLine = if barNumber() == i then HorizontalLine else extendedLine[1];
and the last ( } )also red highlight.
Will it show a line at ask and run out to the right 20 ?
plot HorizontalLine = if barNumber() == 0 then ask else HorizontalLine[1];
HorizontalLine.SetDefaultColor(color.red);
HorizontalLine.SetLineWeight(3);
HorizontalLine.AssignValueColor(if HorizontalLine >= close then color.red else color.green);
# extend line for 20 periods
for i = 0 to 19
{
plot extendedLine = if barNumber() == i then HorizontalLine else extendedLine[1];
extendedLine.SetDefaultColor(color.red);
extendedLine.SetLineWeight(1);
extendedLine.SetStyle(curve.SHORT_DASH);
}
for i = 0 to 19
{
plot extendedLine = if barNumber() == i then HorizontalLine else extendedLine[1];
and the last ( } )also red highlight.
Will it show a line at ask and run out to the right 20 ?
plot HorizontalLine = if barNumber() == 0 then ask else HorizontalLine[1];
HorizontalLine.SetDefaultColor(color.red);
HorizontalLine.SetLineWeight(3);
HorizontalLine.AssignValueColor(if HorizontalLine >= close then color.red else color.green);
# extend line for 20 periods
for i = 0 to 19
{
plot extendedLine = if barNumber() == i then HorizontalLine else extendedLine[1];
extendedLine.SetDefaultColor(color.red);
extendedLine.SetLineWeight(1);
extendedLine.SetStyle(curve.SHORT_DASH);
}