Type/to search

Price Divergence Based Trend Trading Strategy

Common strategy
Created: 2024-02-02 18:00:55
Last modified: 3 years ago
1
Follow
1802
Followers

img

Overview

This is a trend trading strategy based on price divergence signals. It uses multiple indicators like RSI, MACD, Stochastics etc. to detect price divergences and the Murrey Math Oscillator to confirm. It enters when a price divergence signal appears and the oscillator confirms the current trend direction.

Strategy Logic

The core of this strategy is price divergence theory. When price reaches a new high but indicator doesn't, it's considered a bearish divergence. When price prints a new low but indicator doesn't, it's a bullish divergence. This signals a potential trend reversal. The strategy combines fractal signals with an oscillator to confirm trade signals.

Specifically, the entry conditions are:

  1. Detect regular/hidden price divergence
  2. Murrey Math Oscillator is in corresponding trend zone

Exit when the oscillator crosses middle line.

Advantage Analysis

The advantages of this strategy are:

  1. Detect potential reversal points using divergences
  2. Confirm ongoing trend with oscillator, avoiding false breakouts
  3. Flexible parameters and indicator combinations
  4. Combine trend following and risk management
  5. Clear logic rules, much room for optimization

Risk Analysis

The main risks are:

  1. Divergences could be false signals
  2. Improper oscillator parameters may cause missing trades
  3. Excessive one-sided positions bring large loss risk
  4. Increased trade frequency and slippage cost during high volatility periods

Suggest stop loss, position sizing, parameter optimization to reduce risks.

Optimization Directions

Some further optimizations:

  1. Add machine learning algorithms for dynamic parameter optimization
  2. Introduce more advanced stop loss techniques like trailing stop loss, average true range stop etc
  3. Incorporate more indicators and filters to improve signal-to-noise ratio
  4. Auto-adjust oscillator parameters for better trend judgement
  5. Enhance risk management, set maximum drawdown limits etc

Summary

This strategy integrates price divergence concept with trend analysis tools to discover potential reversals early. With proper risk management enhancements, it could achieve good risk-adjusted returns. Further machine learning based optimizations may lead to more stable alpha.

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

//@version=2
//
// Title:   [STRATEGY][UL]Price Divergence Strategy V1
// Author:  JustUncleL
Strategy parameters
Strategy parameters
Method (0=rsi, 1=macd, 2=stoch, 3=volume, 4=acc/dist, 5=fisher, 6=cci):
Show Labels
Show Channel
Use Hidden Divergence in Strategy
Use Regular Divergence in Strategy
RSI/STOCH/Volume/ACC-DIST/Fisher/cci Smooth:
MACD Source:
MACD Fast:
MACD Slow:
MACD Smooth Signal:
MMLO Look back Length
Mininum Quadrant for MMLO Support
Take Profit Points
Stop Loss Points
Trailing Stop Loss Points
Trailing Stop Loss Offset Points
Comment
All comments (0)
No data
No data
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)