Type/to search

Quant Bitcoin Trading Strategy Combining MACD, RSI and FIB

Common strategy
Created: 2023-12-26 17:08:03
Last modified: 3 years ago
1
Follow
1802
Followers

img

Overview

The strategy is named "Golden Cross Fibonacci Strategy". It combines the technical indicator MACD, relative strength index RSI and fibonacci retracement/extension theory based on golden ratio, realizing quantitative trading for bitcoin and other cryptocurrencies.

Strategy Principle

  1. MACD Indicator for Trading Signals
  • Set EMA periods of MACD fast line and slow line to 15 and 30
  • Crossing up as buying signal and crossing down as selling one
  1. RSI Filtering False Signals
  • Set RSI parameter to 50 period
  • RSI helps filter some false signals MACD gives
  1. Fibonacci Theory for SUPPORT/RESISTANCE
  • Combine recent highest/lowest price over 38 candles
  • Calculate 0.5 fibonacci retracement/extension level
  • Can be used as support and resistance
  1. MA and RSI Judging Oversold/Overbought
  • 50-period MA judges oversold/overbought status
  • RSI also helps judging
  1. Reverse Opening Mechanism
  • Provide option for users to open reverse order
  • Flexibly adjust long/short logic according to users' choice

Advantage Analysis

The biggest advantage is operating 24x7 without manual intervention. Besides, the combination of multiple indicators increases the winning rate, especially outstanding performance in bull market. Main advantages include:

  1. Fully automated 24x7 quant trading without manual intervention
  2. Accurate trading signals from MACD
  3. RSI filters some false signals
  4. Fibonacci theory adds more reference
  5. Judging oversold/overbought status
  6. Flexibly adjust strategies through reverse opening

Risk Analysis

There also exist some risks, mainly from huge reverse of price that is hard for stop loss to take effect. Also, overlong holding period induces risk. Main risks contain:

  1. Stop loss too tight to protect from huge reverse
  2. Systematic risk from overlong holding period

Solutions accordingly are:

  1. Set looser stop loss distance
  2. Optimize holding period against overlong risk

Optimization Directions

Main aspects for optimization:

  1. Optimize MACD parameters for higher accuracy
  2. Optimize RSI parameter for better utility
  3. Test more periods of Fibonacci theory
  4. Add more filter indicators to further decrease false signals
  5. Combine indicators of larger periods for market trend

Summary

The strategy combines multiple quant indicators for trade signals and realizes full automatic crypto trading. Further improving profit by optimizing parameters and adding more assistant indicators. It significantly reduces manual operation costs for users. Worth deep research and application for quant traders.

Source
Pine
/*backtest
start: 2023-12-18 00:00:00
end: 2023-12-25 00:00:00
period: 10m
basePeriod: 1m
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/
// © onurenginogutcu

//@version=4
Strategy parameters
Strategy parameters
Symbol
Long Stop Loss (%)
Short Stop Loss (%)
Long Take Profit (%)
Short Take Profit (%)
Capital Percentage to Invest (%)
Reverse ?
Comment
All comments (0)
No data
No data
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)