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.
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
The higher timeframe uses the previous completed bar, either auto-selected or set manually, and its EMA length is adjustable. Signals appear only above a minimum confidence, with a grade shown on a dashboard. HTF mode can be hard for trends, soft, or off. It also draws the core, trail, range boxes and regime background.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Adaptive core length
int
14
coreLen
ATR length
int
14
atrLen
Trend structure lookback
int
24
trendLookback
Range window
int
20
rangeLookback
Minimum confidence
int
68
scoreInput
HTF mode
string
Trend hard / Range soft
htfMode
Auto-select HTF
bool
true
autoHtf
Manual HTF
timeframe
240
manualHtf
HTF EMA length
int
34
htfEmaLen
Trend-following sleeve
bool
true
useTrend
Range-edge reversal sleeve
bool
true
useRange
Transition breakout sleeve
bool
true
useBreakout
Show all 20 settings
Setting
Type
Default
Variable
Use volume when reliable
bool
false
useVolume
Adaptive core
bool
true
showCore
Active trail
bool
true
showTrail
Completed range
bool
true
showRange
BUY / SELL labels
bool
true
showLabels
Regime background
bool
true
showBg
Confidence dashboard
bool
true
showDash
Color bars by active side
bool
true
colorBars
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
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. It plots a six-cell status table at the bottom right of the chart showing UP, DO
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