Variante fractales et dow

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #235199 quote
    Atemi19
    Participant
    New

    Bonjour, ça fait un petit moment que je ne suis pas revenu…

    Je voudrais créé une variante des fractales qui prend en compte une partie de ma théorie de Dow également.

    Sur un graphique en bougie, je voudrais bien qu’une flèche soit tracé comme les fractales mais lorsque le plus haut de la bougie dépasse les plus hauts des 3 bougies précédentes : flèche verte haussier et inversement pour le bas qui seraient en dessous des 3 dernières flèche rouge baissier.

    Cordialement….

    #235202 quote
    druby
    Participant
    New

    Est-ce que c’est ce que vous recherchez…

     

    dist = 10  // distance arrow above or below level
    
    c1 = high < high[1] and high[1] > high[2]    // fractal high
    
    c2 = high[1] > high[2] and high[1] > high[3] and high[1] > high[4]   // prior high's
    
    c3 = low > low[1] and low[1] < low[2]       // fractal low
    
    c4 = low[1] < low[2] and low[1] < low[3] and low[1] < low[4]         // prior low's
    
    
    if c1 and c2 then
    drawarrowdown(barindex-1,high[1]+dist) coloured("lime")
    endif
    
    if c3 and c4 then
    drawarrowup(barindex-1,low[1]-dist) coloured("red")
    endif
    
    retur
    #235219 quote
    Atemi19
    Participant
    New

    Bonsoir, il met erreur commande inconnue ligne 1

    #235220 quote
    druby
    Participant
    New

    Lorsque j’ai copié du code, j’ai accidentellement coupé la lettre « n » de la dernière ligne. La dernière ligne doit indiquer « retour ».

     

    dist = 10  // distance arrow above or below level
    
    c1 = high < high[1] and high[1] > high[2]    // fractal high
    
    c2 = high[1] > high[2] and high[1] > high[3] and high[1] > high[4]   // prior high's
    
    c3 = low > low[1] and low[1] < low[2]       // fractal low
    
    c4 = low[1] < low[2] and low[1] < low[3] and low[1] < low[4]         // prior low's
    
    
    if c1 and c2 then
    drawarrowdown(barindex-1,high[1]+dist) coloured("lime")
    endif
    
    if c3 and c4 then
    drawarrowup(barindex-1,low[1]-dist) coloured("red")
    endif
    
    return
    #235245 quote
    Atemi19
    Participant
    New

    Salut, j’ai regardé rapidement et il me semble que les flèches sont à l’envers….

    #235252 quote
    druby
    Participant
    New

     

    dist = 10  // distance arrow above or below level
    
    c1 = high < high[1] and high[1] > high[2]    // fractal high
    
    c2 = high[1] > high[2] and high[1] > high[3] and high[1] > high[4]   // prior high's
    
    c3 = low > low[1] and low[1] < low[2]       // fractal low
    
    c4 = low[1] < low[2] and low[1] < low[3] and low[1] < low[4]         // prior low's
    
    
    if c1 and c2 then
    drawarrowup(barindex-1,high[1]+dist) coloured("lime")
    endif
    
    if c3 and c4 then
    drawarrowdown(barindex-1,low[1]-dist) coloured("red")
    endif
    
    return
    Iván González thanked this post
    #235264 quote
    Atemi19
    Participant
    New

    Merci druby

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

Variante fractales et dow


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
Atemi19 @atemi19 Participant
Summary

This topic contains 6 replies,
has 2 voices, and was last updated by Atemi19
1 year, 6 months ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 07/12/2024
Status: Active
Attachments: No files
Logo Logo
Loading...