Plus haut / plus bas heinkin ashi

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #195062 quote
    thepenguin4
    Participant
    New

    Bonjour, j’aimerais calculer le plus haut / plus bas sur un grand nombre de bougies heikin ashi. Étant donné qu’on ne pas utiliser la commande highest / lowest, je voulais savoir si vous connaissiez une astuce pour éviter une boucle while un peu bourrine. Merci beaucoup

    #195063 quote
    Nicolas
    Keymaster
    Master

    Pourquoi ne pas utiliser les instructions Highest/Lowest ? On peut les appliquer à la série de données que l’on veut :

    xClose = (open+high+low+close)/4
    IF BarIndex=0 THEN
    xOpen = open
    xHigh = high
    xLow = low
    ELSe
    xOpen = (xOpen[1] + xClose[1])/2
    xHigh = Max(Max(high, xOpen), xClose)
    xLow = Min(Min(low, xOpen), xClose)
    ENDIF
    
    hh = highest[30](xhigh)
    
    return hh as "plus haut des bougies HA"
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Plus haut / plus bas heinkin ashi


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Nicolas
3 years, 9 months ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 06/10/2022
Status: Active
Attachments: No files
Logo Logo
Loading...