Dynamic Re-entry Buy-only Strategy
Overview
This strategy is a buy-only trading system that generates buy signals based on moving average crossovers and the Weekly Commodity Channel Index (CCI) or Weekly Average Directional Index (ADX). It produces buy signals when the fast moving average crosses above the slow moving average and when the Weekly CCI and/or Weekly ADX meet specified conditions.
The strategy also allows for dynamic re-entry, which means it can open new long positions if the price goes above the three moving averages after an exit. However, the strategy will exit the long position if the price closes below the third moving average.
Strategy Principle
The script defines the conditions for generating buy signals. It checks two conditions for a valid buy signal:
- The fast moving average crosses above the slow moving average
- The user can choose to filter trades using Weekly CCI or Weekly ADX
Dynamic Re-entry: If there is no active long position and the price is above all three moving averages, a new long position is opened.
Exit Condition: If the closing price drops below the third moving average, the script closes the long position.
Advantage Analysis
The advantages of this strategy include:
- Using multiple technical indicators to filter signals reduces false signals
- The dynamic re-entry mechanism maximizes the capture of trends
- Being long-only avoids the risks of shorting
Risk Analysis
The risks of this strategy include:
- There is some risk of whipsaws
- Long holding times could be too long, requiring stops
- Poor parameter settings may cause too frequent trading
Solutions:
- Use better parameter combinations and indicator combinations to filter
- Set reasonable stop losses
- Adjust parameters to ensure stability
Optimization Directions
This strategy can be optimized by:
- Testing more technical indicator combinations to find better entry timing
- Optimizing parameters to find the best parameter combinations
- Adding stop loss mechanisms to control single loss
- Adding position sizing to increase/decrease positions based on market conditions
Summary
This dynamic re-entry buy-only strategy integrates multiple technical indicators to determine entry timing and adopts a dynamic re-entry design to track trends in real-time. Being long-only avoids shorting risks. Through parameter optimization, stop losses, and position sizing, this strategy can be implemented in live trading to control risk while capturing excess returns.
- 1

