Type/to search

Open Close Cross Point Strategy

Cryptocurrency
Created: 2023-12-13 15:51:13
Last modified: 2 years ago
1
Follow
1778
Followers

img

Overview

The open close cross point strategy is a quantitative trading strategy based on moving average crossovers. It determines price trends by calculating crosses between fast and slow moving average lines and generates buy and sell signals at crossover points. This strategy uses Hull Moving Average as the fast line and Super Smoother filter as the slow line. This combination incorporates both the smoothness and trend determination ability of moving averages and can effectively identify price movements to produce relatively reliable trading signals.

Strategy Principle

The formulas for calculating the open close cross point strategy are:
Fast line (Hull MA): WMA(2 * WMA(price, n/2) - WMA(price, n), SQRT(n))
Slow line (Super Smoother Filter): Price triple filter

Where WMA is the Weighted Moving Average, SQRT is the square root, and the filter contains one first order lag term and two second order lag terms.

The strategy judges the relationship between the fast and slow lines by calculating their values. Where:
Upward crossover of fast line is buy signal
Downward crossover of fast line is sell signal

Advantage Analysis

The open close cross point strategy combines the advantages of dual moving average judgments and point trading. It can accurately capture trend turning points for timely entries and exits. Compared to single moving average strategies, it has the following advantages:

  1. Dual moving average combination eliminates false signals. Fast line determines trend direction/strength, slow line filters out oscillations so signals become more reliable.
  2. Super Smoother filter has superb data fitting capabilities to effectively extract price trends.
  3. Hull MA has high sensitivity to price changes and can timely spot reversals.

Risk Analysis

The open close cross point strategy also carries certain risks:

  1. More whipsaw signals may occur during ranging markets. Can widen interval between MAs to reduce false signals.
  2. Excessively wide intervals between MAs may miss some opportunities. Need to balance signal quantity and quality.
  3. This strategy is more suitable for products with clearer trends, not advisable for highly volatile products.

Optimization Directions

The open close cross point strategy can be optimized in the following dimensions:

  1. Adjust MA parameters to suit products of different periods and volatility ranges.
  2. Add in supplementary indicators or filters to determine trend quality to reduce whipsaws.
  3. Optimize position sizing by incorporating trend strength indicators.

Conclusion

The open close cross point strategy inherits the advantages of moving average strategies while expanding the use of dual moving average judgments and point trading models to form a more advanced and reliable quantitative trading scheme. It has unique advantages in timing trading which deserve live testing and application exploration. This article thoroughly parses the principles, strengths and weaknesses of this strategy, and provides optimization ideas for reference. It is believed that with continuous improvements on the model and parameters, this strategy will become a formidable market timing tool.

Source
Pine
/*backtest
start: 2022-12-06 00:00:00
end: 2023-12-12 00:00:00
period: 1d
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//@version=5
//

strategy(title='Open Close Cross Strategy ', shorttitle='sacinvesting', overlay=true, pyramiding=0, default_qty_type=strategy.percent_of_equity, default_qty_value=10, calc_on_every_tick=false)
Strategy parameters
Strategy parameters
Use Alternate Resolution?
Multiplier for Alernate Resolution
MA Type:
MA Period
Offset for LSMA / Sigma for ALMA
Offset for ALMA
Show coloured Bars to indicate Trend?
Delay Open/Close MA (Forces Non-Repainting)
What trades should be taken :
Initial Stop Loss Points (zero to disable)
Initial Target Profit Points (zero for disable)
Number of Bars for Back Testing
- SET to ZERO for Daily or Longer Timeframes
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)