all my plottings I have now for months are ok, but I have a problem with one indicator that is drawing a line and sometimes it doesnt work as expected.
The line should be removed when price is crossing it and I have in the code:
if(Highs[0][1] <linex4xD && Highs[0][0]>=linex4xD) {dynupxD=0; RemoveDrawObject("linex12u"); RemoveDrawObject("linexDu");}
Its interesting that the "linex12u" (a vertical line at startpoint of the horizontal line) is removed but "linexDu" persists. When condition is true (and it is for many other lines working ok and working) then it should remove both.
I´m working on this now for days but I cant find. When I go to drawing objects it shows the values in the attached screenshot "nt8_line".
Does this give an hint about the reason?
(and after compiling when I close the NT-script editor then there appears the attached error-message. Does this give an hint in this concern please?)
Thank you!
Tony

Comment