MACD Breakout builds a higher-timeframe MACD from preset fast and slow lengths using SMA or EMA, and marks support and resistance zones from histogram sensitivity.
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
Optional filters require zero-line agreement, higher-timeframe direction, and linear-regression channel zones. It projects an ATR multiple stop and a reward-to-risk target, plus optional reverse entries. The study overlays these levels on the price chart rather than sending orders, so risk levels are visual only.
Higher-timeframe MACD with SMA or EMA
Histogram sensitivity support and resistance zones
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 Macd Zero Line Filter
bool
true
useMacdFilt
Use Linear Regression Filter?
bool
false
useLinRegFilt
Zone Invalidation?
bool
false
entryInval
Trade in HTF Direction Only?
bool
true
htfDirEntry
Use Strict LinReg Zones?
bool
true
useStrictZn
Channel 1 Length
int
100
chann1Len
Channel 2 Length
int
50
i_chann2Len
Show all 22 settings
Setting
Type
Default
Variable
Channel 2 Timeframe
string
240
chann2Res
Show LinReg Channels?
bool
false
showLinReg
Deviation 1
float
1.0
dev1Len
Deviation 1
float
2.0
dev2Len
Deviation 1
float
3.0
dev3Len
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.
Cipher B is a multi-indicator plotting WaveTrend oscillator lines and signals alongside Stochastic RSI, MFI area with color bars, and buy sell marks. It draws all elements in a separate pane. WaveTrend calculates using SMMA and EMA on source like ohlc4 with ad
This reference script provides practical Pine Script v6 code examples for creating custom indicators. It includes a smoothed Relative Strength Index oscillator plotted with overbought and oversold background zones, a multi-timeframe moving average overlay with
The script plots a WaveTrend oscillator in a separate pane, calculating TCI as an EMA of a normalized price deviation and its 4-bar SMA. It displays overbought and oversold levels with colored circles for WT1-WT2 crossovers and bar coloring on crossover bars.
This indicator combines trend, momentum, and key level calculations into a separate pane analysis tool. It determines trend direction using fast and slow EMAs, normalized by the Average True Range to measure trend strength. RSI and ATR-adjusted price changes t
This indicator detects break of structure from confirmed pivot highs and lows and groups the bars between state changes into clusters. It plots blue and orange boxes and polylines of normalized closes in a separate pane, with optional moving averages on those
Composite Market Bias is a separate-pane indicator that scores bullish and bearish conditions from RSI, fast versus slow EMA, MACD histogram, Bollinger Band position, and price versus a 50-period EMA. It plots the resulting bias score with RSI, EMA trend, MACD