Type/to search

Comb Reverse EMA Volume Weighting Optimization Trading Strategies

Cryptocurrency
Created: 2023-12-07 16:39:50
Last modified: 3 years ago
1
Follow
1779
Followers

img

Overview

This strategy is a double optimized combination reverse EMA weighted trading strategy. It combines reverse strategy and EMA weighted strategy, two different types of strategies, and generates more reliable trading signals by judging whether the signals of the two strategies are consistent.

Strategy Principle

The reversal part uses the 123 reversal strategy. This strategy combines the relationship between the closing prices of the previous two days and the stochastic oscillator to generate signals. The specific rules are:

  • When today's closing price is higher than yesterday's, and yesterday's closing price is lower than the day before yesterday; at the same time, the 9-day stochastic slow line is lower than 50, go long;
  • When today's closing price is lower than yesterday's, and yesterday's closing price is higher than the day before yesterday; at the same time, the 9-day stochastic fast line is higher than 50, go short.

The EMA weighted part uses the exponential moving average and volume weighted calculation. The calculation formula is as follows:

pine
xMAVolPrice = ema(volume * close, Length) xMAVol = ema(volume, Length) nRes = xMAVolPrice / xMAVol

The specific trading rules are: when the nRes indicator is lower/higher than yesterday's closing price, go long/short.

Finally, the strategy judges whether the signals of the two parts are consistent before generating the actual trading signal.

Advantage Analysis

The strategy combines two different types of strategies to verify each other and improve the reliability of signals and reduce false signals. At the same time, the reversal part can capture turning points, and the EMA weighted part can track trends to achieve complementary advantages.

Risk Analysis

The strategy has a certain time lag and is prone to miss short-term trading opportunities. Also, the EMA weighted is not effective for oscillating markets. In addition, the reliability of reversal signals also needs to be verified.

Shorten the parameters appropriately to speed up reaction. Add stop loss to control risks. Introduce more factors to verify reversal signals.

Optimization

  1. Test more reversal factor combinations to find the optimal parameters.
  2. Try different types of EMA weighting methods.
  3. Add stop loss, trailing stop loss.
  4. Optimize parameters for faster response.

Summary

The strategy integrates the advantages of two different types of strategies, which can improve signal quality and overcome the disadvantages of a single strategy to some extent. But there is also a certain lag that needs further optimization. Overall, this strategy provides new ideas for quantitative trading and is worth further research and optimization to seize market opportunities.

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

//@version=4
////////////////////////////////////////////////////////////
//  Copyright by HPotter v1.0 18/10/2019
// This is combo strategies for get a cumulative signal. 
Strategy parameters
Strategy parameters
Length
KSmoothing
DLength
Level
LengthEMA_VM
Trade reverse
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)