This strategy is a dynamic trading strategy based on three-cycle highs and lows. It uses price data from the last three weeks to identify potential buying and selling opportunities. The strategy focuses primarily on the relationship between the latest highs, the latest closing price, and the closing price three weeks ago, and generates trading signals by comparing these price levels.
The core principles of the strategy include the following key elements:
The calculation indicator is:
Conditions for purchase:
Conditions for sale:
Execution of the transaction:
See also:
This design is intended to capture the upward movement when the price breaks out of its three-week-old level, while breaking even in time when the price falls back to protect profits.
Medium-term trend capture: The strategy is able to effectively identify the formation and continuation of a medium-term trend by comparing the current price to the price level three weeks ago.
Noise filtering: The use of a three-cycle time frame helps filter out short-term market fluctuations and improves signal reliability.
Dynamic Adaptation: The strategy is based on the latest price data and constantly updates the judgement criteria to be able to dynamically adapt to market changes.
Risk management: By setting clear selling conditions, strategies can be used to effectively control risk and stabilize it in a timely manner when the market shifts.
Simple and easy to understand: Strategy logic is intuitive, easy to understand and implement, suitable for both novice and experienced traders.
Visualization support: Clearly marked buy and sell signals on the chart, which facilitates intuitive judgments and feedback analysis by traders.
False breakout risk: In the horizontal market, there may be frequent false breakouts, leading to excessive trading and unnecessary loss of processing fees.
Delay: Using three-cycle historical data can cause signal lag and miss the best time to enter a rapidly changing market.
Single time frame limitations: data that rely on only three cycles may ignore important market information from other time frames.
Lack of stop-loss mechanism: The current strategy does not have a clear stop-loss mechanism and may face higher losses in times of sharp market fluctuations.
Excessive reliance on closing prices: The strategy is based primarily on closing prices and may ignore important price changes in the market.
Lack of transaction confirmation: Failure to take transaction factors into account may result in false signals during low-volume periods.
Multi-time frame analysis: Integrates data from multiple time frames, such as the sunline, sunline, and moonline, to provide a more comprehensive view of the market.
Introduction of traffic indicators: Combined with traffic analysis, signal reliability can be improved, especially in terms of breakthrough confirmation.
Dynamic stop-loss mechanisms: Implement adaptive stop-loss strategies, such as tracking stops or ATR-based stops, to better manage risk.
Signal filters: Adding additional technical indicators or market sentiment indicators, such as RSI or MACD, to reduce false signals.
Optimized entry: Consider using a cap or observation range instead of a direct market entry to get a better transaction price.
Position management: Implement a dynamic position management strategy that adjusts the position size of each trade based on market volatility and account risk.
Market condition recognition: Logic of identifying market conditions (trends, closings, high volatility) using different trading parameters in different market environments.
Retesting and optimization: Retesting a large amount of historical data to optimize policy parameters such as time cycles, condition thresholds, etc.;
The three-cycle high-low momentum trading strategy is a simple and effective medium-term trend tracking method. By comparing the latest highs, closing prices and closing prices three weeks ago, the strategy is able to capture price breakouts and momentum changes. Its advantages are that it can filter short-term noise, capture medium-term trends, and its logic is simple to understand. However, the strategy also faces challenges such as false breakouts, signal lag and inadequate risk management.
Future optimization directions should focus on multi-time frame analysis, transaction confirmation, dynamic risk management, and market condition identification. Through these improvements, strategies are expected to perform more robustly in different market environments and provide more reliable decision support for traders.
Overall, this strategy provides a good starting point for quantitative trading and has the potential to become a powerful trading tool through continuous optimization and refinement. However, in practical applications, investors should be cautious, fully aware of market risks, and use the strategy in conjunction with their own risk tolerance and investment goals.
This strategy is a momentum trading approach based on three-week high and low points. It utilizes price data from the recent three weeks to identify potential buying and selling opportunities. The strategy primarily focuses on the relationship between the latest high, the latest closing price, and the closing price from three weeks ago, generating trading signals by comparing these price levels. This method aims to capture medium-term price trends while avoiding the impact of short-term market noise.
The core principles of this strategy include the following key elements:
Indicator Calculations:
Buy Conditions:
Sell Condition:
Trade Execution:
Visualization:
This design aims to capture upward momentum when the price breaks above the level from three weeks ago, while promptly closing positions to protect profits when the price falls back.
Medium-Term Trend Capture: By comparing current prices with levels from three weeks ago, the strategy effectively identifies the formation and continuation of medium-term trends.
Noise Filtering: Using a three-week time frame helps filter out short-term market fluctuations, improving the reliability of signals.
Dynamic Adaptation: The strategy continuously updates its decision criteria based on the latest price data, allowing it to dynamically adapt to market changes.
Risk Management: Through clear sell conditions, the strategy can close positions promptly when the market turns, effectively controlling risk.
Simple and Understandable: The strategy logic is intuitive, easy to understand and implement, suitable for both novice and experienced traders.
Visual Support: Buy and sell signals are clearly marked on the chart, facilitating intuitive judgment and backtesting analysis for traders.
False Breakout Risk: In sideways markets, frequent false breakouts may occur, leading to excessive trading and unnecessary transaction fee losses.
Lagging Nature: Using historical data from three weeks may result in lagging signals, potentially missing optimal entry points in rapidly changing markets.
Single Time Frame Limitation: Relying solely on three-week data may overlook important market information from other time frames.
Lack of Stop-Loss Mechanism: The current strategy lacks a clear stop-loss mechanism, potentially facing significant losses during severe market fluctuations.
Over-reliance on Closing Prices: The strategy mainly bases its judgments on closing prices, potentially ignoring important intraday price movements.
Lack of Volume Confirmation: Not considering volume factors may lead to false signals during periods of low trading volume.
Multi-Time Frame Analysis: Integrate data from multiple time frames, such as daily, weekly, and monthly, to provide a more comprehensive market perspective.
Incorporate Volume Indicators: Combining volume analysis can improve signal reliability, especially in breakout confirmation.
Dynamic Stop-Loss Mechanism: Implement adaptive stop-loss strategies, such as trailing stops or ATR-based stops, for better risk management.
Signal Filters: Add additional technical or market sentiment indicators, like RSI or MACD, to reduce false signals.
Entry Optimization: Consider using limit orders or observation zones instead of direct market orders for entry to obtain better execution prices.
Position Management: Implement dynamic position sizing strategies, adjusting the size of each trade based on market volatility and account risk.
Market State Recognition: Add logic to identify market states (trending, ranging, high volatility) and adopt different trading parameters for different market environments.
Backtesting and Optimization: Conduct extensive historical data backtesting to optimize strategy parameters such as time periods and condition thresholds.
The Three-Week High-Low Momentum Trading Strategy is a simple yet effective method for medium-term trend following. By comparing the latest high, latest close, and the closing price from three weeks ago, the strategy can capture price breakouts and momentum changes. Its strengths lie in filtering short-term noise, capturing medium-term trends, and its simple, easy-to-understand logic. However, the strategy also faces challenges such as false breakouts, signal lag, and insufficient risk management.
Future optimization directions should focus on multi-time frame analysis, volume confirmation, dynamic risk management, and market state recognition. Through these improvements, the strategy has the potential to perform more robustly in different market environments, providing traders with more reliable decision support.
Overall, this strategy provides a good starting point for quantitative trading. With continuous optimization and refinement, it has the potential to become a powerful trading tool. However, investors should be cautious when applying it in practice, fully recognizing market risks and using the strategy in conjunction with their own risk tolerance and investment objectives.
/*backtest start: 2024-06-28 00:00:00 end: 2024-07-28 00:00:00 period: 2h basePeriod: 15m exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}] */ //@version=5 strategy("Buy and Sell Strategy", overlay=true) // Calculate the latest high, close, and volume latestHigh = ta.highest(high, 30) // 4 weeks = 30 trading days latestClose = close[1] // Calculate the high, close, threeWeeksAgoClose = close[30] // 4 weeks = 30 trading days + 1 current day // Condition 1: Buy if latest high >= 4 weeks ago close condition1 = latestHigh >= threeWeeksAgoClose // Condition 2: Buy if latest close > 4 weeks ago close condition2 = latestClose > threeWeeksAgoClose // Generate buy and sell signals buySignal = condition1 sellSignal = condition2 // Entry and exit logic using if statements if buySignal strategy.entry("Buy", strategy.long) if sellSignal strategy.close("Buy") // Plotting buy and sell signals on the chart plotshape(buySignal, color=color.green, style=shape.labelup, location=location.belowbar, text="Buy") plotshape(sellSignal, color=color.red, style=shape.labeldown, location=location.abovebar, text="Sell")