This strategy calculates the cross-market ratio between gold and EURUSD alongside an ATR volatility percentage and a higher-timeframe daily SMA trend filter.
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 strategy, select all of the template text and paste. Press Save and give it a name.
4Add it to the chartPress Add to chart. The trades and results appear in the Strategy Tester tab; adjust the settings with the gear icon.
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
XAU/USD Enhanced Arbitrage Strategy executes session-tailored entries across the Asian, London, and New York sessions using RSI, ADX, and MACD momentum conditions aligned with the primary trend. Position exits are managed with an ATR-based bracket that sets a 1.5 ATR stop loss and a 3.0 ATR profit target. It draws strategy orders directly on the price chart.
Cross-market Gold and EURUSD ratio z-score calculation
Session-specific trade triggers for Asian, London, and New York sessions
ATR-based stop loss and take profit bracket orders
Daily moving average trend alignment filter
Momentum and volatility confirmation via RSI, ADX, and MACD
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
0000-0800
session
Asian Session
input_asian_start
0800-1600
session
London Session
input_london_start
1200-2000
session
NY Session
input_ny_start
ATR Length
int
14
input_atr_length
Volatility Threshold (%)
float
1.5
input_vol_threshold
Z-Score Threshold
float
-1.5
input_z_score
RSI Length
int
14
rsi_length
RSI Overbought
int
65
rsi_ob
RSI Oversold
int
35
rsi_os
ADX Threshold
int
25
adx_threshold
Trend Filter Length
int
50
trend_filter_length
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 strategy enters long positions during a specified trading session when multiple technical indicators align. It executes a buy order when the low drops below the lower Bollinger Band while RSI and ADX exceed configurable threshold values, price closes abov
MTF Confluence Strategy is a Pine Script strategy that generates long and short signals based on Supertrend flips on the chart timeframe confirmed by Supertrend on a higher timeframe. Signals require ADX above a threshold for trending conditions and optional v
This strategy overlays a trend moving average and Supertrend bands directly on the price chart while calculating Stochastic RSI values internally. Long positions trigger when price exceeds the moving average, Supertrend signals bullish momentum, and the StochR
This strategy combines exponential moving averages (EMA 9, 21, 50), RSI, MACD, and Supertrend indicators to enter long positions. It triggers trades using six dynamic setups based on momentum breakouts, EMA crossovers, and pullbacks. Position sizing is compute
This strategy identifies trend reversals through market structure changes (CHoCH) filtered by MACD momentum. It initiates long positions on bullish structure breaks when MACD is positive and above its signal line, and short positions on bearish breaks when MAC
This strategy enters long or short on the price chart when price is on the correct side of a 200-period EMA, MACD agrees, RSI is not at the opposing extreme, ADX exceeds a threshold, volume beats a 20-bar average, and close breaks the recent high or low. A tim