Boite RENKO et ATR
Forums › ProRealTime forum Français › Support ProBuilder › Boite RENKO et ATR
- This topic has 5 replies, 2 voices, and was last updated 1 month ago by finplus.
Viewing 6 posts - 1 through 6 (of 6 total)
-
-
10/08/2024 at 3:22 PM #238728
Bonjour,
j’ai lu en parcourant le site qu’il était possible de coupler l’indicateur “Boite RENKO” avec l’ATR mais je n’ai pas réussi à trouver les lignes de code.
Quelqu’un pourrait-il me donner un lien ou la solution ?
Merci d’avance.
10/10/2024 at 12:35 PM #238814Holà. Il a récupéré un code programmé pour calculer les médias mobiles à partir du renko. A vers si te vale.
1234567891011121314151617181920212223242526272829303132333435363738394041//—settingsboxsize=8//8//100//8 //renko bricks size in points/pipstransparency=100 //brick colours alphawicksize=0 //width of wicks//—end of settings//EMA7=exponentialaverage [7](close)size=boxsize*pointsizeonce upbox = closeonce downbox = close - sizeonce lowwick = close*100IF close > upbox + size THENupbox = upbox + sizedownbox = downbox + sizer=0g=200begin=barindexhighwick=closewickbar=barindex-round((barindex-begin[1])/2)ELSIF close < downbox - size THENupbox = upbox - sizedownbox = downbox - sizer=200g=0begin=barindexwickbar=barindex-round((barindex-begin[1])/2)ENDIF//draw renko candlesticksdrawcandle(upbox,upbox,downbox,downbox)coloured(r,g,0,min(transparency,255))Mid = (upbox+downbox)/2EMA7 = ExponentialAverage[7](Mid)EMA20 = ExponentialAverage[20](Mid)EMA50 = ExponentialAverage[50](Mid)atr=averagetruerange[14](Mid)factor=1RETURN Mid-factor*atr10/10/2024 at 12:40 PM #23881610/10/2024 at 12:44 PM #238817Et par rapport à cet indicateur : où placer l’ATR SVP ?//PRC_Renko Bricks with Wicks | indicator//22.05.2017//Nicolas @ http://www.prorealcode.com//Sharing ProRealTime knowledge//—settings//boxsize=20 //renko bricks size in points/pips//transparency=50 //brick colours alpha//wicksize=1 //width of wicks//—end of settingssize=boxsize*pointsizeonce upbox = closeonce downbox = close – sizeonce lowwick = close*100IF close > upbox + size THENupbox= upbox + sizedownbox= downbox + sizer=0g=200begin=barindexhighwick=closewickbar=barindex–round((barindex–begin[1])/2)ELSIF close < downbox – size THENupbox= upbox – sizedownbox= downbox – sizer=200g=0begin=barindexwickbar=barindex–round((barindex–begin[1])/2)ENDIF//saving current high/lowhighwick=max(high,highwick)lowwick=min(low,lowwick)//compute wicks at each new contrarian brickif r>0 and r[1]=0 then//new red brickdrawrectangle(wickbar,highwick,wickbar+wicksize,upbox[1]) coloured(r[1],g[1],0)lowwick=low*100highwick=0endifif r=0 and r[1]>0 then//new green brickdrawrectangle(wickbar,lowwick,wickbar+wicksize,downbox[1]) coloured(r[1],g[1],0)lowwick=low*100highwick=0endif//compute wicks at each new same brickif r>0 and r[1]>0 and lastdrawn<>wickbar then//new red brickif highwick>upbox[1] thendrawrectangle(wickbar,highwick,wickbar+wicksize,upbox[1]) coloured(r[1],g[1],0)endiflastdrawn=wickbarlowwick=low*100highwick=0endifif r=0 and r[1]=0 and lastdrawn<>wickbar then//new green brickif lowwick<downbox[1] thendrawrectangle(wickbar,lowwick,wickbar+wicksize,downbox[1]) coloured(r[1],g[1],0)endiflastdrawn=wickbarlowwick=low*100highwick=0endif//draw renko candlesticksdrawcandle(upbox,upbox,downbox,downbox)coloured(r,g,0,min(transparency,255))RETURN10/11/2024 at 9:03 AM #238851Sería algo así, aunque no tiene mucho sentido…
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071//PRC_Renko Bricks with Wicks | indicator//22.05.2017//Nicolas @ http://www.prorealcode.com//Sharing ProRealTime knowledge//—settingsboxsize=20 //renko bricks size in points/pipstransparency=50 //brick colours alphawicksize=1 //width of wicks//—end of settingssize=boxsize*pointsizeonce upbox = closeonce downbox = close - sizeonce lowwick = close*100IF close > upbox + size THENupbox= upbox + sizedownbox= downbox + sizer=0g=200begin=barindexhighwick=closewickbar=barindex-round((barindex-begin[1])/2)myclose=upboxELSIF close < downbox - size THENupbox= upbox - sizedownbox= downbox - sizer=200g=0begin=barindexwickbar=barindex-round((barindex-begin[1])/2)myclose=downboxENDIF//saving current high/lowhighwick=max(high,highwick)lowwick=min(low,lowwick)//compute wicks at each new contrarian brickif r>0 and r[1]=0 then//new red brickdrawrectangle(wickbar,highwick,wickbar+wicksize,upbox[1]) coloured(r[1],g[1],0)lowwick=low*100highwick=0endifif r=0 and r[1]>0 then//new green brickdrawrectangle(wickbar,lowwick,wickbar+wicksize,downbox[1]) coloured(r[1],g[1],0)lowwick=low*100highwick=0endif//compute wicks at each new same brickif r>0 and r[1]>0 and lastdrawn<>wickbar then//new red brickif highwick>upbox[1] thendrawrectangle(wickbar,highwick,wickbar+wicksize,upbox[1]) coloured(r[1],g[1],0)endiflastdrawn=wickbarlowwick=low*100highwick=0endifif r=0 and r[1]=0 and lastdrawn<>wickbar then//new green brickif lowwick<downbox[1] thendrawrectangle(wickbar,lowwick,wickbar+wicksize,downbox[1]) coloured(r[1],g[1],0)endiflastdrawn=wickbarlowwick=low*100highwick=0endif//draw renko candlesticksdrawcandle(upbox,upbox,downbox,downbox)coloured(r,g,0,min(transparency,255))factor=1atr=averagetruerange[14](myclose)RETURN myclose, myclose-factor*atr10/14/2024 at 9:27 AM #238951 -
AuthorPosts
Viewing 6 posts - 1 through 6 (of 6 total)
Find exclusive trading pro-tools on
Similar topics: