Indicator · Pine Script v4 · Own pane

MACD Breakout

by jerryinyang

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.

View on GitHub

GitHub stars5on the repository
Pine versionv4older, still runs
Lines of code683
Settings22inputs
LicenceNone stated
Last update2 years ago12 May 2024

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

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.

Details

Published by

jerryinyang on GitHub

Type

Indicator, Pine Script v4

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
MACD TimeFramestring120i_htfRes
Macd Settingsstring8, 17mset
MACD signal Lineint9siglen
MACD Moving Average TypestringSMAmaType
MACD Sensitivityint5histSens
Use Macd Zero Line FilterbooltrueuseMacdFilt
Use Linear Regression Filter?boolfalseuseLinRegFilt
Zone Invalidation?boolfalseentryInval
Trade in HTF Direction Only?booltruehtfDirEntry
Use Strict LinReg Zones?booltrueuseStrictZn
Channel 1 Lengthint100chann1Len
Channel 2 Lengthint50i_chann2Len
Show all 22 settings
SettingTypeDefaultVariable
Channel 2 Timeframestring240chann2Res
Show LinReg Channels?boolfalseshowLinReg
Deviation 1float1.0dev1Len
Deviation 1float2.0dev2Len
Deviation 1float3.0dev3Len
ATR Multiplierfloat1slAtrMult
Reward-Risk Ratiofloat1.5tpRRR
Take Reverse Entries?boolfalseuseRev
Reward-Risk Ratio For Reverse Positionsfloat1revRRR
Add ATR Buffer for Reverse Positions?booltrueuseRevAtr
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

Cipher B

by diehardyearone
3 stars

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

Indicator v6 Oscillators & momentumMoving averages
Updated 1 year ago · None stated GitHub repository of Cipher B

Custom Oscillator

by danielbodnar
2 stars

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

Indicator v6 Oscillators & momentumMoving averages
Updated 2 months ago · MIT GitHub repository of Custom Oscillator

Uabmacd

by avatar-lavventura
2 stars

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.

Indicator v4 Oscillators & momentumMoving averages
Updated 7 months ago · None stated GitHub repository of Uabmacd

Composite Market Bias

by mrme000m
1 stars

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

Indicator v5 Oscillators & momentumMoving averages
Updated 7 weeks ago · None stated GitHub repository of Composite Market Bias

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