Strategy · Pine Script v6 · On the chart

CHOCH + BOS Strategy

by skipp-dev

This strategy identifies market structure shifts, specifically Change of Character (ChoCH) and Break of Structure (BOS), on the main price chart.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code324
Settings27inputs
LicenceNone stated
Last update2 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 strategy, select all of the template text and paste. Press Save and give it a name.
  4. 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

CHOCH + BOS Strategy triggers entries based on swing pivot breakouts with an optional volume filter and moving average confirmation. Risk management features ATR-based stop-loss, take-profit, and trailing stop levels, alongside exits on opposite ChoCH signals or EMA cross flips. Configurable settings allow users to adjust swing pivot lengths, volume thresholds, risk multipliers, and toggle long or short trades.

Details

Published by

skipp-dev on GitHub

Type

Strategy, Pine Script v6

Draws

On the price chart

Category

SMC / ICT / price action, Trend, Moving averages, Support & resistance

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

  • The strategy enters trades without a stop loss

Settings

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

SettingTypeDefaultVariable
Swing Left (L)int5swingL
Swing Right (R)int3swingR
Swing Max Age (bars)int0swingMaxAgeBars
Breakout SourcestringClosebreakoutSource
Structure LogicstringStandardstructureLogic
Volume FilterbooltrueuseVolFilter
Volume SMA Lengthint20volSmaLen
Volume Multiplierfloat1.20volMult
ChoCH Requires VolumebooltruechochReqVol
EMA Fastint21emaFastLen
EMA Slowint55emaSlowLen
ATR Lengthint14atrLen
Show all 27 settings
SettingTypeDefaultVariable
ATR Risk ModelbooltrueuseAtrRisk
Stop Loss (ATR)float2.00stopATR
Take Profit (ATR)float5.00tpATR
Trail ATRfloat2.50trailATR
Trail after R multiplefloat1.50trailAfterR
Exit on EMA cross flipbooltrueuseEmaCrossExit
Exit on opposite ChoCHbooltrueuseOppositeExit
Cooldown barsint2cooldownBars
Enable LongsbooltrueenableLongs
Enable ShortsboolfalseenableShorts
Entry SignalstringChoCH OnlyentryOn
Structure labelsbooltrueshowLabels
Swing High/Low linesbooltrueshowSwingLines
EMA linesbooltrueshowEma
Background structure tintbooltrueshowBgState
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

XXX

by MeridianAlgo
9 stars

This multi-timeframe scalping strategy plots moving averages alongside Smart Money Concepts elements on the price chart. It calculates trend signals using configurable moving average types like ALMA, Hull MA, or TEMA across alternate timeframes. It also plots

Strategy v5 TrendMoving averages Repaints
Updated 4 months ago · MIT GitHub repository of XXX

SAIYAN OCC Strategy R5.41

by IAMATOMIC001
3 stars

SAIYAN OCC Strategy is a price-chart strategy that builds a short moving average of open and close prices using TEMA, Hull, or ALMA and colours bars by trend. It can take long, short, or both directions, optionally from Heikin Ashi closes or a multiplied alter

Strategy v5 TrendMoving averages Repaints
Updated 12 months ago · None stated GitHub repository of SAIYAN OCC Strategy R5.41

Omar Edited WF

by Alorse
330 stars

Omar Edited WF is a trading strategy overlay built around Williams Fractals and multiple Exponential Moving Averages. It detects high and low fractal pivot points over configurable lookback periods alongside three adjustable EMA trendlines. Long entries are ma

Strategy v5 TrendMoving averages
Updated 2 months ago · None stated GitHub repository of Omar Edited WF
257 stars

This strategy calculates dynamic support and resistance levels using pivot highs and lows alongside a custom smoothed trend filter and a 3-period EMA. It identifies entry opportunities when price breaks out relative to the trend filter and short-term EMA cross

Strategy v5 TrendSupport & resistance Repaints
Updated 6 weeks ago · None stated GitHub repository of 30s - ES 1m Strategy Candle Bar

This strategy overlays the price chart and looks for VWAP pullbacks. It goes long when a short SMA crosses above VWAP after RSI has been oversold within ten bars, and short on the opposite cross after RSI has been overbought. Optional Minervini-style moving-av

Strategy v5 TrendOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of Advanced VWAP-Momentum Pullback Trend Qualifier
104 stars

This strategy combines three Exponential Moving Averages with Williams Fractals to execute trend-following or mean-reverting trades. It analyzes price structure using short, medium, and long-term EMAs along with fractal highs and lows. Entries trigger when fra

Strategy v5 TrendMoving averages
Updated 3 years ago · MIT GitHub repository of 3MA and Fractals Strategy

More strategys

Trade Your Charts With a Regulated Broker

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

Compare brokers