Indicator · Pine Script v5 · On the chart

R:R Trading System Framework

by regalouisei

The R:R Trading System Framework is a TradingView Pine Script indicator that overlays on the price chart.

View on GitHub

GitHub stars2on the repository
Pine versionv5runs as is
Lines of code842
Settings40inputs
LicenceNone stated
Last update8 months ago25 Feb 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 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.

Details

Published by

regalouisei on GitHub

Type

Indicator, Pine Script v5

Draws

On the price chart

Category

Support & resistance, Oscillators & momentum

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
     A)string0. StochasticBacktest_A
  B)string1. 2x MA CrossBacktest_B
ActivebooltrueTTT_Activated
TTT_textSizestringnormalTTT_textSize
TTT_tableYposstringtopTTT_tableYpos
TTT_tableXposstringcenterTTT_tableXpos
ActivebooltrueRRT_Activated
RRT_textSizestringnormalRRT_textSize
RRT_tableYposstringbottomRRT_tableYpos
RRT_tableXposstringleftRRT_tableXpos
Active |  booltrueL0_Activated
Stop %float2.L0_SL_Value
Show all 40 settings
SettingTypeDefaultVariable
    TP 1float1.L0_TP1_Value
TP 2float2.L0_TP2_Value
    TP 3float3.L0_TP3_Value
TP 4float4.L0_TP4_Value
Active |  booltrueL1_Activated
Stop %float2.5L1_SL_Value
    TP 1float1.L1_TP1_Value
TP 2float2.L1_TP2_Value
    TP 3float3.L1_TP3_Value
TP 4float4.L1_TP4_Value
Active |  booltrueL2_Activated
Stop %float2.L2_SL_Value
    TP 1float1.L2_TP1_Value
TP 2float2.L2_TP2_Value
    TP 3float3.L2_TP3_Value
TP 4float4.L2_TP4_Value
Active |  booltrueL3_Activated
Stop %float2.L3_SL_Value
    TP 1float1.L3_TP1_Value
TP 2float2.L3_TP2_Value
    TP 3float3.L3_TP3_Value
TP 4float4.L3_TP4_Value
Active |  booltrueL4_Activated
Stop %float2.L4_SL_Value
    TP 1float1.L4_TP1_Value
TP 2float2.L4_TP2_Value
    TP 3float3.L4_TP3_Value
TP 4float4.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.

Similar Pine Scripts

PivotHighLow

by Alorse
330 stars

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

Indicator v4 Support & resistanceOscillators & momentum Repaints
Updated 2 months ago · None stated GitHub repository of PivotHighLow
114 stars

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

Indicator v4 Support & resistanceOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Support and Resistance Levels

Moon Dev Lunar Sniper

by moondevonyt
92 stars

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

Indicator v6 TrendOscillators & momentum Repaints
Updated 8 weeks ago · Custom licence GitHub repository of Moon Dev Lunar Sniper
23 stars

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

Indicator v4 Support & resistanceDivergence
Updated 3 years ago · None stated GitHub repository of Daily High and Low Strategy
14 stars

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

Indicator v6 TrendVolatility & bands
Updated 2 weeks ago · MIT GitHub repository of Self-Aware Trend System [WillyAlgoTrader]

More indicators

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers