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
Stops can use ATR, a percent of price, fixed points, or a swing high or low. It derives stop and optional take-profit prices from a risk-reward ratio, including an optional partial target, and switches calculations between long and short. A table and plotted price levels show the results. It does not place orders or manage exits.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Account Size ($)
float
10000
accountSize
Risk Per Trade (%)
float
1.0
riskPercent
Max Daily Risk (%)
float
3.0
maxDailyRisk
Stop Loss Type
string
ATR
stopType
ATR Multiplier
float
2.0
atrMultiplier
ATR Length
int
14
atrLength
Stop Loss %
float
2.0
stopPercent
Stop Points
float
50
stopPoints
Swing Lookback
int
10
swingLookback
Use Take Profit
bool
true
useTP
Risk:Reward Ratio
float
2.0
rrRatio
Use Partial Take Profit
bool
false
usePartialTP
Show all 18 settings
Setting
Type
Default
Variable
Close % at TP1
float
50
partialTPPercent
TP1 R:R
float
1.0
partialRR1
Long Position
bool
true
isLong
Show Risk Table
bool
true
showTable
Show Price Levels
bool
true
showLevels
Table Position
string
top_right
tablePosition
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 marks forex trading sessions and opening ranges on the price chart. It can draw Sydney, Tokyo, Frankfurt, London, and New York session boxes or five- and fifteen-minute opening ranges, plus an optional opening channel and a day-open range. Day r
This indicator plots average daily range levels on the price chart, together with optional standard-deviation and Fibonacci levels scaled from that range. Users set the lookback in days, a scale factor, and the visibility, color, and line style of the ADR line
ATR Matrix calculates Average True Range and a 50-period Simple Moving Average to display multi-tier volatility levels and risk-reward metrics. It project stop levels using negative ATR multiples from an entry price, alongside target levels from 0x to 11x ATR
This indicator plots average bar range (ABR) measured move targets, opening range boxes, and historical key reference levels directly on the price chart. It projects bullish and bearish targets (0.5x, 1.0x, 1.5x, 2.0x ABR) from the previous session's close, al
This indicator calculates a base moving average (EMA, SMA, WMA, or HMA) and projects multiple symmetrical envelope bands around it directly on the price chart. Users can adjust the length, source, moving average type, and initial envelope multiplier. Additiona
Bottom Level Finder is a support identification indicator designed to locate correction and re-entry zones directly on the price chart. It calculates horizon-adaptive Fibonacci retracements, drawdown percentage levels, moving averages, and integrated VIX volat