I'm working with a horizontal line on my chart that currently displays at the latest price. However, the line is dashed, and I'd like to change it to a solid line.
Is there a way to achieve this in ThinkScript?
Here is my current code
I've tried changing the settings to a solid line, but unfortunately, it still didn't resolve the issue. Any guidance or specific instructions on how to achieve this would be greatly appreciated.
Is there a way to achieve this in ThinkScript?
Here is my current code
# Line At Price
input barsBack = 1000;
def c = if !IsNaN(close) and IsNaN(close[-1])
then close
else c[1];
plot line = if isNaN(close[-barsBack])
then c[-barsBack]
else Double.NaN;
I've tried changing the settings to a solid line, but unfortunately, it still didn't resolve the issue. Any guidance or specific instructions on how to achieve this would be greatly appreciated.
Last edited by a moderator: