MTF OTF Close Filter calculates multi-timeframe breakout or continuation states by comparing each timeframe's current close to the highest and lowest closes over the prior N bars.
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 OTF Close Filter plots a six-cell status table at the bottom right of the chart showing UP, DOWN, or Neutral states for 1m, 2m, 5m, 30m, 60m, and 120m timeframes. An optional semi-transparent background tint overlays the price chart based on overall alignment across all timeframes. Mode 0 and 1 produce strict or lenient breakout signals while Mode 2 carries the prior state forward once established, avoiding neutral after the first breakout. Main settings adjust lookback periods for low, high, and chart timeframes plus the mode selection.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Mode (0 Breakout · 1 Continuation · 2 Stateful)
int
2
mode
N lookback · 1m / 2m / 5m
int
3
n_ltf
N lookback · 30m / 60m / 120m
int
5
n_htf
N lookback · chart interval (background only)
int
3
n_chart
Balance bars · consecutive inside closes
int
3
bal_bars
Table position
string
Bottom Right
tbl_pos_str
Text size
string
Small
txt_sz_str
Show transparent background tint
bool
true
show_bg
Tint transparency (0 = opaque · 100 = invisible)
int
88
bg_transp
UP
color
color.new(#00C850, 0)
c_up
DOWN
color
color.new(#C83232, 0)
c_dn
Neutral
color
color.new(#5A5A5A, 0)
c_neut
Show all 14 settings
Setting
Type
Default
Variable
Status bar background
color
color.new(#121212, 75)
c_bg
Label text
color
color.white
c_txt
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.
Ghost Channels fits dynamic parallel trend channels over a configurable lookback window using linear regression or pivot swing methods. It layers confirmation signals onto the channel geometry, detecting candlestick pattern reactions at the rails, volume-confi
This overlay indicator generates trading signals by combining a selected leading indicator with multiple customizable confirmation filters. Traders can toggle trend filters such as single, double, or triple moving averages, Range Filter, SuperTrend, Half Trend
This indicator plots a four-pole Gaussian channel on the price chart. It filters close prices into a yellow midline and filters true range to place equal green and red bands. A long marker prints when price crosses above the upper band and the daily Bitcoin cl
The script provides a combined technical and fundamental stock analysis tool on the price chart. It plots price forecast lines for bear, base, and bull scenarios derived from free cash flow data. It generates breakout signals when price exceeds recent highs, v
This overlay indicator marks Minervini-style volatility contraction patterns on the price chart for Bursa Malaysia shares. It plots O'Neil cheat entries after a minimum base and pullback with a short resumption, counts consecutive Ryan tight closes, and labels
A price-chart indicator that extends a three-regime signal engine (trend, range edge reversal, breakout) with higher-timeframe context and a transparent confidence score. The higher timeframe uses the previous completed bar, either auto-selected or set manuall