Daily ATR2 indicator code request

Forums ProRealTime English forum ProBuilder support Daily ATR2 indicator code request

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

    Hi,

     

    I Have looked around for an indicator, but can´t find it anywhere.

    The parameters are ATR2 Daily/2 + Daily Low  (It shold look like the Picture, I Think the parameters make the yellow line and the grey lines are following low and high)

    Can somone help me make this indicator? I don´t have the knowledge or skill to do it myself, and belive me I’v tried

     

    Thanks

    #91682

    Welcome to the forums.

    There are some basic rules that should be followed when posting in the forums. Please use a topic title that is meaningful and describes your question or subject. Also please ensure that you post in the correct forum. Your question is indicator related and so should be in the ProBuilder forum and not the Platform Support forum which is for platform issues. Posting in the correct forum means that you are most likely to find an answer or receive replies to your topic.

    I have moved your topic and given it a new topic title. 🙂

    #91701

    Thank you, my bad 🙂

    #91718

    I don’t think that this indicator has something to deal with ATR. The grey lines are made of daily high/low and the yellow one is just the average of them (the middle):

     

     

    #91898

    Thank you Nicolas, Amazing!

    #91938

    Hi Nicolas,

     

    I belive ATR2 Daily have to include. First Picture is the indicator you helped me with. Second one is how it should look like. You see the price is up and touching the yellow line. I tried to change the code on my own but didn’t succed.

    I tried with:

     

    But it didn’t work

     

    #91941

    Sorry, should be:

     

     

    #91949

    You can try with the below code, but I don’t think it is correct IMO. Even by dividing the daily ATR by 2, the lowest level+ATR/2 sometimes exceed the highest one …

    Do you have more useful information about the program? It would save us times! 🙂

     

     

    #91960

    Thank you Nicolas, pretty funny. It got closer. The yellow line is now in the middle of the yellow lines in the Pictures above. I’m sorry, I don’t have any more information about the indicator. But as you can see, it’s pretty accurat

    #91962

    In your screenshot, the daily high is not the same as mine, so I guess the first solution I gave should work (mid high/low). I think of a different time zone.

    #95348

    Hello,

    I just received this from a friendly soul on twitter. This works on tradingview, only intraday because of the time parameter.

    Maybe this can help Nicolas?

    //

    =3 study(“Fiddy”, overlay=true)

    t = time(“1440”, session.extended) // 1440=60*24 is the number of minutes in a whole day. You may use “0930-1600” as second session parameter

    //plot(t, style=linebr) // debug is_first = na(t[1]) and not na(t) or t[1] < t

    //plotshape(is_first, color=red, style=shape.arrowdown)

    day_high = na day_low = na

    if is_first and barstate.isnew

    day_high := high
    day_low := low

    else day_high := day_high[1]
    day_low := day_low[1]

    fiddy (ATR2 daily /2)= (max(day_high, close[1]) + min(day_low, close[1]))/2
    fiddy2 = (max(day_high, close[1]) – min(day_low, close[1]))*0.618 + day_low
    fiddy3 = (max(day_high, close[1]) – min(day_low, close[1]))*0.382 + day_low

    if high > day_high day_high := high

    if low < day_low day_low := low

    plot(fiddy, color=red, title=”fiddy”)
    plot(fiddy2, color=orange, title=”fiddy618″)
    plot(fiddy3, color=orange, title=”fiddy382″)
    plot(day_high, color=lime, title=”day_high”)
    plot(day_low, color=lime, title= ‘day_low’)

     

    You can remove the lines below if you only want “Fiddy”

    fiddy2 = (max(day_high, close[1]) – min(day_low, close[1]))*0.618 + day_low
    fiddy3 = (max(day_high, close[1]) – min(day_low, close[1]))*0.382 + day_low

    #95364

    @MonopolyTm

    >> Please update your country flag in your profile. Thank you 🙂 <<

    Is the code you submit related to this original topic in some way?

    #95365

    Done!

    Yes, this is the indicator that HARO is asking about. Just that the code is for tradingview and there is a few more added lines for confirmation (61% & 38%).

     

    // mono

    #95367

    Ok, here is the translation of this tradingview code into ProRealTime coding language:

     

    #95429

    My man! Thank you Nicolas!

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