compteur de bougies de hausse et de baisse

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #222922 quote
    LjuLju
    Participant
    New

    Bonjour je cherche un indicateur sur des bougies 5 minutes en Heikin Ashi qui pourrait passé sur “1” apres 4 bougies verte consecutive et sur “-1” apres 4 bougies rouge consecutive

    est ce possible ?

    Merci par avance

    #222966 quote
    JSJS
    Participant
    Master

    Bonjour @Lju

    Voici l’indicateur:

    Once xOpen=Open
    xClose=(Open+Close+High+Low)/4
    If BarIndex>0 then
    xOpen=(xOpen[1]+xClose[1])/2
    endif
    
    If xClose>=xOpen then
    Bullish=Bullish+1
    Bearish=0
    ElsIf xClose<xOpen then
    Bearish=Bearish+1
    Bullish=0
    EndIf
    
    If Bullish>=4 then
    HACC=1
    ElsIf Bearish>=4 then
    HACC=-1
    Else
    HACC=0
    EndIf
    
    If HACC=1 then
    R=0
    G=255
    B=0
    ElsIf HACC=-1 then
    R=255
    G=0
    B=0
    EndIf
    
    DrawHLine(0)Coloured("Blue")
    
    Return HACC as "Haikin Ashi Candle Counter" Coloured(R,G,B) Style(Histogram)
    Msport71, Lju and Bodaris thanked this post
    Scherm­afbeelding-2023-10-26-om-17.25.53.png Scherm­afbeelding-2023-10-26-om-17.25.53.png
    #222969 quote
    LjuLju
    Participant
    New

    Merci beaucoup pour le temps consacré à l’elaboration de l’indicateur

    tout fonctionne tres bien, c’est top

    JS thanked this post
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

compteur de bougies de hausse et de baisse


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
Lju @lju Participant
Summary

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

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 10/25/2023
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...