Type/to search

Premium Double Trend Filter MA Ratio Strategy

Common strategy
Created: 2023-12-28 17:37:14
Last modified: 3 years ago
1
Follow
1802
Followers

img

Overview

This strategy is based on double moving average ratio indicator combined with Bollinger Bands filter and double trend filter indicator. It adopts chained exit mechanisms for trend following. This strategy aims to identify mid-to-long term trend direction through moving average ratio indicator. It enters the market at better entry points when trend direction is clear. It also sets take profit, stop loss exit mechanisms to lock in profits and reduce losses.

Strategy Logic

  1. Calculate fast moving average (10-day) and slow moving average (50-day), get their ratio called price moving average ratio. This ratio can effectively identify mid-to-long term trend changes.
  2. Convert price moving average ratio into percentile, which represents relative strength of current ratio in past periods. This percentile is defined as oscillator.
  3. When oscillator crosses above buy entry threshold (10), long signal triggers. When crossing below sell threshold (90), short signal triggers for trend following.
  4. Combine with Bollinger Bands width index for signal filtering. Trade when BB width shrinks.
  5. Use double trend filter indicator, only taking long when price is in uptrend channel and short when in downtrend for avoiding reverse trading.
  6. Chain exit strategies are set, including take profit, stop loss, and combined exit. Multiple exit conditions can be preset with priority to maximum profit exit.

Advantages

  1. Double trend filter ensures reliability in identifying main trend, avoiding reverse trading.
  2. MA ratio indicator detects trend change better than single MA.
  3. BB width effectively locates low volatility periods for more reliable signals.
  4. Chained exit mechanism maximizes overall profit.

Risks and Solutions

  1. More false signals and reversals with unclear trend during ranging markets. Solution is to combine with BB width filter for tighter signals.
  2. MA has lagging effect, failing to detect trend reversal instantly. Solution is to shorten MA parameters properly.
  3. Stop loss may be hit instantly with price gaps, causing large loss. Solution is to loosely set stop loss parameter.

Optimization Directions

  1. Parameter optimization on MA periods, oscillator thresholds, BB parameters through exhaustive tests to find best combination.
  2. Incorporate other indicators judging trend reversal like KD, MACD to improve accuracy.
  3. Machine learning model training with historical data for dynamic parameter optimization.

Summary

This strategy integrates double MA ratio indicator and BB to determine mid-to-long term trend. It enters Market at best point after trend confirmation with chained profit-taking mechanisms. It is highly reliable and efficient. Further improvements can be achieved through parameter optimization, adding trend reversal indicators and machine learning.

Source
Pine
/*backtest
start: 2023-12-20 00:00:00
end: 2023-12-27 00:00:00
period: 3m
basePeriod: 1m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//@version=4
strategy("Premium MA Ratio Strategy", overlay = true)

// Input: Adjustable parameters for Premium MA Ratio
Strategy parameters
Strategy parameters
Fast MA Length
Slow MA Length
Oscillator Buy Threshold
Oscillator Sell Threshold
Bollinger Bands Length
Bollinger Bands Source
Bollinger Bands Deviation
BB Width Threshold
Use BB Width Filter?
Use Trend Filter?
Trend Filter Period 1
Trend Filter Period 2
Use Second Trend Filter?
Use Exit Strategies?
Use Take Profit?
Take Profit in Ticks
Use Stop Loss?
Stop Loss in Ticks
Use Combined Exit Strategy?
Combined Exit Ticks
Use Time Filter?
Start Hour
End Hour
Comment
All comments (0)
No data
No data
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)