Type/to search

Cross Period Breakthrough System

Cryptocurrency
Created: 2023-11-22 15:22:49
Last modified: 3 years ago
1
Follow
1779
Followers

img

Overview

This is a quantitative trading strategy that utilizes moving averages and MACD indicators for breakthrough operations in both directions. It has the feature of cross-period operations, that is, judging the trend direction on longer time frames and looking for opportunities on shorter time frames.

Strategy Principle

The strategy uses 3 SMMA moving averages of different lengths and 1 EMA moving average to determine the trend direction. At the same time, it combines the MACD indicator to judge short-term trends and entry opportunities. Specifically, the buy trigger condition is: the price breaks through all moving averages upwards, and the shorter averages are above the longer ones; while the sell trigger condition is the opposite, the price breaks through all moving averages downwards, and the shorter averages are below the longer ones.

It can be seen that this strategy utilizes moving averages to judge medium and long term trend directions, and MACD to catch better entry opportunities by judging short term reversals. This multi time frame joint operation is an important feature of the strategy.

Advantage Analysis

The advantage of this cross-period operation is that it can select suitable short-term reversal points to enter in the high-probability trend direction, thus obtaining a better risk-reward ratio. Specifically, there are mainly the following 3 advantages:

  1. The 3 SMMA averages plus 1 EMA line multi-level filtering can effectively determine the medium and long term trend direction to avoid trading against the trend.

  2. MACD indicator judging short-term reversal points for entering can obtain better entry price levels.

  3. The strict moving average sequence relationship as a filtering condition can reduce the probability of mis-operations.

Risk Analysis

The main risks of this strategy are:

  1. Moving averages themselves have greater lagging properties, which may miss short-term trend reversal opportunities.

  2. MACD indicators are prone to generate false signals and need to be filtered in combination with price levels.

  3. Multi time frame judgments increase the complexity of the strategy and are prone to failure.

To address risk 1 and risk 2, we can optimize by appropriately shortening the moving average and signal cycle to respond quickly to short-term trend reversals. For risk 3, we need to optimize and test for different varieties and cycles to strictly adapt the strategy parameters to the characteristics of that variety.

Optimization Directions

The main aspects that this strategy can be optimized include:

  1. Optimize the parameters of moving averages and MACD to best match the characteristics of different cycles and varieties. Such as shortening the length of the moving averages, increasing the signal parameter, etc.

  2. Increase stop loss strategies using ATR or other indicators to set reasonable moving stops. This can significantly improve the risk control of the strategy.

  3. Look for better indicators or filtering methods to replace MACD signals. For example, introduce volatility indicators and filter signals accordingly.

  4. Test different profit and loss ratio relationships to obtain parameter combinations with better risk-reward ratios.

Summary

In general, this is a unique breakthrough system with cross-timeframe thinking. It utilizes the advantages of both moving averages and MACD to achieve a joint judgment operation strategy across multiple time frames. By optimizing and adjusting parameters and filtering criteria, this strategy can become a very practical quantitative trading solution.

Source
Pine
/*backtest
start: 2023-10-22 00:00:00
end: 2023-11-21 00:00:00
period: 1h
basePeriod: 15m
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/
// © SoftKill21

//@version=4
Strategy parameters
Strategy parameters
From Day
From Month
From Year
To Day
To Month
To Year
Length
Source
Length
Source
Length
Source
Length
Source
Length
Source
Fast Length
Slow Length
Source
Signal Smoothing
Simple MA(Oscillator)
Simple MA(Signal Line)
ATR Length
Percentage Multiplier (for ex., 0.7 = 70%)
Show actual ATR
tp
sl
Risk %
max entries
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)