### Dollar-Cost Averaging (DCA) Dynamic Triggers and Percentages

This section follows on from the information contained in the following locations. Please read them first.
Dollar-cost averaging (DCA) can be used dynamically to buy additional amounts of a particular coin, as it decreases in value, in order to lower your average combined purchase price for the coin.
Be aware that if your DCA buys go past all the levels you set or skip any numbered levels, DCA buys will use the default un-numbered settings.
##### Here’s how it works:

So if you have a coin and want to allow a DCA buy at -2%, your trigger setting should be -2.
Decimals are allowed as above; if you use less than a whole number one (1), format with a leading zero (i.e -0.50%)

The DEFAULT_DCA_buy_percentage_X setting determines the percentage amount of the DCA buy, measured by your existing coin holdings.

The following examples assume that all buying strategies are (true) and would otherwise allow the DCA buy.
You first need to setup your triggers.
You can set any number of buy_percentage amounts, but you only need to set as many as you are using with the `DEFAULT_DCA_max_buy_times` setting.

##### Buy the same number of coins each level

We will use the following as an example.

```DEFAULT_DCA_buy_trigger_1 = -1.0
When the coins BT% is <= -1.0% AND your DCA strategies are true, buy 100% of current coin holdings

When the coins BT%  is <= -1.75% AND your DCA strategies are true, buy 50% of current coin holdings

When the coins BT%  is <= -2.25% AND your DCA strategies are true, buy 33.33% of current coin holdings

When no numbered levels are present, DCA buys will use the DCA default un-numbered settings

If no default is set, and no level specific value is found, ProfitTrailer can not complete the buy.

In the above example:
Each trigger level is defined by the number at the end of the setting string (1, 2, 3, etc…)
1 is the first time it buys in DCA, 2 is the second, etc.
Absent a specific level, the default is used. If you skip level 2, it will use the default.
The percentages in the above example show what would happen if you wanted to buy the same amount as the initial buy, for 3 times.

Let’s say for example you have NEO and your initial pairs log buy is 10 NEO coins.

```the 1st DCA buys 100% of your current coin balance, 10 coins, adding 10 coins (100%), so now you own 20 coins.
the 2nd DCA buys 50% of your current coin balance, 20 coins, adding 10 coins (50%), so now you own 30 coins.
the 3rd DCA buys 33.33% of your current coin balance, 30 coins, adding 10 coins (33.33%), so now you own 40 coins.```

You can go on much longer buying roughly 10 coins each time. Remember that a partial fill will throw off the future calculations.

```DEFAULT_DCA_buy_percentage_1 = 100

##### Make it work like V1

Here is another example:

```DEFAULT_DCA_buy_trigger_1 = -1