Type/to search

Multi Moving Average Rating Trend Strategy

Cryptocurrency
Created: 2023-10-17 13:11:25
Last modified: 3 years ago
1
Follow
1781
Followers

img

Overview

This strategy analyzes price trends from multiple angles by adopting various types of moving averages, forming a comprehensive rating signal to determine the opening direction. The strategy has the following advantages: 1) Multiple moving averages form a rating system to improve judgment accuracy; 2) Flexible adjustment of rating system parameters to adapt to different varieties; 3) Configurable entry rating conditions to control risks.

Strategy Logic

  1. The strategy uses a total of 17 different types of moving averages, including SMA, EMA, ALMA, SMMA, LSMA, VWMA, DEMA, HMA, KAMA, TEMA, ZLEMA, TRIMA, T3, etc.

  2. For each moving average, judge its relationship with the closing price. If the moving average is lower than the closing price, give 1 rating point. If higher, give -1 rating point. If unable to determine, give no rating.

  3. Sum up all the ratings of the moving averages, and divide by the number of ratable moving averages, to get a comprehensive rating.

  4. Compare the comprehensive rating with the entry rating threshold to determine the opening direction. If the comprehensive rating reaches the long threshold, go long. If it reaches the short threshold, go short.

  5. Adopting moving averages of different periods can judge short-term and long-term trends. Using different types provides more abundant technical indicators for multi-angle judgment.

Advantages

  1. Multiple moving average ratings improve accuracy

    Compared with single or few moving averages, the strategy uses 17 different moving averages for rating, which can better judge the market trend direction from more angles, reducing deviations of any single indicator. Multiple indicators involved in the rating can improve reliability of the final result.

  2. Configurable parameters of rating system adapt to different varieties

    The moving average periods and rating thresholds in the rating system can be configured through parameters, making the strategy adaptable to different characteristics of trading varieties, which is beneficial for optimization.

  3. Configurable entry rating conditions control risks

    The strategy allows configuring long and short entry rating thresholds. Signals are generated only when the comprehensive rating reaches the threshold, avoiding incorrect opening during unclear market conditions. Reasonable entry threshold settings help reduce unnecessary trades and control risks.

Risks and Solutions

  1. Effect may be poor for individual variety

    The parameter settings of this strategy are designed for the overall market, and may not work well for some specific variety. The solution is to optimize parameters separately for different varieties.

  2. Higher error rate in mixed trending markets

    The strategy tends to generate wrong signals when the market is mixed. The solution is to raise the entry rating threshold to reduce trades in such market conditions.

  3. Periodical parameter optimization may be needed for long-term running

    As market conditions keep changing, fixed parameters may lead to decreased strategy efficiency. It is recommended to re-test and optimize parameters periodically to ensure strategy performance.

Optimization Directions

  1. Add other indicators for rating, like volatility indicators, volume indicators, etc. to provide more dimensions of judgment.

  2. Test and optimize parameters separately for different varieties to improve adaptability.

  3. Set longer backtest periods like half a year, one year, to observe duration of parameter effectiveness.

  4. Research actual effects of different moving averages in different periods to select better combinations.

  5. Try machine learning methods to automatically optimize parameters.

Conclusion

The strategy establishes a rating system of multiple moving averages to achieve multi-angle judgment of market trends. It has the advantage of configurable parameters to adapt flexibly to different varieties, and to control strategy risks through parameter tuning. In addition, the rating system can be continuously optimized and improved to further enhance strategy performance. In general, the strategy utilizes the effects of multiple technical indicators to form strong trend tracking capability.

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

// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © exlux99

//@version=5
Strategy parameters
Strategy parameters
Indicator Timeframe (Optional)
Entry Rating %
Rating for long
Rating for short
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)