PROTECTED SOURCE SCRIPT

MTF Zone Indicator

46

// Multi Time Frame Zone Indicator
//version=6
indicator(title="MTF Zone Indicator", overlay=true)

// === Input Settings ===
higherTF = input.timeframe("60", title="Higher Timeframe")
middleTF = input.timeframe("15", title="Middle Timeframe")
lowerTF = input.timeframe("5", title="Lower Timeframe")

// === Higher Timeframe Zones ===
highHTF = request.security(syminfo.tickerid, higherTF, high, lookahead=barmerge.lookahead_on)
lowHTF = request.security(syminfo.tickerid, higherTF, low, lookahead=barmerge.lookahead_on)
plot(highHTF, color=color.red, linewidth=1, title="HTF Resistance")
plot(lowHTF, color=color.green, linewidth=1, title="HTF Support")

// === Middle Timeframe Zones ===
highMTF = request.security(syminfo.tickerid, middleTF, high, lookahead=barmerge.lookahead_on)
lowMTF = request.security(syminfo.tickerid, middleTF, low, lookahead=barmerge.lookahead_on)
plot(highMTF, color=color.blue, linewidth=1, title="MTF Resistance")
plot(lowMTF, color=color.yellow, linewidth=1, title="MTF Support")

// === Lower Timeframe Signal ===
emaFast = ta.ema(close, 10)
emaSlow = ta.ema(close, 50)

bullSignal = ta.crossover(emaFast, emaSlow)
bearSignal = ta.crossunder(emaFast, emaSlow)

plotshape(bullSignal, style=shape.triangleup, location=location.belowbar, color=color.green, size=size.small, title="BUY Signal")
plotshape(bearSignal, style=shape.triangledown, location=location.abovebar, color=color.red, size=size.small, title="SELL Signal")

Aviso legal

As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.