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
MACD Breakout marks support and resistance zones from MACD histogram sensitivity, then filters them with the MACD zero line, a linear regression filter, and optional zone invalidation. Channel length, deviation, and a second timeframe set the regression bands. ATR multiplier and reward-risk inputs place stop and target levels, with an optional reverse-entry mode. It is a study, so it does not place orders.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
MACD TimeFrame
string
120
i_htfRes
Macd Settings
string
8, 17
mset
MACD signal Line
int
9
siglen
MACD Moving Average Type
string
SMA
maType
MACD Sensitivity
int
5
histSens
Use Filter
bool
false
useFilt
Use Macd Zero Line Filter
bool
true
useMacdFilt
Use Linear Regression Filter?
bool
true
useLinRegFilt
Zone Invalidation?
bool
false
entryInval
MF Overbought
int
70
mfOb
MF Oversold
int
30
mfOs
Source
source
close
linreg_src
Show all 30 settings
Setting
Type
Default
Variable
Deviation 1
float
1.0
dev1Len
Deviation 1
float
2.0
dev2Len
Deviation 1
float
3.0
dev3Len
Extend Lines?
bool
true
extendit
Show Broken Channel
bool
false
showbroken
Up Color
color
color.lime
upcol
Down Color
color
color.red
dncol
Line Width
int
2
widt
Channel 1 Length
int
100
chann1Len
Channel 2 Length
int
50
i_chann2Len
Channel 2 Timeframe
string
240
chann2Res
Deviation as Basis
int
2
useDev
Zone for Reversal
int
2
revZone
ATR Multiplier
float
1
slAtrMult
Reward-Risk Ratio
float
1.5
tpRRR
Take Reverse Entries?
bool
false
useRev
Reward-Risk Ratio For Reverse Positions
float
1
revRRR
Add ATR Buffer for Reverse Positions?
bool
true
useRevAtr
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.
The Fake Breakout / Breakdown Setup indicator identifies false breakouts (FBO) and false breakdowns (FBD) by tracking liquidity sweeps of previous price highs and lows. It validates reversals using follow-up price action and a confirmation scoring system based
This indicator measures market consolidation and breakout phases by computing a scaled Relative Strength Index (RSI) on normalized price data. It identifies chop zones when the RSI oscillates between 40 and 60, highlighting tight consolidation between 45 and 5
This indicator plots Squeeze Momentum in a separate pane. It compares Bollinger Bands with a Keltner Channel to mark a squeeze when the bands sit inside the channel. Momentum is a linear regression of price relative to a Donchian midline and an SMA, shown as a
This indicator plots the Commodity Channel Index in a separate pane and surrounds it with a Donchian channel whose lookback length changes with volatility. It measures volatility as a ratio of short and long ATR values, then ranks that ratio and shortens or le
Calculates the time elapsed between consecutive bars to measure market speed and volatility, designed primarily for Renko chart blocks where bar duration varies. In Momentum mode, it contrasts the current duration against a 100-period moving average baseline,
Market Pressure Scale plots two oscillator curves in a separate pane. Setup pressure combines ATR and Bollinger compression, support and resistance proximity, and drying volume. Impulse pressure combines range expansion, volume, and candle body size. A range-c