Type/to search

Kifier's Hidden MFI/STOCH Divergence/Trend Breaker Trading Strategy

Cryptocurrency
Created: 2023-12-19 15:18:09
Last modified: 2 years ago
1
Follow
1779
Followers

img

Overview

This is a universal trading strategy designed for the crypto market, aiming to find good entry opportunities when being bullish on cryptos for mid-to-long term holding. It combines various technical indicators like MFI, STOCH, VWMA to identify potential trend reversal based on hidden divergence.

Trading Logic

The strategy has two entry logics:

  1. MFI hidden divergence + STOCH filter: When there's a hidden divergence between price and MFI, i.e. price reaches new high but MFI does not, it indicates a potential trend reversal. To avoid false signals, we add STOCH>50% as a further filter.

  2. STOCH/MFI trend system: When STOCH>50% and MFI crosses above 50, it signals an uptrend in action. We can ride the trend for better risk-adjusted returns.

To ensure the accuracy of trend detection, a trend system comprised of VWMA and SMA is constructed. Entries are only allowed when VWMA crosses over SMA, confirming an upward trend. Besides, OBV is used to check if the overall market is active or ranging. This further filters out some false signals.

ATR is used to determine if the market is ranging. We prefer to take entries on hidden divergence during range-bound markets. The stop loss is set based on recent support levels. Take profit exits when certain percentage of profits is reached based on entry price.

Advantage Analysis

The strategies combines various indicators to filter out market noise and avoid false signals. The hidden divergence system provides high-probability entries with controlled risk during ranging and corrective markets. The STOCH/MFI trend system generates additional profits when a clear trend establishes. Reasonable TP and SL settings prevent chasing momentum and stop hunts. The strategy suits the highly volatile crypto market very well for solid risk-adjusted returns.

Risk Analysis

The major risk is that hidden divergence does not always lead to an immediate reversal as it merely suggests shifting market sentiment. Noisy STOCH and other signals may result from bad parameter tuning. Overly tight TP/SL levels can also lead to excessive exits and re-entries, dragging down net profits.

We tackle these issues via additional trend and market condition filters, more tolerant TP/SL levels, etc. Still significant losses may occur in case of major black swan events or a failure to cut loss in time.

Optimization Directions

There remains room for improving this strategy:

  1. Optimize MFI/STOCH parameters for better hidden divergence accuracy

  2. Add ML models to determine market conditions and fine-tune parameters

  3. Test dynamic TP/SL to balance profitability and risk control

  4. Check cross-asset differences and set personalized parameters

  5. Add stock selection filters for better quality picks

These efforts can potentially enhance the stability and profitability further.

Conclusion

This is a very practical crypto trading strategy. It judiciously applies various technical indicators to determine market conditions and delivers solid risk-adjusted profits. The main caveat is hidden divergence does not always precisely predict immediate reversals. We handle this issue via a sequence of filters. There remains room for boosting stability and returns. It offers fruitful ideas for quants to harvest consistent gains in the crypto space.

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

//@version=4
Strategy parameters
Strategy parameters
Enable Date Range?
Today as End Date
Start Date
End Date
Indicator Settings
VWMA Length
SMA Length
Stoch Length
MFI Length
OBV Length
ATR Ranging-trend len
Divergance Settings
Price Divergant Pivots
Price Inaccuracy
Divergance Valid Period
MFI Left/Right Pivots
i_mfi_right
Exit Settings
TP Percentage
Support Inaccuracy
Individual Entries
Use Stoch/MFI Trend
Use Stoch/MFI Divergance
Indicator Colours
MFI/STOCH Colour
c_stoch
Buy/Sell Colour
c_sell
Flat/Trending Colours
c_longtrend
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)