Type/to search

Probability-Enhanced RSI Strategy

Common strategy
Created: 2023-12-20 15:05:05
Last modified: 3 years ago
1
Follow
1802
Followers

img

Overview

This is a simple long-only strategy using RSI indicator to determine overbought and oversold levels. We enhanced it by adding stop loss and take profit, and integrating a probability module to reinforcement trading only when the recent profitable trade probability is greater than or equal to 51%. This greatly improved the strategy performance by avoiding potential losing trades.

Principles

The strategy uses RSI indicator to judge market overbought and oversold conditions. Specifically, it goes long when RSI crosses below the lower limit of oversold zone; and closes position when RSI crosses above the upper limit of overbought zone. In addition, we set stop loss and take profit ratios.

The key is we integrated a probability judgement module. This module calculates the profitable percentage of long trades in recent periods (defined by lookback parameter). It only allows entry if recent profitable trading probability is greater than or equal to 51%. This avoids lots of potential losing trades.

Advantages

As a probability enhanced RSI strategy, it has below advantages compared to simple RSI strategies:

  1. Added stop loss and take profit controls single trade loss and locks profit
  2. Integrated probability module avoids low probability markets
  3. Probability module is adjustable for different market environments
  4. Long-only mechanism is simple to understand and implement

Risk Analysis

There are still some risks within this strategy:

  1. Long-only, unable to profit from falling market
  2. Improper probability module judgement could miss opportunities
  3. Hard to find best parameter combination, significant performance difference across market environments
  4. Loose stop loss setting, still possible large single trade loss

Solutions:

  1. Consider adding short mechanism
  2. Optimize probability module to lower misjudgement rate
  3. Use machine learning to dynamically optimize parameters
  4. Set more conservative stop loss level to limit loss

Enhancement Directions

The strategy could be further optimized in below aspects:

  1. Increase short module for dual direction trading
  2. Use machine learning for dynamic parameter optimization
  3. Try other indicators for overbought/oversold
  4. Optimize stop loss/take profit for profit ratio enhancement
  5. Add other factors to filter signals and improve probability

Summary

This is a simple RSI strategy enhanced by integrated probability module. Compared to vanilla RSI strategies, it filters out some losing trades and improves overall drawdown and profit ratio. Next step could be improving it by adding short, dynamic optimization etc to make it more robust.

Source
Pine
/*backtest
start: 2023-11-19 00:00:00
end: 2023-12-19 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/
// © thequantscience

//@version=5
Strategy parameters
Strategy parameters
RSI lenght:
Oversold:
Overbought:
Lookback period:
Take profit:
Stop loss:
Comment
All comments (0)
No data
No data
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)