A scalping strategy on the price chart built around market structure: change of character, break of structure and inducement sweeps, filtered by RSI extremes, volume, trend EMA, ATR range, session hours and signal confluence.
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
A mode selector switches between Conservative, Balanced, Aggressive, ULTRA and Custom presets that change sizing, stops, targets and pyramiding. Optional partial take profits, Kelly sizing and a four-hour trend check are included. It can add several entries and recalculates on every tick.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Sovereign Mode
string
Balanced
mode
CHoCH Period
int
50
CHoCH Period
IDM Period
int
10
IDM Period
RSI Length
int
14
rsiLen
RSI Low
int
25
RSI Low
RSI High
int
75
RSI High
Vol SMA
int
20
volLen
Vol Mult
float
1.3
Vol Mult
Trend EMA
int
40
Trend EMA
ATR Length
int
12
ATR Length
ATR Min %
float
0.4
ATR Min %
ATR Max %
float
5.0
ATR Max %
Show all 40 settings
Setting
Type
Default
Variable
Mom Bars
int
3
Mom Bars
Session Start
int
1
Session Start
Session End
int
23
eHr
ADR Length
int
14
adrLen
Min Range/ADR
float
0.7
Min Range/ADR
Adaptive Risk (Vol SL/TP)
bool
true
useAdaptiveRisk
4H Trend Confirmation
bool
false
useMTF
4H EMA
int
50
htfEmaL
Kelly Position Sizing
bool
false
useKelly
Kelly Fraction
float
0.75
kellyFrac
Partial TP
bool
true
usePartialTP
TP1 Size %
int
40
tp1Frac
TP2 Size %
int
40
tp2Frac
Vol Expansion Filter
bool
true
useVolExp
Expansion Lookback
int
3
expBars
Enhanced Session Filter
bool
true
useEnhSess
Signal Confluence
bool
true
useConf
Min Confluence
int
2
minConf
Require Strong Trend
bool
true
useStr
Min Trend Strength
float
1.5
strMin
Dynamic Risk/Reward
bool
true
useDRR
Min R:R
float
3.0
minRR
Structure-Based Stops
bool
true
useStructStop
Stop Buffer (ATR)
float
0.3
stopBuf
Win Rate Adaptation
bool
true
useWRA
WR Lookback
int
20
wrLook
Trade BOS
bool
true
useBos
Trade CHoCH
bool
true
useChoch
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.
A strategy for index charts such as the S&P 500 on five minutes, trading only inside a configurable New York time window. It looks for a large-bodied candle, measured against ATR, that follows a short-term liquidity sweep of recent highs or lows, with an optio
This futures trading strategy combines Fair Value Gap (FVG) detection filtered by Average True Range (ATR) with multi-timeframe Exponential Moving Averages (8, 55, and 165 lengths). It identifies entry setups during a defined intraday trading session window wh
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
Andean Scalping is a Pine Script v5 strategy template designed for backtesting trading signals. It features session and date-range filtering, directional trade toggles for long and short entries, and optional trend filtering tools including higher-timeframe EM
Gold Scalping BOS & CHoCH is an overlay strategy designed for detecting market structure shifts. It calculates rolling swing highs and lows to identify Break of Structure (BOS) and Change of Character (CHoCH) events. Long signals trigger when bullish BOS and C
Gold Scalping BOS & CHoCH with MA Filter is a strategy that identifies market structure shifts using Break of Structure (BOS) and Change of Character (CHoCH) signals alongside exponential moving average trend filters. Long trades enter when bullish BOS, bullis