SuperCharting
Sign in Get started Account Open charts

BTC Renko Pro Scalper 33

A Pine Script indicator by jayu.

//@version=6 indicator("BTC Renko Pro Scalper 33", overlay=true, maxlabelscount=500)

// SETTINGS brick = input.float(33.0, "Renko Brick Size ($)") emaFastLen = input.int(20, "Fast EMA") emaSlowLen = input.int(50, "Slow EMA") rsiLen = input.int(14, "RSI Length") slBricks = input.float(1.0, "Stop Loss (Bricks)") tpBricks = input.float(1.5, "Target (Bricks)")

// TREND FILTER emaFast = ta.ema(close, emaFastLen) emaSlow = ta.ema(close, emaSlowLen) rsiValue = ta.rsi(close, rsiLen)

bullBrick = close open bearBrick = close < open

buySetup = bullBrick and close emaFast and emaFast emaSlow and rsiValue 52 and bearBrick[1] sellSetup = bearBrick and close < emaFast and emaFast < emaSlow and rsiValue < 48 and bullBrick[1]

// TRADE MANAGEMENT var int side = 0 var float entry = na var float stop = na var float target = na

wasActive = side != 0

// Exit checks: SL has priority if both levels touch if barstate.isconfirmed and side == 1 if low <= stop side := 0 else if high = target side := 0

if barstate.isconfirmed and side == -1 if high = stop side := 0 else if low <= target side := 0

// CONFIRMED SIGNALS buySignal = barstate.isconfirmed and not wasActive and side == 0 and buySetup sellSignal = barstate.isconfirmed and not wasActive and side == 0 and sellSetup

if buySignal side := 1 entry := close stop := entry - brick slBricks target := entry + brick tpBricks label.new(barindex, low, "BUY\nEntry: " + str.tostring(entry) + "\nSL: " + str.tostring(stop) + "\nTP: " + str.tostring(target), style=label.stylelabelup, color=color.green, textcolor=color.white)

if sellSignal side := -1 entry := close stop := entry + brick slBricks target := entry - brick tpBricks label.new(barindex, high, "SELL\nEntry: " + str.tostring(entry) + "\nSL: " + str.tostring(stop) + "\nTP: " + str.tostring(target), style=label.stylelabeldown, color=color.red, textcolor=color.white)

// LEVELS plot(emaFast, "Fast EMA", color=color.yellow) plot(emaSlow, "Slow EMA", color=color.blue) plot(side != 0 ? entry : na, "Entry", color=color.white, style=plot.stylelinebr) plot(side != 0 ? stop : na, "Stop Loss", color=color.red, style=plot.stylelinebr) plot(side != 0 ? target : na, "Target", color=color.lime, style=plot.stylelinebr)

// ALERTS alertcondition(buySignal, "BUY Signal", "BTC Renko BUY") alertcondition(sellSignal, "SELL Signal", "BTC Renko SELL")