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
Breaks can use the wick or the close, and structure logic can stay standard or include sweeps. ChoCH mode selects Ping, Verify, or both, with optional BOS and ChoCH tags. Anticipation markers appear when price nears a swing, and momentum markers combine RSI divergence with a volume spike. Swing lengths, confirmation bars, and maximum swing age change how levels form. No stop loss is set by default.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Swing L
int
2
ms_swingL
Swing R
int
1
ms_swingR
Swing max age (bars, 0=off)
int
0
ms_maxAge
Breakout source
string
Wick
ms_breakSrc
Structure logic
string
SMC+Sweep
ms_logic
ChoCH mode
string
Ping
ms_mode
Show BOS/ChoCH tags
bool
true
ms_showTags
Show Ping markers
bool
false
ms_showPing
Show BEAR ChoCH (Ping/Verify)
bool
true
showBearChoch
Enable Anticipation signals
bool
true
ms_useAnticipation
Proximity %
float
0.15
ms_proxPct
Show Anticipation markers
bool
true
ms_showAnticipation
Show all 17 settings
Setting
Type
Default
Variable
Enable Momentum Pre-CHoCH
bool
true
ms_useMomentum
RSI Length
int
7
ms_rsiLen
RSI Divergence lookback
int
5
ms_rsiDivBars
Volume spike multiplier
float
1.5
ms_volMulti
Show Momentum Pre-CHoCH markers
bool
true
ms_showMomentum
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 detects liquidity sweeps and break of structure events using SMC concepts. It plots BOS labels, sweep markers, and matrix floor ceiling lines on the price chart. The SMC structure sensitivity setting adjusts lookback for scalping, standard, or sw
This strategy identifies reversal opportunities based on liquidity sweeps and multi-gate confluence scoring. It evaluates setups using mandatory conditions such as swing sweeps, body and ATR filters, and dual EMA higher-timeframe trend alignment, alongside opt
This strategy plots dynamic pivot-based support and resistance trendlines on the price chart and trades breakouts beyond those lines. By default it allows longs only when EMA 50 is above EMA 200 and an RSI-SMA momentum filter is met, with an ATR entry buffer.
This strategy combines Opening Range Breakout (ORB) mechanics with Inner Circle Trader (ICT) concepts like Fair Value Gaps, Order Blocks, and liquidity grabs. It identifies session opening ranges and generates signals when price breaks out with supporting rela
This strategy combines fractal-based supply and demand order blocks with Awesome Oscillator divergence detection. It generates long signals when price interacts with a demand zone alongside a confirmed bullish divergence, and short signals at supply zones with
ScarAlgo v1 is a trend-following and market-structure strategy plotted directly on the main price chart. It triggers entries using an ATR-based trailing envelope filtered by a configurable multi-timeframe moving average, while employing a WaveTrend momentum os