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")

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.