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
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.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
RCI短期
int
9
rci_short_period
RCI中期
int
14
rci_mid_period
RCI売られすぎ
int
-60
rci_oversold
RCI買われすぎ
int
60
rci_overbought
RCI中期売られすぎ
int
-40
rci_mid_oversold
RCI中期買われすぎ
int
40
rci_mid_overbought
EMA (トレンド判定)
int
50
ema_short
EMA中期(未使用)
int
75
ema_mid
EMA長期(未使用)
int
200
ema_long
MACD Fast
int
6
macd_fast
MACD Slow
int
13
macd_slow
MACD Signal
int
4
macd_signal
Show all 20 settings
Setting
Type
Default
Variable
ZigZag 5分足 Depth
int
5
zigzag_depth_5m
ZigZag 1時間足 Depth
int
12
zigzag_depth_1h
リスクリワード
float
1.5
risk_reward
SLバッファ(pips)
float
2.0
sl_buffer_pips
エントリーシグナル表示
bool
true
show_entries
SL/TP表示
bool
true
show_sl_tp
ダイバージェンス表示
bool
true
show_divergence
背景色表示(エントリー可能)
bool
true
show_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.
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
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
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
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
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
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