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 SMC Bot scores fair value gaps, order blocks, liquidity sweeps, break of structure, and change of character, plus EMA, RSI, MACD, and higher-timeframe alignment. It opens a fixed-size position when the confluence score and minimum signal count pass the filters, including optional structure and RSI blocks. Stop loss and take profit are ATR multiples. Session shading and boxes for gaps, order blocks, swings, and a partial-close level can be shown.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
SL ATR Multiplier
float
3.0
sl_atr_mult
TP ATR Multiplier
float
6.0
tp_atr_mult
Min Confluence Score
float
0.55
min_conf
Require BOS or CHoCH
bool
true
req_struct
Min SMC Signals (1-4)
int
2
min_smc_sigs
RSI Bounce Protection (>75/<25)
bool
true
rsi_protect
RSI Hard Block (>85 / <15)
bool
true
rsi_hard_blk
Swing Lookback (each side)
int
10
swing_lb
BOS/CHoCH Lookback (bars)
int
20
struct_lb
FVG Min Size (pips)
float
5.0
fvg_pips
OB Lookback (bars)
int
20
ob_lb
Liquidity Sweep Window
int
20
sweep_bars
Show all 27 settings
Setting
Type
Default
Variable
FVG Weight
float
0.20
w_fvg
Order Block Weight
float
0.25
w_ob
Liquidity Sweep Weight
float
0.20
w_liq
CHoCH Weight
float
0.30
w_choch
BOS Weight (=0.30×0.70)
float
0.21
w_bos
EMA Alignment Weight
float
0.10
w_ema
RSI Confirmation Weight
float
0.08
w_rsi
MACD Confirmation Weight
float
0.07
w_macd
H1 MTF Alignment Bonus
float
0.10
w_mtf
Show Session Backgrounds
bool
true
show_sess
Show FVG Boxes
bool
true
show_fvg_b
Show OB Boxes
bool
true
show_ob_b
Show Entry Signals
bool
true
show_sig
Show Swing Points
bool
true
show_swings
Show Partial Close Level
bool
true
show_partial
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.
Donald - AI Futures is a price-chart strategy that estimates inner and outer high-low zones and a smoothed close with rational quadratic kernel regression. It builds bullish and bearish momentum signals, optionally compares volume with a volume-weighted moving
Donald - AI Futures 5M 15M Timeframe is an overlay trading strategy designed for intraday futures trading. It utilizes rational quadratic kernel regression to construct dynamic momentum zones and smoothed price boundaries on the main price chart. The strategy
This overlay strategy plots previous-day high and low, the daily open, and fair value gap zones on the price chart. It takes entries on a selectable timeframe when the FVG requirement and an optional session window allow them, then uses an ATR or fixed pip sto
This strategy plots VWAP on the price chart and trades only between a start hour and an end hour. It enters long when VWAP is rising and RSI is above a threshold, and short when VWAP is falling and RSI is below a threshold. If the reversal option is on, it clo
This overlay strategy looks for gold scalps from break of structure and change of character. It enters long when a bullish break, a bullish character change, and an optional volume filter align, and short on the opposite set. Optional RSI levels can block trad
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