Déterminer la superficie d’un range.

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

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

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 MachinMachin
6 years ago.

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