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
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.
ChoCH and BOS market structure detection
Volume filter with SMA multiplier
ATR-based stop loss and take profit risk management
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Swing Left (L)
int
5
swingL
Swing Right (R)
int
3
swingR
Swing Max Age (bars)
int
0
swingMaxAgeBars
Breakout Source
string
Close
breakoutSource
Structure Logic
string
Standard
structureLogic
Volume Filter
bool
true
useVolFilter
Volume SMA Length
int
20
volSmaLen
Volume Multiplier
float
1.20
volMult
ChoCH Requires Volume
bool
true
chochReqVol
EMA Fast
int
21
emaFastLen
EMA Slow
int
55
emaSlowLen
ATR Length
int
14
atrLen
Show all 27 settings
Setting
Type
Default
Variable
ATR Risk Model
bool
true
useAtrRisk
Stop Loss (ATR)
float
2.00
stopATR
Take Profit (ATR)
float
5.00
tpATR
Trail ATR
float
2.50
trailATR
Trail after R multiple
float
1.50
trailAfterR
Exit on EMA cross flip
bool
true
useEmaCrossExit
Exit on opposite ChoCH
bool
true
useOppositeExit
Cooldown bars
int
2
cooldownBars
Enable Longs
bool
true
enableLongs
Enable Shorts
bool
false
enableShorts
Entry Signal
string
ChoCH Only
entryOn
Structure labels
bool
true
showLabels
Swing High/Low lines
bool
true
showSwingLines
EMA lines
bool
true
showEma
Background structure tint
bool
true
showBgState
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 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
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
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
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
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
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