Indicator · Pine Script v5 · On the chart

GBPJPY System - MACD Divergence Strategy

by Pesci1134

The GBPJPY System is a MACD divergence strategy for the GBPJPY pair.

View on GitHub

GitHub stars2on the repository
Pine versionv5runs as is
Lines of code333
Settings20inputs
LicenceNone stated
Last update2 weeks ago13 Oct 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

GBPJPY System - MACD Divergence Strategy calculates MACD on the 1-hour timeframe, RCI on the current bar, and EMA on the 4-hour timeframe to detect trend reversals and divergences. The script plots entry signals, stop loss, take profit, and background colors directly on the GBPJPY price chart. Main settings adjust MACD periods, RCI levels, EMA lengths, ZigZag depths, risk-reward ratio, and SL buffer, plus display options for signals and elements. It draws on the price chart using multi-timeframe data for signals without a separate pane.

Details

Published by

Pesci1134 on GitHub

Type

Indicator, Pine Script v5

Draws

On the price chart

Category

Oscillators & momentum, Divergence, Trend, Support & resistance

Markets

Forex

Timeframes

M15-H1, H4 and above

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.

Topics

github-configalgorithmic-tradingbacktestingdivergenceforexgbpjpymacdpinescriptpythontrading

Settings

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

SettingTypeDefaultVariable
RCI短期int9rci_short_period
RCI中期int14rci_mid_period
RCI売られすぎint-60rci_oversold
RCI買われすぎint60rci_overbought
RCI中期売られすぎint-40rci_mid_oversold
RCI中期買われすぎint40rci_mid_overbought
EMA (トレンド判定)int50ema_short
EMA中期(未使用)int75ema_mid
EMA長期(未使用)int200ema_long
MACD Fastint6macd_fast
MACD Slowint13macd_slow
MACD Signalint4macd_signal
Show all 20 settings
SettingTypeDefaultVariable
ZigZag 5分足 Depthint5zigzag_depth_5m
ZigZag 1時間足 Depthint12zigzag_depth_1h
リスクリワードfloat1.5risk_reward
SLバッファ(pips)float2.0sl_buffer_pips
エントリーシグナル表示booltrueshow_entries
SL/TP表示booltrueshow_sl_tp
ダイバージェンス表示booltrueshow_divergence
背景色表示(エントリー可能)booltrueshow_background
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

2 stars

This indicator plots a momentum-based ZigZag on the price chart from a QQE calculation driven by a multi-timeframe RSI. It marks bullish and bearish ZigZag segments, optional divergence and convergence between price and that RSI, and an optional Supertrend lin

Indicator v5 Oscillators & momentumDivergence
Updated 3 years ago · None stated GitHub repository of Modified Momentum QQE-ZigZag

The indicator scores whether a counter-move against the dominant structure is maturing and whether price has started turning back. It plots a composite score in a separate pane from weighted context, correction maturity, and exhaustion, scaled by trigger and a

Indicator v6 TrendOscillators & momentum
Updated yesterday · MIT GitHub repository of Directional Probability Engine v2 [WavesUnchained]
114 stars

This indicator calculates key support and resistance levels by analyzing the first and second momentum derivatives of a Double Exponential Moving Average (DEMA). When the second derivative (momentum of momentum) crosses zero, it identifies local turning points

Indicator v4 Support & resistanceOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Support and Resistance Levels

Moon Dev Lunar Sniper

by moondevonyt
92 stars

Moon Dev Lunar Sniper is a multi-indicator overlay that scores confluence across fast and slow EMAs, RSI, MACD, DMI, and BB width to fire signals only when score meets the minimum threshold. It plots buy and sell signals on the price chart, highlights cosmic b

Indicator v6 TrendOscillators & momentum Repaints
Updated 8 weeks ago · Custom licence GitHub repository of Moon Dev Lunar Sniper
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
14 stars

Self-Aware Trend System calculates volatility-adaptive ATR trailing bands using a Trend Quality Index engine that evaluates market efficiency, momentum persistence, and structural pivots. It plots adaptive trend bands and character-flip trend signals directly

Indicator v6 TrendVolatility & bands
Updated 2 weeks ago · MIT GitHub repository of Self-Aware Trend System [WillyAlgoTrader]

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