Type/to search

Take Profit on Trend Strategy

Cryptocurrency
Created: 2023-09-26 11:22:04
Last modified: 3 years ago
1
Follow
1781
Followers

Overview

The Take Profit on Trend strategy aims to detect long-term trends and short-term pullbacks, taking long positions during overall uptrends while capturing short-term dips, with reasonable stop loss and take profit levels set to follow the trend and take profits in a timely manner.

Strategy Logic

The strategy mainly uses EMA and RSI to determine long-term and short-term trends. Specifically, it uses 50-day EMA and 200-day EMA to judge long-term trends, and RSI to gauge trend strength. When the long-term is in an uptrend (200-day EMA rising) and strong (RSI above 50), and the short-term sees a pullback (last 2 candlesticks closing lower), a long position is taken.

After entering a position, the strategy sets stop loss and take profit conditions. When the price rises more than 2x BHD units above the entry price, profits are taken. When the price falls more than 3x BHD units below the entry price, the position is stopped out. The BHD unit is calculated based on the amplitude of the last 200 candlesticks.

This way, the strategy fully considers long and short term trend characteristics, increasing profits while controlling risks, following the trend while taking timely profits.

Advantage Analysis

The strategy has the following advantages:

  1. Considers long and short term trends, combined with strength indicators, avoids blind entries in ranging markets.

  2. Entries follow the trend direction, higher win rate.

  3. Take profit and stop loss points allow timely profit taking and risk control.

  4. TP and SL are dynamic based on volatility, relatively reasonable.

  5. Backtests show good returns and stability across symbols and timeframes.

  6. Simple and clear logic, easy to understand and implement for all skill levels.

Risk Analysis

The strategy also has some risks:

  1. Long/short term misjudgement leading to wrong entry directions.

  2. Cliff-like market crashes may penetrate stops.

  3. Poor parameter settings negatively impact performance.

  4. TP set too tight, may exit prematurely.

  5. Backtest ≠ live performance, continuous optimization needed.

Solutions:

  1. Optimize parameters, adjust MA periods, add cross-validation indicators.

  2. Wider stops, position sizing, other risk controls.

  3. Extensive backtesting to evaluate parameters.

  4. Dynamic TP optimization based on market conditions.

  5. Ongoing backtesting, optimization, live adjustment.

Optimization Directions

The strategy can be further optimized by:

  1. Parameter tuning, MA periods, BHD unit periods etc.

  2. Adding indicators, MACD, KD etc for better short-term accuracy.

  3. Optimizing TP/SL, dynamic size based on volatility etc.

  4. Adding position sizing based on trend strength.

  5. Testing robustness across more symbols and timeframes.

  6. Adding filters like closing price > open to avoid traps.

  7. Incorporating machine learning for more automation and intelligence.

These can improve win rate, return, stability, adaptiveness etc.

Conclusion

Overall the Take Profit on Trend strategy has the advantages of considering long/short trends, following trends, clear TP/SL. It is a stable and efficient trend following approach. But risks exist, requiring ongoing optimization and live adjustment. The logic is clear and easy to implement. Worth studying and applying for traders. With further optimization it can become a robust quant strategy.

Source
Pine
/*backtest
start: 2023-08-26 00:00:00
end: 2023-09-25 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/
// © BHD_Trade_Bot

// @version=5
Strategy parameters
Strategy parameters
Start year
Start month
Start day
end year
end month
end day
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)