Le high/low index

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #119745 quote
    jaguer
    Participant
    New

    Bonjour,

    Je souhaite recevoir de l’aide pour la programmation d’un indicateur. Il semble qu’il soit très utile dans les analyses de très long terme d’indice lorsqu’il y a une divergence haussière ou baissière.

    Ayant regardé un peu partout je ne l’ai pas trouvé.

    N’étant pas doué avec la programmation est il possible de m’aider ?

    Voici la page du calcul et son interprétation : https://www.investopedia.com/terms/h/high-low-index.asp

    Merci beaucoup

    #119768 quote
    Nicolas
    Keymaster
    Master

    Selon moi le code du High-Low index devrait ressembler à ceci :

    hh=highest[260](high)
    ll=lowest[260](low)
    rhp = hh/(hh+ll)*100
    hli = average[10](rhp)
    
    return rhp,hli

    Le High-Low Index est un indicateur basé sur un pourcentage record, qui est basé sur de nouveaux sommets de 52 semaines et de nouveaux creux de 52 semaines. Le pourcentage record élevé est égal à de nouveaux sommets divisé par de nouveaux sommets et de nouveaux creux. L’Indice Haut-Bas est simplement un SMA de 10 jours du Record High Percent, ce qui en fait une version lissée du Record High Percent.

    #119781 quote
    robertogozzi
    Moderator
    Master

    Mon interprétation de sa formule ( https://www.investopedia.com/terms/h/high-low-index.asp ) est un peu différente, car il s’agit de NOUVEAUX hauts et de NOUVEAUX bas, instés des plus hauts hauts / plus bas bas, donc j’ajoute seulement quand un haut est > du précédent et quand un bas est < au précédent:

    hh       = summation[260](high * (high > high[1]))
    ll       = summation[260](low  * (low  < low[1]))
    rhp      = hh / (hh + ll) * 100
    hli      = average[10](rhp)
    return rhp AS "HI-LO index",hli AS "Signal"
    Nicolas thanked this post
    x-6.jpg x-6.jpg
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Le high/low index


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
jaguer @jaguer Participant
Summary

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

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 02/16/2020
Status: Active
Attachments: 1 files
Logo Logo
Loading...