Indicator · Pine Script v5 · On the chart

MACD-X Overlay, More Than MACD

by webcrack4

This indicator calculates custom moving average convergence divergence values using selectable calculation methods, fast and slow lengths, source prices, and signal smoothing types.

View on GitHub

Repaints

GitHub stars1on the repository
Pine versionv5runs as is
Lines of code1,629
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 plots an oscillator on the price chart with customizable vertical placement and display length, along with optional signal crossovers and area highlights. It also incorporates multiple external libraries for trend analysis, zigzag calculations, and pattern detection. Note that the script is flagged for repainting.

Details

Published by

webcrack4 on GitHub

Type

Indicator, Pine Script v5

Draws

On the price chart

Category

Oscillators & momentum, Moving averages, Trend

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
Trend Lengthint100ftclength
Channel Widthfloat3multi
Index of future priceint50extend
Upcolor#16d897color_up
Dncolor#da853fcolor_dn
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
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

948 stars

The Adaptive RSI Moving Average (ARSIMA) is an overlay indicator that dynamically adjusts its smoothing factor based on the Relative Strength Index (RSI). When the RSI moves toward extreme overbought or oversold conditions, the smoothing factor increases to ma

Indicator v4 Moving averagesOscillators & momentum
Updated 10 days ago · GPL-3.0 GitHub repository of Adaptive RSI Moving Average
218 stars

TradersPost Trading Checklist is an overlay indicator that evaluates a suite of popular technical conditions for long and short trade setups. It checks session-anchored VWAP, fast and slow EMA alignments and crosses, 200 SMA, RSI overbought or oversold conditi

Indicator v6 Screeners & dashboardsTrend
Updated 3 months ago · None stated GitHub repository of TradersPost Trading Checklist

Daily Trend Filter

by agutinbaigo28
147 stars

Calculates market regime conditions by combining RSI, MACD, and ADX/DMI indicators. It evaluates whether the market is in a strong bullish, strong bearish, neutral, or non-trending regime. The script plots a colored line overlaying the close price to reflect t

Indicator v5 TrendOscillators & momentum
Updated 6 weeks ago · MIT GitHub repository of Daily Trend Filter

AAPP

by capissimo
114 stars

This indicator plots an adaptive moving average or scaled RSI divergence line directly on the price chart. It calculates dual RSI series to measure momentum divergence, scales the values to the chart's price range, and constructs an adaptive average filtered b

Indicator v4 Moving averagesTrend
Updated 1 year ago · None stated GitHub repository of AAPP

Signal Strategy 15m

by tripolskypetr
72 stars

This indicator generates trend-following trade signals on the price chart by combining moving average crossovers with multi-factor filters. It triggers entry alerts when fast and slow EMAs cross in the direction of a baseline trend EMA, confirmed by non-extrem

Indicator v5 TrendMoving averages
Updated 3 days ago · MIT GitHub repository of Signal Strategy 15m
56 stars

Double Screened Decision is a multi-timeframe trend and momentum indicator overlaid directly on the price chart. It dynamically selects a higher timeframe based on the active chart resolution to evaluate higher-timeframe MACD, Bollinger Bands, RSI, and Stochas

Indicator v5 TrendMoving averages Repaints
Updated 4 months ago · None stated GitHub repository of Double Screened Decision

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