I am stuck and hope someone can help me. What I am trying to have the indicator do is to show the number of ticks to a target line which is drawn using the ATR. This is for NT7.
The image shows the output in a 1min chart with a figure of "21465" which is incorrect. The image also shows part of the code I am using and somehow I assume the fault lies in Line 95 but I am not sure which is why I am attaching the indicator in full. (The number of ticks price has moved away from the Opening Line is shown here with "9" which is correct. and needs no fix.)
I would really appreciate if someone with an eagle eye can spot what I've got wrong and tell me how to fix it.
sandman

Comment