All indicators

RSI Box Strategy (pseudo-Grid Bot)

Oct 9, 2023

Static chart image
Dynamic OverlaysSupport and ResistanceVolume BasedSignalsOscillatorsChannels

The RSI Box Strategy (pseudo-Grid Bot) tool utilizes a dynamic, volume-weighted grid system triggered by RSI conditions to identify breakout opportunities for algorithmic trading. Unlike traditional grid bots that sell into strength, this strategy functions as a breakout system that enters on upward grid crossovers and exits (or shorts) on downward grid breaches.

Usage

The strategy operates by generating a five-line grid based on the volume-weighted highest and lowest values of the price when specific RSI thresholds are met.

  • Entry Logic: The script identifies the grid line closest to the current price. A buy order is triggered when the price crosses over the specific "buy line" established by the grid hierarchy.
  • Exit Logic: A sell or short order is triggered when the price crosses under the designated "sell line."
  • Pyramiding: The strategy allows for multiple entries (pyramiding) as price moves through different grid levels, providing a way to scale into positions during trending markets.
  • Shorting: Users can toggle the "Use Shorts" setting to enable two-way trading, allowing the strategy to enter short positions upon a sell trigger.

Details

The grid is not static; it recalculates its boundaries (Top and Bottom) whenever the RSI crosses under the Overbought level or over the Oversold level. The boundaries are derived from the Volume Weighted Moving Average (VWMA) of the highest and lowest prices over the RSI period. This ensures the grid levels are responsive to both price volatility and volume. The internal grid consists of five levels: Bottom, Mid-Bottom, Middle, Mid-Top, and Top. The strategy then tracks which of these levels acts as the current support or resistance to determine breakout triggers.

Settings

Main Settings

  • Source: Determines the price data used for calculations (default is Close).
  • RSI Length: Sets the lookback period for the RSI calculation and the VWMA-based grid boundaries.
  • Overbought Level: The threshold for the RSI to trigger a grid update from the high side.
  • Oversold Level: The threshold for the RSI to trigger a grid update from the low side.
  • Use Shorts: A toggle to enable or disable short-selling functionality.
  • Show Grid: Displays the five dynamic grid lines on the chart for visual reference.

FAQ

How does the grid update?

The grid updates its highest and lowest bounds whenever the RSI crosses the defined Overbought or Oversold levels, using volume-weighted price extremes.

Is this a mean-reversion strategy?

No, while it uses a grid, it is a breakout strategy. It buys when price breaks above grid levels and sells when price falls below them.

How can I access this tool?

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.