Click here for Version 1 settings

After you first boot the bot and it loads the Initialization files you must make any future edits to this file via the Web GUI Config

These settings control the buying and selling behaviours for coins that are in the DCA log which is determined by the DEFAULT_DCA_enabled parameter in pairs.properties.


Video Guide

Coming Soon!


Dollar Cost Averaging

What is DCA? In short, it is a method for lowering the average price of a losing trade, making the recovery easier as the price needs only to recover to the new lower average buy price. For a long, more detailed explanation, read here. Using DCA increases your holdings and will result in significantly larger positions in each coin.


Flow of coins in DCA

A coin will enter the DCA Log immediately if DEFAULT_DCA_enabled = true or when the profit percentage reaches the set value of DEFAULT_DCA_enabled = -x. From here it may only return to the Pairs Log if profit % moves back above the set value and a DCA buy has not occurred.

What is new in v2.0 of the software is the ability to set a different purchase amount by percentage for each purchase. The setting DEFAULT_DCA_buy_percentage can be numbered to signal how much to buy on each round of buying. For example:

DEFAULT_DCA_buy_percentage_1 = 100
DEFAULT_DCA_buy_percentage_2 = 75
DEFAULT_DCA_buy_percentage_3 = 50

DEFAULT_DCA_buy_percentage_50 = 2

The DCA process will buy 100% of the current coin balance on the first buy, 75% on the second, and 50% on the third. You can set as many buy_percentage amounts as you like, but you only need to set as many as you are using with the DEFAULT_DCA_max_buy_times setting.

Click on a Section to jump to it


Legend

Coin Specific - click for more info Coin Specific - This parameter can be specified for individual coins.
Optional - click for more info Optional - This parameter is not required for the bot to run.
Caution - click for more info Caution - This parameter can result in instant losses if used carelessly.
DCA level specific - click for more info DCA level specific - This parameter can be configured per DCA level.


Example DCA.properties file

Click to view the documentation on each parameter.

#GENERAL SETTINGS#

DEFAULT_DCA_max_cost = 0.3
DEFAULT_DCA_max_buy_times = 3
DEFAULT_DCA_max_trading_pairs = 5
DCA_keep_balance = 0
DCA_keep_balance_percentage = 0

#BUY FILTER SETTINGS#

DEFAULT_DCA_min_buy_volume = 300
DEFAULT_DCA_max_buy_spread = 1.0
DEFAULT_DCA_min_orderbook_volume_percentage = 150

DEFAULT_DCA_rebuy_timeout = 15
DEFAULT_DCA_buy_min_change_percentage = 0
DEFAULT_DCA_buy_max_change_percentage = 0

DEFAULT_DCA_ignore_sell_only_mode = false

DEFAULT_DCA_sell_wall_orderbook_depth = 30
DEFAULT_DCA_sell_wall_diff_percentage = 500

#BUY SETTINGS#

DEFAULT_DCA_A_buy_strategy_label = STRATEGYNAME
DEFAULT_DCA_A_buy_strategy = EMAGAIN
DEFAULT_DCA_A_buy_value_1 = -0.50
DEFAULT_DCA_A_buy_value_limit = -2.5

DEFAULT_DCA_B_buy_strategy = RSI
DEFAULT_DCA_B_buy_value = 35
DEFAULT_DCA_B_buy_value_limit = 5

DEFAULT_DCA_buy_trigger = -2.5
SOM_DCA_buy_trigger = -3.5
DEFAULT_DCA_trailing_buy = 0.3
DEFAULT_DCA_trailing_buy_rebound_count = 1
DEFAULT_DCA_buy_percentage = 100
SOM_DCA_buy_percentage = 50

#SELL SETTINGS#

DEFAULT_DCA_A_sell_strategy = GAIN
DEFAULT_DCA_A_sell_value = 1

DEFAULT_DCA_A_sell_value_1 = 0.95
DEFAULT_DCA_A_sell_value_2 = 0.85
DEFAULT_DCA_A_sell_value_3 = 0.75

#DEFAULT_DCA_B_sell_strategy_label = STRATEGYNAME
#DEFAULT_DCA_B_sell_strategy = RSI
#DEFAULT_DCA_B_sell_value = 65
#DEFAULT_DCA_B_sell_value_limit = 90

DEFAULT_DCA_trailing_profit = 0.25
DEFAULT_DCA_trailing_profit_type = DEFAULT
DEFAULT_DCA_trailing_profit_rebound_count = 0

DCA_orderbook_profit_calculation = true
DEFAULT_DCA_max_profit = 0
DEFAULT_DCA_take_profit_percentage = 0.5
DEFAULT_DCA_take_profit_reset_percentage_move = 0.2
DEFAULT_DCA_take_profit_wait_time = 30

