Code basé sur les bougies heikin-ashi

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #30170 quote
    Sofitech
    Participant
    Master

    Je cherche à faire un tout petit code sur les bougies en Heiken Heishi.

    Tendance bull :
    Si HA Close est supérieur à HA High précédent.
    Indiquer bull = 1
    Sinon 0

    Tendance Bear
    Si HAClose est inférieur à HA Low précédent
    Indiquer Bear = -1
    Sinon 0

    Si quelqu’un sait faire…

    #30222 quote
    Nicolas
    Keymaster
    Master

    Tu trouveras ci-dessous le code de ce petit indicateur de signaux de trading basé sur les bougies Heikin Ashi.

    if barindex>1 then
    haclose=(open+close+low+high)/4
    haopen=(haopen[1]+haclose[1])/2
    xHigh = Max(haOpen, haClose)
    xLow = Min(haOpen, haClose)
    hahigh = Max(High,xHigh)
    halow = Min(Low,xLow)
    endif
    
    if haclose>hahigh[1] then 
    signal=1
    elsif haclose<halow[1] then 
    signal=-1
    else
    signal=0
    endif
    
    return signal

    C’est destiné à un plus ample projet ?

    #30557 quote
    Sofitech
    Participant
    Master

    Salut Nicolas,
    Merci beaucoup pour ce code. Oui en effet, je réfléchis à des combinaisons avec Ichimoku et Heikin-Ashi

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

Code basé sur les bougies heikin-ashi


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
Sofitech @sofitech Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Sofitech
8 years, 10 months ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 03/28/2017
Status: Active
Attachments: 1 files
Logo Logo
Loading...