Screener Heikin ashi

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #16997 quote
    Carl
    Participant
    Average

    Ci-dessous une demande qui a été envoyée à ProRealTime :

    Bonjour

    Je souhaiterais un Sceener avec les caractéristiques suivantes

    3 bougies Heiken Ashi vertes consécutives suivi de 1 bougie rouge Heiken Ashi (Le tout a la cloture)

    ou

    3 bougies Heiken Ashi rouges consécutives suivi de 1 bougie verte Heiken Ashi (Le tout a la cloture)

    Merci

    Et une proposition de réponse :

    IF BarIndex = 0 THEN
    xClose = TotalPrice
    xOpen = Open
    //xHigh = max(High,max(xOpen,xClose))
    //xLow = min(Low,min(xOpen,xClose))
    ELSE
    xClose = TotalPrice
    xOpen = (xOpen[1] + xClose[1])/2
    //xHigh = max(High,max(xOpen,xClose))
    //xLow = min(Low,min(xOpen,xClose))
    ENDIF
    
    condition=xclose < xopen and xclose[1] > xopen[1] and xclose[2] > xopen[2] and xclose[3] > xopen[3]
    
    screener[condition]
    #111889 quote
    jeanguy
    Participant
    Senior

    Bonjour je relance ce post pour savoir si ce code est valable ? Sinon est-il possible de le corriger

    //Réglage durée du trend
    HAquantity = 5
    
    //Définition du Heikin Ashi
    If barindex = 0 then
    HAClose = totalprice
    HAopen = open
    else
    HAClose =totalprice
    HAopen =(HAopen[1]+HAClose[1])/2
    endif
    
    //Calcul du Trend
    TrendHAbull = summation[HAquantity](HAclose[1]>HAopen[1])>= HAquantity//Trend haussier de 5 bougies Heikin Ashi
    TrendHAbear = summation[HAquantity](HAclose[1]<HAopen[1])>=HAquantity//Trend baissier de 5 bougies Heikin Ashi
    
    //Conditions du screener
    CA = TrendHABull and HAClose<HAopen// Trend haussier + Retournement
    CV = TrendHAbear and HAClose<HAopen//Trend baissier + Retourenement
    
    SCREENER[CA or CV]

    Je cherche à rendre réglable la variable de durée du trend (ici 5 bougies HK) et j’aimerai que le screener retourne la valeur de retournement sur la barre en cours (si le marché est actif) ou sur la dernière barre connue (s’il est inactif)

    Merci de votre aide

    #111890 quote
    jeanguy
    Participant
    Senior

    Je précise que j’ai essayé mais qu’il ne fonctionne pas.

    Par ailleurs le retournement HK est très souvent en retard donc si vous avez des pistes pour anticiper un peu mieux les fins de Trend… n’hésitez pas à m’orienter. Merci

    #111994 quote
    Nicolas
    Keymaster
    Master

    Le code du screener comportait une erreur sur le retournement haussier avec une suite de bougies baissières consécutives.

    La quantité de bougies paramétrable, c’est la première ligne du code 🙂

    Ci-dessous la version corrigée.

    //Réglage durée du trend
    HAquantity = 5
    
    //Définition du Heikin Ashi
    If barindex = 0 then
    HAClose = totalprice
    HAopen = open
    else
    HAClose =totalprice
    HAopen =(HAopen[1]+HAClose[1])/2
    endif
    
    //Calcul du Trend
    TrendHAbull = summation[HAquantity](HAclose[1]>HAopen[1])= HAquantity//Trend haussier de 5 bougies Heikin Ashi
    TrendHAbear = summation[HAquantity](HAclose[1]<HAopen[1])=HAquantity//Trend baissier de 5 bougies Heikin Ashi
    
    //Conditions du screener
    CA = TrendHABull and HAClose<HAopen// Trend haussier + Retournement
    CV = TrendHAbear and HAClose>HAopen//Trend baissier + Retourenement
    
    SCREENER[CA or CV]
    #112381 quote
    jeanguy
    Participant
    Senior

    Nickel il fonctionne du feu de dieu ! 😉

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

Screener Heikin ashi


ProScreener : Scanners de Marché & Détection

New Reply
Author
author-avatar
Carl @carl Participant
Summary

This topic contains 4 replies,
has 3 voices, and was last updated by jeanguy
6 years, 4 months ago.

Topic Details
Forum: ProScreener : Scanners de Marché & Détection
Language: French
Started: 11/23/2016
Status: Active
Attachments: No files
Logo Logo
Loading...