(Code attached needs correction)
Hello All,
I am trying with a script in an attempt to find the last recorded All Time High (ATH) and not the new one (if made). I have been trying with the attached code but with no luck. Can anyone please help in correcting the code to plot the previously recorded ATH?
Thank you very much
Hello All,
I am trying with a script in an attempt to find the last recorded All Time High (ATH) and not the new one (if made). I have been trying with the attached code but with no luck. Can anyone please help in correcting the code to plot the previously recorded ATH?
Thank you very much
Code:
def c1 = high[1];
def ATH = highestall(c1);
plot ATH1 = ATH;
ATH1.SetDefaultColor(CreateColor(51,102,255));
ATH1.SetStyle(Curve.SHORT_DASH);
ATH1.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
Addlabel(yes,"P.ATH: "+ATH1,CreateColor(51,102,255));
Last edited by a moderator: