RSI sur Prix (borne du milieu)

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #193166 quote
    geoffroy garaygeoffroy garay
    Participant
    Junior

    Bonjour, j’aimerais rajouter une borne RSI 50 au deux bornes déjà existante s’il vous plait merci.

    J’ai rajouté RSImidlimit=50 mais il comprend pas…

    Voici le code:

    // oversold-overbought RSI band on price

    RSIsuplimit=70
    RSIinflimit=30
    a=rsi[14](close)

    up=max(close-close[1],0)
    down=max(0,close[1]-close)

    avgUPieri=wilderaverage[14](up[1])
    avgDOWNieri=wilderaverage[14](down[1])

    //calcul de la borne supérieur
    if a[1]<=RSIsuplimit then
    RAPPsuplimit=RSIsuplimit/(100-RSIsuplimit)
    avgUPoggiRSIsuplimit=avgDOWNieri*RAPPsuplimit
    upSUPlimit=(avgUPoggiRSIsuplimit*14)-(avgUPieri*13)
    else
    RAPPsuplimit=RSIsuplimit/(100-RSIsuplimit)
    avgDOWNoggiRSIsuplimit=avgUPieri/RAPPsuplimit
    downSUPlimit=(avgDOWNoggiRSIsuplimit*14)-(avgDOWNieri*13)
    endif
    if a<=RSIsuplimit then
    sup=close[1]+upSUPlimit
    else
    sup=close[1]-downSUPlimit
    endif
    //ccalcul de la borne inférieur
    if a[1]<=RSIinflimit then
    RAPPinflimit=RSIinflimit/(100-RSIinflimit)
    avgUPoggiRSIinflimit=avgDOWNieri*RAPPinflimit
    upINFlimit=(avgUPoggiRSIinflimit*14)-(avgUPieri*13)
    else
    RAPPinflimit=RSIinflimit/(100-RSIinflimit)
    avgDOWNoggiRSIinflimit=avgUPieri/RAPPinflimit
    downINFlimit=(avgDOWNoggiRSIinflimit*14)-(avgDOWNieri*13)
    endif

    if a<=RSIsuplimit then
    sup=close[1]+upSUPlimit
    else
    sup=close[1]-downSUPlimit
    endif

    if a<=RSIinflimit then
    inf=close[1]+upINFlimit
    else
    inf=close[1]-downINFlimit
    endif

    return sup as “RSI overbought”, inf as “RSI oversold”

    #193176 quote
    geoffroy garaygeoffroy garay
    Participant
    Junior

    re bonjour,

    pour préciser ma demande, j’aurais besoin de pouvoir rajouter toutes les bandes  en faite, pas que la 50, si c’est possible un modèle ou je rajoute à ma guise merci beaucoup

    #193192 quote
    geoffroy garaygeoffroy garay
    Participant
    Junior

    Voilà , j’ai trouvé à force de travail, de transpiration et de larmes.

    Je vous remercie de ne pas avoir répondu car sans vous, je n’y serais jamais arrivé tout seul ^^.

    #193199 quote
    JC_BywanJC_Bywan
    Moderator
    Master

    De rien alors…

    #193221 quote
    NicolasNicolas
    Keymaster
    Legend

    Il faut parfois se faire du mal pour apprendre, je suis satisfait que tu ais appris quelque chose, ça te permettra d’aider d’autres membres peut être ? Bon courage pour la suite ! 🙂

Viewing 5 posts - 1 through 5 (of 5 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 sur Prix (borne du milieu)


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
Summary

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

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 05/13/2022
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...