Type/to search

Combined Moving Average and Infinite Impulse Response Line Strategy

Common strategy
Created: 2024-01-23 15:46:48
Last modified: 3 years ago
1
Follow
1802
Followers

img

Overview

This is a quantitative strategy that combines the use of moving averages, infinite impulse response lines (IIR) and adaptive linear moving averages (ALMA). The strategy has a combination of multiple indicators to provide traders with rich trading signals.

Strategy Principle

The main components of the strategy include:

  1. Use a combination of simple moving averages (SMA), ALMA and IIR to detect cross signals between them as timing for trade entry.

  2. Use 3 IIRs with different periods and calculate the distance between them to determine if the price is in a squeeze state. The squeeze state represents decreasing volatility and often presages significant price changes.

  3. Judging the slope of the IIR, when the slope rises it is green, and when it falls it is blue. It can visually determine the trend of IIR.

  4. Calculate if the distance between SMAs is widening, if so, make a special mark, representing the "fan" expansion, usually meaning the price is entering a trend state.

  5. Combine the overbought and oversold signals of the relative strength index (RSI) to supplement the trading signals.

By combining the use of the above sections, the strategy can provide relatively comprehensive and rich trading entry, judgment and exit signals.

Advantage Analysis

The biggest advantage of this strategy is that the combination of indicators is comprehensive and rich, taking into account both trend judgments and volatility ratios and overbought/oversold states, providing multidimensional references for trading decisions.

Another advantage is that the parameters and indicators are easy to adjust and optimize so users can enable relevant indicators and parameters according to their needs.

From the perspective of risk management, this strategy pays attention to both fast and slow moving averages, which reduces the probability of incorrect signals caused by price fluctuations.

Risk Analysis

The main risks of this strategy are:

  1. Too complex to easily cause conflicts between indicators and improper parameter combinations can lead to overfitting.

  2. Adopting multiple moving average systems still carries large losses in the event of severe market turmoil (such as major economic events).

  3. Insufficient in-depth backtesting may pose some survival bias risk in real trading.

In practice, we need to pay attention to risk management and appropriately adjust the position size. We also need to conduct multiple backtests over longer time frames and larger datasets to ensure practical effectiveness of the strategy.

Strategy Optimization

Considering the complex combination of indicators and large number of parameters in this strategy, future optimizations can be made in the following aspects:

  1. Simplify indicator selections, remove indicators with low correlations or conflicts.

  2. Optimize the selection of IIR moving averages to better match market characteristics.

  3. Optimize combinations of fast and slow moving averages to increase stability of crossover signals.

  4. Increase machine learning models to assist in judgments and improve the adaptability of strategies.

  5. Optimize correlation with global indexes to improve success rate of trend judgments.

Conclusion

Through flexible combinations and optimizations of indicators, this strategy can reflect market status relatively comprehensively and provide multi-dimensional support for trading decisions. But there are still risks of real trading and data overfitting. We still need to constantly optimize and adjust the strategy in practice to adapt to market changes.

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

//The plotchar UP/DOWN Arrows  is the crossover of the fastest MA and fastest IIR MAs
//
//The dots at the bottom are the two simple averages crossing over
//
Strategy parameters
Strategy parameters
═══════════════ Show Fibby MAs ═══════════════
MA-Cross Resolution
MA#1 Length
MA#2 Length
MA#3 Length
SMA LooseSqueeze Percent
═══════════════════ Show IIRs ═══════════════════
IIR Resolution
IIR Squeeze PercentClose
IIR Length 1
IIR Length 2
IIR Length 3
Show IIR1
Show IIR2
Show IIR3
═════════════ Show Parabolic MA Counts ════════════
══════════════ Show Buy/Sell Signals ══════════════
══════════════ Show Background Colors ══════════════
══════════════ Show Debug ══════════════
══ Bar Lookback Period ══
══ Percentage Lookback Period ══
══════════ Show misc MA Cross Strategy ══════════
IIRx Length:
IIRx Period/TF:
IIRx2 Length:
IIRx2 Period/TF:
Alma of IIR1 Period:
Alma Alpha Value:
Alma Sigma Value:
═══════════════════ Show RSI Arrows ═══════════════════
RSI Source
RSI Length
RSI Overbought Level
RSI Oversold Level
Comment
All comments (0)
No data
No data
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)