code RSI bands sur prix

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #244520 quote
    ayrtonayrton
    Participant
    Junior

    bonjour

     

    quelqu’ un a t il le code du rsi bands dispo sur MT4 ou tradingview    en langage PRT ?

     

    merci

    #244521 quote
    LucasBestLucasBest
    Participant
    Senior

    Bonsoir,

    si c’est le fait d’afficher des bandes correspondant à la valeur de close si la valeur du RSI était égale aux seuils OB/OS, alors voici le code :

    once Wilder = 1 / RSIperiod
    
    RSCible = RSIcibleH / (100 - RSIcibleH)
    
    hausse = max(0, close - close[1])
    baisse = max(0, close[1] - close)
    
    mmHausse = wilderAverage[RSIperiod](hausse)
    mmBaisse = wilderAverage[RSIperiod](baisse)
    
    if RSICibleH > RSI[RSIperiod](close) then
    mmBaisseCible = (1 - Wilder) * mmBaisse
    mmHausseCible = RSCible * mmBaisseCible
    HausseCible = ((Wilder - 1) * mmHausse + mmHausseCible ) / Wilder
    CloseCibleH = Close + HausseCible
    
    Elsif RSIcibleH < RSI[RSIperiod](close) then
    mmHausseCible = (1 - Wilder) * mmHausse
    mmBaisseCible = mmHausseCible / RSCible
    BaisseCible = ((Wilder - 1) * mmBaisse + mmBaisseCible ) / Wilder
    CloseCibleH = Close - BaisseCible
    
    Else
    CloseCibleH = Close
    Endif
    
    RSCible = RSIcibleB / (100 - RSIcibleB)
    
    hausse = max(0, close - close[1])
    baisse = max(0, close[1] - close)
    
    mmHausse = wilderAverage[RSIperiod](hausse)
    mmBaisse = wilderAverage[RSIperiod](baisse)
    
    if RSICibleB > RSI[RSIperiod](close) then
    mmBaisseCible = (1 - Wilder) * mmBaisse
    mmHausseCible = RSCible * mmBaisseCible
    HausseCible = ((Wilder - 1) * mmHausse + mmHausseCible ) / Wilder
    CloseCibleB = Close + HausseCible
    
    Elsif RSIcibleB < RSI[RSIperiod](close) then
    mmHausseCible = (1 - Wilder) * mmHausse
    mmBaisseCible = mmHausseCible / RSCible
    BaisseCible = ((Wilder - 1) * mmBaisse + mmBaisseCible ) / Wilder
    CloseCibleB = Close - BaisseCible
    
    Else
    CloseCibleB = Close
    Endif
    
    return CloseCibleH style(line,2) coloured("red",150), CloseCibleB style(line,2) coloured("darkgreen",150)
    robertogozzi and Iván González thanked this post
    RSI-bands.itf Capture-decran-2025-03-01-215112.png Capture-decran-2025-03-01-215112.png
    #244525 quote
    ayrtonayrton
    Participant
    Junior

    super , merci pour ta réponse

     

    bonne soirée

Viewing 3 posts - 1 through 3 (of 3 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

code RSI bands sur prix


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
ayrton @ayrton Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by ayrtonayrton
1 year, 6 months ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 03/01/2025
Status: Active
Attachments: 2 files
ProRealCode ProRealCode
Loading...