Type/to search

Polynomial Interpolation Based RSI Momentum Strategy

Common strategy
Created: 2024-01-12 13:46:53
Last modified: 3 years ago
1
Follow
1802
Followers

img

Overview

This strategy generates trading signals using the RSI momentum indicator Delta-RSI based on polynomial interpolation. Delta-RSI smooths RSI through local polynomial regression to obtain its first order time derivative as a momentum indicator. This strategy incorporates additional filters based on ATR, volume and RSI to filter out some “false” signals.

Principle

The core indicator of this strategy is Delta-RSI. Its calculation steps are:

  1. Take RSI time series with length rsi_l as input
  2. Fit RSI using polynomial interpolation within sliding window of length window
  3. Calculate the first order derivative of fitted curve at current point as Delta-RSI
  4. Delta-RSI crossing above 0 generates buy signal, crossing below 0 generates sell signal
  5. Trading signals can also be generated using Delta-RSI signal line

The strategy filters signals using ATR, volume and RSI filters:

  1. ATR filter: current N-period ATR higher than M-period ATR indicates rising volatility
  2. Volume filter: current volume higher than N times average volume over M periods
  3. RSI filter: RSI between threshold 1 and threshold 2 filters overbought/oversold area

Advantages

The advantages of this strategy include:

  1. Delta-RSI is more sensitive for early trend reversal detection
  2. Filters can remove most false signals and improve signal quality
  3. Customizable polynomial and filter parameters suit different markets
  4. Separate long/short allows accommodation of different biases
  5. Stop loss/take profit controls per trade loss/profit

Risks

The risks of this strategy include:

  1. Poor parameter tuning can cause over-smoothing or over-filtering
  2. Long/short position losses
  3. Overly wide stops can increase per trade loss

These can be controlled via parameter optimization, filter adjustment and tighter stops.

Enhancement Opportunities

This strategy can be further improved by:

  1. Optimizing Delta-RSI model parameters
  2. Incorporating machine learning based adaptive filtering
  3. Tuning parameters for different products
  4. Adding model combination methods etc. to increase robustness

Conclusion

By exploiting Delta-RSI’s high sensitivity and strict filtering mechanisms, this strategy can improve quality while controlling risks. Further parameter and model optimization may expand positive profit rate. It is an effective quantitative trading strategy.

Source
Pine
/*backtest
start: 2024-01-04 00:00:00
end: 2024-01-11 00:00:00
period: 1h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © tbiktag
//
// Delta-RSI Oscillator Strategy With Filters
Strategy parameters
Strategy parameters
Model Parameters:
Polynomial Order
RSI Length
Length ( > Order)
Signal Length
Allowed Entries:
Long
Short
Entry and Exit Conditions:
Buy
Sell
Exit
Apply Filters to
Long Entries
Short Enties
Exits
Relative Volume Filter:
usevol
Volume >
Avg. Volume Over Period
Volatility Filter:
useatr
ATR
> ATR
Overbought/Oversold Filter:
usersi
rsitrhs1
< RSI (14) >
Stop Loss / Take Profit:
SL
, %
Trailing
TP
, %
Fixed Backtest Period Start/End Dates:
fixedstart
backtest_start
fixedend
backtest_end
Comment
All comments (0)
No data
No data
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)