Indicator · Pine Script v6 · On the chart

CHOCH-Base Indikator (RUNA logic)

by skipp-dev

This indicator plots CHOCH (Change of Character) and BOS market structure signals on the price chart based on SMC logic.

View on GitHub

Repaints

GitHub stars1on the repository
Pine versionv6current
Lines of code344
Settings40inputs
LicenceNone stated
Last update4 days ago26 Oct 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 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.

Details

Published by

skipp-dev on GitHub

Draws

On the price chart

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

  • Signals can change on the live bar or after it closes (repainting)

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Strategy PresetstringBalancedpresetMode
Fast EMAint23fastEMA
Slow EMAint55slowEMA
RSI Lengthint15rsiLen
ATR Lengthint14atrLen
Volatility Filter Multiplierfloat1.16volMult
Risk % per tradefloat0.5riskPct
Reward/Risk Ratiofloat1.5rr
Sweep Lookbackint10lookback
Pullback Barsint3pullbackBars
Use HTF FilterboolfalseuseHtf
HTF Timeframetimeframe60htfTf
Show all 40 settings
SettingTypeDefaultVariable
HTF EMA Lengthint50htfEmaLen
HTF ModestringEMAhtfMode
Max Notional as % of Equityfloat0.98cashBufferPct
Round qty to stepbooltrueroundQty
Qty step (e.g. 0.00001)float0.00001qtyStep
TP1 at R multiple (partial)float1.0tp1_R
TP1 % size (0 = off)float30tp1_pct
Break-even start (R)float1.0beStartR
Trail start (R)float1.5trailStartR
Trail ATR multfloat1.0trailATRmult
Stop ATR multfloat1.5stopAtrMult
Use CHoCH Verify flip as exitboolfalseuseChochFlipExit
Time-stop bars (Soft)int30timeStopBars
Min progress by time-stop (R)float1.0progressR
Hard max bars (Force close)int120hardMaxBars
Catastrophe Stop (R)float2.5catastropheR
Cooldown bars after win/BEint30cooldownBars
Cooldown bars after lossint60lossCooldownBars
Enable Short TradesboolfalseallowShorts
Swing Lint3ms_swingL
Swing Rint2ms_swingR
Swing max age (bars, 0=off)int0ms_maxAge
Breakout sourcestringWickms_breakSrc
Structure logicstringSMC+Sweepms_logic
ChoCH modestringPingms_mode
Use ADX trend filterboolfalseuseAdxFilter
ADX lengthint14adxLen
ADX thresholdfloat20.0adxThreshold
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.

Similar Pine Scripts

RSC Trend Trading Study

by readysetcryptocodes
43 stars

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

Indicator v4 TrendBreakout
Updated 2 years ago · None stated GitHub repository of RSC Trend Trading Study

Candle Stage Analysis

by ChartsLector
41 stars

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

Indicator v6 TrendMoving averages
Updated 4 days ago · None stated GitHub repository of Candle Stage Analysis
24 stars

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

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 12 days ago · Custom licence GitHub repository of Smart Money Concepts [LuxAlgo] Test B

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

Indicator v6 Volatility & bandsSMC / ICT / price action
Updated 3 days ago · MIT GitHub repository of Compression Fractal Release [WavesUnchained]

714AutoM8tr

by alboogycOdR
6 stars

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

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 7 months ago · None stated GitHub repository of 714AutoM8tr

More SMC / ICT scripts

Related on ForexR

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers