Discussion about this post

User's avatar
Four Trades's avatar

Would it be possible to draw a line 10% from the open?

Expand full comment
silea's avatar

Hi Peter,

If I understand well the definition of the ATR ("The true range indicator is taken as the greatest of the following: current high less the current low; the absolute value of the current high less the previous close; and the absolute value of the current low less the previous close"), it's a comparison between 3 values and the highest is used.

Your script just takes in account one of these 3 values, which makes it unprecise for stocks that are gaping.

Do you think it could be possible to go closer to the real definition of the ATR ?

Thank you

Expand full comment
26 more comments...

No posts