All indicators

R:R Trading System Framework

Aug 17, 2022

Static chart image
SignalsDashboardMoney ManagementTrailing-Stop

The R:R Trading System Framework indicator provides a comprehensive collection of concepts and tools designed to help traders visualize risk-to-reward dynamics, backtest retail strategies, and manage active positions. This tool acts as a modular system for showcasing backtesting results, trade visual plotting, and market condition shifts within a unified framework.

Usage

The Usage section describes how the script can be used to analyze and execute trades based on predefined or custom strategies.

  • Strategy Comparison: Users can select two different strategies (e.g., Stochastic and MA Cross) to run simultaneously. This allows for the development of hedging strategies or the management of multiple concurrent risks without needing separate, uncorrelated indicators.
  • Trade Visualization: The script plots "Brighter Boxes" for active trades and "Lighter Boxes" to highlight the maximum and minimum price excursions during a trade. This helps in identifying where stop losses or take profit levels could have been optimized.
  • Trailing Stops: A dynamic trailing stop becomes active only once price moves beyond the entry point. It is visually represented by a brightening line that takes over the initial stop loss level once triggered.
  • Real-time Tracking: The Trade Tracking Table (TTT) uses dynamic coloring to compare the current trade duration against backtested averages, indicating if a trade is reaching key levels "early," "on-time," or "late."

Details

The framework is constructed to prioritize Risk:Reward (R:R) over simple entry signals. It incorporates several core retail trading components:

  • Dynamic Stop/TP Management: Stop losses are defined by a percentage of price, while Take Profit levels are calculated as multiples of that risk (e.g., TP2 is 2x the stop distance).
  • Visual Order: For optimal use, it is recommended to bring the script to the front (Visual order > Bring to front) and use hollow candles to maintain clarity.
  • Condition Logic: The framework includes built-in strategies like MACD, Bollinger Bands, and Supertrend. These serve as placeholders that can be replaced with custom entry and exit logic by modifying the appropriate sections of the script.
  • Market State Visuals: Labels on the chart display specific price triggers on hover, while checkmarks (☑️) appear in the tracking table once specific price targets are reached.

Settings

Backtesting & Strategy Selection

  • A) / B): Select which two strategies to display and compare on the chart.
  • Active: Toggles the visibility and calculation of specific strategy sets.

Table Configurations

  • Trade Tracking Table (TTT) Settings: Controls the activation, text size, and screen position (X/Y) for the trade monitoring table.
  • Risk:Reward Table (RRT) Settings: Controls the activation and positioning of the summary table displaying R:R statistics.

Strategy Parameters (0-9)

  • Stop %: The percentage distance from the entry price used to set the initial stop loss and calculate trailing stops.
  • TP 1 - 4: The Risk:Reward multiplier for four different take-profit targets (e.g., a value of 2.0 sets the target at twice the risk distance).

FAQ

How do I modify the entry signals? Users can navigate to the "Bullish/Bearish" trigger sections in the code to plug in custom conditions. The framework is designed to handle the management logic once the signal is provided.

Why are there no alerts included? As a framework designed for heavy customization, alerts were omitted to allow users to implement their own specific alert triggers that match their unique naming conventions and execution requirements.

How can I access the R:R Trading System Framework? You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.

Free indicator

Get free access to this indicator on the platforms below.

TradingView
NinjaTrader
MetaTrader 4/5

Unlock the entire LuxAlgo Library

Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.