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 indicator, select all of the template text and paste. Press Save and give it a name.
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
XAUUSD Strategy - Auto Entry + Smart TP/SL Fixed combines Stochastic, RSI, triple EMAs, Fibonacci retracements, automated support and resistance levels, wick reclaims, and volume spikes into an aggregate scoring system. When confluence scores meet user thresholds, it plots trade signals alongside dynamic swing- and ATR-based stop loss and take profit projections. Configurable inputs allow fine-tuning of indicator periods, scoring weights, risk-reward ratios, and chop filters. As an indicator, it displays trade setups without executing orders directly.
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
stoch_period
Stoch K
int
3
stoch_k
Stoch D
int
3
stoch_d
Oversold
int
20
oversold
Overbought
int
80
overbought
RSI Period
int
14
rsi_period
EMA Fast
int
20
ema_fast
EMA Slow
int
50
ema_slow
EMA Trend
int
200
ema_trend
Fib Lookback
int
50
fib_lookback
Fib Tolerance
float
0.008
fib_tol
SR Pivot Lookback
int
20
sr_lookback
Show all 40 settings
Setting
Type
Default
Variable
Min SR Touches
int
2
sr_touch_min
SR Zone Width (pip)
float
3.0
sr_zone_width
Show SR Labels
bool
true
show_sr_label
Min Wick Reclaim %
float
0.45
wick_reclaim_min
Sweep+Reclaim Score
int
2
sweep_score_weight
Show READY Signal
bool
true
show_ready_signal
Continuation Max Body x Avg
float
0.85
cont_body_max
Continuation Score
int
2
cont_score_weight
Require EMA20 Hold
bool
true
require_ema_hold
Volume MA Length
int
20
vol_length
Volume Spike x
float
1.5
vol_mult
Full Signal Score
int
5
score_full
Early Signal Score
int
4
score_early
R:R Ratio
float
1.5
rr_ratio
SL Buffer pip
int
5
sl_buf
SL Swing Lookback
int
5
sl_lookback
Minimum RR
float
1.2
min_rr
ATR Period
int
14
atr_period
ATR SL Buffer
float
0.3
atr_sl_mult
Use ATR Dynamic SL
bool
true
use_atr_sl
Use No Trade Filter
bool
true
use_no_trade_filter
Low ATR Filter x
float
0.75
atr_flat_mult
EMA Flat Lookback
int
5
ema_flat_len
EMA Flat Tolerance ATR
float
0.15
ema_flat_tol_atr
Avoid Extreme Wick Entry
bool
true
avoid_extreme_wick
Extreme Wick %
float
0.65
extreme_wick_ratio
Entry Buffer ATR
float
0.10
entry_buffer_atr
TP1 RR
float
1.0
tp1_rr
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 indicator identifies Smart Money Concepts market structure across higher and lower timeframes directly on the main price chart. It detects Break of Structure, Market Structure Shifts, Order Blocks, and regular or inverse Fair Value Gaps. Entry signals are
Pieki Algo is an all-in-one technical analysis indicator that overlays trading signals, trend visualizers, and Smart Money Concepts onto the main price chart. It plots buy and sell signals based on configurable sensitivity settings, colors candles by trend or
This indicator detects higher-timeframe order blocks and fractals to generate scored reversal signals directly on the price chart. It evaluates candidate setups using a multi-factor scoring system incorporating RSI momentum, trend EMAs, midpoint distance, and
Combined Indicators v5 Fixed merges multiple technical tools into a single price chart overlay. It identifies Smart Money Concepts structure such as Break of Structure, Change of Character, Order Blocks, Fair Value Gaps, and equal highs or lows. Additionally,
This indicator quantifies the risk of a prevailing market structure break by combining trend context, structure, and momentum into a composite 0–100 risk score. It plots an RSI oscillator with momentum divergence lines in a separate pane while projecting key b
This indicator detects equal highs and lows by comparing prices within user-defined left and right bars using a tolerance percentage. It plots horizontal lines on the price chart for equal highs in one color and lows in another. A screener allows input of mult