Gold Multi-TF NYSE Scalper v2 is an intraday trading strategy for XAUUSD that seeks momentum entries by aligning RSI and EMA bias across multiple timeframes.
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
Gold Multi-TF NYSE Scalper v2 filters trades using an optional NYSE session clock and an ATR volatility spike check. Entries exit via dynamic ATR stop losses bounded by user-defined caps, up to four partial take-profit levels, dynamic breakeven adjustments, swing-based trailing stops after TP1, or trade duration stall timeouts. Script inputs allow configuration of RSI bounds, contract sizing, ATR parameters, and profit targets.
Multi-timeframe RSI and EMA trend alignment filter
ATR-based dynamic stop loss with min and max pip bounds
Extreme volatility entry filter based on median ATR
Four partial profit targets with breakeven and trailing stops
NYSE trading session filter and stall timeout rules
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Trade ONLY during NYSE Session?
bool
true
use_nyse_filter
Close all positions at NYSE end?
bool
false
auto_close_nyse
RSI Length
int
14
rsi_length
RSI Buy Threshold
int
35
rsi_low_limit
RSI Sell Threshold
int
55
rsi_high_limit
Bias EMA Length
int
15
bias_ema_length
Margin per Contract ($)
float
200.0
margin_per_contract
Contracts per Trade
int
4
num_contracts
Pip Size ($)
float
0.10
pip_size
ATR Length for Stop
int
14
atr_length
ATR Stop Multiplier
float
3.0
atr_mult
Min Stop (pips)
float
100.0
min_stop_pips
Show all 32 settings
Setting
Type
Default
Variable
Max Stop (pips)
float
500.0
max_stop_pips
Skip entries in extreme volatility?
bool
true
use_vol_filter
Vol Filter: ATR must be < median ATR x this
float
2.5
vol_filter_mult
Move SL to BE on TP#
int
1
be_on_tp
SL after TP1 (pips)
float
-10.0
sl_after_tp1
Active trailing after TP1?
bool
true
trail_after_tp1
Trailing lookback (bars)
int
8
trail_bars
Trail offset (pips)
float
15.0
trail_offset_pips
Stall Timeout (hours)
float
2.0
timeout_hours
Min Profit to Keep Running (pips)
float
30.0
timeout_min_pips
TP1 (pips)
float
60.0
tp1_pips
TP2 (pips)
float
220.0
tp2_pips
TP3 (pips)
float
400.0
tp3_pips
TP4 (pips)
float
600.0
tp4_pips
TP1 Contracts to Close
int
1
tp1_qty
TP2 Contracts to Close
int
1
tp2_qty
TP3 Contracts to Close
int
1
tp3_qty
TP4 Contracts to Close
int
0
tp4_qty
Min Timeframes Aligned (out of 5)
int
3
min_tf_agree
Webhook Passphrase
string
webhook_passphrase
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 plots MACD line, signal line, Bollinger Bands, and RSI on the price chart. It signals long entries on MACD crossover above signal with RSI below 50 and price below BB basis, plus optional DMI filter. Short entries are available but disabled by de
This overlay strategy offers two selectable entry modes: a Bollinger squeeze on typical price and a simple moving-average cross. It filters trades by weekday, session, date range, and an optional news window, and can restrict direction or invert the side. Risk
This strategy identifies trend-following entries using a triple exponential moving average alignment and ATR-based exits on the main price chart. Long signals trigger when the fast EMA is above the medium EMA and medium is above slow, accompanied by a close ab
This educational strategy demonstrates moving average crossovers filtered by RSI momentum, incorporating ATR-based risk management. It calculates a 10-period SMA, a 30-period SMA, a 14-period RSI, and a 14-period ATR. Long entries trigger when the fast SMA cro
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 plots exponential-moving-average Bollinger bands on the price chart and calculates RSI. It opens a long position when close crosses above the upper band while RSI is at or above a threshold, the date filter allows trading, and no position is open