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
R:R Trading System Framework lets users select a backtest method such as Stochastic or 2x MA Cross. Multiple risk-reward levels can then be configured with adjustable stop loss percentages and take profit targets. Color-coded signals and separate tables display trade details and performance. The script serves as a flexible setup tool rather than a single complete strategy.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
A)
string
0. Stochastic
Backtest_A
B)
string
1. 2x MA Cross
Backtest_B
Active
bool
true
TTT_Activated
TTT_textSize
string
normal
TTT_textSize
TTT_tableYpos
string
top
TTT_tableYpos
TTT_tableXpos
string
center
TTT_tableXpos
Active
bool
true
RRT_Activated
RRT_textSize
string
normal
RRT_textSize
RRT_tableYpos
string
bottom
RRT_tableYpos
RRT_tableXpos
string
left
RRT_tableXpos
Active |
bool
true
L0_Activated
Stop %
float
2.
L0_SL_Value
Show all 40 settings
Setting
Type
Default
Variable
TP 1
float
1.
L0_TP1_Value
TP 2
float
2.
L0_TP2_Value
TP 3
float
3.
L0_TP3_Value
TP 4
float
4.
L0_TP4_Value
Active |
bool
true
L1_Activated
Stop %
float
2.5
L1_SL_Value
TP 1
float
1.
L1_TP1_Value
TP 2
float
2.
L1_TP2_Value
TP 3
float
3.
L1_TP3_Value
TP 4
float
4.
L1_TP4_Value
Active |
bool
true
L2_Activated
Stop %
float
2.
L2_SL_Value
TP 1
float
1.
L2_TP1_Value
TP 2
float
2.
L2_TP2_Value
TP 3
float
3.
L2_TP3_Value
TP 4
float
4.
L2_TP4_Value
Active |
bool
true
L3_Activated
Stop %
float
2.
L3_SL_Value
TP 1
float
1.
L3_TP1_Value
TP 2
float
2.
L3_TP2_Value
TP 3
float
3.
L3_TP3_Value
TP 4
float
4.
L3_TP4_Value
Active |
bool
true
L4_Activated
Stop %
float
2.
L4_SL_Value
TP 1
float
1.
L4_TP1_Value
TP 2
float
2.
L4_TP2_Value
TP 3
float
3.
L4_TP3_Value
TP 4
float
4.
L4_TP4_Value
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 pivot high and pivot low points on the price chart based on configurable left and right bar counts. Confirmed pivot highs and lows are plotted with negative bar offsets directly on the price chart using line and cross styles. Addition
This overlay indicator marks call and put setups from EMAs, RSI, MACD, and a SPY volume ratio. A call needs higher highs, RSI above its minimum, rising MACD, above-average proxy volume, and a rising trend EMA; a put reverses those tests. Early markers use an E
This indicator calculates key support and resistance levels by analyzing the first and second momentum derivatives of a Double Exponential Moving Average (DEMA). When the second derivative (momentum of momentum) crosses zero, it identifies local turning points
Moon Dev Lunar Sniper is a multi-indicator overlay that scores confluence across fast and slow EMAs, RSI, MACD, DMI, and BB width to fire signals only when score meets the minimum threshold. It plots buy and sell signals on the price chart, highlights cosmic b
This indicator collection calculates and plots previous daily high and low price levels on the chart to identify potential supply and demand zones. It includes real-time intraday high and low calculations, RSI divergence detection across a customizable period
Self-Aware Trend System calculates volatility-adaptive ATR trailing bands using a Trend Quality Index engine that evaluates market efficiency, momentum persistence, and structural pivots. It plots adaptive trend bands and character-flip trend signals directly