Indicator · Pine Script v6 · Own pane

MTF Trend Signals

by vedkanani123

A separate-pane indicator adapted from the AK MACD Bollinger Bands idea.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code660
Settings40inputs
LicenceNone stated
Last update2 months ago23 Aug 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 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.

Details

Published by

vedkanani123 on GitHub

Draws

Separate pane below the chart

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
BB Periodsint10length
Deviationsfloat1.0dev
MACD Fast Lengthint12fastLength
MACD Slow Lengthint26slowLength
MACD Signal Lengthint9signalLength
ADX / DI Lengthint14adxLength
ADX Smoothingint14adxSmoothing
+DI / -DI Thresholdfloat20.0diThreshold
Use ADX Filter For Trend SignalsbooltrueuseAdxFilter
Use Auto Shared ADX Minimum By TimeframebooltrueuseAutoAdxMinimum
Lower Timeframe ADX Minimumfloat12.0lowerTimeframeAdxMinimum
Mid Timeframe ADX Minimumfloat12.0midTimeframeAdxMinimum
Show all 40 settings
SettingTypeDefaultVariable
Higher Timeframe ADX Minimumfloat12.0higherTimeframeAdxMinimum
Manual Shared ADX Minimumfloat12.0manualTrendAdxMinimum
RSI Lengthint14rsiLength
RSI SMA Lengthint14rsiSmaLength
Upper RSI Levelfloat55.0rsiUpperLevel
Lower RSI Levelfloat45.0rsiLowerLevel
BB Fill Transparencyint68fillTransparency
RSI Above SMA Fill - Redcolorcolor.rgb(220, 80, 80)fillRsiAboveSmaColor
RSI Below SMA Fill - Greencolorcolor.rgb(55, 190, 120)fillRsiBelowSmaColor
RSI > 55 And Above SMA Fill - Dark Greencolorcolor.rgb(0, 110, 55)fillStrongBullColor
RSI < 45 And Below SMA Fill - Dark Redcolorcolor.rgb(120, 0, 30)fillStrongBearColor
Show MTF Alignment B/S SignalsbooltrueshowMtfSignals
Show RSI Breakout B/S SignalsbooltrueshowRsiBreakoutSignals
MTF Timeframe ModestringAutomtfMode
Auto HTF SensitivitystringBalancedautoHtfSensitivity
Use Confirmed Higher Timeframe OnlybooltrueuseConfirmedHtf
Manual Higher Timeframetimeframe10manualHtf
Manual Lower Timeframetimeframe3manualLtf
EMA Filter ModestringOffemaFilterMode
Manual EMA Filterstring9/21/30 AlignmentmanualEmaFilter
Suppress Repeated RSI Breakout SignalsstringOne Signal Per RSI CandlersiBreakoutSuppression
RSI Breakout Must Happen Within N Barsint1rsiBreakoutWindow
RSI Breakout Price TeststringClose Beyond LevelrsiBreakoutPriceMode
Require RSI Candle To Close In Signal DirectionbooltruersiBreakoutRequireCandleDirection
RSI Breakout EMA Stack Filterstring9/21 DirectionrsiBreakoutEmaStack
RSI Breakout Fan ModestringFresh Fan OnlyrsiBreakoutFanMode
Require Selected EMA Stack To Fan OutboolfalsersiBreakoutRequireEmaDivergence
Require EMA Slope Change In Signal DirectionboolfalsersiBreakoutRequireSlopeChange
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.

Similar Pine Scripts

147 stars

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

Indicator v5 TrendOscillators & momentum
Updated 6 weeks ago · MIT GitHub repository of Signal Strategy 100 Candles of 1H Timeframe

MultiIndicator

by capissimo
114 stars

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

Indicator v4 Oscillators & momentumTrend
Updated 1 year ago · None stated GitHub repository of MultiIndicator

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

Indicator v5 TrendVolatility & bands
Updated 2 years ago · GPL-3.0 GitHub repository of AI SuperTrend Clustering Oscillator [LuxAlgo]
29 stars

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

Indicator v5 Oscillators & momentumTrend
Updated 11 months ago · Custom licence GitHub repository of Supertrended RSI [AlgoAlpha]
24 stars

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

Indicator v5 Oscillators & momentumVolatility & bands
Updated 4 years ago · MPL-2.0 GitHub repository of Intermediate Stochastic

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

Indicator v6 Oscillators & momentumVolatility & bands
Updated 2 days ago · MIT GitHub repository of Adaptive Cycle Detector [WavesUnchained]

More Oscillators & momentum scripts

Related on ForexR

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers