Rob Hoffman Inventory Retracement Bars

Forums ProRealTime English forum ProBuilder support Rob Hoffman Inventory Retracement Bars

Viewing 12 posts - 1 through 12 (of 12 total)
  • #188512

    Could someone please translate Tradingview’s Rob Hoffman Inventory Retracement Bar Indicator to Prorealtime. Code in Tradingview is as follows:

    study(“Rob Hoffman – Overlay Set”, shorttitle = “RH – MAs”, overlay = true)

    a = sma(close,3)
    b = sma(close,5)

    c = ema(close,18)
    d = ema(close,20)

    e = sma(close,50)
    f = sma(close,89)
    g = ema(close,144)
    h = sma(close,200)

    k = ema(close,35)
    r = rma(tr,35)
    ku = k + r*0.5
    kl = k – r*0.5

    plot(a, title = “Fast Speed Line”, linewidth = 2, color = #0000FF)
    plot(b, title = “Slow Speed Line”, linewidth = 2, color = fuchsia)
    plot(c, title = “Fast Primary Trend Line”, linewidth = 3, color = #00FF00)
    plot(d, title = “Slow Primary Trend Line”, linewidth = 3, color = #000000)
    plot(e, title = “Trend Line – 1”, linewidth = 3, color = #0000FF, style = circles)
    plot(f, title = “Trend Line – 2”, linewidth = 3, color = #20B2AA)
    plot(g, title = “Trend Line – 3”, linewidth = 3, color = #FF4500)
    plot(h, title = “Trend Line – 4”, linewidth = 3, color = fuchsia)

    plot(k, title = “No Trend Zone – Midline”, linewidth = 2, color = #3CB371)
    plot(ku, title = “No Trend Zone – Upperline”, linewidth = 2, color = #3CB371)
    plot(kl, title = “No Trend Zone – Lowerline”, linewidth = 2, color = #3CB371)

     

    #188526

    The code you posted is the Rob Hoffman – Overlay Set (https://it.tradingview.com/script/al4ABhwU-Rob-Hoffman-Overlay-Set/):

     

     

    #188546

    Hello, Sorry I posted the wrong code for Rob Hoffman Inventory Retracement Bar Indicators

    Here is the correct code from Tradingview, if possible to translate to Prorealtime:

    study(title=”UCS_Rob Hoffman_Inventory Retracement Bar”, shorttitle=”UCS_RH_IRB”, precision=2, overlay=true)

    z = input(45, title=”Inventory Retracement Percentage %”, maxval=100)

    // Candle Range
    a = abs(high – low)
    // Candle Body
    b = abs(close – open)
    // Percent to Decimal
    c = z/100

    // Range Verification
    rv = b < c*a

    // Price Level for Retracement
    x = low + (c * a)
    y = high – (c * a)

    sl = rv == 1 and high > y and close < y and open < y
    ss = rv == 1 and low < x and close > x and open > x

    // Line Definition
    li = sl ? y : ss ? x : (x+y)/2

    // Plot Statement
    plotshape(sl, style=shape.triangledown, location=location.abovebar, color=red, title = “Long Bar”, transp = 0)
    plotshape(ss, style=shape.triangleup, location=location.belowbar, color=green, title = “Short Bar”, transp = 0)

    plot(li, style = line, color = blue, title = “Inventory Bar Retracement Price Line”)

     

    #188604

    Here is the translation of this last code about Rob Hoffman inventory retracement bars:

     

    #188630

    Thank you Nicolas,

    its working very well!

     

     

    #190585

    please how do i get Rob Hoffman’s overlay and inventory retracement bar for mt4

    #190586

    Please can anyone help me with the Rob Hoffman’s overlay and retracement Bars for mt4?

    thanks you

    #215527

    hello I used the overlay set of ROB hoffman posted by roberto tot works except this part of code concerning the "no trend zone" the upper band is calculated because if the puts it in histogram they appear but on the whole screen on the other hand nothing n appears for the lower band I imported the code and the rma [10.1] is present

    Kema = average [ 35,1 ] (close )
    Rrma, ignored = CALL "Rma " [ 10,1 ] //https://www.prorealcode.com/prorealtime-indicators/rma-recursive-moving-average/
    Ku   = Kema + (Rrma * 0.5 )
    KL   = Kema- (Rrma * 0.5 )

    can someone help me

    THANKS
    #215627

    @ayrton

    my fault, you are absolutely right. I misread the original code and used CLOSE, instead of TR, for the calculation of RMA.

    This is the new RMA code (I named the file for indicator RmaTR):

    and this is the modified Rob Hoffman – Overlay Set indicator, that I named Rob Hoffman – Overlay Set TR:

    sorry for the inconvenience.

     

    #216264

    hi roberto

     

    thank you very much ,  all it ‘s ok

     

    ERIC

    #221674

    Hi Roberto,

    I think that the average in Line 14 of the Overlay is and Exponential Average.

    I am still trying to figure out the reason why this is the only exponential of the 4 averages.

    #221693

    Thank you for pointing that out, I just realized there are 3 EMAs (C, D and G). This is the updated code:

     

Viewing 12 posts - 1 through 12 (of 12 total)

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