Type/to search

Triple Exponential Moving Average Profit Taking and Stop Loss Strategy

Common strategy
Created: 2024-02-04 10:38:42
Last modified: 2 years ago
1
Follow
1802
Followers

img

Overview

The Triple Exponential Moving Average Profit Taking and Stop Loss Strategy is a trend-following strategy based on three exponential moving averages with different periods for market entry and exit. It also uses the Average True Range indicator to set profit-taking and stop-loss levels for risk management.

Strategy Logic

The strategy uses three exponential moving averages: fast line, middle line, and slow line. It goes long when the middle line crosses above the slow line, and closes position when the fast line crosses below the middle line. This is a typical trend-following strategy that determines trend directionality through the crossing of the three moving averages.

At the same time, the strategy leverages the Average True Range indicator to calculate profit-taking and stop-loss levels. Specifically, the take profit for long positions is entry price + Average True Range * profit factor, and for short positions it is entry price - Average True Range * profit factor. The stop loss logic is similar. This effectively limits the risk of large losses.

Advantage Analysis

  1. Decision indicators are intuitive and easy to understand.
  2. Systematic and easy to automate.
  3. Balances trend-following and risk control.

Risk Analysis

  1. There is some lag and inability to timely capture reversals.
  2. Prone to stop loss in ranging markets.
  3. Parameter tuning needs optimization, otherwise results may be poor.

Risk mitigation measures include: shortening moving average periods, optimizing profit/stop factor, and adding auxiliary indicators.

Optimization Directions

  1. Test combinations of moving averages to find optimal parameters.
  2. Add other technical indicators like MACD, RSI etc.
  3. Use machine learning to auto optimize parameters.
  4. Dynamically adjust profit/stop level based on true range.
  5. Incorporate sentiment to avoid overcrowding.

Conclusion

Overall this is an effective trend-following strategy with stable performance and easy implementation via simple parameters. The dynamic profit taking and stop loss based on Average True Range limits per-side risk. But parameter optimization and indicator combinations need to be done carefully to prevent overfitting or decision lag. On balance, this strategy has good risk-reward profile and is worth considering.

Source
Pine
/*backtest
start: 2024-01-04 00:00:00
end: 2024-02-03 00:00:00
period: 3h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//@version=4
//© Densz
strategy("3EMA with TP & SL (ATR)", overlay=true )
Strategy parameters
Strategy parameters
Start Time
End Time
Slow EMA Length
Middle EMA Length
Fast EMA Length
Trend indicator MA Length
ATR Length
Take profit ATR multiplier
Stop loss ATR multiplier
RSI Length
Comment
All comments (0)
No data
No data
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)