DEFAULT_DCA_pending_order_wait_time = 0
DEFAULT_DCA_pending_order_price_drop_trigger = 0
DEFAULT_DCA_combined_cancel_pending_trigger = 0
DEFAULT_DCA_combine_pending_orders = false

DEFAULT_DCA_stop_loss_trigger = 0
DEFAULT_DCA_stop_loss_timeout = 0
DCA_stop_before_complete = false
DEFAULT_DCA_panic_sell_enabled = false


GENERAL SETTINGS

DEFAULT_DCA_max_cost
DEFAULT_DCA_max_cost = 0

Coin Specific - click for more info

Valid Values: Decimal value equal to or greater than 0

Define the TOTAL amount (in the market currency) the bot is able to use to buy a single pair when using DCA. Set to 0 for no limit.


DEFAULT_DCA_max_buy_times
DEFAULT_DCA_max_buy_times = 0

Coin Specific - click for more infoOptional - click for more info

Valid Values: Integer values equal to or greater than 0

Define maximum number of times a coin is allowed to be bought again using your DCA strategy. Set to 0 for no limit. Use this setting carefully!


DCA_max_trading_pairs
DCA_max_trading_pairs = 10

Optional - click for more info

Valid values: Integer values greater than and equal to 0.

Set the maximum number of coins that are permitted to DCA at any given time.

Note:

  1. If not set (including missing from the file completely) then there is no limit and all coins can be DCA'd.
  2. If you lower this limit below the number of coins you already have in DCA, ProfitTrailer will randomly select the ones that DCA.
  3. Excluded coins will stay in the DCA Log but display MAX DCA PAIRS.


TOP


DCA_keep_balance
DCA_keep_balance = 0.5

Optional - click for more info

Valid Values: Decimal values equal to or greater than 0.

Do not DCA a coin if the purchase will take your balance below the specified amount. In the example above, if we are trading BTC, the bot will keep at least 0.5BTC in your account.

Note:

  • This only stops ProfitTrailer making DCA purchases. There is an equivalent setting in pairs.properties for initial purchases.

DCA_keep_balance_percentage
DCA_keep_balance_percentage = 60

Optional - click for more info

Valid Values: Decimal values equal to or greater than 0.

Do not buy DCA a coin if the purchase will take your balance below the specified amount expressed as a % of your TCV (Total Current Value).

Example: To always leave 60% of my account untouched, set the value to 60.

Notes:

  1. This property only works if DCA_keep_balance = 0
  2. This only stops ProfitTrailer making DCA purchases. There is an equivalent setting in pairs.properties for initial purchases.

TOP


FILTERING COINS

DEFAULT_DCA_min_buy_volume
DEFAULT_DCA_min_buy_volume = 500

Coin Specific - click for more infoOptional - click for more info

Valid Values: Decimal value greater than or equal to 0.

