Skip to main content

RSI Arbitrage Strategy – Automated Crypto Pair Trading with Mirrorpip

What is the RSI Arbitrage Strategy?

The RSI Arbitrage Strategy is a market-neutral crypto trading strategy that exploits temporary price inefficiencies between two highly correlated cryptocurrencies such as BTC and ETH. Since Bitcoin and Ethereum often move in the same direction over long periods, there are times when one asset becomes temporarily overbought while the other becomes oversold. The RSI Arbitrage Strategy identifies these divergences and enters opposite positions expecting the price relationship to normalize. This strategy is fully compatible with Mirrorpip and can be automated across 8+ major crypto exchanges using TradingView and Mirrorpip’s Pine Connector integration.

How the RSI Arbitrage Strategy Works

The strategy continuously monitors the Relative Strength Index (RSI) of two correlated assets:
  • Primary Symbol (Current Chart)
  • Reference Symbol (Secondary Asset)

Example Setup

  • Primary Chart: ETHUSD
  • Reference Symbol: BTCUSD

Entry Conditions

The strategy enters a pair trade when a significant RSI divergence occurs between the two assets.

Long ETH + Short BTC

Example:
  • BTC RSI > 70 (Overbought)
  • ETH RSI < 30 (Oversold)
When these conditions occur on the same candle: ✅ Long ETH ✅ Short BTC The strategy expects the divergence to eventually close, generating profits from the convergence of both assets.

Profit Booking Logic

Unlike traditional directional strategies, this system evaluates the combined Mark-to-Market (MTM) profit of both positions. Example:
  • Long ETH
  • Short BTC
If the combined MTM profit reaches: +$500 (User Configurable) The strategy exits both positions and books profits. You can customize the profit target according to your account size and risk tolerance.

Averaging Logic

One of the key features of this strategy is its intelligent averaging mechanism. If the combined MTM loss reaches: -$500 (User Configurable) The strategy:
  1. Adds another pair position
  2. Improves the overall average entry price
  3. Continues monitoring for convergence
The process repeats for every predefined loss interval. Example:
Combined LossAction
-$500First Average
-$1000Second Average
-$1500Third Average
This averaging approach is designed to improve entry prices during prolonged divergences.

Why Does the Strategy Have a Very High Win Rate?

The strategy only exits when the predefined profit target is achieved. Since highly correlated assets historically tend to revert toward their normal relationship over time, many divergences eventually close, allowing profitable exits. However, traders should understand that: ⚠ High win rate does not mean low risk. ⚠ Extended divergences can require multiple averaging cycles. ⚠ Proper capital allocation and risk management are essential.

Configurable Parameters

The strategy provides extensive customization options.

RSI Thresholds

You can define:
  • Underlying RSI Buy Level
  • Underlying RSI Short Level
  • Reference RSI Buy Level
  • Reference RSI Short Level
This allows traders to control how aggressively divergence opportunities are detected.

Profit Target

Set the combined MTM profit required before both positions are closed. Example:
  • $100
  • $500
  • $1000

Averaging Distance

Define how much floating loss should occur before a new averaging position is opened. Example:
  • Every $100 loss
  • Every $500 loss
  • Every $1000 loss

Position Sizing in Dollar Terms

The strategy supports notional-based position sizing. Instead of calculating quantities manually, you can specify position size directly in USD.

Example

BTC Quantity Value = $100 ETH Quantity Value = $100 The strategy will automatically calculate the appropriate quantity for each asset and maintain balanced exposure. This ensures both legs of the arbitrage trade have equal notional value.

Setting the Reference Symbol

To establish the arbitrage relationship, simply specify the reference asset in the strategy settings.

Example

If the strategy is applied on: ETHUSD Set: Reference Symbol = BTCUSD The strategy will then compare ETH RSI against BTC RSI and generate arbitrage signals accordingly.

Fully Automate the Strategy with Mirrorpip

This Pine Script comes with built-in Mirrorpip compatibility. No additional coding is required.

Setup Process

  1. Add the RSI Arbitrage Strategy to your TradingView chart.
  2. Configure your RSI parameters.
  3. Set your reference symbol.
  4. Define profit targets and averaging intervals.
  5. Enter your position sizing.
  6. Add your Mirrorpip Integration Code.
  7. Configure the TradingView Alert Message.
  8. Paste your Mirrorpip Webhook URL.
  9. Create the TradingView alert.
Once configured, Mirrorpip will automatically execute trades on your connected exchange account.

Supported Exchanges

Mirrorpip supports automation on multiple leading crypto exchanges, allowing traders to deploy the RSI Arbitrage Strategy across a wide range of markets. The same TradingView strategy can be executed seamlessly without manual intervention.

Who Should Use This Strategy?

This strategy is suitable for:
  • Arbitrage Traders
  • Quantitative Traders
  • Market Neutral Traders
  • Pair Trading Enthusiasts
  • Crypto Algorithmic Traders
  • Traders looking for TradingView automation
It is particularly useful for traders who want to capitalize on temporary inefficiencies between highly correlated cryptocurrency pairs.

Conclusion

The RSI Arbitrage Strategy combines pair trading, RSI divergence detection, and automated averaging into a single systematic trading approach. By identifying temporary imbalances between correlated assets such as BTC and ETH, traders can seek to profit from mean reversion while maintaining a market-neutral exposure. When combined with Mirrorpip’s TradingView automation, the entire process—from signal generation to trade execution—can run completely hands-free across multiple crypto exchanges.