Trading View to Pro Real time code

Forums ProRealTime English forum ProBuilder support Trading View to Pro Real time code

Viewing 5 posts - 1 through 5 (of 5 total)
  • #70936

    Hi Everyone,

    I have just moved from using Tradingview to Prorealtime. Looking for help in converting one of the indicators I used there. Unfortunately, dont have the xperience to convert myself.

    Is there a way somebody can help?

    study(title=”RSI Divergence”, shorttitle=”RSI Divergence”)
    src_fast = close, len_fast = input(5, minval=1, title=”Length Fast RSI”)
    src_slow = close, len_slow = input(14,minval=1, title=”Length Slow RSI”)
    up_fast = rma(max(change(src_fast), 0), len_fast)
    down_fast = rma(-min(change(src_fast), 0), len_fast)
    rsi_fast = down_fast == 0 ? 100 : up_fast == 0 ? 0 : 100 – (100 / (1 + up_fast / down_fast))
    up_slow = rma(max(change(src_slow), 0), len_slow)
    down_slow = rma(-min(change(src_slow), 0), len_slow)
    rsi_slow = down_slow == 0 ? 100 : up_slow == 0 ? 0 : 100 – (100 / (1 + up_slow / down_slow))
    //plotfast = plot(rsi_fast, color=blue)
    //plotslow = plot(rsi_slow, color=orange)
    divergence = rsi_fast – rsi_slow
    plotdiv = plot(divergence, color = divergence > 0 ? lime:red, linewidth = 2)
    //band1 = hline(70,color=green)
    //band0 = hline(30,color=red)
    band = hline(0)

    Thanks

    Ritesh

    #70991

    Hi Ritesh Nayak , Maybe it’s something like this :

     

    #70993

    allow me a small correction, now if I give it for good :

     

     

    1 user thanked author for this post.
    #71005

    Thanks bolsatrilera!

    @Ritesh

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

     

    #71025

    Amazing work Nicholas. You are superb

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

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