Type/to search

Dual Range Filter Trend Tracking Strategy

Common strategy
Created: 2024-02-05 11:15:28
Last modified: 2 years ago
1
Follow
1802
Followers

img

Overview

The Dual Range Filter Trend Tracking Strategy is a quantitative trading strategy that utilizes dual EMA range filtering to identify trend direction and track trends. This strategy combines dual moving average filtering and ATR range calculation to effectively recognize mid-to-long term trend direction and lock in profits with trailing stop loss.

Strategy Logic

The core of this strategy is the dual EMA range filtering. It calculates the ATR range of candlesticks and smoothes it, then uses two EMAs to locate the position of candlesticks within the range to determine if it is currently in a trend. When the price breaks through the range, it signals a change in the trend.

Specifically, the strategy first calculates the ATR range size of the candlesticks, and then smoothes it with two EMAs. The ATR range represents the normal fluctuation range of the candlesticks. When the price exceeds this range, it means a change in the trend has occurred. The strategy records the direction when the price breaks through the EMA range. When the direction changes, it means a trend reversal has occurred, and that is when it can choose to enter the market.

After entering the market, the strategy uses a floating stop loss to lock in profits. During the holding period, it constantly judges whether the candlestick has fallen back out of range. If a pullback occurs, it will exit the current position. This can effectively lock the profits from trend trading.

Advantage Analysis

The Dual Range Filter Trend Tracking Strategy combines the advantages of moving average filtering and range calculation to accurately determine trend direction and avoids frequently entering and exiting the market in ranging markets. The specific advantages are:

  1. Use ATR principle to judge candlestick fluctuation range, avoids entering the market without direction during ranging market
  2. The dual EMA filter improves judgment accuracy and reduces false signals
  3. Real-time floating stop loss can effectively lock in trend profits
  4. Simple and clear strategy logic, easy to understand and optimize

Risk Analysis

There are also some risks with this strategy, mainly in the following aspects:

  1. Large gaps can break through the ATR range, resulting in premature entry
  2. In strong trending markets, the stop loss may be triggered prematurely
  3. Improper parameter settings also affects strategy performance

To address these risks, methods such as optimizing parameters appropriately, preventing false breakouts, judging trend strength can be used to solve them.

Optimization Suggestions

The Dual Range Filter Trend Tracking Strategy also has potential for further optimization, with the main optimization directions including:

  1. Optimize ATR parameters to smooth candlestick fluctuation range
  2. Incorporate volume indicators to avoid false breakouts
  3. Judge trend strength to distinguish one-time breakouts and sustainable trends
  4. Optimize stop loss price to track long trends while ensuring profit

Through these optimizations, the strategy can achieve steady profits in more market environments.

Summary

The Dual Range Filter Trend Tracking Strategy integrates the various advantages of moving average filtering and ATR range judgment, and can effectively identify the direction and entry timing of sustainable mid-to-long term trends. It only enters the market when trends change, and uses a floating stop loss to lock in profits. This strategy has simple and clear logic and is very suitable for mid-to-long term trend trading. Through continuous optimization of parameters and judgment rules, this strategy can achieve good returns across various markets.

Source
Pine
/*backtest
start: 2023-01-29 00:00:00
end: 2024-02-04 00:00:00
period: 1d
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//@version=4
strategy("Range Filter [DW] & Labels", shorttitle="RF [DW] & Labels", overlay=true)

//Conditional Sampling EMA Function 
Strategy parameters
Strategy parameters
Filter Type
Movement Source
Range Size
Range Scale
Range Period (for ATR, Average Change, and Standard Deviation)
Smooth Range
Smoothing Period
Average Filter Changes
Number Of Changes To Average
Take Profit Percentage
Stop Loss Percentage
Comment
All comments (0)
No data
No data
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)