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
Entries require price alignment above Parabolic SAR, a 100 EMA, and a 200 EMA trend filter, alongside mid-range RSI and elevated ATR. Up to three positions can scale in using equity risk sizing. Exits trigger via percentage-based take profit, fixed stop loss, ATR trailing stops, or when price crosses below the middle Bollinger Band or Parabolic SAR. It plots Bollinger Bands, Parabolic SAR, and moving averages directly on the price chart.
Multi-order breakout strategy with scaled position entries
Dynamic position sizing calculated from equity risk percentage
Multi-indicator filtering with Bollinger Bands, SAR, EMA, and RSI
ATR-based trailing stops combined with fixed percentage exit targets
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Risk Per Trade (%)
float
0.5
risk_per_trade
Lookback Period
int
20
lookback
Breakout Multiplier
float
2.0
breakout_mult
Stop Loss Percentage
float
1.5
stop_loss_percent
Take Profit Percentage
float
3.0
take_profit_percent
Maximum Open Positions
int
3
max_positions
ATR Period
int
14
atr_period
MA Length
int
100
ma_len
RSI Period
int
14
rsi_period
RSI Overbought
int
70
rsi_overbought
RSI Oversold
int
30
rsi_oversold
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 trades Donchian channel breakouts on the price chart and exits on a shorter Donchian channel. It sizes each unit from a percentage of equity and an ATR-based initial stop, then adds units as price moves a set ATR distance, up to a maximum unit co
This breakout strategy identifies trade entries when price breaks above recent swing highs or below swing lows. Entries are verified through optional filters, including a 233 EMA trend filter, ATR volatility threshold, volume multiplier confirmation, RSI bound
Implements a rule-based momentum trading strategy that detects Bollinger Band challenges followed by synchronized trendline or range breakouts on the price chart. Entries trigger under configurable strictness modes using multi-timeframe Tide and Wave alignment
This strategy evaluates multi-factor breakout confluence using a customized scoring system on the price chart. It checks Minervini-style Volatility Contraction Pattern trend templates, TTM squeeze volatility compression, volume dry-up with OBV accumulation, mo
This strategy identifies breakouts using Keltner Channels combined with volume spike filters, ADX trend strength, RSI thresholds, and an optional EMA trend direction filter. It triggers long entries when price crosses above the upper channel and short entries
This strategy identifies high-volatility expansion bars by comparing the high-low range to a moving average plus standard deviation threshold. When range expansion occurs, it checks momentum over a specified lookback period. It opens a long position if the cur