Ignore coins with a 24 hour volume below the specified amount. Volume is measured in units of your base currency. If you are trading BTC, 500 = 500 BTC in 24 hour volume. If USDT, 500 = $500 (you may need to adjust this value according to volume of the market on your exchange.

It is more risky to trade low volume coins because it is more difficult to sell them quickly or buy them quickly due to the lower available trading partners, which can lead to negative price impacts.


DEFAULT_DCA_max_buy_spread
DEFAULT_DCA_max_buy_spread = 2

Coin Specific - click for more infoOptional - click for more info

Valid Values: decimal number greater than or equal to 0.

Do not DCA coins where the current spread % between lowest ask and highest bid orders exceeds the set value. If spread is too big, most likely there was a coin dump/pump and you are buying too high. A value of 2 is mildly conservative. 1 is more conservative. 3 would be more aggressive.


DEFAULT_DCA_min_orderbook_volume_percentage
DEFAULT_DCA_min_orderbook_volume_percentage = 150

Coin Specific - click for more infoOptional - click for more info

Valid Values: Decimal value equal to or greater than 0.

Only place a buy order if there's enough volume in order book to fill the order. This helps against partial buys.

100 means there should be at least 100% of the amount we want to buy in the orderbook. 150 means there should be 150% of the amount we want to buy in the orderbook to issue the buy order. So if you need 5 coins at price A, using 150, the orderbook should have at least 7.5 coins at price A.

Note:

  1. Avoid using less than 100 unless your DEFAULT_initial_cost is well above dust levels.

DEFAULT_DCA_rebuy_timeout
DEFAULT_DCA_rebuy_timeout = 10

Coin Specific - click for more infoOptional - click for more info

Valid Values: Integers greater than or equal to 0

Set the amount of minutes that the bot is not allowed to buy a coin (initial or DCA buy) after it was DCA'd/sold.


DEFAULT_DCA_buy_min_change_percentage
DEFAULT_DCA_buy_min_change_percentage = 0

Coin Specific - click for more infoOptional - click for more info

Valid Values: Decimal Values

Do not DCA a coin if the 24 hour percentage change is less than the set value.

Example:
DEFAULT_DCA_buy_min_change_percentage = 3.5 –> Only buy a coin if the 24 hour change is greater than 3.5%
DEFAULT_DCA_buy_min_change_percentage = -2 –> Only buy a coin if the 24 hour change is greater than -2%


DEFAULT_DCA_buy_max_change_percentage
DEFAULT_DCA_buy_max_change_percentage = 0

Coin Specific - click for more infoOptional - click for more info

Valid Values: Decimal Values

Do not DCA a coin if the 24 hour percentage change is greater than the set value.

Example:
DEFAULT_DCA_buy_max_change_percentage = 8 –> Only buy a coin if the 24 hour change is less than 8%
DEFAULT_DCA_buy_max_change_percentage = -1 –> Only buy a coin if the 24 hour change is less than -1%


DEFAULT_DCA_ignore_sell_only_mode
DEFAULT_DCA_ignore_sell_only_mode = false

Coin Specific - click for more infoOptional - click for more info

Valid Values: true or false

Set this value to true to allow DCA to continue buying even if the bot is in Sell Only Mode. This is often used when you want the bot to stop buying new coins, but continue to DCA and attempt to get rid of existing coins.

TOP


DEFAULT_DCA_sell_wall_orderbook_depth
DEFAULT_DCA_sell_wall_orderbook_depth = 40

Coin Specific - click for more infoOptional - click for more info

Valid Values: Integer values greater than 0

Set the depth of the orderbook to look back and identify the largest sell order. If you set 30, ProfitTrailer will look at the top 30 orders. ProfitTrailer will then calculate the average the top 30 orders (excluding the largest one) and determine if the difference from the largest order exceeds your DEFAULT_DCA_sell_wall_diff_percentage setting. If it exceeds the allowed difference the coin will not be purchased.

Note:


TOP


DEFAULT_DCA_sell_wall_diff_percentage
DEFAULT_DCA_sell_wall_diff_percentage = 600

Coin Specific - click for more infoOptional - click for more info

Valid Values: Decimal values greater than 100

Set the maximum difference allowed from the average order size within the DEFAULT_DCA_sell_wall_orderbook_depth. If this difference is exceeded then the coin will not be bought.

Example:
DEFAULT_DCA_sell_wall_orderbook_depth = 20
DEFAULT_DCA_sell_wall_diff_percentage = 600

Average of the bottom 20 sell orders (excluding largest order) is e.g 0.05 BTC in size. If the largest order is 600% or 6 times the average (e.g 0.3 BTC) then this will be identified as a sell wall.

Note:


TOP

BUY SETTINGS

More than one buy strategy can be used at the same time. To define more than one buy strategy replace A with B, C, D or E. e.g DEFAULT_B_buy_strategy. ALL relevant B parameters will also be required.


DEFAULT_A_buy_strategy_label
DEFAULT_A_buy_strategy_label = RSI900

Coin Specific - click for more infoOptional - click for more info

Valid Values: Any alphanumeric name you choose.

Set a unique label for your strategy in order to facilitate the same indicator being used multiple times.

Example:
in indicators.properties we define RSI and RSI900 values

RSI_candle_period = 900
RSI_length = 35

RSI900_candle_period = 900
RSI900_length = 35

In dca.properties we can now use either of these individually or both at once.

DEFAULT_DCA_A_buy_strategy = RSI
DEFAULT_DCA_A_buy_value = 37

DEFAULT_DCA_B_buy_strategy_label = RSI900
DEFAULT_DCA_B_buy_strategy = RSI
DEFAULT_DCA_B_buy_value = 45

Note:

  1. The label can be anything alphanumeric. 24NUGGETSFOR995 will work


TOP


DEFAULT_DCA_A_buy_strategy
DEFAULT_DCA_A_buy_strategy = LOWBB

Coin Specific - click for more info

Valid Values: LOWBB, HIGHBB, EMAGAIN, EMASPREAD, EMACROSS, SMAGAIN, SMASPREAD, SMACROSS, LOSS, STOCH, STOCHRSI, RSI, MACD, BBWIDTH, OBV, ANDERSON or DISABLED (See the Buy and Sell Strategies page for more info on each setting.)

Define a strategy to be used when buying more of a coin.

Notes:

  1. If using multiple strategies the logic requires all to be true. i.e A AND B AND C, not A or B or C.
  2. The designators used do not need to be in order. e.g B and D can be used instead of A and B.

DEFAULT_DCA_A_buy_value
DEFAULT_DCA_A_buy_value = -20

Coin Specific - click for more infoDCA level specific - click for more info

Valid Values: Positive or negative decimal values depending on the Buy Strategy

The target value that is required for the corresponding buy strategy to be considered true.
Example: for LOWBB, if set to 0 (0%), a buy signal is generated when the price of the coin is equal to or lower than the LOWBB line. If it were set to -5 (-5%), the signal would be generated when the price is 5% below LOWBB.

Remember

Notes:

  1. The unnumbered default parameter will be used if no DCA level specific alternative is configured.
  2. If you are using trailing, the bot will follow the price down further and will not buy immediately. See DEFAULT_DCA_trailing_buy below.

DEFAULT_DCA_A_buy_value_limit
DEFAULT_DCA_A_buy_value_limit = 0

Coin Specific - click for more infoOptional - click for more infoDCA level specific - click for more info

Valid Values: positive or negative decimal values depending on the Buy Strategy

This value sets the outer limit of a “buy zone” with the buy value as the other limit. Do not include this parameter if no limit is desired.

Notes:

  1. The buy_value_limit needs to be further into the buy zone that the buy value otherwise a buy cannot take place.
  2. Trailing will not work beyond the limit.
  3. If you for any reason would want the value “0” as a limit you would need to set a value in close proximity (like 0.01 or -0.01) depending on the buy strategy (RSI for example only allows for positive values).
  4. The unnumbered default parameter will be used if no DCA level specific alternative is configured.

Example: EMASPREAD
DEFAULT_DCA_A_buy_value = 2
DEFAULT_DCA_A_buy_value_limit = 5
The bot will only buy if SPREAD is between 2% and 5%

Example: EMASPREAD
DEFAULT_DCA_A_buy_value = 0.55
DEFAULT_DCA_A_buy_value_limit = 2.5
The bot will only buy if EMASPREAD is between 0.5% and 2.5%

Example: HIGHBB
DEFAULT_DCA_A_buy_value = -20
DEFAULT_DCA_A_buy_value_limit = -45
The bot will only buy if the price is between HIGHBB -20 and HIGHBB -45

Example: HIGHBB
DEFAULT_DCA_A_buy_value = 15
DEFAULT_DCA_A_buy_value_limit = -50
The bot will only buy if the price is between HIGHBB 15 and HIGHBB -50

Example: RSI
DEFAULT_DCA_A_buy_value = 30
DEFAULT_DCA_A_buy_value_limit = 15
The bot will only buy if RSI is between 15 and 30


DEFAULT_DCA_A_buy_on_first_signal
DEFAULT_DCA_A_buy_on_first_signal = false

Coin Specific - click for more infoOptional - click for more info

Valid Values: true or false.

In normal buying a strategy can remain true for a long time even with a small buy zone created using a tight buy_value_limit. To prevent this buy_on_first_signal can be used to switch a strategy back to false a few seconds after it enters the buy zone and becomes true, giving a limited buy opportunity.

Default value is false. Set to true to only permit the bot to buy as soon as a strategy becomes true. The strategy will change to true after crossing into the buy zone. Upon the next refresh of the coin, the strategy will become false again. It will not become true again until it leaves the buy zone and then re-enters it.

In practice, the strategy/strategies on which you use buy_on_first_signal need to be the last to become true as it will only be true momentarily.

If this is used with multiple strategies, then all strategies need to become true in the same refresh.

Example:
DEFAULT_DCA_A_buy_strategy = LOWBB
DEFAULT_DCA_A_buy_value = 15
DEFAULT_DCA_A_buy_on_first_signal = true

DEFAULT_DCA_B_buy_strategy = EMAGAIN
DEFAULT_DCA_B_buy_value = -0.55
The bot will attempt to buy when the price is less than or equal to the line 0.55% below the lowest EMA line and it crosses below the LOWBB 15 value. But, even if LOWBB is still below 15 on the next check, the LOWBB indicator will be set to false. It will need to rise above 15 and then re-enter the buy zone before it is set to true again.

Note:

  1. You cannot use DEFAULT_DCA_trailing_buy with this parameter as the two will prevent the other from working.

—-

DEFAULT_DCA_buy_trigger
DEFAULT_DCA_buy_trigger = -3.5

OR

DEFAULT_DCA_buy_trigger = 0.88

Coin Specific - click for more infoDCA level specific - click for more info

Valid Values: Any positive or negative decimal values.

Set the loss % required before a DCA buy can take place. All configured buy strategies must be true and you must have lost at least this amount from your average bought price.

Note:

  1. The unnumbered default parameter will be used if no DCA level specific alternative is configured.

SOM_DCA_buy_trigger
SOM_DCA_buy_trigger = -5.5

Optional - click for more infoDCA level specific - click for more info

Valid Values: Decimal values equal to or less than 0.

Set the loss % required before a DCA buy can take place when SOM is on. All configured buy strategies must be true and you must have lost at least this amount from your average bought price.

Notes:

  1. The unnumbered default parameter will be used if no DCA level specific alternative is configured.
  2. If you have DCA level specific buy triggers you need to set SOM triggers for each level also.

DEFAULT_DCA_trailing_buy
DEFAULT_DCA_trailing_buy = 0.3

Coin Specific - click for more infoOptional - click for more info

Valid Values: Decimal values equal to or greater than 0.

Once all buy strategies are true, the bot will make note of the current ask price and begin watching. The price needs to fall and then rise by at least the percentage specified in order for a buy to be attempted. This will try to catch the price at its lowest point before trailing back up and buying.


DEFAULT_DCA_trailing_buy_rebound_count
DEFAULT_DCA_trailing_buy_rebound_count = 1

Coin Specific - click for more infoOptional - click for more info

Valid values: Integer values equal to or greater than 0.

Set the number of times you want to see the price fluctuate into and out of a good trail before making the buy.

A normal trail will occur as the price rises. If the trailing_buy amount is reached ProfitTrailer notes the current price as the new lowest price reached. The price must now go lower than the noted price to complete the first rebound. Normal trailing then occurs again and the process will repeat itself as many times as set to do so.

More detail in on how Trailing works here in A Trailing Story.


DEFAULT_DCA_buy_percentage
DEFAULT_DCA_buy_percentage = 100

Coin Specific - click for more infoOptional - click for more infoDCA level specific - click for more info

Valid Values: Decimal values equal to or greater than 0.

Customise the percentage of coins purchased when making a DCA buy in relation to overall coins owned. The set value is the % of the current holding to be purchased at the next DCA level. Set to 100 for the equivalent of version 1.x doubling down each level.

Note:

  1. The unnumbered default parameter will be used if no DCA level specific alternative is configured.

SOM_DCA_buy_percentage
SOM_DCA_buy_percentage = 100

Optional - click for more infoDCA level specific - click for more info

Valid values: Integer values greater than 0

Set the buy percentage to be used instead of DEFAULT_DCA_buy_percentage when sell only mode (SOM) is on. The set value is the % of the current holding to be purchased at the next DCA level.

Note:

  1. The unnumbered default parameter will be used if no DCA level specific alternative is configured.
  2. If you have DCA level specific buy triggers you need to set SOM triggers for each level also.


TOP


SELL SETTINGS

More than one sell strategy can be used at the same time. To define more than one sell strategy replace A with B, C, D or E. e.g DEFAULT_B_sell_strategy. ALL relevant B parameters will also be required.

It is required that GAIN is used as one of the sell strategies. GAIN determines the minimum profit percentage before the bot can sell the coin.


DEFAULT_DCA_A_sell_strategy_label
DEFAULT_DCA_A_sell_strategy_label = RSI900

Coin Specific - click for more infoOptional - click for more info

Valid Values: Any alphanumeric name you choose.

Set a unique label for your strategy in order to facilitate the same indicators being used multiple times.

For an example of usage see DEFAULT_DCA_A_buy_strategy_label

Note:

  1. The label can be anything alphanumeric. WELOVESGTBATTEN will work

DEFAULT_DCA_A_sell_strategy
DEFAULT_DCA_A_sell_strategy = GAIN

Coin Specific - click for more info

Valid Values: GAIN, HIGHBB, EMAGAIN, EMASPREAD, EMACROSS, SMAGAIN, SMASPREAD, SMACROSS, STOCH, STOCHRSI, RSI, MACD, BBWIDTH, OBV or DISABLED (See the Buy and Sell Strategies page for more info on each setting.)

Define a strategy used to sell coins.

Notes:

  1. If using multiple strategies the logic requires all to be true. i.e A AND B AND C, not A or B or C.
  2. The designators used do not need to be in order. e.g B and D can be used instead of A and B.

DEFAULT_DCA_A_sell_value
DEFAULT_DCA_A_sell_value = 2

Coin Specific - click for more infoDCA level specific - click for more info

Valid Values: positive or negative decimal numbers depending on the Sell Strategy

The target value that triggers the sell process.

Notes:

  1. The unnumbered default parameter will be used if no DCA level specific alternative is configured.
  2. If you are using trailing the bot will follow the price up further and therefore may not sell immediately. See DEFAULT_trailing_profit below.

DEFAULT_DCA_A_sell_value_limit
DEFAULT_DCA_A_sell_value_limit = 

Coin Specific - click for more infoOptional - click for more info

Valid values: positive or negative decimal numbers depending on the Sell Strategy

This value sets the outer limit of a “sell zone” with the sell value as the other limit. Do not include this parameter if no limit is desired.

NOTE: The set sell_value_limit needs to be further into the sell zone than the buy value otherwise a sell cannot take place. Trailing will not work beyond the limit.

Example: EMASPREAD
DEFAULT_DCA_A_sell_value = -1.5
DEFAULT_DCA_A_sell_value_limit = -2.5
The bot will only sell if EMASPREAD is between -1.5% and -2.5%

Example: EMASPREAD
DEFAULT_DCA_A_sell_value = 0.55
DEFAULT_DCA_A_sell_value_limit = 2.5
The bot will only sell if EMASPREAD is between 0.5% and 2.5%

Example: LOWBB
DEFAULT_DCA_A_sell_value = -20
DEFAULT_DCA_A_sell_value_limit = -45
The bot will only buy if the price is between LOWBB -20 and LOWBB -45

Example: LOWBB
DEFAULT_DCA_A_sell_value = 15
DEFAULT_DCA_A_sell_value_limit = -50
The bot will only sell if the price is between LOWBB 15 and LOWBB -50

Example: RSI
DEFAULT_DCA_A_sell_value = 30
DEFAULT_DCA_A_sell_value_limit = 15
The bot will only sell if RSI is between 15 and 30


DEFAULT_DCA_trailing_profit
DEFAULT_DCA_trailing_profit = 0

Coin Specific - click for more infoOptional - click for more info

Valid Values: Decimal number greater than or equal to zero.

Once all sell strategies are true, the bot will make note of the current bid price and begin watching. The price needs to rise and then fall by at least the percentage specified in order for a sell to be attempted. In short, tries to trail the profit upwards to gain better profits. More detail in on how Trailing works here in A Trailing Story.

Note: DEFAULT_take_profit and DEFAULT_max_profit can trigger a sell without trailing.


DEFAULT_DCA_trailing_profit_type
DEFAULT_DCA_trailing_profit_type = GROW

Coin Specific - click for more infoOptional - click for more info

Valid values: DEFAULT, GROW, SHRINK

Set the trailing_profit to grow or shrink when the profit increases. The altered trailing profit is calculated based on the highest profit percentage reached and will remain in use until the coin sells or the trailing ends without a sale.

The formula used is:

Grow

multiplier = trailingValue / sellValue;
newTrailingValue = Math.abs(multiplier * highestTrailingValue);

Shrink

multiplier = trailingValue * sellValue;
newtrailingValue = Math.abs(multiplier / highestTrailingValue);

Note

  1. Using DEFAULT will not alter the trailing_profit value at all.

DEFAULT_DCA_trailing_profit_rebound_count
DEFAULT_DCA_trailing_profit_rebound_count = 1

Coin Specific - click for more infoOptional - click for more info

Valid values: Integer values equal to or greater than 0.

Set the number of times you want to see the price fluctuate into and out of a good trail before making the buy.

A normal trail will occur as the price falls. If the trailing_profit amount is reached ProfitTrailer notes the current price as the new highest price. The price must now go higher than the noted price to complete the first rebound. Normal trailing then occurs again and the process will repeat itself as many times as set to do so.

More detail in on how Trailing works here in A Trailing Story.


DCA_orderbook_profit_calculation
DCA_orderbook_profit_calculation = true

Optional - click for more info

Valid Values: true or false

Normally the bot only looks at the highest bid order to calculate profit percentage and observe orderbook volume. If set to true, ProfitTrailer will look at the highest bid order with enough volume rather than just the highest bid order. This gives you a more realistic representation of your position and allows the bot to make a sale it otherwise not have even attempted.

Both percentages will be displayed in the Profit % column. The volume corrected profit % is displayed beneath the standard profit % only when profit is greater than 0.


DEFAULT_DCA_max_profit
DEFAULT_DCA_max_profit = 15

Coin Specific - click for more infoOptional - click for more info

Valid Values: Decimal number greater than or equal to zero.

Instruct the bot to sell the coin if the profit reaches the set percentage regardless of all sell strategies being true. Set to 0 to disable


DEFAULT_DCA_take_profit_percentage
DEFAULT_DCA_take_profit_percentage = 0 

Coin Specific - click for more infoOptional - click for more info

Valid Values: Decimal values greater than or equal to 0.

Set a profit percentage above which the bot will attempt to sell the coin if the price has remained within DEFAULT_DCA_take_profit_reset_percentage_move for DEFAULT_DCA_take_profit_wait_time minutes.

Examples:
DEFAULT_DCA_take_profit_percentage = 0.5
DEFAULT_DCA_take_profit_reset_percentage_move = 0 (or the parameter is deleted/commented out)
DEFAULT_DCA_take_profit_wait_time = 2
If the Profit is greater than 0.5% and the price does not change for 2 minutes, regardless of sell strategies being true, the bot will attempt to sell the coin.

DEFAULT_DCA_take_profit_percentage = 0.333
DEFAULT_DCA_take_profit_reset_percentage_move = 0.2
DEFAULT_DCA_take_profit_wait_time = 20
If the Profit is greater than 0.333% and the price does not deviate by more than 0.2% (up or down from the price at the start of the wait_time) for 20 minutes, regardless of sell strategies being true, the bot will attempt to sell the coin.


DEFAULT_DCA_take_profit_reset_percentage_move
DEFAULT_DCA_take_profit_reset_percentage_move = 0

Coin Specific - click for more infoOptional - click for more info

Valid Values: Decimal values greater than or equal to 0.

Set the % of price deviation allowed from the DEFAULT_DCA_take_profit_percentage before resetting the DEFAULT_DCA_take_profit_wait_time. If the deviation is exceeded the new price is monitored for the deviation and the wait_time starts again. Set to 0 to reset the wait_time every time the price changes.


DEFAULT_DCA_take_profit_wait_time
DEFAULT_DCA_take_profit_wait_time = 0

Coin Specific - click for more infoOptional - click for more info

Valid Values: Integer values greater than or equal to 0.

Set the number of minutes to wait while the profit percentage is greater than DEFAULT_DCA_take_profit_percentage before attempting to sell.


DEFAULT_DCA_pending_order_wait_time
DEFAULT_DCA_pending_order_wait_time = 0

Coin Specific - click for more infoOptional - click for more info

Valid Values: Integer values greater or equal to 0

If x amount of time in minutes has passed since we bought a coin and we have not sold it, create limit sell order for that pair at a price equivalent to your GAIN strategy sell_value. Set to 0 to disable. This places the coin in the pending log and enables the bot to buy this pair again separately if suitable while not affecting the existing bag.

The bot will report the Profit % and the Comb Profit % in the Pending Log. Combined Profit takes the pending order and any additional coins into account and gives the overall position for that pair.

Note:

  1. Coins that sell from a pending order are not recorded in the sales log.
  2. DEFAULT_combined_cancel_pending_trigger in pairs.properties can be used to attempt to cancel pending sales and return them to the pairs/dca log if combined profit reaches the set level.

DEFAULT_DCA_pending_order_price_drop_trigger
DEFAULT_DCA_pending_order_price_drop_trigger = 10

Coin Specific - click for more infoOptional - click for more info

Valid values: Positive or negative decimal values. (1 and -1 are equal.)

If the price has dropped x% since we bought a coin and we have not sold it (and it's in the dca log), create limit sell order for that pair at a price equivalent to your GAIN strategy sell_value. This places the coin in the pending log and enables the bot to buy this pair again separately if suitable while not affecting the existing bag. Set to 0 to disable.

The bot will report the Profit % and the Combined Profit % in the Pending Log. Combined Profit takes the pending order and any additional amounts of the same coin into account and gives the overall position for that pair.

Notes:

  1. Coins that sell from a pending order are not recorded in the sales log.
  2. DEFAULT_DCA_combined_cancel_pending_trigger can be used to attempt to cancel pending sales and return them to the pairs/dca log if combined profit reaches the set level.
DEFAULT_DCA_combined_cancel_pending_trigger
DEFAULT_DCA_combined_cancel_pending_trigger = 0

Coin Specific - click for more infoOptional - click for more info

Valid values: Decimal value greater or equal to 0.

Cancel pending orders for a coin if the combined profit reaches specified amount.


DEFAULT_DCA_combine_pending_orders
DEFAULT_DCA_combine_pending_orders = false

Coin Specific - click for more infoOptional - click for more info

Valid Values: true/false

Choose to combine pending orders for the same coin into one item in the pending log or keep them as separate items.

Default value is true if not set.


DEFAULT_DCA_stop_loss_trigger
DEFAULT_DCA_stop_loss_trigger = -10

Coin Specific - click for more infoOptional - click for more infoCaution - click for more info

Valid Values: Decimal values less than or equal to 0

Set the value that will trigger a stop loss order. If the value of a coin drops below the set percentage it will be automatically sold for a loss.

Notes:

  1. Stop loss positive values are automatically converted to negative value.
  2. Stop loss will only occur once DCA is complete unless DCA_stop_before_complete = true

DEFAULT_DCA_stop_loss_timeout
DEFAULT_DCA_stop_loss_timeout = 5

Coin Specific - click for more infoOptional - click for more info

Valid Values: Integers greater than or equal to 0

Set the amount of minutes that the bot is not allowed to buy a coin after it was sold by stop loss trigger.


DCA_stop_before_complete
DCA_stop_before_complete = false

Optional - click for more info

Valid Values: true or false

If set to true, Stoploss in DCA will behave the same as in pairs. once the set percentage is reached, the coin will sell as a stoploss.

If set to false, stoploss will not occur until DCA is complete.

What is complete?

  1. max_buy_times is reached OR
  2. max_cost is reached OR
  3. there is not enough balance to keep using DCA.


TOP


DEFAULT_DCA_panic_sell_enabled
DEFAULT_DCA_panic_sell_enabled = false

Coin Specific - click for more infoOptional - click for more infoCaution - click for more info

Valid values: true or false

Set to “true” to sell all of your coins in the DCA Log IMMEDIATELY for current market prices. It does what it says, and does it now. Use with caution.

Note:

  1. Coins in the Pairs Log and in the Pending Log will not be sold.


TOP


Example Usage



DEFAULT_DCA_A_buy_strategy = ANDERSON
 
DEFAULT_DCA_B_buy_strategy = LOWBB
DEFAULT_DCA_B_buy_value = 30
DEFAULT_DCA_B_buy_value_limit = 0
 
DEFAULT_DCA_trailing_buy = 0.3
 
DEFAULT_DCA_buy_percentage_1 = 200
DEFAULT_DCA_buy_trigger_1 = -4
DEFAULT_DCA_buy_percentage_2 = 100
DEFAULT_DCA_buy_trigger_2 = -8
DEFAULT_DCA_buy_percentage_3 = 50
DEFAULT_DCA_buy_trigger_3 = -10.5

DCA a coin if the price is below LOWBB 30 and difference between my average price and the lowest sell order on the exchange is at least the buy_trigger %. Also the price must have trailed up buy 0.3% from the lowest point after both strategies were true. Mind that DEFAULT_DCA_B_buy_value_limit = 0 does not set a limit at 0 but disables the limit.

Depending how many times DCA has occurred the buy percentage is modified as is the target % drop for each level.


DEFAULT_DCA_A_buy_strategy = LOWBB
DEFAULT_DCA_A_buy_value = -20
DEFAULT_DCA_buy_trigger = -2

DCA a coin if difference between my average price and the lowest sell order on the exchange is at least 2% and the lowest sell order is below LOWBB -20.


DEFAULT_DCA_A_buy_strategy = RSI
DEFAULT_DCA_A_buy_value = 30
DEFAULT_DCA_A_buy_value_limit = 0
 
DEFAULT_DCA_B_buy_strategy = EMAGAIN
DEFAULT_DCA_B_buy_value = 0.05
DEFAULT_DCA_B_buy_value_limit = 1.5
 
DEFAULT_DCA_trailing_buy = 0.3
 
DEFAULT_DCA_buy_percentage = 100
DEFAULT_DCA_buy_trigger_1 = -3
DEFAULT_DCA_buy_trigger_2 = -5
DEFAULT_DCA_buy_trigger_3 = -6.65

DCA a coin if RSI is under 30, EMAGAIN is between 0.05% and 1.5% and the difference between my average price and the lowest sell order on the exchange is at least the buy_trigger %. Also the price must have trailed up buy 0.3% from the lowest point after both strategies were true. Mind that DEFAULT_DCA_A_buy_value_limit = 0 does not set a limit at “0” but disables the limit. In this usecase (RSI) “no limit” has the same effect as a limit of 0 would have.

Depending how many times DCA has occurred the buy trigger is modified.


DEFAULT_DCA_A_sell_strategy = GAIN
DEFAULT_DCA_A_sell_value = 0.9

Attempt to sell a coin if we have at least 0.9% profit.


DEFAULT_DCA_A_sell_strategy = GAIN
DEFAULT_DCA_A_sell_value_1 = 0.9
DEFAULT_DCA_A_sell_value_2 = 0.8
DEFAULT_DCA_A_sell_value_3 = 0.75
 
DEFAULT_DCA_B_sell_strategy = HIGHBB
DEFAULT_DCA_B_sell_value = 50

Attempt to sell a coin if we have at least X% profit and the price is greater than HIGHBB 50.


TOP

Enter your comment:
 
  • dca.properties.txt
  • Last modified: 2 days ago
  • by sgtbatten