Déterminer la superficie d’un range.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #143328 quote
    Machin
    Participant
    New

    Peut-on déterminer le nombre de chandelles au sein d’un range, entre un top et un bottom ? Si oui comment puis-je procéder ?

    Merci pour vos retours ! 🙂

    #143341 quote
    Nicolas
    Keymaster
    Master

    Bien sûr, le tout étant de savoir comment tu identifies le top et le bottom ? Entre ces 2 événements on pourra compter le nombre de bougies présentes.

    #143396 quote
    Machin
    Participant
    New

    Pour parvenir à cette fin j’utilise Zigzag au sein du code suivant :

    //Zigzag
    ZZ=ZigZag[8](high)
    ZZ2=ZigZag[8](low)
    
    //Tops, bottoms identification
    Top = zz<zz[1] and zz[1]>zz[2]
    Botttom = zz2>zz2[1] and zz2[1]<zz2[2]

    Le top ou le bottom est alors la valeur de zigzag précédente : zz[1].

    C’est entre ces deux valeurs que je souhaite obtenir le nombre de candlesticks.

    #143447 quote
    Machin
    Participant
    New

    Edit : Je suis parvenu à résoudre mon problème grâce à une boucle while :).

    Merci tout de même !

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

Déterminer la superficie d’un range.


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
Machin @machin Participant
Summary

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

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 09/03/2020
Status: Active
Attachments: No files
Logo Logo
Loading...