Type/to search

Dynamic Momentum Index Strategy

Cryptocurrency
Created: 2023-09-14 16:15:42
Last modified: 3 years ago
1
Follow
1781
Followers

Strategy Logic

This strategy trades based on the Dynamic Momentum Index (DMI). DMI measures the percentage deviation between price and moving averages of different lengths to determine trend.

The trading logic is:

  1. Calculate percentage deviation of price from a long MA (e.g. 200-day) as 1st DMI

  2. Calculate deviation from a medium MA (e.g. 50-day) as 2nd DMI

  3. Calculate deviation from a short MA (e.g. 20-day) as 3rd DMI

  4. When 3rd DMI is higher than 1st DMI, bearish. When 3rd DMI is lower than 2nd DMI, bullish.

  5. Trade signals generated based on DMI relationship

By comparing relative strength dynamically across MA periods, DMI aims to identify trend turning points. Parameters can be optimized for different cycles.

Advantages

  • DMI combines multi-period lookback for robustness

  • Compares relative strength vs. absolute levels

  • Flexible MA periods for market adaption

Risks

  • DMI has lag and may miss reversals

  • Careful optimization of period parameters

  • Prone to multiple false signals

Summary

DMI judges turning points by comparing multi-MA period strength dynamics. Optimization can suit different market environments. But lag limitations necessitate additional filters.

Source
Pine
/*backtest
start: 2023-08-14 00:00:00
end: 2023-09-13 00:00:00
period: 3h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//@version=2
////////////////////////////////////////////////////////////
//  Copyright by HPotter v1.0 31/06/2018
// The related article is copyrighted materialfrom Stocks & Commodities Dec 2009
Strategy parameters
Strategy parameters
LengthFirst
LengthSecond
LengthThird
ShowFirst
ShowSecond
ShowThird
Trade reverse
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)