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
A selector chooses ATR breakout, moving average crossover, RSI mean reversion or no trade. Filters include confidence thresholds, a minimum reward-to-risk ratio, a minimum ATR and a spread check. It marks next-bar execution points and draws stop loss and take profit levels from ATR multiples. It is not an execution engine.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Signal model
string
ATR Breakout
strategyInput
ATR length
int
14
atrLen
Breakout lookback
int
5
breakoutLen
EMA fast
int
5
emaFastLen
EMA slow
int
10
emaSlowLen
RSI length
int
14
rsiLen
Buy confidence threshold
float
0.60
buyThreshold
Sell confidence threshold
float
0.60
sellThreshold
Minimum R:R
float
1.50
minRR
Minimum ATR
float
0.0
minAtr
Current/assumed spread points
float
18.0
spreadPoints
Average spread points
float
18.0
averageSpreadPoints
Show all 17 settings
Setting
Type
Default
Variable
Max spread multiplier
float
2.5
maxSpreadMultiplier
Stop ATR multiple
float
2.0
stopAtrMult
Take profit ATR multiple
float
4.0
takeAtrMult
Show next-bar execution markers
bool
true
showExecutionBar
Show next-open SL/TP levels
bool
true
showLevels
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 calculates custom Bollinger Bands using one of four selectable moving averages, defaulting to VIDYA. It plots the upper band, lower band, and basis line directly on the price chart, with a filled background between the outer bands. Buy and sell
An indicator that classifies the market as trending, ranging or breakout using ADX and ATR ratios, then blends three signal families into one confidence score from 0 to 100. The families are EMA trend following, Bollinger and RSI mean reversion, and Donchian w
This indicator plots the Relative Strength Index (RSI) and its Bollinger Band percentage bandwidth (%B) deviation directly on the price chart. It calculates RSI from a user-defined source and length, applies an EMA, and derives the %B deviation using a configu
A single indicator that combines two systems and enables each only on its own timeframe. On a fifteen-minute chart it runs a volatility squeeze breakout using an ATR percentile and a regime filter. On a four-hour chart it runs a VWAP mean reversion with standa
This indicator plots trade entry and exit signals on the price chart by combining Bollinger Bands with optional filter conditions. It calculates standard Bollinger Bands along with RSI, Aroon, and moving average filters. Reversal signals trigger when price bre
This overlay indicator marks Linda Raschke short-term bar setups on the price chart. It flags Turtle Soup and Turtle Soup plus one false breakouts of a prior extreme, 80-20 bars, inside bars, failed inside-bar breakouts, outside up and down bars, NR4 and NR7 c