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
CHOCH-Base Indikator (RUNA logic) calculates fast and slow EMAs, RSI, ATR volatility filters, and sweep lookback to detect breakouts and pullbacks. Signals trigger entries with customizable risk percentage, reward-risk ratio, and partial TP levels. HTF EMA filter and ADX trend confirmation are optional. The script draws tags, ping markers, and structure lines directly on the price chart. Main settings control EMA periods, volatility multipliers, swing detection, and trade management parameters like stop ATR and time-based exits. It repaints on the live bar and has no built-in exit rules.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Strategy Preset
string
Balanced
presetMode
Fast EMA
int
23
fastEMA
Slow EMA
int
55
slowEMA
RSI Length
int
15
rsiLen
ATR Length
int
14
atrLen
Volatility Filter Multiplier
float
1.16
volMult
Risk % per trade
float
0.5
riskPct
Reward/Risk Ratio
float
1.5
rr
Sweep Lookback
int
10
lookback
Pullback Bars
int
3
pullbackBars
Use HTF Filter
bool
false
useHtf
HTF Timeframe
timeframe
60
htfTf
Show all 40 settings
Setting
Type
Default
Variable
HTF EMA Length
int
50
htfEmaLen
HTF Mode
string
EMA
htfMode
Max Notional as % of Equity
float
0.98
cashBufferPct
Round qty to step
bool
true
roundQty
Qty step (e.g. 0.00001)
float
0.00001
qtyStep
TP1 at R multiple (partial)
float
1.0
tp1_R
TP1 % size (0 = off)
float
30
tp1_pct
Break-even start (R)
float
1.0
beStartR
Trail start (R)
float
1.5
trailStartR
Trail ATR mult
float
1.0
trailATRmult
Stop ATR mult
float
1.5
stopAtrMult
Use CHoCH Verify flip as exit
bool
false
useChochFlipExit
Time-stop bars (Soft)
int
30
timeStopBars
Min progress by time-stop (R)
float
1.0
progressR
Hard max bars (Force close)
int
120
hardMaxBars
Catastrophe Stop (R)
float
2.5
catastropheR
Cooldown bars after win/BE
int
30
cooldownBars
Cooldown bars after loss
int
60
lossCooldownBars
Enable Short Trades
bool
false
allowShorts
Swing L
int
3
ms_swingL
Swing R
int
2
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
Use ADX trend filter
bool
false
useAdxFilter
ADX length
int
14
adxLen
ADX threshold
float
20.0
adxThreshold
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 plots Donchian Channels alongside fast and slow simple moving averages directly on the price chart. It generates bullish breakout signals when the high reaches the upper channel while the close is above the 50 SMA (and optionally the 200 SMA). B
This indicator classifies market trends into structured stages based on moving average alignments, compression, and ATR distance from the 50-period SMA. It tracks multiple exponential moving averages against the 50 SMA to detect basing phases, breakouts, trend
This indicator maps Smart Money Concepts (SMC) market structure directly onto the price chart. It detects internal and swing structure breaks (BOS and CHoCH), tracks bullish and bearish order blocks, identifies fair value gaps (FVG), highlights equal highs and
This indicator detects compressed corrective coils inside a higher-timeframe trend and signals when they resolve into clean directional breaks. It plots compression bands, fractal boxes, efficiency scores, and a light dashboard on the price chart. Signals clas
This technical indicator combines SuperTrend signals, moving average trend clouds, pivot points, and daily range breakout targets directly on the price chart. It generates Buy, Strong Buy, Sell, and Strong Sell labels when price crosses the SuperTrend level in
714AutoM8tr is a Smart Money Concepts indicator that plots internal and swing market structures directly on the price chart. It identifies Break of Structure and Change of Character points alongside internal and swing order blocks. Users can customize order bl