Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
dca.properties [2018/06/15 05:30]
sgtbatten
dca.properties [2018/08/19 05:01] (current)
sgtbatten [SELL SETTINGS]
Line 1: Line 1:
-=====dca.properties ​V2.0=====+=====dca.properties ​2.1=====
 [[dca.properties1|Click here for Version 1 settings]] [[dca.properties1|Click here for Version 1 settings]]
  
Line 18: Line 18:
  
 === Flow of coins in DCA === === Flow of coins in DCA ===
-A coin will enter the [[web_interface_guide#​DCA Log]] immediately if ''​[[dca.properties#​DEFAULT_DCA_enabled]] = true''​ or when the profit percentage reaches the set value of ''​[[dca.properties#​DEFAULT_DCA_enabled]] = -x''​. From here it may only return to the [[web_interface_guide#​Pairs Log]] if profit % moves back above the set value and a DCA buy has not occurred. ​+A coin will enter the [[web_interface_guide#​DCA Log]] immediately if ''​[[pairs.properties#​DEFAULT_DCA_enabled]] = true''​ or when the profit percentage reaches the set value of ''​[[pairs.properties#​DEFAULT_DCA_enabled]] = -x''​. From here it may only return to the [[web_interface_guide#​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: ​ 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: ​
Line 53: Line 53:
 [[dca.properties#​DEFAULT_DCA_max_cost]] = 0.3\\ [[dca.properties#​DEFAULT_DCA_max_cost]] = 0.3\\
 [[dca.properties#​DEFAULT_DCA_max_buy_times]] = 3\\ [[dca.properties#​DEFAULT_DCA_max_buy_times]] = 3\\
 +[[dca.properties#​DEFAULT_DCA_max_trading_pairs]] = 5\\
 [[dca.properties#​DCA_keep_balance]] = 0\\ [[dca.properties#​DCA_keep_balance]] = 0\\
 [[dca.properties#​DCA_keep_balance_percentage]] = 0\\ [[dca.properties#​DCA_keep_balance_percentage]] = 0\\
Line 67: Line 68:
  
 [[dca.properties#​DEFAULT_DCA_ignore_sell_only_mode]] = false\\ [[dca.properties#​DEFAULT_DCA_ignore_sell_only_mode]] = false\\
 +
 +[[dca.properties#​DEFAULT_DCA_sell_wall_orderbook_depth]] = 30\\
 +[[dca.properties#​DEFAULT_DCA_sell_wall_diff_percentage]] = 500\\
  
  
 <​file>#​BUY SETTINGS#</​file>​ <​file>#​BUY SETTINGS#</​file>​
  
 +[[dca.properties#​DEFAULT_DCA_A_buy_strategy_label]] = STRATEGYNAME \\
 [[dca.properties#​buy_settings|DEFAULT_DCA_A_buy_strategy]] = EMAGAIN\\ [[dca.properties#​buy_settings|DEFAULT_DCA_A_buy_strategy]] = EMAGAIN\\
 [[dca.properties#​DEFAULT_DCA_A_buy_value|DEFAULT_DCA_A_buy_value_1]] = -0.50\\ [[dca.properties#​DEFAULT_DCA_A_buy_value|DEFAULT_DCA_A_buy_value_1]] = -0.50\\
Line 82: Line 87:
 [[dca.properties#​SOM_DCA_buy_trigger]] = -3.5\\ [[dca.properties#​SOM_DCA_buy_trigger]] = -3.5\\
 [[dca.properties#​DEFAULT_DCA_trailing_buy]] = 0.3\\ [[dca.properties#​DEFAULT_DCA_trailing_buy]] = 0.3\\
 +[[dca.properties#​DEFAULT_DCA_trailing_buy_rebound_count]] = 1\\
 [[dca.properties#​DEFAULT_DCA_buy_percentage]] = 100\\ [[dca.properties#​DEFAULT_DCA_buy_percentage]] = 100\\
 +[[dca.properties#​SOM_DCA_buy_percentage]] = 50 \\
  
  
Line 89: Line 96:
 [[dca.properties#​sell_settings|DEFAULT_DCA_A_sell_strategy]] = GAIN\\ [[dca.properties#​sell_settings|DEFAULT_DCA_A_sell_strategy]] = GAIN\\
 [[dca.properties#​DEFAULT_DCA_A_sell_value]] = 1\\ [[dca.properties#​DEFAULT_DCA_A_sell_value]] = 1\\
 +
 [[dca.properties#​DEFAULT_DCA_A_sell_value|DEFAULT_DCA_A_sell_value_1]] = 0.95\\ [[dca.properties#​DEFAULT_DCA_A_sell_value|DEFAULT_DCA_A_sell_value_1]] = 0.95\\
 [[dca.properties#​DEFAULT_DCA_A_sell_value|DEFAULT_DCA_A_sell_value_2]] = 0.85\\ [[dca.properties#​DEFAULT_DCA_A_sell_value|DEFAULT_DCA_A_sell_value_2]] = 0.85\\
 [[dca.properties#​DEFAULT_DCA_A_sell_value|DEFAULT_DCA_A_sell_value_3]] = 0.75\\ [[dca.properties#​DEFAULT_DCA_A_sell_value|DEFAULT_DCA_A_sell_value_3]] = 0.75\\
  
 +#​[[dca.properties#​DEFAULT_DCA_A_sell_strategy_label|DEFAULT_DCA_B_sell_strategy_label]] = STRATEGYNAME \\
 #​[[dca.properties#​sell_settings|DEFAULT_DCA_B_sell_strategy]] = RSI\\ #​[[dca.properties#​sell_settings|DEFAULT_DCA_B_sell_strategy]] = RSI\\
 #​[[dca.properties#​DEFAULT_DCA_A_sell_value|DEFAULT_DCA_B_sell_value]] = 65\\ #​[[dca.properties#​DEFAULT_DCA_A_sell_value|DEFAULT_DCA_B_sell_value]] = 65\\
 +#​[[dca.properties#​DEFAULT_DCA_A_sell_value_limit|DEFAULT_DCA_B_sell_value_limit]] = 90
  
 [[dca.properties#​DEFAULT_DCA_trailing_profit]] = 0.25\\ [[dca.properties#​DEFAULT_DCA_trailing_profit]] = 0.25\\
 +[[dca.properties#​DEFAULT_DCA_trailing_profit_type]] = DEFAULT\\
 +[[dca.properties#​DEFAULT_DCA_trailing_profit_rebound_count]] = 0\\
  
 [[dca.properties#​DCA_orderbook_profit_calculation]] = true\\ [[dca.properties#​DCA_orderbook_profit_calculation]] = true\\
Line 105: Line 117:
  
 [[dca.properties#​DEFAULT_DCA_pending_order_wait_time]] = 0\\ [[dca.properties#​DEFAULT_DCA_pending_order_wait_time]] = 0\\
 +[[dca.properties#​DEFAULT_DCA_pending_order_price_drop_trigger]] = 0\\
 +[[dca.properties#​DEFAULT_DCA_combined_cancel_pending_trigger]] = 0\\
 +[[dca.properties#​DEFAULT_DCA_combine_pending_orders]] = false\\
  
 [[dca.properties#​DEFAULT_DCA_stop_loss_trigger]] = 0\\ [[dca.properties#​DEFAULT_DCA_stop_loss_trigger]] = 0\\
 [[dca.properties#​DEFAULT_DCA_stop_loss_timeout]] = 0\\ [[dca.properties#​DEFAULT_DCA_stop_loss_timeout]] = 0\\
 +[[dca.properties#​DCA_stop_before_complete]] = false \\
 +[[DCA.properties#​DEFAULT_DCA_panic_sell_enabled]] = false \\
 \\ \\
  
Line 136: Line 153:
  
 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! 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 ==
 +<file java>
 +DCA_max_trading_pairs = 10
 +</​file>​
 +[[mandatory_settings#​optional_settings|{{:​optbw.png?​18|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**:
 +  - If not set (including missing from the file completely) then there is no limit and all coins can be DCA'd.
 +  - If you lower this limit below the number of coins you already have in DCA, ProfitTrailer will randomly select the ones that DCA.
 +  - Excluded coins will stay in the [[web_interface_guide#​DCA Log]] but display MAX DCA PAIRS.
 +
 +\\
 +[[dca.properties|TOP]]
 +\\
  
 ---- ----
Line 281: Line 318:
  
 ---- ----
 +== DEFAULT_DCA_sell_wall_orderbook_depth ==
 +<file java>
 +DEFAULT_DCA_sell_wall_orderbook_depth = 40
 +</​file>​
 +[[faq#​how_do_i_change_settings_on_a_single_coin|{{:​csbw.png?​18|Coin Specific - click for more info}}]][[mandatory_settings#​optional_settings|{{:​optbw.png?​18|Optional - 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 ''​[[dca.properties#​DEFAULT_DCA_sell_wall_diff_percentage]]''​ setting. If it exceeds the allowed difference the coin will not be purchased.
 +
 +**Note:**
 +  - Used with ''​[[dca.properties#​DEFAULT_DCA_sell_wall_diff_percentage]]''​
 +
 +\\
 +[[dca.properties|TOP]]
 +\\
 +
 +----
 +== DEFAULT_DCA_sell_wall_diff_percentage ==
 +<file java>
 +DEFAULT_DCA_sell_wall_diff_percentage = 600
 +</​file>​
 +[[faq#​how_do_i_change_settings_on_a_single_coin|{{:​csbw.png?​18|Coin Specific - click for more info}}]][[mandatory_settings#​optional_settings|{{:​optbw.png?​18|Optional - click for more info}}]]
 +
 +Valid Values: Decimal values greater than 100
 +
 +Set the maximum difference allowed from the average order size within the ''​[[dca.properties#​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:**
 +  - Used with ''​[[dca.properties#​DEFAULT_DCA_sell_wall_orderbook_depth]]''​
 +
 +\\
 +[[dca.properties|TOP]]
 +\\
  
 ==== BUY SETTINGS ==== ==== BUY SETTINGS ====
Line 287: Line 363:
 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. 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 ==
 +<file java>
 +DEFAULT_A_buy_strategy_label = RSI900
 +</​file>​
 +[[faq#​how_do_i_change_settings_on_a_single_coin|{{:​csbw.png?​18|Coin Specific - click for more info}}]][[mandatory_settings#​optional_settings|{{:​optbw.png?​18|Optional - 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:**
 +  - The label can be anything alphanumeric. 24NUGGETSFOR995 will work
 +
 +\\
 +[[dca.properties|TOP]]
 +\\
 ---- ----
 == DEFAULT_DCA_A_buy_strategy ​ == == DEFAULT_DCA_A_buy_strategy ​ ==
Line 324: Line 435:
  
 ---- ----
 +
 == DEFAULT_DCA_A_buy_value_limit ​ == == DEFAULT_DCA_A_buy_value_limit ​ ==
  
Line 333: Line 445:
 Valid Values: positive or negative decimal values depending on the [[buy_and_sell_strategies#​strategies_available|Buy Strategy]] Valid Values: positive or negative decimal values depending on the [[buy_and_sell_strategies#​strategies_available|Buy Strategy]]
  
-This value sets the outer limit of a "buy zone" with the buy value as the other limit. ​Set to 0 to disable. +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.
- +
-<file java> +
-If buy_value >= 0 then buy_value_limit > 0 +
-If buy_value < 0 then buy_value_limit < 0 +
-</​file>​ +
  
 **Notes**: **Notes**:
Line 409: Line 515:
 <file java> <file java>
 DEFAULT_DCA_buy_trigger = -3.5 DEFAULT_DCA_buy_trigger = -3.5
 +</​file>​
 +OR
 +<file java>
 +DEFAULT_DCA_buy_trigger = 0.88
 </​file>​ </​file>​
 [[faq#​how_do_i_change_settings_on_a_single_coin|{{:​csbw.png?​18|Coin Specific - click for more info}}]][[faq#​how_do_i_vary_a_setting_per_dca_level|{{:​dcabw.png?​18|DCA level specific - click for more info}}]] [[faq#​how_do_i_change_settings_on_a_single_coin|{{:​csbw.png?​18|Coin Specific - click for more info}}]][[faq#​how_do_i_vary_a_setting_per_dca_level|{{:​dcabw.png?​18|DCA level specific - click for more info}}]]
  
-Valid Values: ​Decimal values equal to or less than 0+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. 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.
Line 431: Line 541:
 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. 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.
  
-**Note**:+**Notes**:
   - The unnumbered default parameter will be used if no DCA level specific alternative is configured.   - The unnumbered default parameter will be used if no DCA level specific alternative is configured.
 +  - If you have DCA level specific buy triggers you need to set SOM triggers for each level also.
  
 ---- ----
Line 445: Line 556:
  
 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. ​ 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==
 +
 +<file java>
 +DEFAULT_DCA_trailing_buy_rebound_count = 1
 +</​file>​
 +[[faq#​how_do_i_change_settings_on_a_single_coin|{{:​csbw.png?​18|Coin Specific - click for more info}}]][[mandatory_settings#​optional_settings|{{:​optbw.png?​18|Optional - 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 [[a_trailing_story|here in A Trailing Story]].
  
 ---- ----
Line 456: Line 583:
 Valid Values: Decimal values equal to or greater than 0.  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+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**: **Note**:
   - The unnumbered default parameter will be used if no DCA level specific alternative is configured.   - The unnumbered default parameter will be used if no DCA level specific alternative is configured.
 +
 +----
 +== SOM_DCA_buy_percentage ==
 +<file java>
 +SOM_DCA_buy_percentage = 100
 +</​file>​
 +[[mandatory_settings#​optional_settings|{{:​optbw.png?​18|Optional - click for more info}}]][[faq#​how_do_i_vary_a_setting_per_dca_level|{{:​dcabw.png?​18|DCA level specific - click for more info}}]]
 +
 +Valid values: Integer values greater than 0
 +
 +Set the buy percentage to be used instead of ''​[[dca.properties#​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**:
 +  - The unnumbered default parameter will be used if no DCA level specific alternative is configured.
 +  - If you have DCA level specific buy triggers you need to set SOM triggers for each level also.
  
 \\ \\
 [[dca.properties|TOP]] [[dca.properties|TOP]]
 \\ \\
 +
 ---- ----
  
Line 471: Line 614:
  
 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.  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 ==
 +<file java>
 +DEFAULT_DCA_A_sell_strategy_label = RSI900
 +</​file>​
 +[[faq#​how_do_i_change_settings_on_a_single_coin|{{:​csbw.png?​18|Coin Specific - click for more info}}]][[mandatory_settings#​optional_settings|{{:​optbw.png?​18|Optional - 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 [[dca.properties#​DEFAULT_DCA_A_buy_strategy_label]]
 +
 +**Note:**
 +  - The label can be anything alphanumeric. WELOVESGTBATTEN will work
  
 ---- ----
Line 503: Line 662:
   - The unnumbered default parameter will be used if no DCA level specific alternative is configured.   - The unnumbered default parameter will be used if no DCA level specific alternative is configured.
   - If you are using trailing the bot will follow the price up further and therefore may not sell immediately. See ''​[[dca.properties#​DEFAULT_trailing_profit]]''​ below.   - If you are using trailing the bot will follow the price up further and therefore may not sell immediately. See ''​[[dca.properties#​DEFAULT_trailing_profit]]''​ below.
 +
 +----
 +== DEFAULT_DCA_A_sell_value_limit ==
 +<file java>
 +DEFAULT_DCA_A_sell_value_limit = 
 +</​file>​
 +[[faq#​how_do_i_change_settings_on_a_single_coin|{{:​csbw.png?​18|Coin Specific - click for more info}}]][[mandatory_settings#​optional_settings|{{:​optbw.png?​18|Optional - click for more info}}]]
 +
 +Valid values: positive or negative decimal numbers depending on the [[buy_and_sell_strategies|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//
  
 ---- ----
Line 514: Line 711:
 Valid Values: Decimal number greater than or equal to zero.  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 [[a_trailing_story2|here in A Trailing Story]].+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 [[a_trailing_story|here in A Trailing Story]].
  
 **Note:​** ​ ''​[[dca.properties#​DEFAULT_take_profit]]''​ and ''​[[dca.properties#​DEFAULT_max_profit]]''​ can trigger a sell without trailing. **Note:​** ​ ''​[[dca.properties#​DEFAULT_take_profit]]''​ and ''​[[dca.properties#​DEFAULT_max_profit]]''​ can trigger a sell without trailing.
 +
 +----
 +== DEFAULT_DCA_trailing_profit_type ==
 +<file java>
 +DEFAULT_DCA_trailing_profit_type = GROW
 +</​file>​
 +[[faq#​how_do_i_change_settings_on_a_single_coin|{{:​csbw.png?​18|Coin Specific - click for more info}}]][[mandatory_settings#​optional_settings|{{:​optbw.png?​18|Optional - click for more info}}]]
 +
 +Valid values: DEFAULT, GROW, SHRINK
 +
 +Set the ''​[[dca.properties#​DEFAULT_DCA_trailing_profit|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**
 +  - Using DEFAULT will not alter the ''​trailing_profit''​ value at all.
 +
 +----
 +== DEFAULT_DCA_trailing_profit_rebound_count ==
 +
 +<file java>
 +DEFAULT_DCA_trailing_profit_rebound_count = 1
 +</​file>​
 +[[faq#​how_do_i_change_settings_on_a_single_coin|{{:​csbw.png?​18|Coin Specific - click for more info}}]][[mandatory_settings#​optional_settings|{{:​optbw.png?​18|Optional - 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 [[a_trailing_story|here in A Trailing Story]].
  
 ---- ----
Line 608: Line 845:
  
 **Note:​** ​ **Note:​** ​
-  - Coins that sell from a pending order are not recorded in the sales log. ''​[[dca.properties#​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.+  - Coins that sell from a pending order are not recorded in the sales log. 
 +  -  ​''​[[dca.properties#​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 == 
 + 
 +<file java> 
 +DEFAULT_DCA_pending_order_price_drop_trigger = 10 
 +</​file>​ 
 +[[faq#​how_do_i_change_settings_on_a_single_coin|{{:​csbw.png?​18|Coin Specific - click for more info}}]][[mandatory_settings#​optional_settings|{{:​optbw.png?​18|Optional - 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 ''​[[dca.properties#​Default DCA_A_sell_value|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**:  
 +  - Coins that sell from a pending order are not recorded in the sales log. 
 +  -  ''​[[dca.properties#​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 == 
 + 
 +<file java> 
 +DEFAULT_DCA_combined_cancel_pending_trigger = 0 
 +</​file>​ 
 +[[faq#​how_do_i_change_settings_on_a_single_coin|{{:​csbw.png?​18|Coin Specific - click for more info}}]][[mandatory_settings#​optional_settings|{{:​optbw.png?​18|Optional - 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 == 
 +<file java> 
 +DEFAULT_DCA_combine_pending_orders = false 
 +</​file>​ 
 +[[faq#​how_do_i_change_settings_on_a_single_coin|{{:​csbw.png?​18|Coin Specific - click for more info}}]][[mandatory_settings#​optional_settings|{{:​optbw.png?​18|Optional - 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.
  
 ---- ----
Line 623: Line 905:
  
 **Notes**: ​ **Notes**: ​
-  - Stop loss positive values are automatically converted to negative value. Stop loss will only occur once DCA is complete. +  - Stop loss positive values are automatically converted to negative value. ​ 
-  - What is complete?  +  - Stop loss will only occur once DCA is complete ​unless ''​[[dca.properties#​DCA_stop_before_complete]] = true''​ 
-     - max_buy_times is reached OR +
-     - max_cost is reached OR +
-     - there is not enough balance to keep using DCA.+
  
 ---- ----
Line 640: Line 920:
  
 Set the amount of minutes that the bot is not allowed to buy a coin after it was sold by stop loss trigger. 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 ==
 +
 +<file java>
 +DCA_stop_before_complete = false
 +</​file>​
 +[[mandatory_setting#​optional_settings|{{:​optbw.png?​18|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? ​
 +  - max_buy_times is reached OR
 +  - max_cost is reached OR
 +  - there is not enough balance to keep using DCA.
  
 \\ \\
Line 645: Line 944:
 \\ \\
 ---- ----
 +== DEFAULT_DCA_panic_sell_enabled ==
 +
 +<file java>
 +DEFAULT_DCA_panic_sell_enabled = false
 +</​file>​
 +[[faq#​how_do_i_change_settings_on_a_single_coin|{{:​csbw.png?​18|Coin Specific - click for more info}}]][[mandatory_settings#​optional_settings|{{:​optbw.png?​18|Optional - click for more info}}]][[mandatory_settings#​caution|{{:​warnbr.png?​18|Caution - click for more info}}]]
 +
 +Valid values: true or false
 +
 +Set to "​true"​ to sell all of your coins in the [[web_interface_guide#​DCA Log]] IMMEDIATELY for current market prices. It does what it says, and does it **now**. Use with caution.
 +
 +**Note:**
 +  - Coins in the [[web_interface_guide#​Pairs Log]] and in the [[web_interface_guide#​Pending Log]] will not be sold.
 +
 +
 +\\
 +[[dca.properties|TOP]]
 +\\
 +----
 +
 ==== Example Usage ==== ==== Example Usage ====
 ---- ----
  • dca.properties.1529033408.txt.gz
  • Last modified: 2 months ago
  • by sgtbatten