Gamme de Prix comparée à Gamme précédente

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #246509 quote
    Alai-n
    Participant
    Veteran

    Bonjour,

    J’ai un soucis que je n’arrive pas à résoudre!

    Je tente de comparer la gamme de prix précédente (open[1]-close[1]) avec la Gamme antérieure! Je souhaiterais le visualiser avec Drawcandle.

    Cependant le résultat est plus que mitigé et aléatoire, car parfois les résultats sont bons et d’autres pas. Et je ne parle même pas de l’affichage Drawcandle qui part en sucette…

    Pourriez-vous m’indiquer ce que j’ai raté?

    C1 = open[1]-close[1]
    C2 = open[2]-close[2]
    
    If C1<C2 and Volume[1]>Volume[2] Then 
    DRAWCANDLE(open[1], high[1], low[1], close[1])COLOURED("yellow") BORDERCOLOR("yellow")
    endif 
    
    Return
    #246512 quote
    JS
    Participant
    Senior

    Lorsque vous voulez comparer une “range”, vous devez utiliser les “valeurs absolues” dans votre calcul, car actuellement les valeurs peuvent être positives ou négatives en fonction de la “direction” des bougies (haussières ou baissières)…

    C1 = abs(open[1]-close[1])
    C2 = abs(open[2]-close[2])
     
    If C1<C2 and Volume[1]>Volume[2] Then
    DRAWCANDLE(open[1], high[1], low[1], close[1])COLOURED("yellow") BORDERCOLOR("yellow")
    endif
     
    Return
    Iván González thanked this post
    #246514 quote
    Alai-n
    Participant
    Veteran

    @JS, merci beaucoup. Je me doutais qu’il y avait un problème par là, sans savoir comment m’y prendre! Bonne journée

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

Gamme de Prix comparée à Gamme précédente


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
Alai-n @alai-n Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Alai-n
9 months, 1 week ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 04/29/2025
Status: Active
Attachments: 1 files
Logo Logo
Loading...