RSI ligne 50 sur prix

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #229900 quote
    PRC_2021
    Participant
    Average

    Bonjour,

    Suite à l’indicateur suivant : Indicateur de rétro-ingénierie RSI – Indicateurs – ProRealTime (prorealcode.com)

    est il possible de faire de même pour la ligne des 50 rsi ?

    Merci par avance

    #229909 quote
    pror
    Participant
    Veteran

    Bjr, essayer

    RSIRevValue = 50

    #229916 quote
    Alain
    Participant
    Senior

    C’est RSIPeriod qu’il faut changer, pas RSIRevValue.

    #229940 quote
    Iván González
    Moderator
    Master

    Comment @pror vous permet-il seulement de modifier la variable RSIRevValue en fonction de la valeur que vous souhaitez.

    REM Reverse Engineering RSI, original by Giorgos Siligardos
    REM Build for ProRealTime, used RSI with WilderAverage
    
    REM Parameters
    RSIRevValue = 50
    RSIPeriod = 14
    
    REM Original RSI values
    RSIOri = RSI[RSIPeriod](close)
    UPOri = MAX(0, close - close[1]) //higher close then previous
    DOWNOri = MAX(0, close[1] - close) //lower close then previous
    upMAOri = wilderAverage[RSIPeriod](UPOri)
    downMAOri = wilderAverage[RSIPeriod](DOWNOri)
    
    
    REM Reversed Engineered RSI Value to Price
    RSRev = (100/((-1*RSIRevValue)+100))-1
    
    if RSIRevValue < RSIOri THEN
    upMARev = upMAOri*(1-(1/RSIPeriod))
    downMARev = upMARev/RSRev
    DOWNRev = (downMARev - (downMAOri * (1-(1/RSIPeriod))))/(1/RSIPeriod)
    RSIPriceRev = close - DOWNRev
    elsif RSIRevValue > RSIOri THEN
    downMARev = downMAOri*(1-(1/RSIPeriod))
    upMARev = downMARev*RSRev
    UPRev = (upMARev - (upMAOri * (1-(1/RSIPeriod))))/(1/RSIPeriod)
    RSIPriceRev = close + UPRev
    endif
    
    RETURN RSIPriceRev as "RSIPriceRev"
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

RSI ligne 50 sur prix


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
PRC_2021 @manu35250 Participant
Summary

This topic contains 3 replies,
has 4 voices, and was last updated by Iván González
1 year, 10 months ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 03/16/2024
Status: Active
Attachments: No files
Logo Logo
Loading...