CREATION D’UN SYSTEME RENKO

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #168712 quote
    fael33
    Participant
    New

    Bonjour,

    J’utilise prorealcode et prorealtime depuis 2 ans et je suis bluffer par la qualité des outils codé sur ce site, et aussi pour la passion sans limite que vous avez pour le trading.

    Au fait, J’aimerai utiliser un systeme renko surtout pour le forex (eurusd, gbpusd, usdjpy) avec les parametres suivants :

    Taille des boittes : 5 pips (graphique 1 mn)

    Prise de position à l’achat :

    — les 50 dernieres clotures doivent etre superieur à la moyenne mobile simple 5000 periodes

    — Achat apres 3 boittes vertes  (haussières) successives précédé d’une  boite rouge (brassière)

    Cloture de la position acheteuse :

    — Arret ou Stop suiveur à 2 boittes de la prise de position ou à l’apparition d’une boite rouge

    ————————————————————————————————————————————————————————————-

    Prise de position à la vente :

    — les 50 dernieres clotures doivent etre inférieur à la moyenne mobile simple 5000 periodes

    — Achat apres 3 boittes rouges (baissières) successives précédé d’une  boite verte (haussière)

    Cloture de la position vendeuse :

    — Arret ou Stop suiveur à 2 boittes de la prise de position ou à l’apparition d’une boite verte


    J’utilise un indicateur renko sur le prix dont voici le code

    //PRC_Renko Bricks with Wicks | indicator
    //22.05.2017
    //Nicolas @ www.prorealcode.com
    //Sharing ProRealTime knowledge
    
    //---settings
    boxsize=5 //renko bricks size in points/pips
    transparency=100 //brick colours alpha
    wicksize=0 //width of wicks
    //---end of settings
    
    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
    
    //saving current high/low
    highwick=max(high,highwick)
    lowwick=min(low,lowwick)
    
    //compute wicks at each new contrarian brick
    if r>0 and r[1]=0 then
    //new red brick
    drawrectangle(wickbar,highwick,wickbar+wicksize,upbox[1]) coloured(r[1],g[1],0)
    lowwick=low*100
    highwick=0
    endif
    if r=0 and r[1]>0 then
    //new green brick
    drawrectangle(wickbar,lowwick,wickbar+wicksize,downbox[1]) coloured(r[1],g[1],0)
    lowwick=low*100
    highwick=0
    endif
    
    //compute wicks at each new same brick
    if r>0 and r[1]>0 and lastdrawn<>wickbar then
    //new red brick
    if highwick>upbox[1] then
    drawrectangle(wickbar,highwick,wickbar+wicksize,upbox[1]) coloured(r[1],g[1],0)
    endif
    lastdrawn=wickbar
    lowwick=low*100
    highwick=0
    endif
    if r=0 and r[1]=0 and lastdrawn<>wickbar then
    //new green brick
    if lowwick<downbox[1] then
    drawrectangle(wickbar,lowwick,wickbar+wicksize,downbox[1]) coloured(r[1],g[1],0)
    endif
    lastdrawn=wickbar
    lowwick=low*100
    highwick=0
    endif
    
    //draw renko candlesticks
    drawcandle(upbox,upbox,downbox,downbox)coloured(r,g,0,min(transparency,255))
    
    RETURN
    

    Je l’utilise depuis 1 semaine et ca m’as permis d’améliorer mon money management.

    MERCI ENCORE POUR VOTRE AIDE

    ACHAT.png ACHAT.png VENTE.png VENTE.png
Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.

CREATION D’UN SYSTEME RENKO


ProOrder : Trading Automatique & Backtests

New Reply
Author
author-avatar
fael33 @fael33 Participant
Summary

This topic contains 1 voice and has 0 replies.

Topic Details
Forum: ProOrder : Trading Automatique & Backtests
Language: French
Started: 05/03/2021
Status: Active
Attachments: 2 files
Logo Logo
Loading...