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
XAUUSD Strategy V4.9 - Professional Entry Model + Backtest combines Stochastic Oscillator, RSI, EMA crossovers and Fibonacci retracements with M15 overbought/oversold triggers and rejection wick filters to identify entries. Confirm mode waits for confirmed signals while Scalp mode executes quicker exits. ATR determines zone tolerances, stop loss buffers and risk-reward ratios for both confirm and scalp trades. The strategy plots entry signals, watch marks and key Fibonacci levels on the chart with an optional dashboard. Main settings control oscillator periods, EMA lengths, M15 levels, risk parameters and backtest modes. It supports closed bar confirmation and draws exclusively on the price chart.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Stoch Period
int
5
stochLen
Stoch K
int
3
stochKLen
Stoch D
int
3
stochDLen
RSI Period
int
14
rsiLen
EMA Fast
int
20
emaFastLen
EMA Slow
int
50
emaSlowLen
EMA Trend
int
200
emaTrendLen
ATR Period
int
14
atrLen
Backtest Mode
string
Confirm + Scalp
mode
Use Closed Bar Only
bool
true
useConfirmedBar
M15 Sell OB Level
float
70
sellOb
M15 Buy OS Level
float
30
buyOs
Show all 27 settings
Setting
Type
Default
Variable
M15 Rejection Wick %
float
0.35
wickPct
Require M15 Trigger for Confirm
bool
true
requireM15
Fib Lookback
int
50
fibLookback
Fib/EMA Zone Tolerance x ATR
float
0.45
fibTolAtr
No Chase Distance from EMA20 x ATR
float
1.35
noChaseAtr
Confirm TP RR
float
1.5
rrConfirm
Scalp TP RR
float
0.8
rrScalp
Confirm SL Buffer x ATR
float
0.35
slAtrBuf
Scalp SL Buffer x ATR
float
0.12
scalpSlAtr
Confirm SL Swing Lookback
int
8
swingLb
Scalp SL Swing Lookback
int
3
scalpLb
Show Dashboard
bool
true
showDash
Show Signals
bool
true
showSignals
Show Watch Marks
bool
true
showWatch
Show Key Fib
bool
true
showFib
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.
Box Scalper v4 is a strategy that plots buy and sell signals on the price chart using ADX trend filters, QQE momentum oscillator, and BOX channels. It signals entries based on crossovers and zone conditions, with trailing stop loss and take profit targets. Par
Liquidity Sweep Scalper v2 is a scalping strategy that detects liquidity sweeps using Supertrend trend filters, Bollinger Bands for volatility, Williams Fractals for pivots, and MACD momentum. It enters on rejection candle breaks after sweeps and exits via sto
This strategy trades S50 TFEX USDTHB contracts on the price chart. It detects swing highs and swing lows with pivot points to generate long entries on swing highs and short entries on swing lows. The ATR indicator calculates dynamic stop-loss distances while t
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 plots VWMA-based Bollinger bands on the 1-minute ES futures price chart for volatility analysis and potential breakout identification. It calculates dynamic long and short stop loss and take profit levels using percentage inputs relative to entry
This strategy uses multiple VWAP anchors and a custom Lull indicator to generate buy and sell signals on the Nasdaq price chart. It plots the VWAP trend line and three VWAP anchors with customizable colors and mitigation methods. The Lull indicator produces si