Hello everyone!
I am sure this is going to be very simple for someone, but I am stuck haha. Take a look at the image below. I am trying to only allow that magenta line to go to the right 3 candles. I will also share the code I am using to draw the line too. I'd appreciate any help. I have came across many other posts that have lines plotted, but I was unable to get any snippets to work with my plot
I am sure this is going to be very simple for someone, but I am stuck haha. Take a look at the image below. I am trying to only allow that magenta line to go to the right 3 candles. I will also share the code I am using to draw the line too. I'd appreciate any help. I have came across many other posts that have lines plotted, but I was unable to get any snippets to work with my plot
input showRetraceLine = Yes;
input extendRetraceLine = Yes;
def upper50line = if meetsCriteriaUp and showRetraceLine then high[1] - retraceAmt else If(extendRetraceLine, upper50line[1], Double.NaN);
plot DrawUpper50 = upper50line;
DrawUpper50.SetDefaultColor(Color.CYAN);
DrawUpper50.SetPaintingStrategy(PaintingStrategy.DASHES);
Last edited by a moderator: