Type/to search

Double Bottom Reversal Mean Reversion DCA Grid Strategy

Cryptocurrency
Created: 2024-02-20 11:09:33
Last modified: 2 years ago
1
Follow
1781
Followers

img

Overview

The Double Bottom Reversal Mean Reversion DCA Grid strategy mainly applies the mean reversion price and DCA strategy to implement gradual position building. It determines reversal opportunities based on the double bottom reversal pattern. Once the reversal pattern is triggered, it uses multiple limit orders at different prices combined with DCA to establish gradual grid positions.

Strategy Logic

The strategy first checks if there are two consecutive closing prices equal to the bottom on the candlestick chart, which is called a "double bottom". If a double bottom is detected, it considers there may be a price reversal opportunity. At this point, the strategy will set multiple limit orders around the bottom price. The prices of these orders will be calculated based on ATR and volatility, forming a grid zone. This achieves the DCA effect and allows traders to gradually build positions at different prices after the reversal.

Specifically, the ATR indicator over the recent 14 candlesticks is first obtained through ta.atr. Then the price volatility over the recent 5 candlesticks is calculated. They are the main parameters used to determine the grid zone. The grid contains 4 price levels - bottom price + volatility, bottom price + 0.75 * volatility, and so on. Once the double bottom condition triggers, 4 limit orders with equal size will be placed according to this formula. The unfilled orders will be cancelled after several candlesticks.

In addition, the strategy also sets a stop loss price and a take profit price. The stop loss price is set to the lowest price of the double bottom minus one tick size, while the take profit price is set to the entry price plus 5 times the ATR. These two prices will update in real-time when the position size is greater than 0.

Strengths

The main advantages of this strategy are:

  1. Using double bottom to determine reversal improves accuracy and avoids false breaks.
  2. The DCA grid allows traders to gradually build positions at different prices, lowering cost basis.
  3. Dynamic ATR and volatility parameters adjust grid and profit range based on market changes.
  4. Auto stop loss effectively controls per trade loss amount.

Risk Analysis

Major risks:

  1. Price may break through support without reversal, triggering stop loss and losses. Widen stop loss distance for protection.
  2. Improper DCA grid setting may lead to low fill rate. Test different parameters to ensure fill rate.
  3. Frequent take profit with whipsaws in volatile market. Consider allowing wider take profit multiples.

Improvement Areas

Some areas that can be improved:

  1. Add trend judgment, only trade reversals along the major trend to avoid losses.
  2. Consider larger size for first entry and smaller sizes for grid entries to optimize capital usage efficiency.
  3. Test different parameter combinations to find optimum parameters. Or design dynamic adjusting logics.
  4. Integrate machine learning in advanced platform to achieve auto parameter optimization.

Summary

The Double Bottom Reversal Mean Reversion DCA Grid Strategy consolidates price pattern, indicator techniques and grid trading. It has accurate timing, controllable cost basis and drawdown protection. Still has room for optimization and is worth researching. Properly configured, can achieve good results in range-bound markets.

Source
Pine
/*backtest
start: 2024-02-12 00:00:00
end: 2024-02-19 00:00:00
period: 3m
basePeriod: 1m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © cherepanovvsb

//@version=5
Strategy parameters
Strategy parameters
Strategy Settings
ATR length for taking profit
ATR multiplier
Volatility length
Volatility multiplier
How many candles to wait after placing orders grid?
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)