Type/to search

EMA and Cumulative Volume Crossover Strategy for Long Short

Cryptocurrency
Created: 2023-09-20 11:48:34
Last modified: 3 years ago
1
Follow
1778
Followers

Overview

This strategy combines the EMA and cumulative volume indicators, generating buy and sell signals based on their crossover situations to determine trends. It belongs to a typical trend following strategy, tracking longer timeframe market directions.

Strategy Logic

The 50-day EMA and the 100-day cumulative volume indicators are computed. When the EMA crosses above the cumulative volume from below, a buy signal is generated to go long. When the EMA crosses below the cumulative volume from above, a sell signal is generated to go short.

During positions, fixed stop loss and take profit strategies are implemented. The stop loss is set at 8% below the entry price. The take profit is set at 8% above the entry price, with partial position closure when price hits the take profit level.

Advantage Analysis

The strategy combines the trend indicator EMA and the fund flow indicator cumulative volume, leveraging both price and volume information to effectively identify medium-long term trends. The fixed profit taking and stop loss is efficient and helps lock in partial profits while controlling risks.

The EMA period can be freely adjusted for different products. Both long and short trades are implemented for linear trading. Backtests show good performance during trending periods.

Risk Analysis

Overreliance on moving averages may result in whipsaws during range-bound consolidations. Fixed profit taking and stop loss may also lead to premature exits or oversized stop outs. Only price and volume factors are considered without other elements.

Expanding the moving average periods could reduce false signals. Additional indicators like volatility, RSI may also help judgements. Optimizing the profit take and stop loss mechanisms, via trail stops, dynamic exits etc could be beneficial.

Optimization Directions

  1. Test and optimize EMA parameter combinations to find optimal settings.

  2. Incorporate other technical indicators to form an ensemble system.

  3. Apply machine learning to predict trends and improve EMA performance.

  4. Optimize profit taking and stop loss strategies by combining trail stops, dynamic exits etc.

  5. Introduce capital management modules for dynamic position sizing.

  6. Customize parameters based on product characteristics to form strategy ensemble.

Summary

The strategy's idea of combining EMA and volume for trend identification is clear. But overreliance on moving averages and fixed exits has flaws. Adding more judgement indicators and optimizing exits can improve robustness. Overall it provides an idea of using price and volume data for trend tracking.

Source
Pine
/*backtest
start: 2023-08-20 00:00:00
end: 2023-09-19 00:00:00
period: 2h
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/
// © mohanee

//@version=4
Strategy parameters
Strategy parameters
EMA Length
cumulative volume Period
Risk % of capital
Stop Loss
take partial profits (percentage same as stop loss)
Trade Direction
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)