Average True Range Within % of 52 week Low

Optuma Forums Optuma Scripting Average True Range Within % of 52 week Low

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • #53885
    • Topics: 6
    • Replies: 6
    • Posts: 12

    Hi Guys

    Could someone please help me create a script that will show the average true range when it is within 5% of its 52 week low and has occurred in the last two days. I understand how to apply these variables to the price chart, but I have no idea how to apply them to an indicator below the chart.

    • Topics: 4
    • Replies: 255
    • Posts: 259

    Hi Tonia,

    Reading your post i wasn’t sure if you meant when the chart was within its 52 week low or the ATR value was at it’s 52 week low, so below is both scripts…

    The following script will display the ATR value when the charts low is within 5% of the 52 week low value…

    The result in a Show View looks like this:


    Green Line = 52 Week Low, Blue line = 5% range, Black Line = ATR value when criteria is met (otherwise returns 0).

    If you were wanting to use the 52 week low of the ATR value itself, the script would be:

    The result would look like this:


    Red Line = ATR, Green Line = ATR 52 Week Low, Blue Line = 5% Range of ATR 52 Week Low, Black Line = ATR Value when criteria is met

    The only part i was unsure on was with regards to the “Within the last 2 days”. If the above scripts aren’t what you’re after please provide more details and include some screen shot examples of the setups you’re trying to identify.

    • Topics: 6
    • Replies: 6
    • Posts: 12

    Hi Matthew, apologies for being ambiguous in my request. It is great that you have sent me both, I should have been clearer. I was looking for ATR 6 month low values occurring within the last two days, highlighting extremely low volatility opportunities.

    • Topics: 6
    • Replies: 6
    • Posts: 12

    Sorry I meant 52 week ATR low

    • Topics: 53
    • Replies: 398
    • Posts: 451

    Hi Tonia,

    Try this:

    Here are the ASX200 true results for Tuesday:


Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.

Pin It on Pinterest

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.