Plus haut / plus bas heinkin ashi

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #195062 quote
    thepenguin4thepenguin4
    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
    NicolasNicolas
    Keymaster
    Legend

    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.
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

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 NicolasNicolas
4 years, 3 months ago.

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