Type/to search

Mean Reversion Consecutive Candle Reversal Trading Strategy

EMA
1
Follow
1781
Followers

img

Overview

This is a mean reversion trading strategy that captures short-term price reversal opportunities by identifying consecutive bearish and bullish candle patterns. The core logic enters a long position after three consecutive bearish candles and exits after three consecutive bullish candles. The strategy can optionally incorporate an EMA filter to enhance trade quality.

Strategy Principles

The strategy is based on the following core elements:

  1. Consecutive candle counter: Tracks the number of consecutive bullish and bearish candles
  2. Entry condition: Triggers a long signal when specified number (default 3) of consecutive lower closing prices occurs
  3. Exit condition: Triggers a closing signal when specified number (default 3) of consecutive higher closing prices occurs
  4. EMA filter: Optional 200-period exponential moving average as trend filter
  5. Trading time window: Can set specific trading start and end times to limit trading periods

Strategy Advantages

  1. Simple and clear logic: Strategy uses simple candle counting method, easy to understand and implement
  2. High adaptability: Can be applied to different timeframes and trading instruments
  3. Flexible parameters: Consecutive candle counts, EMA period and other parameters can be adjusted as needed
  4. Comprehensive risk control: Multiple mechanisms including time window and trend filter to control risk
  5. High computational efficiency: Core logic only requires comparing adjacent candle closing prices, low computational load

Strategy Risks

  1. Trend market risk: May encounter frequent false breakouts in strong trending markets
  2. Parameter sensitivity: Number of consecutive candles setting significantly impacts strategy performance
  3. Slippage impact: May face significant slippage risk in volatile markets
  4. False signal risk: Consecutive candle patterns may be affected by market noise
  5. Lack of stop loss: Strategy lacks explicit stop loss mechanism, may lead to large drawdowns

Strategy Optimization Directions

  1. Add stop loss mechanism: Recommend adding fixed or trailing stop loss to control risk
  2. Optimize filter conditions: Can introduce volume, volatility and other indicators as auxiliary filters
  3. Dynamic parameter adjustment: Consider dynamically adjusting consecutive candle count requirements based on market conditions
  4. Enhance position management: Can design partial position building and reduction mechanisms to improve returns
  5. Improve time management: Set different trading parameters for different time periods

Summary

This is a well-designed mean reversion strategy that generates returns by capturing short-term oversold bounce opportunities. The strategy's main advantages are simple logic and high adaptability, but risk control needs attention in practical application. It is recommended to enhance strategy stability through adding stop loss mechanisms, optimizing filter conditions and other improvements.

Source
Pine
/*backtest
start: 2025-01-19 00:00:00
end: 2025-02-18 00:00:00
period: 1h
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//@version=6
strategy("3 Down, 3 Up Strategy", overlay=true, initial_capital = 1000000, default_qty_value = 200, default_qty_type = strategy.percent_of_equity, process_orders_on_close = true, margin_long = 5, margin_short = 5, calc_on_every_tick = true)

Strategy parameters
Strategy parameters
Time Settings
Start Time (Optional)
End Time (Optional)
Strategy Settings
Consecutive Down Closes for Entry (Optional)
Consecutive Up Closes for Exit (Optional)
Trend Filter
Use EMA Filter
EMA Period (Optional)
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)