//Created By Gaspar Lemarc
study(title="Renko MTF",overlay=true)
atrLen = input(10, minval=1, title="ATR Look Back Length")
isATR = input(true, title="Checked Box = ATR Renkos, If You Un Check Box Please Read Below")
def = input(false, title="Number Below is Multiplied by .001, So 1=10 Pips on EURUSD, 10=100 Pips, 1000 = 1 Point on Stocks/Furures")
tradLen1 = input(200, minval=0, title="Lower Input for Non-ATR Renkos, See Above for Calculations")
tradLen3 = input(600, minval=0, title="Higher Input for Non-ATR Renkos, See Above for Calculations")
res1 = input(defval="120", title="Lower Resolution", type=resolution)
res3 = input(defval="480",title="Higher Resolution ", type=resolution)
// show the signals
show_sig = input(true, title= "Show signals", type = bool)
tradLen = tradLen1 * .001
param = isATR ? renko(tickerid, "open", "ATR", atrLen) : renko(tickerid, "open", "Traditional", tradLen1)
param3 = isATR ? renko(tickerid, "open", "ATR", atrLen) : renko(tickerid, "open", "Traditional", tradLen3)
renko_close = security(param, res1, close)
renko_open = security(param, res1, open)
renko_close3 = security(param3, res3, close)
renko_open3 = security(param3, res3, open)
p1=plot(renko_close, style=line, linewidth=3, color=aqua)
p5=plot(renko_close3, style=line, linewidth=3, color=yellow)
plotarrow(crossover(renko_close,renko_close3) and show_sig?1:na, title ='buy', colorup=lime, transp=10)
plotarrow(crossunder(renko_close,renko_close3) and show_sig ?-1:na, title ='sell', colordown=red, transp=10)