1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.
Source Code
The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.
Overview
MTF Trend Signals draws MACD-based Bollinger bands whose fill colour follows RSI against its moving average and the 55 and 45 levels. Buy and sell markers come from multi-timeframe alignment, using an auto or manual higher and lower timeframe, and from RSI breakouts, optionally gated by an ADX and DI filter with timeframe-based minimums. Extra options include EMA zones and a trade box on the main chart and a message for stronger signals.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
BB Periods
int
10
length
Deviations
float
1.0
dev
MACD Fast Length
int
12
fastLength
MACD Slow Length
int
26
slowLength
MACD Signal Length
int
9
signalLength
ADX / DI Length
int
14
adxLength
ADX Smoothing
int
14
adxSmoothing
+DI / -DI Threshold
float
20.0
diThreshold
Use ADX Filter For Trend Signals
bool
true
useAdxFilter
Use Auto Shared ADX Minimum By Timeframe
bool
true
useAutoAdxMinimum
Lower Timeframe ADX Minimum
float
12.0
lowerTimeframeAdxMinimum
Mid Timeframe ADX Minimum
float
12.0
midTimeframeAdxMinimum
Show all 40 settings
Setting
Type
Default
Variable
Higher Timeframe ADX Minimum
float
12.0
higherTimeframeAdxMinimum
Manual Shared ADX Minimum
float
12.0
manualTrendAdxMinimum
RSI Length
int
14
rsiLength
RSI SMA Length
int
14
rsiSmaLength
Upper RSI Level
float
55.0
rsiUpperLevel
Lower RSI Level
float
45.0
rsiLowerLevel
BB Fill Transparency
int
68
fillTransparency
RSI Above SMA Fill - Red
color
color.rgb(220, 80, 80)
fillRsiAboveSmaColor
RSI Below SMA Fill - Green
color
color.rgb(55, 190, 120)
fillRsiBelowSmaColor
RSI > 55 And Above SMA Fill - Dark Green
color
color.rgb(0, 110, 55)
fillStrongBullColor
RSI < 45 And Below SMA Fill - Dark Red
color
color.rgb(120, 0, 30)
fillStrongBearColor
Show MTF Alignment B/S Signals
bool
true
showMtfSignals
Show RSI Breakout B/S Signals
bool
true
showRsiBreakoutSignals
MTF Timeframe Mode
string
Auto
mtfMode
Auto HTF Sensitivity
string
Balanced
autoHtfSensitivity
Use Confirmed Higher Timeframe Only
bool
true
useConfirmedHtf
Manual Higher Timeframe
timeframe
10
manualHtf
Manual Lower Timeframe
timeframe
3
manualLtf
EMA Filter Mode
string
Off
emaFilterMode
Manual EMA Filter
string
9/21/30 Alignment
manualEmaFilter
Suppress Repeated RSI Breakout Signals
string
One Signal Per RSI Candle
rsiBreakoutSuppression
RSI Breakout Must Happen Within N Bars
int
1
rsiBreakoutWindow
RSI Breakout Price Test
string
Close Beyond Level
rsiBreakoutPriceMode
Require RSI Candle To Close In Signal Direction
bool
true
rsiBreakoutRequireCandleDirection
RSI Breakout EMA Stack Filter
string
9/21 Direction
rsiBreakoutEmaStack
RSI Breakout Fan Mode
string
Fresh Fan Only
rsiBreakoutFanMode
Require Selected EMA Stack To Fan Out
bool
false
rsiBreakoutRequireEmaDivergence
Require EMA Slope Change In Signal Direction
bool
false
rsiBreakoutRequireSlopeChange
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.
This indicator generates trade entry signals and target levels optimized for 1-hour timeframes, designed for external signal extraction. It calculates 7-period and 16-period EMAs alongside 10-period RSI and ATR filters. Long signals occur when the fast EMA cro
MultiIndicator combines multiple technical indicators into a single separate pane to save chart space. It calculates and displays market regime detection based on ordinary least squares regression, a Holt exponential smoothing crossover, normalized RSI, ADX, a
This indicator plots an oscillator in a separate pane. It builds several SuperTrend series across a user-defined factor range and step, using ATR as the band width. On each bar it measures the distance between the close and each SuperTrend output, then groups
The Supertrended RSI [AlgoAlpha] indicator plots the Relative Strength Index combined with a Supertrend overlay in a separate indicator pane. It first computes standard RSI, with an optional Hull Moving Average smoothing step, and computes a secondary moving a
This indicator plots a smoothed stochastic oscillator in a separate pane, with K and D lines, a midsection background, and adjustable overbought and oversold levels. Optional highlights mark overbought or oversold breakouts and K/D crossovers, and ribbon filli
The Adaptive Cycle Detector estimates the dominant market cycle from WaveTrend oscillator zero-crossing frequency and applies smoothing to recommend adaptive indicator lengths. Fast markets with frequent crossings receive shorter lengths while slow swing marke