rsi divergence de tradingview

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #124468 quote
    quini999quini999
    Participant
    Veteran

    Bonjour, pourriez-vous convertir cet indicateur de tradingview en temps réel appelé divergence rsi

    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)
    quini-rsi-divergente.png quini-rsi-divergente.png
    #124563 quote
    NicolasNicolas
    Keymaster
    Legend

    J’essaierai de m’en occuper ce week-end,  sinon merci de me le rappeler la semaine prochaine.

    #124604 quote
    quini999quini999
    Participant
    Veteran

    OK

    #124773 quote
    NicolasNicolas
    Keymaster
    Legend

    Cet indicateur c’est tout simplement la différence d’un RSI rapide (5 périodes) et d’un RSI lent (14 périodes), qui pourrait être codé comme ceci:

    diff = rsi[5]-rsi[14]
    return diff,0
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

rsi divergence de tradingview


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
quini999 @quini999 Participant
Summary

This topic contains 3 replies,
has 2 voices, and was last updated by NicolasNicolas
6 years, 5 months ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 04/03/2020
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...