Dynamic Support Resistance Price Action Trading System
Overview
This strategy is a trading system based on price action and dynamic support/resistance levels, executing trades near key price levels when specific candlestick patterns emerge. The system utilizes a 16-period dynamic support/resistance calculation method, combined with four classic reversal candlestick patterns - Hammer, Shooting Star, Doji, and Pin Bar to capture potential market reversals. The strategy employs fixed percentage take-profit and stop-loss levels for risk management and uses a sensitivity parameter to control entry signal strictness.
Strategy Principles
The core of the strategy lies in dynamically calculating support and resistance levels to establish price movement boundaries. When price approaches these key levels, the system looks for specific candlestick patterns as reversal signals. Entry conditions require pattern formation within 1.8% (default sensitivity) of support/resistance levels. The system implements a 35% equity management rule with 16% stop-loss and 9.5% take-profit, effectively controlling risk at around 5.6% of total equity per trade. The strategy is implemented in Pine Script with complete trade management functionality and visualization.
Strategy Advantages
- Combines two most reliable elements of technical analysis: price patterns and support/resistance, enhancing signal reliability
- Uses dynamically calculated support/resistance levels, adapting to changing market conditions
- Implements strict money management and risk control measures to prevent significant drawdowns
- Clear strategy logic with adjustable parameters, facilitating optimization for different market conditions
- Clear entry signals without subjective judgment, suitable for automated trading
Strategy Risks
- Support/resistance effectiveness may decrease in highly volatile markets
- Relatively wide stop-loss (16%) may lead to significant losses in volatile conditions
- Sensitivity parameter settings significantly impact trading frequency and accuracy
- Relying solely on price patterns may miss other important market signals
- Need to consider trading costs' impact on strategy returns
Optimization Directions
- Introduce volume as a confirmation indicator to improve signal reliability
- Develop adaptive sensitivity parameters that adjust dynamically based on market volatility
- Optimize stop-loss settings, consider implementing trailing stops or stepped stop-loss plans
- Add trend filters to avoid reversal trades during strong trends
- Develop dynamic position sizing system adjusting trade size based on market conditions
Summary
This price action-based trading strategy provides traders with a systematic trading approach by combining dynamic support/resistance levels with classic reversal patterns. The strategy's strengths lie in its clear logic and controllable risk, though continuous optimization based on actual trading results is necessary. Traders are advised to conduct thorough backtesting and parameter optimization before live trading, and customize the strategy based on market experience.
/*backtest
start: 2024-11-26 00:00:00
end: 2024-12-03 00:00:00
period: 1h
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
// This Pine Script™ code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © felipemiransan
//@version=5- 1

