Type/to search

Crude Oil ADX Trend Following Strategy

Common strategy
Created: 2024-01-25 15:18:15
Last modified: 3 years ago
1
Follow
1802
Followers

img

Overview

This strategy is adapted from Kevin Davey's free crude oil futures trading strategy. It utilizes the ADX indicator to determine the trend in the crude oil market and, combined with the price breakout principle, implements a simple and practical automated trading strategy for crude oil.

Strategy Principle

  1. Calculate the 14-period ADX indicator
  2. When ADX>10, the market is considered to have a trend
  3. If the closing price is higher than the closing price 65 bars ago, it indicates a price breakout and a long signal
  4. If the closing price is lower than the closing price 65 bars ago, it indicates a price breakout and a short signal
  5. Set stop loss and take profit after entering the position

The strategy mainly relies on the ADX indicator to determine the trend, and generates trading signals based on fixed-cycle price breakouts under trend conditions. The overall strategy logic is very simple and clear.

Advantage Analysis

  • Use ADX to determine trends and avoid missing trend opportunities
  • Fixed-cycle price breakouts generate signals with good backtest results
  • Intuitive and simple code, easy to understand and modify
  • Kevin Davey's multi-year live trading verification, non-curve fitting

Risk Analysis

  • As the main indicator, ADX is sensitive to parameter selection and breakout cycle selection
  • Fixed-cycle breakouts may miss some opportunities
  • Improper stop loss and take profit settings may increase losses
  • There may be differences between live trading and backtest results

Optimization Directions

  • Optimize ADX parameters and breakout cycles
  • Increase dynamic adjustment of position size
  • Continuously modify and improve the strategy based on backtest results and live trading verification
  • Introduce machine learning and deep learning techniques for strategy optimization

Summary

Overall this is a very practical crude oil trading strategy. It uses the ADX indicator to determine the trend very reasonably. The price breakout principle is simple and effective with good backtest results. At the same time, as Kevin Davey's public free strategy, it has very strong reliability in actual combat. Although there is still room for improvement in the strategy, it is a very suitable choice for beginners and small capital traders to get started and practice.

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

// Strategy idea coded from EasyLanguage to Pinescript
//@version=5
strategy("Kevin Davey Crude free crude oil strategy", shorttitle="CO Fut", format=format.price, precision=2, overlay = true, calc_on_every_tick = true)
adxlen = input(14, title="ADX Smoothing")
Strategy parameters
Strategy parameters
ADX Smoothing
DI Length
Comment
All comments (0)
No data
No data
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)