Ni6HTH4wK

[LAVA] Renko Mod

1104 3 127
Tradingview.com Pinescript @author Ni6HTH4wK (LAVA) with assistance from @zmm20
Original code by Richard Santos, ( RS             )Renko Mod
( RS             ) https://www.tradingview.com/u/RicardoSantos/
(LAVA) 19P7bkzqSAwSm6X7tXmRVkx6AuBXEUZioo

Traditional cross and circles view displayed here, but my favorite look is small linebreak and circles.

Different views available...
Type 2 -
snapshot

Type 1 -
snapshot

Without barcoloring -
snapshot


**EDIT**
http://pastebin.com/8Few2Z2H - Fixes missed bottoms / tops ( April             15th, 2015)
http://pastebin.com/EkV2rJBC - Fixes slow recognition of steep movements ( April             25th, 2015)
Remove from Favorite Scripts Add to Favorite Scripts
// Tradingview.com Pinescript @author Ni6HTH4wK [LAVA] with assistance from @zmm20
// Original code by Richard Santos, [RS]Renko Mod
// ########## ☺♦♣♠♥☺ TIP YUR DEALER ☺♥♠♣♦☺ ###########
// [RS] https://www.tradingview.com/u/RicardoSantos/
// [LAVA]  19P7bkzqSAwSm6X7tXmRVkx6AuBXEUZioo
study("[LAVA] Renko Mod", overlay=true)

// Vars
n1 = input(1, title="Bricksize", minval=.01, type=float)
q1 = input(false, title="Type 1 (Def 2)")
q2 = input(false, title="Bar Colors")

// Sources
prclos = na(rclose[1])?round(close):nz(rclose[1])
propen = na(ropen[1])?round(open):nz(ropen[1])

// Renko (type 1 or type 2)
type = (q1?n1:n1*2)
rclose = close > prclos+type? prclos>propen? prclos+n1 : prclos+type :
    close < prclos-type? prclos<propen? prclos-n1 : prclos-type : prclos
ropen = rclose > prclos ? prclos>propen or q1? prclos : prclos+n1 : 
    rclose < prclos ? prclos<propen or q1? prclos : prclos-n1 : nz(ropen[1])

// Coloring
que = rclose > prclos ? 1 : rclose < prclos ? -1 : nz(que[1])
rc = que>0?green : que<0?red : na

// Plotting
plot(que>0?ropen:na, title="Renko Gurīn Open", style=circles, color=green, linewidth=2)
plot(que<0?ropen:na, title="Renko Aka Open", style=circles, color=red, linewidth=2)
plot(que>0?rclose:na, title="Renko Gurīn Close", style=cross, color=green, linewidth=3)
plot(que<0?rclose:na, title="Renko Aka Close", style=cross, color=red, linewidth=3)
barcolor(q2?rc:na)
// Renko (type 1 or type 2)
type = (q1?n1:n1*2)
rclose = close>prclos+type? prclos>propen? prclos+n1 : prclos+type : close>prclos+n1 and prclos>propen? prclos+n1 :
close<prclos-type? prclos<propen? prclos-n1 : prclos-type : close<prclos-n1 and prclos<propen? prclos-n1 : prclos
ropen = rclose > prclos ? prclos>propen or q1? prclos : prclos+n1 :
rclose < prclos ? prclos<propen or q1? prclos : prclos-n1 : nz(ropen)
Reply
Ni6HTH4wK PRO Ni6HTH4wK
// Renko (type 1 or type 2)
type = (q1?n1:n1*2)
rclose = close>prclos+type? prclos>propen? prclos+n1 : prclos+type : close>prclos+n1 and prclos>propen? prclos+n1 : close<prclos-type? prclos<propen? prclos-n1 : prclos-type : close<prclos-n1 and prclos<propen? prclos-n1 : prclos
ropen = rclose > prclos ? prclos>propen or q1? prclos : prclos+n1 : rclose < prclos ? prclos<propen or q1? prclos : prclos-n1 : nz(ropen)
Reply
Ni6HTH4wK PRO Ni6HTH4wK
nope nevermind... its not working... look in the description for edits.
Reply
United States
United Kingdom
India
Deutschland
France
España
Italia
Polska
Türkiye
Россия
Brasil
Indonesia
Malaysia
ประเทศไทย
Việt Nam
日本
한국
简体
繁體
Home Stock Screener Forex Signal Finder Cryptocurrency Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators Website & Broker Solutions Widgets Stock Charting Library Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing My Support Tickets Contact Support Ideas Published Followers Following Private Messages Chat Sign Out