Type/to search

Trend Breakout Strategy Based on Adaptive MA and Trendlines

Cryptocurrency
Created: 2023-09-19 15:49:37
Last modified: 3 years ago
1
Follow
1781
Followers

Overview

This strategy uses an adaptive moving average and trendline breakouts for entries, and RSI for exits. It aims to enter trends when conditions are met, take profit at overbought levels, and limit to one trade per month.

Strategy Logic

  1. Calculates 99-period adaptive MA to determine overall trend.

  2. Calculates 14-period local highs for upper trendline resistance.

  3. Goes long when close breaks above trendline and no order this month.

  4. Calculates 14-period RSI and exits at RSI over 70 (overbought).

  5. Tracks last entry month to ensure one trade per month.

Advantage Analysis

  1. Adaptive MA dynamically tracks trend changes.

  2. Trendline breakouts improve entry precision.

  3. RSI effectively judges overbought/oversold levels for risk control.

  4. One trade per month reduces frequency and fees.

  5. Simple and clear logic, easy to understand and execute.

Risk Analysis

  1. Improper parameters may cause missed entries.

  2. Fixed exit indicators cannot adapt timely to markets.

  3. Possibility of drawdowns.

  4. No risk control for long holding periods.

  5. Too many filters may prevent entries.

Optimization Directions

  1. Test different parameters for optimum settings.

  2. Add filters to improve strategy robustness.

  3. Develop dynamic and trailing stop strategies.

  4. Optimize entry logic to identify stronger breakouts.

  5. Test suitable instruments and timeframes.

  6. Add trend filter to avoid false breakouts.

Summary

This strategy integrates trend analysis and oscillators for steady trend following effect. Further optimizations on parameters, dynamic exits etc. can make it a reliable quant system. Overall it has good operability and is worth improving and verifying.

Source
Pine
/*backtest
start: 2023-09-11 00:00:00
end: 2023-09-18 00:00:00
period: 15m
basePeriod: 5m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//@version=5
strategy('Bannos Strategy', shorttitle='Bannos', overlay=true)

//The provided script is an indicator for TradingView written in Pine Script version 5. The indicator is used to determine entry and exit points for a trading strategy. Here's a detailed breakdown of what the script does:
Strategy parameters
Strategy parameters
length_trama
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)