Screener Doji Heikin Ashi avec SAR inversé en séance

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #258601 quote
    HUGO LEVIEILSHUGO LEVIEILS
    Participant
    Senior

    Bonjour,

    Quelqu’un peu me modifier un code si possible ?

    C’est pour rajouter le sar inversé en séances

    voila le code

    merci d’avance 🙏


    //PRC_Doji Heikin Ashi | screener
    //10.01.2017
    //Nicolas @ www.prorealcode.com
    //Sharing ProRealTime knowledge
    
    // --- parameters
    DojiSize = 5 //x% percent of body size compared to the complete range of the candlestick
    // ---
    
    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
    
    data=(abs(haopen - haclose) <= (hahigh - halow) * DojiSize/100)
    
    red = haopen>haclose
    green = haclose>=haopen
    
    screener [data and green and red[1] and red[2] and red[3]]
    
    #258604 quote
    Iván GonzálezIván González
    Moderator
    Legend

    Bonjour, vous devrez ajouter ces lignes au code.

    // Parabolic SAR calculation (Standard parameters) 
    mySar = SAR[0.02, 0.02, 0.2] 
    // Condition for reversed SAR (Bullish reversal) 
    sarReversed = close CROSSES OVER mySar
    

    et enfin modifier le filtre pour ajouter la nouvelle condition :

    SCREENER [data AND greenCandle AND redCandle[1] AND redCandle[2] AND redCandle[3] AND sarReversed]
    


    HUGO LEVIEILS thanked this post
    #258611 quote
    HUGO LEVIEILSHUGO LEVIEILS
    Participant
    Senior

    Ivan je les rajoutes ou ? c’est lignes ? au début au milieu ?

    Stp

    peut-tu le modifier tu a l’habitude,moi non.

    Merci

    #258622 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Voici la version modifiée avec les lignes de code écrites par Ivan :

    //PRC_Doji Heikin Ashi | screener
    //10.01.2017
    //Nicolas @ www.prorealcode.com
    //Sharing ProRealTime knowledge
    
    // --- parameters
    DojiSize = 5 //x% percent of body size compared to the complete range of the candlestick
    // ---
    
    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
    
    data=(abs(haopen - haclose) haclose
    green = haclose>=haopen
    
    // Parabolic SAR calculation (Standard parameters) 
    mySar = SAR[0.02, 0.02, 0.2] 
    // Condition for reversed SAR (Bullish reversal) 
    sarReversed = close CROSSES OVER mySar
    
    
    SCREENER [data AND greenCandle AND redCandle[1] AND redCandle[2] AND redCandle[3] AND sarReversed]
    Cependant, je pense que la ligne sarReversed = close CROSSES OVER mySar devrait être écrite avec des bougies HA, plutôt qu'avec des bougies normales (je pense qu'Ivan ne l'a pas fait par inadvertance) : 
    

    Cependant, je pense que la ligne sarReversed = close CROSSES OVER mySar devrait être écrite avec des bougies HA, au lieu de bougies normales (je pense qu’Ivan ne l’a pas fait par inadvertance) :

    sarReversed = haclose CROSSES OVER mySar
    


    Iván González and HUGO LEVIEILS thanked this post
    #258626 quote
    HUGO LEVIEILSHUGO LEVIEILS
    Participant
    Senior

    Robert , j’ai un code Erreur voir photo, Merci pour votre aide 🙏


    ERREUR.png ERREUR.png
    #258655 quote
    HUGO LEVIEILSHUGO LEVIEILS
    Participant
    Senior

    Bonjour,

    quelqu’un peu si possible regarder pour le code erreur ?

    Merci 🙏

    #258656 quote
    GraHalGraHal
    Participant
    Legend

    Try changing:

    1. ‘greencandle’ to green
    2. ‘redcandle’ to red

    in the ‘Return’ expression at the bottom of the code.


    Iván González and HUGO LEVIEILS thanked this post
    #258657 quote
    GraHalGraHal
    Participant
    Legend

    in my post above … Return should say Screener.

    Reason for the change I suggest above is that greencandle / redcandle are not defined in the code, but ‘green’ and ‘red’ are defined.

    HUGO LEVIEILS thanked this post
    #258664 quote
    HUGO LEVIEILSHUGO LEVIEILS
    Participant
    Senior

    Merci beaucoup 🙏

    GraHal thanked this post
    #258665 quote
    GraHalGraHal
    Participant
    Legend
    Je vais corriger ça dans une minute… Il serait plus simple de remplacer « green » par « greencandle » et « redcandle » par « redcandle » aux lignes 21 et 22 du code de Roberto.
    
    Au passage, je présente mes excuses aux modérateurs : j’ai enfreint les règles linguistiques en publiant en anglais.
    
    Aider les utilisateurs non anglophones sur le nouveau site web n’est pas aussi simple, car il n’y a pas d’outil de traduction automatique. Il est donc plus facile de se tromper, mais je ferai mieux la prochaine fois !
    


    HUGO LEVIEILS thanked this post
    #258685 quote
    HUGO LEVIEILSHUGO LEVIEILS
    Participant
    Senior

    merci GraHal 🙏

    GraHal thanked this post
Viewing 11 posts - 1 through 11 (of 11 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

Screener Doji Heikin Ashi avec SAR inversé en séance


Support Plateforme : Graphiques, Données & Courtiers

New Reply
Author
Summary

This topic contains 10 replies,
has 4 voices, and was last updated by HUGO LEVIEILSHUGO LEVIEILS
8 months ago.

Topic Details
Forum: Support Plateforme : Graphiques, Données & Courtiers
Language: French
Started: 03/02/2026
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...