Type/to search

Multi Take Profit and Stop Loss WaveTrend Trend Following Strategy

Cryptocurrency
Created: 2023-12-01 18:09:12
Last modified: 3 years ago
1
Follow
1779
Followers

img

Overview

This strategy is based on the original WaveTrend strategy from LazyBear, with additional features like secondary stop loss, multiple take profit levels and high timeframe EMA filter. It uses WaveTrend indicator to generate trading signals, combined with EMA filter and stop loss/take profit management for automated trend following trading.

Strategy Logic

The core indicator of this strategy is WaveTrend, consisting of three components:

  1. AP: Average Price = (Highest + Lowest + Close) / 3

  2. ESA: n1-period EMA of AP

  3. CI: (AP - ESA) / (0.015 * n1-period EMA of absolute value of (AP - ESA))

  4. TCI: n2-period EMA of CI, also called WaveTrend Line 1 (WT1)

  5. WT2: 4-period SMA of WT1

A long position is opened when WT1 crosses above WT2 (golden cross), and is closed when WT1 crosses below WT2 (death cross).

Additionally, a high timeframe EMA filter is implemented to avoid false signals, so that long trades are only taken when price is above EMA and short trades below EMA.

Advantages

  1. Automatically follow trends using WaveTrend without manual judgment

  2. Secondary stop loss effectively limits single trade loss

  3. Multiple take profit levels maximize profit capture

  4. EMA filter improves win rate by avoiding false signals

Risks and Improvements

  1. Fails to detect trend reversal, might cause losses

  2. Poor parameter tuning leads to over-trading

  3. Different parameter sets can be tested for optimization

  4. Consider additional indicators for reversal detection

Conclusion

This strategy comprehensively incorporates trend following, risk control and profit maximization through WaveTrend's automatic trend detection, EMA filter to improve efficiency and stop loss/take profit management to balance trend trading and risk control. It is an efficient and steady trend following system. Further parameter optimization and reversal mechanisms can enhance the strategy's applicability.

Source
Pine
/*backtest
start: 2023-10-31 00:00:00
end: 2023-11-30 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/
// © undacovacobra

//@version=4
Strategy parameters
Strategy parameters
Channel Length
Average Length
Over Bought Level 1
Over Bought Level 2
Over Sold Level 1
Over Sold Level 2
Use EMA Filter
EMA Length
EMA Time Frame
Trade Mode
Use Secondary Stop Loss
Stop Loss Percentage (%)
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)