Signal corrélation bar chart

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #239894 quote
    Atemi19
    Participant
    New

    Bonjour, je souhaite travailler le price action. J’ai deux graphiques un graphique avec bar chart 5 points et l’autre 20 points. Pour une tendance prononcée, un bar chart 20 point fait 4 Bart du graphe 5 points. En gros je voudrais qu’il y ait un signal a chaque fois qu’il y a ce genre de configuration et voir aussi le contraire trop de bar de 5 points alors qu’il n’y a qu’un bar de 20 points pour montrer range ou affaiblissement tendance….

    Cordialement.

    #239896 quote
    JS
    Participant
    Senior

    Salut,
    Je suppose que tu parles de Renko. Étant donné qu’il n’est pas possible d’échanger des données entre graphiques et que les unités de temps ne sont pas disponibles pour Renko, tu pourrais partir d’un graphique Renko de 5 points et y définir les différentes conditions… ?

    DefParam DRAWONLASTBARONLY =True
    
    UpTrend=Summation[4](Close>Close[1])=4
    DownTrend=Summation[4](Close<Close[1])=4
    WeakUpTrend=UpTrend and Summation[5](Close<Close[1])=1
    WeakDownTrend=DownTrend and Summation[5](Close>Close[1])=1
    NoTrend=NOT UpTrend and NOT DownTrend and NOT WeakUpTrend and NOT WeakDownTrend and (Summation[4](Close>Close[1])<4 or Summation[4](Close>Close[1])<4)
    
    If UpTrend then
    DrawText("UpTrend",-150,-100,SansSerif,Bold,45)Coloured("Green")Anchor(TopRight)
    EndIf
    
    If DownTrend then
    DrawText("DownTrend",-150,-100,SansSerif,Bold,45)Coloured("Red")Anchor(TopRight)
    EndIf
    
    If WeakUpTrend then
    DrawText("WeakUpTrend",-150,-100,SansSerif,Bold,45)Coloured("Orange")Anchor(TopRight)
    EndIf
    
    If WeakDownTrend then
    DrawText("WeakDownTrend",-150,-100,SansSerif,Bold,45)Coloured("Orange")Anchor(TopRight)
    EndIf
    
    If NoTrend then
    DrawText("NoTrend",-150,-100,SansSerif,Bold,45)Coloured("Yellow")Anchor(TopRight)
    EndIf
    
    Return
    #239902 quote
    Atemi19
    Participant
    New

    Oui mais le souci c’est que je n’aime pas trop les renko car il faut 2 fois le mouvements pour faire l’inverse c’est pour cela que j’aime bien les bars charts car c’est uniquement le même mouvement….après si tu as la même chose en renko je serais preneur car je ne veux pas l’inversion de renko il faut absolument qu’il y ait le même prix….

    #239932 quote
    Iván González
    Moderator
    Master
    Dans ce graphique de voiles, vous pouvez voir les 2 Renko, un en forme de voiles et l'autre cogiendo le point moyen. Vous pouvez vous rendre à Marlo comme point de départ pour ce que vous cherchez à programmer.
    //—settings
    boxsize=5//renko bricks size in points/pips
    boxsize1=20//renko bricks size in points/pips
    
    transparency=100//brick colours alpha
    wicksize=0 //width of wicks
    //—end of settings
    //----------------------------------------------//
    // Renko 
    //----------------------------------------------//
    size=boxsize*pointsize
    
    once upbox = close
    once downbox = close - size
    once lowwick = close*100
    
    IF close > upbox + size THEN
    upbox = upbox + size
    downbox = downbox + size
    r=0
    g=200
    begin=barindex
    highwick=close
    wickbar=barindex-round((barindex-begin[1])/2)
    ELSIF close < downbox - size THEN
    upbox = upbox - size
    downbox = downbox - size
    r=200
    g=0
    begin=barindex
    wickbar=barindex-round((barindex-begin[1])/2)
    ENDIF
    //draw renko candlesticks
    drawcandle(upbox,upbox,downbox,downbox)coloured(r,g,0,min(transparency,255))
    //----------------------------------------------//
    // Renko 1
    //----------------------------------------------//
    size1=boxsize1*pointsize
    
    once upbox1 = close
    once downbox1 = close - size1
    once lowwick1 = close*100
    
    IF close > upbox1 + size1 THEN
    upbox1 = upbox1 + size1
    downbox1 = downbox1 + size1
    r1=0
    g1=255
    begin1=barindex
    highwick1=close
    wickbar1=barindex-round((barindex-begin1[1])/2)
    ELSIF close < downbox1 - size1 THEN
    upbox1 = upbox1 - size1
    downbox1 = downbox1 - size1
    r1=255
    g1=0
    begin1=barindex
    wickbar1=barindex-round((barindex-begin1[1])/2)
    ENDIF
    
    Mid1 = (upbox1+downbox1)/2
    //----------------------------------------------//
    RETURN Mid1 coloured(r1,g1,0) style(line,2)
    #239935 quote
    Atemi19
    Participant
    New
    Merci beaucoup ivan c’est super cool…..mais tu sais si ça peut se faire sur du bart chart ?
    #239955 quote
    Atemi19
    Participant
    New
    Js comment tu fais pour qu’il y ait une flèche directement sur le graphe afin de voir tous les signaux sur le graphe s’il te plait ? Cordialement.
    #239956 quote
    fifi743
    Participant
    Master
    tu peux utiliser DRAWARROWUP(barindex, close ) ou DRAWARROWDOWN (barindex, close)
    #240027 quote
    Atemi19
    Participant
    New
    Salut ivan, ton code est nickel. Est il possible de créer comme un canal de donchian à savoir par rapport à la trendline qui est crée : mettre la même taille au dessus et en dessous ? Cordialement.
    #240065 quote
    Iván González
    Moderator
    Master
    Tu te réfères à ça ?
    //—settings
    boxsize=5//renko bricks size in points/pips
    boxsize1=20//renko bricks size in points/pips
    
    transparency=100//brick colours alpha
    wicksize=0 //width of wicks
    //—end of settings
    //----------------------------------------------//
    // Renko
    //----------------------------------------------//
    size=boxsize*pointsize
    
    once upbox = close
    once downbox = close - size
    once lowwick = close*100
    
    IF close > upbox + size THEN
    upbox = upbox + size
    downbox = downbox + size
    r=0
    g=200
    begin=barindex
    highwick=close
    wickbar=barindex-round((barindex-begin[1])/2)
    ELSIF close < downbox - size THEN
    upbox = upbox - size
    downbox = downbox - size
    r=200
    g=0
    begin=barindex
    wickbar=barindex-round((barindex-begin[1])/2)
    ENDIF
    //draw renko candlesticks
    drawcandle(upbox,upbox,downbox,downbox)coloured(r,g,0,min(transparency,255))
    //----------------------------------------------//
    // Renko 1
    //----------------------------------------------//
    size1=boxsize1*pointsize
    
    once upbox1 = close
    once downbox1 = close - size1
    once lowwick1 = close*100
    
    IF close > upbox1 + size1 THEN
    upbox1 = upbox1 + size1
    downbox1 = downbox1 + size1
    r1=0
    g1=255
    begin1=barindex
    highwick1=close
    wickbar1=barindex-round((barindex-begin1[1])/2)
    ELSIF close < downbox1 - size1 THEN
    upbox1 = upbox1 - size1
    downbox1 = downbox1 - size1
    r1=255
    g1=0
    begin1=barindex
    wickbar1=barindex-round((barindex-begin1[1])/2)
    ENDIF
    
    Mid1 = (upbox1+downbox1)/2
    //----------------------------------------------//
    RETURN Mid1 coloured(r1,g1,0) style(line,2)
    #240083 quote
    Atemi19
    Participant
    New
    oui ivan je me réfères à celui la….
Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.

Signal corrélation bar chart


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
Atemi19 @atemi19 Participant
Summary

This topic contains 9 replies,
has 4 voices, and was last updated by Atemi19
1 year, 2 months ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 11/02/2024
Status: Active
Attachments: 3 files
Logo Logo
Loading...