Indicator · Pine Script v5 · On the chart

MACD-X Overlay More Than MACD

by webcrack4

This indicator plots a custom MACD oscillator directly on the main price chart while incorporating multi-depth Zigzag pattern detection.

View on GitHub

Repaints

GitHub stars1on the repository
Pine versionv5runs as is
Lines of code1,725
Settings40inputs
LicenceNone stated
Last update9 months ago10 Jan 2026

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

MACD-X Overlay More Than MACD supports four MACD calculation modes—Traditional, AS Histogram, Leader, and Source—with customizable fast, slow, and signal moving average lengths. Users can adjust the overlay's placement, height, and vertical alignment to fit below or above price action. Note that pattern detection modules may repaint historical lines and shapes as price updates.

Details

Published by

webcrack4 on GitHub

Type

Indicator, Pine Script v5

Draws

On the price chart

Category

Oscillators & momentum, Moving averages, Support & resistance

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

  • Signals can change on the live bar or after it closes (repainting)

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
MACD Calculation MethodstringMACD-SOURCEmacdType
Fast Lengthint12fast_length
Slow Lengthint26slow_length
Sourcesourceclosesource
Signal Smoothingint9signal_length
Oscillator MA TypestringEMAsma_source
Signal Line MA TypestringEMAsma_signal
Display MACD/Signal CorssesboolfalsemacdSigCross
Highlight MACD/Signal Areaboolfalsehighlight
Overlay Indicator Display Lengthint200lookbackLength
PlacementstringBottomoscPlacement
Hightint7Hight
Show all 40 settings
SettingTypeDefaultVariable
Vertical Indicator Positionint3verticalAdj
Trend Lengthint10length
Set Targetsint0target
openSourcesourceopenopenSource
highSourcesourcehighhighSource
lowSourcesourcelowlowSource
closeSourcesourceclosecloseSource
useZigzag1booltrueuseZigzag1
zigzagLength1int8zigzagLength1
depth1int55depth1
useZigzag2boolfalseuseZigzag2
zigzagLength2int13zigzagLength2
depth2int34depth2
useZigzag3boolfalseuseZigzag3
zigzagLength3int21zigzagLength3
depth3int21depth3
useZigzag4boolfalseuseZigzag4
zigzagLength4int34zigzagLength4
depth4int13depth4
Number of Pivotsint5numberOfPivots
Error Thresholdfloat20.0errorThresold
Flat Thresholdfloat20.0flatThreshold
Last Pivot DirectionstringbothlastPivotDirection
Verify Bar Ratio booltruecheckBarRatio
barRatioLimitfloat0.382barRatioLimit
Avoid OverlapbooltrueavoidOverlap
Repaintboolfalserepaint
ChannelsbooltrueallowChannels
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

PivotHighLow

by Alorse
330 stars

This indicator calculates pivot high and pivot low points on the price chart based on configurable left and right bar counts. Confirmed pivot highs and lows are plotted with negative bar offsets directly on the price chart using line and cross styles. Addition

Indicator v4 Support & resistanceOscillators & momentum Repaints
Updated 2 months ago · None stated GitHub repository of PivotHighLow
23 stars

This indicator collection calculates and plots previous daily high and low price levels on the chart to identify potential supply and demand zones. It includes real-time intraday high and low calculations, RSI divergence detection across a customizable period

Indicator v4 Support & resistanceDivergence
Updated 3 years ago · None stated GitHub repository of Daily High and Low Strategy

SPY 0DTE Scalper - 1m

by chris-c-thomas
14 stars

This overlay indicator marks CALLS and PUTS labels on the price chart when a strict boolean gate of price structure, momentum, volatility, breadth, and candle confirmation all pass. It plots an EMA ribbon with cloud fill, session-anchored VWAP and standard-dev

Indicator v6 ScalpingMoving averages
Updated 6 months ago · MIT GitHub repository of SPY 0DTE Scalper - 1m

BTE Acc AO SMIO

by f-cksociety
11 stars

This script provides an indicator-based backtesting engine framework that simulates trade entries, exits, and filtering directly on the price chart. It evaluates selected entry rules and multi-layered filters, including moving average trends, volume increases,

Indicator v5 TrendOscillators & momentum
Updated 4 years ago · MPL-2.0 GitHub repository of BTE Acc AO SMIO
5 stars

This indicator combines pivot-based support and resistance levels with multi-timeframe MACD crossovers and a higher-timeframe exponential moving average trend filter. It identifies support and resistance touches using pivot highs and lows within a user-defined

Indicator v4 Oscillators & momentumSupport & resistance Repaints
Updated 3 years ago · Apache-2.0 GitHub repository of MACD + Support / Resistance

More indicators

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers