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)
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
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:- Adds another pair position
- Improves the overall average entry price
- Continues monitoring for convergence
| Combined Loss | Action |
|---|---|
| -$500 | First Average |
| -$1000 | Second Average |
| -$1500 | Third Average |
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
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
- Add the RSI Arbitrage Strategy to your TradingView chart.
- Configure your RSI parameters.
- Set your reference symbol.
- Define profit targets and averaging intervals.
- Enter your position sizing.
- Add your Mirrorpip Integration Code.
- Configure the TradingView Alert Message.
- Paste your Mirrorpip Webhook URL.
- Create the TradingView alert.
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