Indicator · Pine Script v5 · On the chart

GBPJPY Ver7 Phase1 - Environment Recognition

by Pesci1134

GBPJPY Ver7 Phase1 - Environment Recognition is a multi-timeframe trend and momentum analysis indicator designed for price charts.

View on GitHub

Repaints

GitHub stars2on the repository
Pine versionv5runs as is
Lines of code257
Settings11inputs
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 Ver7 Phase1 - Environment Recognition evaluates overall trend direction using a 4-hour 50 EMA and calculates MACD divergences on 1-hour charts using ZigZag pivot highs and lows. The indicator overlays background colors to highlight prevailing trend environments and potential trade entries, while drawing divergence lines across confirmed pivot points. Key settings allow users to adjust EMA lengths, MACD parameters, ZigZag pivot sensitivity, and divergence expiration limits. Note that ZigZag pivot detection relies on confirmed swing points, causing divergence signals to update after a bar delay.

Details

Published by

Pesci1134 on GitHub

Type

Indicator, Pine Script v5

Draws

On the price chart

Category

Trend, Oscillators & momentum, Moving averages, Divergence

Markets

Forex

Timeframes

M15-H1

Risk Notes

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

Topics

github-configalgorithmic-tradingbacktestingdivergenceforexgbpjpymacdpinescriptpythontrading

Settings

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

SettingTypeDefaultVariable
4時間足EMA期間int50ema_period
MACD Fastint6macd_fast
MACD Slowint13macd_slow
MACD Signalint4macd_signal
ZigZag Depthint12zigzag_depth
ZigZag Deviationfloat5zigzag_deviation
ZigZag Backstepint3zigzag_backstep
ダイバージェンス有効期間(時間)int12divergence_valid_hours
ダイバージェンスライン表示booltrueshow_divergence_lines
トレンド背景色表示booltrueshow_trend_background
エントリー可能背景色表示booltrueshow_entry_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

5 stars

This indicator overlays multiple technical analysis tools onto the price chart to evaluate trend direction and trade setups. It computes an exponential moving average, a smoothed Stochastic RSI, a custom Williams Alligator using smoothed moving averages with o

Indicator v4 TrendMoving averages
Updated 3 years ago · Apache-2.0 GitHub repository of 200 EMA + Alligator + Stochastic

Fractals with Divergence Scanner is an overlay indicator that combines Exponential Moving Averages, an eight-line EMA ribbon cloud, and WaveTrend divergence analysis. It calculates baseline EMA trends alongside WaveTrend oscillators to detect regular and hidde

Indicator v5 TrendMoving averages
Updated 5 months ago · None stated GitHub repository of Fractals with Divergence Scanner
2 stars

ARPS Ultimate MultiStrategy Trading combines multiple technical indicators into a single chart overlay. It calculates and plots trend lines, moving averages, Ichimoku cloud components, Williams Alligator lines, and Fibonacci support and resistance levels direc

Indicator v4 TrendOscillators & momentum
Updated 6 months ago · None stated GitHub repository of ARPS Ultimate MultiStrategy Trading

Complexity Trender

by panzmoravylab
2 stars

Complexity Trender is an indicator that combines EMA crossovers, RSI momentum, Stochastic signals, Bollinger Bands, ADX trend strength, volume analysis, and divergence detection to identify trends. It plots labels, trend lines, and a summary table directly on

Indicator v6 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Complexity Trender

This indicator evaluates how price relates to one selected moving-average family rather than treating a crossover as a signal. It scores trend quality, historical respect of the average, extension, compression, acceleration, and exhaustion, then plots a relati

Indicator v6 TrendMoving averages
Updated yesterday · MIT GitHub repository of Market–Average Relationship Engine [WavesUnchained]

MTF MA bands + RSI

by InNoobWeTrust
4 stars

This indicator plots multi-timeframe moving average bands alongside a Relative Strength Index in a separate pane. It calculates up to four configurable moving averages across different timeframes, offering selectable types such as SMA, EMA, and WMA with colore

Indicator v6 Oscillators & momentumMoving averages
Updated today · None stated GitHub repository of MTF MA bands + RSI

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