Type/to search

RSI and Fibonacci Retracement Trading Strategy

Cryptocurrency
Created: 2023-12-27 16:49:52
Last modified: 2 years ago
1
Follow
1778
Followers

img

Overview

This article mainly describes a trading strategy that combines the Relative Strength Index (RSI) and Fibonacci retracement levels. The strategy first calculates the key Fibonacci retracement levels based on the historical price dynamics over a certain period, and then uses the RSI indicator to judge whether the market is overbought or oversold near the retracement levels to generate trading signals.

Strategy Principle

The main principles behind this strategy are:

  1. Use price data over a certain period (e.g. 200 bars) to calculate the median price, standard deviation and key Fibonacci retracement levels (e.g. 0.764) for that period;

  2. When the price approaches the upper or lower retracement levels, use the RSI indicator to determine if there is overbought or oversold condition around those levels;

  3. If the RSI indicator shows overbought or oversold signals, long or short signals will be generated around the retracement levels;

  4. Set stop loss and take profit to close positions when price exceeds preset levels or stop loss is triggered.

The above is the basic workflow for identifying trading opportunities in this strategy.

Advantage Analysis

Compared to using RSI or Fibonacci alone, this combined strategy has the following advantages:

  1. Double indicator filtering can reduce false signals and improve signal quality;

  2. Trading at Fibonacci retracement levels is a classic technical analysis technique;

  3. With stop loss and take profit in pace, max loss per trade can be effectively controlled;

  4. Parameters can be optimized for different periods and products.

Risk Analysis

There are also some risks to note for this strategy:

  1. Probability for a reversal at key levels is not 100%, need to combine with price action;

  2. Single period RSI may generate false signals from dead cat bounces, consider multiple timeframe validation;

  3. Loose stop loss setting may increase losses;

  4. Stops may be run through during volatile price swings. Wider stops should be considered.

These risks can be managed through parameter tuning, optimizing indicator combinations etc.

Optimization Directions

Areas for further optimizations include:

  1. Add volume indicator to avoid false breakouts with low volume;

  2. Consider Bollinger Bands for signals from band breakouts;

  3. Build machine learning models to automatically detect high quality trading opportunities;

  4. Use genetic algorithms for auto parameter tuning and adjusting stop loss/profit levels.

Summary

This article describes in detail a quantitative trading strategy that combines RSI and Fibonacci retracement analysis. By blending dual indicator analysis and classic technical strategies, the strategy improves signal quality under managed risks. Further performance gains can be achieved through ongoing parameter tuning and model optimization.

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

//@version=4
strategy(title="Gab Fib  + RSI", overlay=true, default_qty_type=strategy.cash, default_qty_value=100000, initial_capital=1000, currency=currency.USD, commission_type=strategy.commission.cash_per_order, commission_value=4)

// Inputs
Strategy parameters
Strategy parameters
SL in % of Instrum. i.e 1.5%=150pips
[RSI] Length
[RSI] Over Sold %
[RSI] Over Bought %
[Fibonacci] Length
[Fibonacci] Source
[Fibonacci] Multiplier
[Fibonacci] Level
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)