Type/to search

Dynamic Position Building Strategy

Common strategy
Created: 2024-02-20 14:16:30
Last modified: 2 years ago
1
Follow
1802
Followers

img

Overview

The main idea of this strategy is to dynamically build a position based on system signals in a bull market to control risks and obtain a lower average entry price.

Strategy Logic

The strategy first sets the starting capital and DCA percentage. On the close of every bar, it calculates an adjusted percentage based on the price change. If the price goes up, it lowers the percentage. If the price drops, it increases the percentage. This allows adding to the position at lower prices. It then calculates order size based on the adjusted percentage and remaining capital. On every bar close, it places orders to build the position until the starting capital is used up.

Thus, it can control risks and get a lower average entry price during fluctuating price action. Meanwhile, it tracks the average entry price and median price to judge the current entry situation.

Advantage Analysis

The strategy has the following advantages:

  1. It can dynamically scale in the position, increasing allocation on dips and decreasing allocation on rallies to control risks.

  2. It gets a lower average entry price compared to the median price, allowing more profit potential.

  3. It fits ranging bull markets with volatility for better risk-reward ratios.

  4. It enables presetting starting capital and DCA percentage to control position sizing risk.

  5. It provides statistics on average entry price and median price for clear judgment of the entry quality.

Risk Analysis

There are also some risks:

  1. In plunging markets, it will keep adding to the position, leading to heavy losses. A stop loss can restrict the risk.

  2. If the price surges rapidly, the scaling in will diminish, possibly missing much of the rally. Other LSI signals are then needed.

  3. Improper parameter configuration also poses dangers. Excessive starting capital and high DCA percentage will magnify losses.

Optimization Directions

Some ways to optimize the strategy:

  1. Add stop loss logic to cease scaling in on heavy selloffs.

  2. Dynamically adapt DCA percentage based on volatility or other metrics.

  3. Incorporate machine learning models to forecast prices and guide scaling decisions.

  4. Combine other indicators to identify market structure shifts for scaling exit points.

  5. Add capital management rules to dynamically size orders based on account values.

Conclusion

This is a very practical dynamic position scaling strategy. It flexibly adjusts the position size based on price fluctuations to achieve good average entries in bull markets, while restricting risk via configurable parameters. Combining it with other indicators or models can further improve its performance. It suits investors seeking long-term gains.

Source
Pine
/*backtest
start: 2024-01-20 00:00:00
end: 2024-02-19 00:00:00
period: 1h
basePeriod: 15m
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/
// © RWCS_LTD

//@version=5
Strategy parameters
Strategy parameters
Starting Capital
DCA Allocation Percentage
Backtest Time Period
Start Date
Table Design
Table size
Comment
All comments (0)
No data
No data
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)