Code basé sur les bougies heikin-ashi

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

    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 ?

    signaux-trading-heikin-ashi.png signaux-trading-heikin-ashi.png
    #30557 quote
    SofitechSofitech
    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.
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

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 SofitechSofitech
9 years, 5 months ago.

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