Relative Strengh Index + Exponential Average(Rsi)

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #173539 quote
    Alai-n
    Participant
    Veteran

    Bonjour ou Bonsoir,

    J’ai mis en place ce petit code tout ce qu’il y a de plus basique et je ne comprends pas qu’il ne me retourne pas le signal “Vente”, alors que le signal “Achat” fonctionne…!

    Si vous avez une idée ???

    Rsi14  = Rsi[14](close)
    EmaRsi = ExponentialAverage[50](Rsi14)
    // Formulation
    Achat = Rsi14 > 0 and EmaRsi > EmaRsi[1]
    Vente = Rsi14 < 0 and EmaRsi < EmaRsi[1]
    // ______________________________________________________ Conditions Achat ___________________________________________________
    if Achat then
    Drawcandle(open,high,low,close)coloured(0,255,0)
    Drawtext("▴",barindex,low,dialog,bold,15) coloured(255,0,255)
    endif
    // ______________________________________________________ Conditions Vente ___________________________________________________
    if Vente then
    Drawcandle(open,high,low,close)coloured(255,0,0)
    Drawtext("▾",barindex,high,dialog,bold,15) coloured(255,0,255)
    endif
    
    
    return RSI14 as "Rsi14", EmaRsi as "EmaRsi", Achat as "Achat", Vente as "Vente"
    #173540 quote
    robertogozzi
    Moderator
    Master

    Parce que RSI ne peut pas être <0 (plages de 0 à 100).

    Alai-n thanked this post
    #173542 quote
    JC_Bywan
    Moderator
    Master

    Bonjour, le rsi sera compris entre 0 et 100, la ligne 5 cherche un rsi… négatif… ça ne peut pas marcher.

    Alai-n thanked this post
    #173543 quote
    Alai-n
    Participant
    Veteran

    Quel idiot c’est 50 que je voulais écrire ! Je vais aller me coucher… Merci

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

Relative Strengh Index + Exponential Average(Rsi)


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
Alai-n @alai-n Participant
Summary

This topic contains 3 replies,
has 3 voices, and was last updated by Alai-n
4 years, 8 months ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 07/12/2021
Status: Active
Attachments: No files
Logo Logo
Loading...