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 03:30]
sgtbatten
dca.properties [2019/01/22 23:16] (current)
sgtbatten [SELL SETTINGS]
Line 1: Line 1:
-=====dca.properties ​V2.0===== +=====dca.properties ​2.1=====
-[[dca.properties1|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 [[web_interface_guide#​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. 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.
Line 18: Line 15:
  
 === 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 41: Line 38:
  
 [[faq#​how_do_i_change_settings_on_a_single_coin|{{:​csbw.png?​18|Coin Specific - click for more info}}]] Coin Specific - This parameter can be specified for individual coins.\\ [[faq#​how_do_i_change_settings_on_a_single_coin|{{:​csbw.png?​18|Coin Specific - click for more info}}]] Coin Specific - This parameter can be specified for individual coins.\\
-[[mandatory_setting#​optional_settings|{{:​optbw.png?​18|Optional - click for more info}}]] Optional - This parameter is not required for the bot to run.\\+[[mandatory_settings#​optional_settings|{{:​optbw.png?​18|Optional - click for more info}}]] Optional - This parameter is not required for the bot to run.\\
 [[mandatory_settings#​caution|{{:​warnbr.png?​18|Caution - click for more info}}]] Caution - This parameter can result in instant losses if used carelessly.\\ [[mandatory_settings#​caution|{{:​warnbr.png?​18|Caution - click for more info}}]] Caution - This parameter can result in instant losses if used carelessly.\\
 [[faq#​how_do_i_vary_a_setting_per_dca_level|{{:​dcabw.png?​18|DCA level specific - click for more info}}]] DCA level specific - This parameter can be configured per DCA level.\\ [[faq#​how_do_i_vary_a_setting_per_dca_level|{{:​dcabw.png?​18|DCA level specific - click for more info}}]] DCA level specific - This parameter can be configured per DCA level.\\
Line 53: Line 50:
 [[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#​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 65:
  
 [[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#​buy_settings|DEFAULT_DCA_A_buy_strategy]] = EMAGAIN\\+[[dca.properties#​DEFAULT_DCA_A_buy_strategy_label]] = STRATEGYNAME \\ 
 +[[dca.properties#​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\\
 [[dca.properties#​DEFAULT_DCA_A_buy_value_limit]] = -2.5\\ [[dca.properties#​DEFAULT_DCA_A_buy_value_limit]] = -2.5\\
 +[[dca.properties#​DEFAULT_DCA_A_buy_strategy_direction]] = \\
  
-[[dca.properties#​buy_settings|DEFAULT_DCA_B_buy_strategy]] = RSI\\+[[dca.properties#​DEFAULT_DCA_A_buy_Strategy|DEFAULT_DCA_B_buy_strategy]] = RSI\\
 [[dca.properties#​DEFAULT_DCA_A_buy_value|DEFAULT_DCA_B_buy_value]] = 35\\ [[dca.properties#​DEFAULT_DCA_A_buy_value|DEFAULT_DCA_B_buy_value]] = 35\\
 [[dca.properties#​DEFAULT_DCA_A_buy_value_limit|DEFAULT_DCA_B_buy_value_limit]] = 5\\ [[dca.properties#​DEFAULT_DCA_A_buy_value_limit|DEFAULT_DCA_B_buy_value_limit]] = 5\\
Line 82: Line 85:
 [[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 \\
  
  
 <​file>#​SELL SETTINGS#</​file>​ <​file>#​SELL SETTINGS#</​file>​
  
-[[dca.properties#​sell_settings|DEFAULT_DCA_A_sell_strategy]] = GAIN\\+[[dca.properties#​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#​sell_settings|DEFAULT_DCA_B_sell_strategy]] = RSI\\+#​[[dca.properties#​DEFAULT_DCA_A_sell_strategy_label|DEFAULT_DCA_B_sell_strategy_label]] = STRATEGYNAME \\ 
 +#​[[dca.properties#​DEFAULT_DCA_A_sell_strategy|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 103: Line 113:
 [[dca.properties#​DEFAULT_DCA_take_profit_reset_percentage_move]] = 0.2\\ [[dca.properties#​DEFAULT_DCA_take_profit_reset_percentage_move]] = 0.2\\
 [[dca.properties#​DEFAULT_DCA_take_profit_wait_time]] = 30\\ [[dca.properties#​DEFAULT_DCA_take_profit_wait_time]] = 30\\
 +[[dca.properties#​DEFAULT_DCA_take_profit_safety_arm]] = 0\\
 +[[dca.properties#​DEFAULT_DCA_take_profit_safety_fire]] = 0\\
  
 +[[dca.properties#​DEFAULT_DCA_pending_gain_percentage]] = 0\\
 [[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_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#​DEFAULT_DCA_trailing_stop_loss_trigger_arm]] = 0\\
 +[[dca.properties#​DEFAULT_DCA_trailing_stop_loss_trigger]] = 0\\
 +[[dca.properties#​DCA_stop_before_complete]] = false \\
 +[[DCA.properties#​DEFAULT_DCA_panic_sell_enabled]] = false \\
 \\ \\
  
Line 124: Line 145:
  
 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. ​ 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. ​
 +
 +\\
 +[[dca.properties|TOP]]
 +\\
  
 ---- ----
Line 131: Line 156:
 DEFAULT_DCA_max_buy_times = 0 DEFAULT_DCA_max_buy_times = 0
 </​file>​ </​file>​
-[[faq#​how_do_i_change_settings_on_a_single_coin|{{:​csbw.png?​18|Coin Specific - click for more info}}]][[mandatory_setting#​optional_settings|{{:​optbw.png?​18|Optional - click for more info}}]]+[[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 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! 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.properties|TOP]]
 +\\
 +
 +----
 +== 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 143: Line 192:
 DCA_keep_balance = 0.5 DCA_keep_balance = 0.5
 </​file>​ </​file>​
-[[mandatory_setting#​optional_settings|{{:​optbw.png?​18|Optional - click for more info}}]]+[[mandatory_settings#​optional_settings|{{:​optbw.png?​18|Optional - click for more info}}]]
  
 Valid Values: Decimal values equal to or greater than 0. Valid Values: Decimal values equal to or greater than 0.
Line 158: Line 207:
 DCA_keep_balance_percentage = 60 DCA_keep_balance_percentage = 60
 </​file>​ </​file>​
-[[mandatory_setting#​optional_settings|{{:​optbw.png?​18|Optional - click for more info}}]]+[[mandatory_settings#​optional_settings|{{:​optbw.png?​18|Optional - click for more info}}]]
  
 Valid Values: Decimal values equal to or greater than 0.  Valid Values: Decimal values equal to or greater than 0. 
Line 181: Line 230:
 DEFAULT_DCA_min_buy_volume = 500 DEFAULT_DCA_min_buy_volume = 500
 </​file>​ </​file>​
-[[faq#​how_do_i_change_settings_on_a_single_coin|{{:​csbw.png?​18|Coin Specific - click for more info}}]][[mandatory_setting#​optional_settings|{{:​optbw.png?​18|Optional - click for more info}}]]+[[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 than or equal to 0. Valid Values: Decimal value greater than or equal to 0.
Line 195: Line 244:
 DEFAULT_DCA_max_buy_spread = 2 DEFAULT_DCA_max_buy_spread = 2
 </​file>​ </​file>​
-[[faq#​how_do_i_change_settings_on_a_single_coin|{{:​csbw.png?​18|Coin Specific - click for more info}}]][[mandatory_setting#​optional_settings|{{:​optbw.png?​18|Optional - click for more info}}]]+[[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 number greater than or equal to 0. Valid Values: decimal number greater than or equal to 0.
Line 208: Line 257:
 DEFAULT_DCA_min_orderbook_volume_percentage = 150 DEFAULT_DCA_min_orderbook_volume_percentage = 150
 </​file>​ </​file>​
-[[faq#​how_do_i_change_settings_on_a_single_coin|{{:​csbw.png?​18|Coin Specific - click for more info}}]][[mandatory_setting#​optional_settings|{{:​optbw.png?​18|Optional - click for more info}}]]+[[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 equal to or greater than 0.  Valid Values: Decimal value equal to or greater than 0. 
Line 225: Line 274:
 DEFAULT_DCA_rebuy_timeout = 10 DEFAULT_DCA_rebuy_timeout = 10
 </​file>​ </​file>​
-[[faq#​how_do_i_change_settings_on_a_single_coin|{{:​csbw.png?​18|Coin Specific - click for more info}}]][[mandatory_setting#​optional_settings|{{:​optbw.png?​18|Optional - click for more info}}]]+[[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: Integers greater than or equal to 0 Valid Values: Integers greater than or equal to 0
Line 238: Line 287:
 DEFAULT_DCA_buy_min_change_percentage = 0 DEFAULT_DCA_buy_min_change_percentage = 0
 </​file>​ </​file>​
-[[faq#​how_do_i_change_settings_on_a_single_coin|{{:​csbw.png?​18|Coin Specific - click for more info}}]][[mandatory_setting#​optional_settings|{{:​optbw.png?​18|Optional - click for more info}}]]+[[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 Valid Values: Decimal Values
Line 255: Line 304:
 DEFAULT_DCA_buy_max_change_percentage = 0 DEFAULT_DCA_buy_max_change_percentage = 0
 </​file>​ </​file>​
-[[faq#​how_do_i_change_settings_on_a_single_coin|{{:​csbw.png?​18|Coin Specific - click for more info}}]][[mandatory_setting#​optional_settings|{{:​optbw.png?​18|Optional - click for more info}}]]+[[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 Valid Values: Decimal Values
Line 271: Line 320:
 DEFAULT_DCA_ignore_sell_only_mode = false DEFAULT_DCA_ignore_sell_only_mode = false
 </​file>​ </​file>​
-[[faq#​how_do_i_change_settings_on_a_single_coin|{{:​csbw.png?​18|Coin Specific - click for more info}}]][[mandatory_setting#​optional_settings|{{:​optbw.png?​18|Optional - click for more info}}]]+[[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 or false Valid Values: true or false
Line 281: Line 330:
  
 ---- ----
 +== 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 375:
 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_DCA_A_buy_strategy_label ==
 +<file java>
 +DEFAULT_DCA_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]] (if pre-set for import) or the indicator [[web_interface_guide#​advanced]] tab, we define RSI and RSI900 values
 +
 +//​RSI_candle_period = 900 \\
 +RSI_length = 35 \\
 +\\
 +RSI900_candle_period = 900 \\
 +RSI900_length = 35 //\\
 +
 +In [[dca.properties]] (if pre-set for import) or the DCA [[web_interface_guide#​advanced]] tab, 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 295: Line 418:
 [[faq#​how_do_i_change_settings_on_a_single_coin|{{:​csbw.png?​18|Coin Specific - click for more info}}]] [[faq#​how_do_i_change_settings_on_a_single_coin|{{:​csbw.png?​18|Coin Specific - click for more info}}]]
  
-Valid Values: ​LOWBBHIGHBBEMAGAIN, EMASPREAD, EMACROSS, SMAGAIN, SMASPREAD, SMACROSS, ​LOSS, STOCH, STOCHRSI, RSI, MACD, BBWIDTH, OBV, ANDERSON ​or DISABLED (See the [[buy_and_sell_strategies|Buy and Sell Strategies]] page for more info on each setting.)+Valid Values: ​SIGNALANDERSONLOWBB, EMASPREAD, SMACROSS, ​STOCHRSID, MACD etc or DISABLED (See the [[buy_and_sell_strategies|Buy and Sell Strategies]] page for all options and more info on each setting.)
  
 Define a strategy to be used when buying more of a coin. Define a strategy to be used when buying more of a coin.
Line 301: Line 424:
 **Notes:​**  ​ **Notes:​**  ​
   - If using multiple strategies the logic requires all to be true. i.e A AND B AND C, not A or B or C.   - If using multiple strategies the logic requires all to be true. i.e A AND B AND C, not A or B or C.
-  - The designators used do not need to be in order. e.g B and D can be used instead of A and B.  ​+  - The designators used do not need to be in order. e.g B and D can be used instead of A and B. 
 +  - If using SIGNAL either an approved external provider signal or your own TradingView signal is required. These Signals are created outside of the ProfitTrailer product, see this page for details on [[https://​wiki.profittrailer.com/​doku.php?​id=signals|how to integrate with signals]] 
 +  - Signals are not part of your ProfitTrailer product license and require a separate paid subscription to either an approved supplier'​s signals service and/or the TradingView integration service. These subscriptions are available for purchase from the [[https://​profittrailer.com/​shop/​|ProfitTrailer Shop]]. 
 + 
 +\\ 
 +[[dca.properties|TOP]] 
 +\\
  
 ---- ----
Line 324: Line 453:
  
 ---- ----
 +
 == DEFAULT_DCA_A_buy_value_limit ​ == == DEFAULT_DCA_A_buy_value_limit ​ ==
  
Line 329: Line 459:
 DEFAULT_DCA_A_buy_value_limit = 0 DEFAULT_DCA_A_buy_value_limit = 0
 </​file>​ </​file>​
-[[faq#​how_do_i_change_settings_on_a_single_coin|{{:​csbw.png?​18|Coin Specific - click for more info}}]][[mandatory_setting#​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}}]]+[[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}}]][[faq#​how_do_i_vary_a_setting_per_dca_level|{{:​dcabw.png?​18|DCA level specific - click for more info}}]]
  
 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 371: Line 495:
 DEFAULT_DCA_A_buy_value_limit = 15 \\ DEFAULT_DCA_A_buy_value_limit = 15 \\
 The bot will only buy if RSI is between 15 and 30// The bot will only buy if RSI is between 15 and 30//
 +
 +----
 +== DEFAULT_DCA_A_buy_strategy_direction ==
 +
 +<file java>
 +DEFAULT_DCA_A_buy_strategy_direction = UP/DOWN
 +</​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}}]][[faq#​how_do_i_vary_a_setting_per_dca_level|{{:​dcabw.png?​18|DCA level specific - click for more info}}]]
 +
 +Valid Values: UP or DOWN
 +
 +Used to reverse the logic of a buy strategy in order to change when the strategy will indicate true relative to the ''​buy_value''​ used.
 +
 +//​Example:​\\
 +DEFAULT_DCA_A_buy_strategy = RSI\\
 +DEFAULT_DCA_A_buy_value = 35\\
 +The strategy will be true when the RSI value is below 35\\
 +\\
 +DEFAULT_DCA_A_buy_strategy = RSI\\
 +DEFAULT_DCA_A_buy_value = 35\\
 +DEFAULT_DCA_A_buy_strategy_direction = UP\\
 +The strategy will be true when the RSI value is above 35.//
 +
 +\\
 +[[dca.properties|TOP]]
 +\\
  
 ---- ----
Line 404: Line 554:
 **Note:** **Note:**
   - You cannot use ''​DEFAULT_DCA_trailing_buy''​ with this parameter as the two will prevent the other from working.   - You cannot use ''​DEFAULT_DCA_trailing_buy''​ with this parameter as the two will prevent the other from working.
 +
 +\\
 +[[dca.properties|TOP]]
 +\\
 +
 ---- ----
 == DEFAULT_DCA_buy_trigger ​ == == DEFAULT_DCA_buy_trigger ​ ==
Line 409: Line 564:
 <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 425: Line 584:
 SOM_DCA_buy_trigger = -5.5 SOM_DCA_buy_trigger = -5.5
 </​file>​ </​file>​
-[[mandatory_setting#​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}}]]+[[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: Decimal values equal to or less than 0.  Valid Values: Decimal values equal to or less than 0. 
Line 431: Line 590:
 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 440: Line 600:
 DEFAULT_DCA_trailing_buy = 0.3 DEFAULT_DCA_trailing_buy = 0.3
 </​file>​ </​file>​
-[[faq#​how_do_i_change_settings_on_a_single_coin|{{:​csbw.png?​18|Coin Specific - click for more info}}]][[mandatory_setting#​optional_settings|{{:​optbw.png?​18|Optional - click for more info}}]]+[[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 equal to or greater than 0.  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. ​ 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 452: Line 628:
 DEFAULT_DCA_buy_percentage = 100 DEFAULT_DCA_buy_percentage = 100
 </​file>​ </​file>​
-[[faq#​how_do_i_change_settings_on_a_single_coin|{{:​csbw.png?​18|Coin Specific - click for more info}}]][[mandatory_setting#​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}}]]+[[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}}]][[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 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 663:
  
 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 480: Line 688:
 [[faq#​how_do_i_change_settings_on_a_single_coin|{{:​csbw.png?​18|Coin Specific - click for more info}}]] [[faq#​how_do_i_change_settings_on_a_single_coin|{{:​csbw.png?​18|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|Buy and Sell Strategies]] page for more info on each setting.)+Valid Values: ​SIGNAL, ​GAIN, EMASPREAD, ​STOCHRSICROSS, RSI, BBWIDTH or DISABLED (See the [[buy_and_sell_strategies|Buy and Sell Strategies]] page for all options and more info on each setting.)
  
 Define a strategy used to sell coins. Define a strategy used to sell coins.
Line 487: Line 695:
   - If using multiple strategies the logic requires all to be true. i.e A AND B AND C, not A or B or C.   - If using multiple strategies the logic requires all to be true. i.e A AND B AND C, not A or B or C.
   - The designators used do not need to be in order. e.g B and D can be used instead of A and B.   - The designators used do not need to be in order. e.g B and D can be used instead of A and B.
 +  - If using SIGNAL either an approved external provider signal or your own TradingView signal is required. These Signals are created outside of the ProfitTrailer product, see this page for details on [[https://​wiki.profittrailer.com/​doku.php?​id=signals|how to integrate with signals]]
 +  - Signals are not part of your ProfitTrailer product license and require a separate paid subscription to either an approved supplier'​s signals service and/or the TradingView integration service. These subscriptions are available for purchase from the [[https://​profittrailer.com/​shop/​|ProfitTrailer Shop]].
 +
 +\\
 +[[dca.properties|TOP]]
 +\\
  
 ---- ----
Line 503: Line 717:
   - 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 510: Line 762:
 DEFAULT_DCA_trailing_profit = 0 DEFAULT_DCA_trailing_profit = 0
 </​file>​ </​file>​
-[[faq#​how_do_i_change_settings_on_a_single_coin|{{:​csbw.png?​18|Coin Specific - click for more info}}]][[mandatory_setting#​optional_settings|{{:​optbw.png?​18|Optional - click for more info}}]]+[[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 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 524: Line 816:
 DCA_orderbook_profit_calculation = true DCA_orderbook_profit_calculation = true
 </​file>​ </​file>​
-[[mandatory_setting#​optional_settings|{{:​optbw.png?​18|Optional - click for more info}}]]+[[mandatory_settings#​optional_settings|{{:​optbw.png?​18|Optional - click for more info}}]]
  
 Valid Values: true or false 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.+If false (default) ​the bot only looks at the highest bid order to calculate profit percentage and observe ​order book volume. If the highest Bid is not large enough, ProfitTrailer won't try to sell. If set to true, ProfitTrailer will work its way down the order book adding up the orders until it has enough volume. 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.+Both percentages will be displayed in the Profit % column ​in the [[web_interface_guide|DCA Log]]. The volume corrected profit % is displayed beneath the standard profit % only when SSV is greater than 0.
  
 ---- ----
Line 538: Line 830:
 DEFAULT_DCA_max_profit = 15 DEFAULT_DCA_max_profit = 15
 </​file>​ </​file>​
-[[faq#​how_do_i_change_settings_on_a_single_coin|{{:​csbw.png?​18|Coin Specific - click for more info}}]][[mandatory_setting#​optional_settings|{{:​optbw.png?​18|Optional - click for more info}}]]+[[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 number greater than or equal to zero.  Valid Values: Decimal number greater than or equal to zero. 
Line 551: Line 843:
 DEFAULT_DCA_take_profit_percentage = 0  DEFAULT_DCA_take_profit_percentage = 0 
 </​file>​ </​file>​
-[[faq#​how_do_i_change_settings_on_a_single_coin|{{:​csbw.png?​18|Coin Specific - click for more info}}]][[mandatory_setting#​optional_settings|{{:​optbw.png?​18|Optional - click for more info}}]]+[[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 or equal to 0. Valid Values: Decimal values greater than or equal to 0.
Line 568: Line 860:
 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.\\ 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.\\
 // //
 +
 +\\
 +[[dca.properties|TOP]]
 +\\
  
 ---- ----
Line 580: Line 876:
  
 Set the % of price deviation allowed from the ''​[[pairs.properties#​DEFAULT_DCA_take_profit_percentage]]''​ before resetting the ''​[[pairs.properties#​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. Set the % of price deviation allowed from the ''​[[pairs.properties#​DEFAULT_DCA_take_profit_percentage]]''​ before resetting the ''​[[pairs.properties#​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.
 +
 +\\
 +[[dca.properties|TOP]]
 +\\
  
 ---- ----
Line 587: Line 887:
 DEFAULT_DCA_take_profit_wait_time = 0 DEFAULT_DCA_take_profit_wait_time = 0
 </​file>​ </​file>​
-[[faq#​how_do_i_change_settings_on_a_single_coin|{{:​csbw.png?​18|Coin Specific - click for more info}}]][[mandatory_setting#​optional_settings|{{:​optbw.png?​18|Optional - click for more info}}]]+[[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 or equal to 0. Valid Values: Integer values greater than or equal to 0.
  
 Set the number of minutes to wait while the profit percentage is greater than ''​[[dca.properties#​DEFAULT_DCA_take_profit_percentage]]''​ before attempting to sell. Set the number of minutes to wait while the profit percentage is greater than ''​[[dca.properties#​DEFAULT_DCA_take_profit_percentage]]''​ before attempting to sell.
 +
 +\\
 +[[dca.properties|TOP]]
 +\\
 +
 +----
 +== DEFAULT_DCA_take_profit_safety_arm ==
 +
 +<file java>
 +DEFAULT_DCA_take_profit_safety_arm = 0.8
 +</​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}}]][[faq#​how_do_i_vary_a_setting_per_dca_level|{{:​dcabw.png?​18|DCA level specific - click for more info}}]]
 +
 +Valid Values: Decimal values greater than or equal to 0
 +
 +Set the value which will arm the Take Profit Safety sell method. ​
 +
 +If the profit goes above ''​[[dca.properties#​DEFAULT_DCA_take_profit_safety_arm]]''​ we flag the coin as armed.
 +Then if the profit comes back down below the ''​[[dca.properties#​DEFAULT_DCA_take_profit_safety_fire]]''​ value the bot will attempt to sell the coins.
 +
 +**Notes:**
 +  - The arm value is just a boolean (true or false). ​ Once armed it can fire at whatever the fire value is. It will stay armed if you change arm or fire values even if the new arm value is higher but it will fire at the new fire value if changed.
 +  - See [[a_trailing story#​Scenario 5 - Trailing Stop loss|A trailing Story]] for more information.
 +
 +\\
 +[[dca.properties|TOP]]
 +\\
 +
 +----
 +== DEFAULT_DCA_take_profit_safety_fire ==
 +
 +<file java>
 +DEFAULT_DCA_take_profit_safety_fire = 0.5
 +</​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}}]][[faq#​how_do_i_vary_a_setting_per_dca_level|{{:​dcabw.png?​18|DCA level specific - click for more info}}]]
 +
 +Valid Values: Decimal values greater than or equal to 0
 +
 +Set the value which will trigger the Take Profit Safety sell method. Requires ''​[[dca.properties#​DEFAULT_DCA_take_profit_safety_arm]]''​ to be armed.
 +
 +**Notes:**
 +  - Must be less than [[dca.properties#​DEFAULT_DCA_take_profit_safety_arm]]
 +  - See [[a_trailing story#​Scenario 5 - Trailing Stop loss|A trailing Story]] for more information.
 +
 +\\
 +[[dca.properties|TOP]]
 +\\
 +
 +----
 +== DEFAULT_DCA_pending_gain_percentage ==
 +
 +<file java>
 +DEFAULT_DCA_pending_gain_percentage = 2
 +</​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}}]][[faq#​how_do_i_vary_a_setting_per_dca_level|{{:​dcabw.png?​18|DCA level specific - click for more info}}]]
 +
 +Valid Values: Decimal values greater than or equal to 0
 +
 +Set the target profit percentage for pending orders. Orders will be placed on the exchange at a price that results in the set percentage of profit.
 +
 +**Note:**
 +  - Fees are taken into account.
 +
 +\\
 +[[dca.properties|TOP]]
 +\\
  
 ---- ----
Line 599: Line 965:
 DEFAULT_DCA_pending_order_wait_time = 0 DEFAULT_DCA_pending_order_wait_time = 0
 </​file>​ </​file>​
-[[faq#​how_do_i_change_settings_on_a_single_coin|{{:​csbw.png?​18|Coin Specific - click for more info}}]][[mandatory_setting#​optional_settings|{{:​optbw.png?​18|Optional - click for more info}}]]+[[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 or equal to 0 Valid Values: Integer values greater or equal to 0
Line 608: Line 974:
  
 **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 manually placed exchange ​order are not recorded in the sales log. Coins that sell from a bot placed pending order will be 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. 
 + 
 + 
 +\\ 
 +[[dca.properties|TOP]] 
 +\\ 
 + 
 +---- 
 +== 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 manually placed exchange order are not recorded in the sales log. Coins that sell from a bot placed pending order will be 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. 
 + 
 +\\ 
 +[[dca.properties|TOP]] 
 +\\ 
 + 
 +---- 
 +== 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}}]][[faq#​how_do_i_vary_a_setting_per_dca_level|{{:​dcabw.png?​18|DCA level specific - click for more info}}]] 
 + 
 +Valid values: Positive or negative decimal values. 
 + 
 +Cancel pending orders for a coin if the combined profit with a non-pending amount of the same coin reaches the specified amount. 
 + 
 +**Note:** 
 +  - Will only cancel pending orders that were created from the DCA log i.e [[dca.properties#​DEFAULT_DCA_pending_order_wait_time]] or [[dca.properties#​DEFAULT_DCA_pending_order_price_drop_trigger]]  
 + 
 +\\ 
 +[[dca.properties|TOP]] 
 +\\ 
 + 
 +---- 
 +== DEFAULT_DCA_cancel_pending_trigger == 
 + 
 +<file java> 
 +DEFAULT_DCA_cancel_pending_trigger = 0.5 
 +</​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}}]][[faq#​how_do_i_vary_a_setting_per_dca_level|{{:​dcabw.png?​18|DCA level specific - click for more info}}]] 
 + 
 +Valid Values: Positive or negative decimal values. 
 + 
 +Cancel pending orders for a coin if the profit reaches the set percentage and return the coin to the DCA log. 
 + 
 +**Note:** 
 +  - Will only cancel pending orders that were created from the DCA log i.e [[dca.properties#​DEFAULT_DCA_pending_order_wait_time]] or [[dca.properties#​DEFAULT_DCA_pending_order_price_drop_trigger]] 
 + 
 +\\ 
 +[[dca.properties|TOP]] 
 +\\ 
 + 
 +---- 
 +== 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. 
 + 
 +\\ 
 +[[dca.properties|TOP]] 
 +\\
  
 ---- ----
Line 616: Line 1066:
 DEFAULT_DCA_stop_loss_trigger = -10 DEFAULT_DCA_stop_loss_trigger = -10
 </​file>​ </​file>​
-[[faq#​how_do_i_change_settings_on_a_single_coin|{{:​csbw.png?​18|Coin Specific - click for more info}}]][[mandatory_setting#​optional_settings|{{:​optbw.png?​18|Optional - click for more info}}]][[mandatory_settings#​caution|{{:​warnbr.png?​18|Caution - click for more info}}]]+[[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: Decimal values less than or equal to 0 Valid Values: Decimal values less than or equal to 0
Line 623: Line 1073:
  
 **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.+[[dca.properties|TOP]] 
 +\\
  
 ---- ----
Line 635: Line 1086:
 DEFAULT_DCA_stop_loss_timeout = 5 DEFAULT_DCA_stop_loss_timeout = 5
 </​file>​ </​file>​
-[[faq#​how_do_i_change_settings_on_a_single_coin|{{:​csbw.png?​18|Coin Specific - click for more info}}]][[mandatory_setting#​optional_settings|{{:​optbw.png?​18|Optional - click for more info}}]]+[[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: Integers greater than or equal to 0 Valid Values: Integers greater than or equal to 0
Line 644: Line 1095:
 [[dca.properties|TOP]] [[dca.properties|TOP]]
 \\ \\
 +
 ---- ----
 +== DEFAULT_DCA_trailing_stop_loss_trigger_arm ==
 +
 +<file java>
 +DEFAULT_DCA_trailing_stop_loss_trigger_arm = 0.8
 +</​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}}]][[faq#​how_do_i_vary_a_setting_per_dca_level|{{:​dcabw.png?​18|DCA level specific - click for more info}}]]
 +
 +Valid Values: Decimal values greater than or equal to 0
 +
 +Set the value which will arm the Tailing Stop Loss sell method. ​
 +
 +If the profit goes above ''​[[dca.properties#​DEFAULT_DCA_trailing_stop_loss_trigger_arm]]''​ we flag the coin as armed.
 +Then if the profit comes back down below the ''​[[dca.properties#​DEFAULT_DCA_trailing_stop_loss_trigger]]''​ value the bot will attempt to sell the coins.
 +
 +**Notes:**
 +  - The arm value is just a boolean (true or false). ​ Once armed it can fire at whatever the stop loss value is. It will stay armed if you change arm or stop loss values even if the new arm value is higher but it will sell at the new stop loss value if changed.
 +  - See [[a_trailing story#​Scenario 5 - Trailing Stop loss|A trailing Story]] for more information.
 +
 +
 +\\
 +[[dca.properties|TOP]]
 +\\
 +
 +----
 +== DEFAULT_DCA_trailing_stop_loss_trigger ==
 +
 +<file java>
 +DEFAULT_DCA_trailing_stop_loss_trigger = -3
 +</​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}}]][[faq#​how_do_i_vary_a_setting_per_dca_level|{{:​dcabw.png?​18|DCA level specific - click for more info}}]]
 +
 +Valid values: Decimal value less than 0.
 +
 +Set the percentage that ProfitTrailer will trail below the highest profit percentage reached in order to trigger a stop loss order.
 +
 +If the value of a coin drops below stop loss line, it will be automatically sold, potentially FOR A LOSS. Use carefully. Research Stop Loss from a financial website before using it.  ​
 +
 +**Notes:​** ​
 +  - trailing stop loss must be armed using ''​[[dca.properties#​DEFAULT_DCA_trailing_stop_loss_trigger_arm]]''​ before it will be activated
 +  - Stop loss will only occur once DCA is complete unless ''​[[dca.properties#​DCA_stop_before_complete]] = true''​
 +  - DEFAULT_DCA_trailing_stop_loss_trigger will only stop loss coins in the DCA log. Coins in PAIRS log are handled by ''​[[pairs.properties#​DEFAULT_trailing_stop_loss_trigger]]''​
 +
 +\\
 +[[dca.properties|TOP]]
 +\\
 +
 +----
 +== DCA_stop_before_complete ==
 +
 +<file java>
 +DCA_stop_before_complete = false
 +</​file>​
 +[[mandatory_settings#​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.
 +
 +\\
 +[[dca.properties|TOP]]
 +\\
 +----
 +== 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: 7 months ago
  • by sgtbatten