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/11/26 02:21]
armchairguru
dca.properties [2019/01/22 23:16] (current)
sgtbatten [SELL SETTINGS]
Line 1: Line 1:
 =====dca.properties 2.1===== =====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 79: Line 76:
 [[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#​DEFAULT_DCA_A_buy_Strategy|DEFAULT_DCA_B_buy_strategy]] = RSI\\ [[dca.properties#​DEFAULT_DCA_A_buy_Strategy|DEFAULT_DCA_B_buy_strategy]] = RSI\\
Line 115: 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_pending_order_price_drop_trigger]] = 0\\
 [[dca.properties#​DEFAULT_DCA_combined_cancel_pending_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_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#​DCA_stop_before_complete]] = false \\
 [[DCA.properties#​DEFAULT_DCA_panic_sell_enabled]] = false \\ [[DCA.properties#​DEFAULT_DCA_panic_sell_enabled]] = false \\
Line 141: 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 153: Line 161:
  
 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]]
 +\\
  
 ---- ----
Line 406: 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 412: 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 477: 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 510: 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 639: 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 646: 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 805: 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 817: 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 829: Line 892:
  
 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 848: Line 977:
   -  ''​[[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#​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]]
 +\\
  
 ---- ----
Line 867: Line 1000:
   - 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.   - 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#​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]]
 +\\
  
 ---- ----
Line 874: Line 1011:
 DEFAULT_DCA_combined_cancel_pending_trigger = 0 DEFAULT_DCA_combined_cancel_pending_trigger = 0
 </​file>​ </​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_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. ​+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. 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]]
 +\\
  
 ---- ----
Line 892: Line 1055:
  
 Default value is true if not set. Default value is true if not set.
 +
 +\\
 +[[dca.properties|TOP]]
 +\\
  
 ---- ----
Line 909: Line 1076:
   - Stop loss will only occur once DCA is complete unless ''​[[dca.properties#​DCA_stop_before_complete]] = true''​   - Stop loss will only occur once DCA is complete unless ''​[[dca.properties#​DCA_stop_before_complete]] = true''​
  
 +\\
 +[[dca.properties|TOP]]
 +\\
  
 ---- ----
Line 921: Line 1091:
  
 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.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]]
 +\\
  
 ---- ----
Line 963: Line 1184:
 [[dca.properties|TOP]] [[dca.properties|TOP]]
 \\ \\
 +
 ---- ----
  
  • dca.properties.1543198867.txt.gz
  • Last modified: 8 weeks ago
  • by armchairguru