Daily ATR Range indicator Screener/Alert

Forums ProRealTime English forum ProScreener support Daily ATR Range indicator Screener/Alert

Tagged: 

Viewing 15 posts - 1 through 15 (of 18 total)
  • #44372

    Hi there,

    I am using the Daily ATR range indicator on my chart as made by Nicolas here; https://www.prorealcode.com/prorealtime-indicators/daily-atr-range-for-intraday-chart/

    I am simply looking to be able to set up a screener or alert on my platform when any currency or something in my whatchlist etc breaks above or below the ATR high/Low levels that the indicator draws on my chart.

    I have attached a picture of the indicator on my chart, the two orange lines are the indicator. I simply want to be able to screen or be alerted when price goes above or below either of the two lines.

    Thanks very much
    Dan

    #47407

    Does anyone have any ideas how to go about this?

     

    Thank you

    #81787

    Bump for any help with this 🙂

    #81797

    There you go (screener not tested):

     

    1 user thanked author for this post.
    #81901

    There you go (screener not tested):


    Thank you so much for helping with that, works great!! 🙂

    Is there a way to get the value to stay 1 or -1 once it’s been touched in the screener? As opposed to only reading 1/-1 for the duration of the time the ATR is breached? If it’s not easy to have that setting, don’t worry!

    Thanks again!

     

    #81921

    Please use QUOTE only when you have to point something important out. Simply write your post in all other cases, otherwise topics will become larger and larger and difficult to read. Thank you.

    Yes, we can hold the values for some bars (you will set their number), but this will also increase the list of returned value, which might be an issue when items approach or exceed the 50/100-item limit.

    Anyway this is the code (not tested), should you need to restore a shorter life to items scanned just set the LOOKBACK value to 1:

    should ever both A and B are true, A is returned being the first value to be checked.

    2 users thanked author for this post.
    #81945

    Sure, sorry about the quote, good point!

    I got a syntax error on that amendment. It says;

    “This variable is not used in the code:ltr”

    I can’t spot what it relates to. I have tried changing the ATR period but it runs the same parameters as original no matter what value you put in, so maybe that is linked?

    Sorry for all questions!

    #81946

    My fault, please replace htr in line 12 with ltr.

    Also, should you not get good results with -1 in line 18, replace it with 2 (or whatever digit you prefer), just to keep it different from 1.

    #81949

    ah yes, works perfectly now, thank you.

    Do you think there may be a reason that when you change the ATR value for days it makes no difference to the screening results – always brings the same whether = 20 or 100 say

    Do you have any idea why that might be?

    #81950

    I duplicated it and modified one of it replacing 20 with 5 and returned items were completely different! I tried with 50 in place of 20 and got no results (on Currencies, 1-hour TF).

    #81951

    ah ok, strange one. I think I have a weird bug as I am changing to currency only etc and it’s still showing me other securities as well as not changing ATR period. Maybe I need a restart!

    #81952

    It is giving me a lot of 1/-1 signals on contracts that actually haven’t hit their ATR during the day so I don’t know why they show up, but seems to pick all others up as far as I can see so that’s not as issue, just a strange one 🙂

    #81973

    254 bars is surely not enough to compute correctly the daily ATR with ProScreener, depending of the timeframe used..

    #112804

    1

    A good idea this alert, but doesn’t seem to work for me. See attachment, display is alerted but the atr lines were never breached

    Using this code…

     

    #112810

    >> For clarity of messages on ProRealCode’s forums, please use the “insert code PRT” button to separate the text of the code part! Thank you! <<
    🙂

Viewing 15 posts - 1 through 15 (of 18 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login