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 [2019/02/02 07:31]
sgtbatten [SELL SETTINGS]
dca.properties [2019/04/12 22:35] (current)
sgtbatten [GENERAL SETTINGS] max trading pairs waits 2 minutes
Line 1: Line 1:
-=====dca.properties=====+=====DCA 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 38: Line 38:
  
 ---- ----
-=== Example DCA.properties file ===+=== Example DCA Config ​===
 Click to view the documentation on each parameter. Click to view the documentation on each parameter.
  
Line 51: Line 51:
 <​file>#​BUY FILTER SETTINGS#</​file>​ <​file>#​BUY FILTER SETTINGS#</​file>​
  
 +[[dca.properties#​DEFAULT_DCA_buy_leverage]] = 2\\
 [[dca.properties#​DEFAULT_DCA_min_buy_volume]] = 300\\ [[dca.properties#​DEFAULT_DCA_min_buy_volume]] = 300\\
 [[dca.properties#​DEFAULT_DCA_max_buy_spread]] = 1.0\\ [[dca.properties#​DEFAULT_DCA_max_buy_spread]] = 1.0\\
 [[dca.properties#​DEFAULT_DCA_min_orderbook_volume_percentage]] = 150\\ [[dca.properties#​DEFAULT_DCA_min_orderbook_volume_percentage]] = 150\\
 +[[dca.properties#​DEFAULT_DCA_min_orderbook_price_slippage_percentage]] = false\\
  
 [[dca.properties#​DEFAULT_DCA_rebuy_timeout]] = 15\\ [[dca.properties#​DEFAULT_DCA_rebuy_timeout]] = 15\\
Line 76: Line 78:
 [[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\\
 +
 +[[dca.properties#​DEFAULT_DCA_buy_strategy_formula]] = \\
 +[[dca.properties#​DEFAULT_DCA_ignore_buy_trigger]] = false\\
  
 [[dca.properties#​DEFAULT_DCA_buy_trigger]] = -2.5\\ [[dca.properties#​DEFAULT_DCA_buy_trigger]] = -2.5\\
Line 81: Line 86:
 [[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_trailing_buy_rebound_count]] = 1\\
 +[[dca.properties#​DEFAULT_DCA_trailing_buy_reset_with_strategies]] = false\\
 [[dca.properties#​DEFAULT_DCA_buy_percentage]] = 100\\ [[dca.properties#​DEFAULT_DCA_buy_percentage]] = 100\\
 [[dca.properties#​SOM_DCA_buy_percentage]] = 50 \\ [[dca.properties#​SOM_DCA_buy_percentage]] = 50 \\
Line 98: Line 104:
 #​[[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_A_sell_value_limit|DEFAULT_DCA_B_sell_value_limit]] = 90
 +
 +[[dca.properties#​DEFAULT_DCA_sell_strategy_formula]] = \\
  
 [[dca.properties#​DEFAULT_DCA_trailing_profit]] = 0.25\\ [[dca.properties#​DEFAULT_DCA_trailing_profit]] = 0.25\\
Line 131: Line 139:
  
 == DEFAULT_DCA_max_cost == == DEFAULT_DCA_max_cost ==
- 
 <file java> <file java>
 DEFAULT_DCA_max_cost = 0 DEFAULT_DCA_max_cost = 0
Line 141: Line 148:
 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]] [[dca.properties|TOP]]
-\\ 
  
 ---- ----
 == DEFAULT_DCA_max_buy_times ​ == == DEFAULT_DCA_max_buy_times ​ ==
- 
 <file java> <file java>
 DEFAULT_DCA_max_buy_times = 0 DEFAULT_DCA_max_buy_times = 0
Line 157: 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]] [[dca.properties|TOP]]
-\\ 
  
 ---- ----
Line 173: Line 175:
  
 **Note**: **Note**:
-  - If not set (including missing from the file completely) ​then there is no limit and all coins can be DCA'd.+  - If not set 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.   - If you lower this limit below the number of coins you already have in DCA, ProfitTrailer will randomly select the ones that DCA.
 +  - If a coin is removed, sells or disappears from the DCA log, the bot will select another random coin to reach the max number after 2 minutes.
   - Excluded coins will stay in the [[web_interface_guide#​DCA Log]] but display MAX DCA PAIRS.   - Excluded coins will stay in the [[web_interface_guide#​DCA Log]] but display MAX DCA PAIRS.
 +  - Effective as of version 2.3, Stop Loss settings will only trigger if the DCA pair is one under active DCA and not marked MAX PAIRS.
  
-\\ 
 [[dca.properties|TOP]] [[dca.properties|TOP]]
-\\ 
  
 ---- ----
 == DCA_keep_balance ​ == == DCA_keep_balance ​ ==
- 
 <file java> <file java>
 DCA_keep_balance = 0.5 DCA_keep_balance = 0.5
Line 195: Line 196:
 **Note**: ​ **Note**: ​
   * This only stops ProfitTrailer making DCA purchases. There is an equivalent setting in pairs.properties for initial purchases.   * This only stops ProfitTrailer making DCA purchases. There is an equivalent setting in pairs.properties for initial purchases.
 +
 +[[dca.properties|TOP]]
  
 ---- ----
 == DCA_keep_balance_percentage ​ == == DCA_keep_balance_percentage ​ ==
- 
 <file java> <file java>
 DCA_keep_balance_percentage = 60 DCA_keep_balance_percentage = 60
Line 214: Line 216:
   - This only stops ProfitTrailer making DCA purchases. There is an equivalent setting in pairs.properties for initial purchases.   - This only stops ProfitTrailer making DCA purchases. There is an equivalent setting in pairs.properties for initial purchases.
  
-// 
 [[dca.properties|TOP]] [[dca.properties|TOP]]
-//+
 ---- ----
 ==== FILTERING COINS ==== ==== FILTERING COINS ====
  
-== DEFAULT_DCA_min_buy_volume  ​==+== DEFAULT_DCA_buy_leverage ​== 
 +<file java> 
 +DEFAULT_DCA_buy_leverage = 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}}]][[mandatory_settings#​caution|{{:​warnbr.png?​18|Caution - click for more info}}]]
  
 +<color #​ed1c24>​Valid Values:</​color>​ Decimal values greater than or equal to 1
 +
 +<color #​ed1c24>​Description/​function</​color>​
 +
 +**WARNING: Leverage Trading can be dangerous if you use too high a leverage value. The higher you set your leverage the smaller the margin of error you will have in price movement before your trading position is liquidated. There is the possibility that you can lose your entire trading position value using leverage. 100x leverage for example will usually result in your entire trading position being liquidated immediately as the amount the price of the coin has to move is minuscule before it reaches the liquidation value.**
 +
 +Leverage results from using borrowed capital as a funding source when trading. ​
 +
 +Leverage is a double edged sword in that it magnifies both gains and losses. If a trader uses leverage to make a trade and the trade moves against the trader, their loss is much greater than it would have been if the trader had not leveraged the trade.
 +
 +BitMEX for example is a popular cryptocurrency exchange that offers leverage trading. ​
 +
 +Leverage trading, also known as margin trading, is a system which allows a trader to open positions much larger than their own capital would allow. ​
 +
 +Not all exchanges offer leverage so this setting can only be used on those exchanges that offer the ability to trade with leverage.
 +
 +** BitMEX **
 +
 +  * BitMEX offers leverage on all of its products except UP and DOWN contracts.
 +  * The amount of leverage BitMEX offers varies from product to product. ​
 +  * Leverage is determined by the [[https://​www.bitmex.com/​app/​marginTermReference|Initial Margin and Maintenance Margin]] levels. These levels specify the minimum equity you must hold in your account to enter and maintain positions. ​
 +  * Leverage is not a fixed multiplier but rather a minimum equity requirement. ​
 +  * You can see the minimum Initial Margin and Maintenance Margin levels for all products [[https://​www.bitmex.com/​app/​riskLimits#​instrument-risk-limits|here]].
 +  * The highest leverage BitMEX offers is up to 100x leverage on its Daily Bitcoin / JPY Futures Contract and the Perpetual Bitcoin / USD Perpetual Contract.
 +
 +[[dca.properties|TOP]]
 +
 +----
 +== DEFAULT_DCA_min_buy_volume ​ ==
 <file java> <file java>
 DEFAULT_DCA_min_buy_volume = 500 DEFAULT_DCA_min_buy_volume = 500
Line 232: Line 266:
  
 It is more risky to trade low volume coins because it is more difficult to sell them quickly or buy them quickly due to the lower available trading partners, which can lead to negative price impacts. ​ It is more risky to trade low volume coins because it is more difficult to sell them quickly or buy them quickly due to the lower available trading partners, which can lead to negative price impacts. ​
 +
 +[[dca.properties|TOP]]
  
 ---- ----
 == DEFAULT_DCA_max_buy_spread == == DEFAULT_DCA_max_buy_spread ==
- 
 <file java> <file java>
 DEFAULT_DCA_max_buy_spread = 2 DEFAULT_DCA_max_buy_spread = 2
Line 245: Line 280:
 Do not DCA coins where the current spread % between lowest ask and highest bid orders exceeds the set value. If spread is too big, most likely there was a coin dump/pump and you are buying too high.  A value of 2 is mildly conservative. 1 is more conservative. 3 would be more aggressive. Do not DCA coins where the current spread % between lowest ask and highest bid orders exceeds the set value. If spread is too big, most likely there was a coin dump/pump and you are buying too high.  A value of 2 is mildly conservative. 1 is more conservative. 3 would be more aggressive.
  
 +[[dca.properties|TOP]]
  
 ---- ----
 == DEFAULT_DCA_min_orderbook_volume_percentage ​ == == DEFAULT_DCA_min_orderbook_volume_percentage ​ ==
- 
 <file java> <file java>
 DEFAULT_DCA_min_orderbook_volume_percentage = 150 DEFAULT_DCA_min_orderbook_volume_percentage = 150
Line 262: Line 297:
 **Note:** **Note:**
   - Avoid using less than 100 unless your [[pairs.properties#​DEFAULT_initial_cost]] is well above dust levels.   - Avoid using less than 100 unless your [[pairs.properties#​DEFAULT_initial_cost]] is well above dust levels.
 +
 +[[dca.properties|TOP]]
  
 ---- ----
-== DEFAULT_DCA_rebuy_timeout  ​==+== DEFAULT_DCA_min_orderbook_price_slippage_percentage ​== 
 +<file java> 
 +DEFAULT_DCA_min_orderbook_price_slippage_percentage = 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}}]]
  
 +Valid values: Decimal Values greater than or equal to 0. Default is 0
 +
 +Set the percentage of price slippage allowed when ProfitTrailer is looking to buy a coin.
 +
 +//EXAMPLE\\
 +We want to buy 80 coins\\
 +
 +DEFAULT_DCA_min_orderbook_price_slippage_percentage = 0.5\\
 +\\
 +THE ORDERBOOK\\
 +price              -- amount \\
 +0.00100 ​           --     50 \\
 +0.001001 ​          ​-- ​    ​75 ​ \\
 +\\
 +0.00100 + 0.5% = 0.001005\\
 +\\
 +There are not enough coins available at 0.00100. ProfitTrailer will now check how many coins are available at a price of LESS than 0.001005\\
 +There are 125. And that is enough. ​ \\
 +ProfitTrailer will place a buy order at the limit price of 0.001005 and it would buy the 50 at 0.00100 + the other 30 at 0.001001//​\\
 +
 +[[dca.properties|TOP]]
 +
 +----
 +== DEFAULT_DCA_rebuy_timeout ​ ==
 <file java> <file java>
 DEFAULT_DCA_rebuy_timeout = 10 DEFAULT_DCA_rebuy_timeout = 10
Line 275: Line 340:
 Set the amount of minutes that the bot is not allowed to buy a coin (initial or DCA buy) after it was DCA'​d/​sold. Set the amount of minutes that the bot is not allowed to buy a coin (initial or DCA buy) after it was DCA'​d/​sold.
  
 +[[dca.properties|TOP]]
  
 ---- ----
 == DEFAULT_DCA_buy_min_change_percentage ​ == == DEFAULT_DCA_buy_min_change_percentage ​ ==
- 
 <file java> <file java>
 DEFAULT_DCA_buy_min_change_percentage = 0 DEFAULT_DCA_buy_min_change_percentage = 0
Line 292: Line 357:
 DEFAULT_DCA_buy_min_change_percentage = -2 --> Only buy a coin if the 24 hour change is greater than -2%// DEFAULT_DCA_buy_min_change_percentage = -2 --> Only buy a coin if the 24 hour change is greater than -2%//
  
 +[[dca.properties|TOP]]
  
 ---- ----
 == DEFAULT_DCA_buy_max_change_percentage ​ == == DEFAULT_DCA_buy_max_change_percentage ​ ==
- 
 <file java> <file java>
 DEFAULT_DCA_buy_max_change_percentage = 0 DEFAULT_DCA_buy_max_change_percentage = 0
Line 308: Line 373:
 DEFAULT_DCA_buy_max_change_percentage = 8 --> Only buy a coin if the 24 hour change is less than 8%\\ DEFAULT_DCA_buy_max_change_percentage = 8 --> Only buy a coin if the 24 hour change is less than 8%\\
 DEFAULT_DCA_buy_max_change_percentage = -1 --> Only buy a coin if the 24 hour change is less than -1%// DEFAULT_DCA_buy_max_change_percentage = -1 --> Only buy a coin if the 24 hour change is less than -1%//
 +
 +[[dca.properties|TOP]]
  
 ---- ----
 == DEFAULT_DCA_ignore_sell_only_mode ​ == == DEFAULT_DCA_ignore_sell_only_mode ​ ==
- 
 <file java> <file java>
 DEFAULT_DCA_ignore_sell_only_mode = false DEFAULT_DCA_ignore_sell_only_mode = false
Line 322: Line 388:
  
 [[dca.properties|TOP]] [[dca.properties|TOP]]
- 
  
 ---- ----
Line 338: Line 403:
   - Used with ''​[[dca.properties#​DEFAULT_DCA_sell_wall_diff_percentage]]''​   - Used with ''​[[dca.properties#​DEFAULT_DCA_sell_wall_diff_percentage]]''​
  
-\\ 
 [[dca.properties|TOP]] [[dca.properties|TOP]]
-\\ 
  
 ---- ----
Line 362: Line 425:
   - Used with ''​[[dca.properties#​DEFAULT_DCA_sell_wall_orderbook_depth]]''​   - Used with ''​[[dca.properties#​DEFAULT_DCA_sell_wall_orderbook_depth]]''​
  
-\\ 
 [[dca.properties|TOP]] [[dca.properties|TOP]]
-\\+ 
 +----
  
 ==== BUY SETTINGS ==== ==== BUY SETTINGS ====
Line 402: Line 465:
   - The label can be anything alphanumeric. 24NUGGETSFOR995 will work   - The label can be anything alphanumeric. 24NUGGETSFOR995 will work
  
-\\ 
 [[dca.properties|TOP]] [[dca.properties|TOP]]
-\\+
 ---- ----
 == DEFAULT_DCA_A_buy_strategy ​ == == DEFAULT_DCA_A_buy_strategy ​ ==
- 
 <file java> <file java>
 DEFAULT_DCA_A_buy_strategy = LOWBB DEFAULT_DCA_A_buy_strategy = LOWBB
Line 423: Line 484:
   - 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]].   - 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]] [[dca.properties|TOP]]
-\\ 
  
 ---- ----
 == DEFAULT_DCA_A_buy_value ​ == == DEFAULT_DCA_A_buy_value ​ ==
- 
 <file java> <file java>
 DEFAULT_DCA_A_buy_value = -20 DEFAULT_DCA_A_buy_value = -20
Line 447: Line 505:
   - If you are using trailing, the bot will follow the price down further and will not buy immediately. See ''​[[dca.properties#​DEFAULT_DCA_trailing_buy]]''​ below. ​   - If you are using trailing, the bot will follow the price down further and will not buy immediately. See ''​[[dca.properties#​DEFAULT_DCA_trailing_buy]]''​ below. ​
  
-----+[[dca.properties|TOP]]
  
 +----
 == DEFAULT_DCA_A_buy_value_limit ​ == == DEFAULT_DCA_A_buy_value_limit ​ ==
- 
 <file java> <file java>
 DEFAULT_DCA_A_buy_value_limit = 0 DEFAULT_DCA_A_buy_value_limit = 0
Line 490: Line 548:
 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//
 +
 +[[dca.properties|TOP]]
  
 ---- ----
-== DEFAULT_DCA_A_buy_strategy_direction ​==+== DEFAULT_DCA_buy_strategy_formula ​== 
 +<file java> 
 +DEFAULT_DCA_buy_strategy_formula = 
 +</​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 valid set of properly formatted strategies using javascript operators; examples below.\\
 +\\
 +
 + - NOTE: Formatted strings follow the order of operations and uses AND ( && ), OR ( || ), NOT ( ! ).\\
 +\\
 +
 + - You must use parenthesis to delimit what you want to add together, i.e.- you cannot use A && B || C because the bot will not know whether you want to use A and B together OR C .. or whether you want to use A ....and B OR C.\\
 +
 +**Example:​**
 +<file java>​DEFAULT_DCA_buy_strategy_formula = ((A && B) || C)</​file>​
 +Will look for either: A and B strategies to be TRUE , OR for the C strategy to be TRUE.\\
 +\\
 +
 +<file java>​DEFAULT_DCA_buy_strategy_formula = A || B</​file>​
 +Will look for either: A OR B strategies to be true.\\
 +\\
 +
 +<file java>​DEFAULT_DCA_buy_strategy_formula = (A || (B && C))</​file>​
 +Will look for either: A strategy to be TRUE , OR for the B and C strategies to be TRUE.\\
 +
 +[[dca.properties|TOP]]
 +
 +----
 +== DEFAULT_DCA_ignore_buy_trigger ==
 +<file java>
 +DEFAULT_DCA_ignore_buy_trigger = 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}}]][[faq#​how_do_i_vary_a_setting_per_dca_level|{{:​dcabw.png?​18|DCA level specific - click for more info}}]]
 +
 +Valid Values: true or false, default is false.
 +
 +Used to ignore the DCA buy trigger alltogether. Setting this to true will ignore any DCA buy trigger value and use ONLY the strategy values in order to buy.
 +
 +//​Example:​\\
 +DEFAULT_DCA_A_buy_strategy = RSI\\
 +DEFAULT_DCA_A_buy_value = 35\\
 +DEFAULT_DCA_buy_trigger = -2.5\\
 +DEFAULT_DCA_ignore_buy_trigger = true\\
 +The strategy will be true when the RSI value is below 35 and also it will ignore the trigger setting of -2.5 and will trigger a buy based ONLY on the RSI buy value.//\\
 +
 +
 +[[dca.properties|TOP]]
 +
 +----
 +== DEFAULT_DCA_A_buy_strategy_direction ==
 <file java> <file java>
 DEFAULT_DCA_A_buy_strategy_direction = UP/DOWN DEFAULT_DCA_A_buy_strategy_direction = UP/DOWN
Line 514: Line 623:
  
 **Note:** **Note:**
-  - Only compatible with RSI, STOCHRSIK, STOCHRSID, STOCHRSI, BBWIDTH and STOCH.+  - Only compatible with RSI, STOCHRSIK, STOCHRSID, BBWIDTH and STOCH.
  
-\\ 
 [[dca.properties|TOP]] [[dca.properties|TOP]]
-\\ 
  
 ---- ----
 == DEFAULT_DCA_A_buy_on_first_signal == == DEFAULT_DCA_A_buy_on_first_signal ==
- 
 <file java> <file java>
 DEFAULT_DCA_A_buy_on_first_signal = false DEFAULT_DCA_A_buy_on_first_signal = false
Line 553: Line 659:
   - 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]] [[dca.properties|TOP]]
-\\ 
  
 ---- ----
 == DEFAULT_DCA_buy_trigger ​ == == DEFAULT_DCA_buy_trigger ​ ==
- 
 <file java> <file java>
 DEFAULT_DCA_buy_trigger = -3.5 DEFAULT_DCA_buy_trigger = -3.5
Line 575: Line 678:
 **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.
 +
 +[[dca.properties|TOP]]
  
 ---- ----
 == SOM_DCA_buy_trigger ​ == == SOM_DCA_buy_trigger ​ ==
- 
 <file java> <file java>
 SOM_DCA_buy_trigger = -5.5 SOM_DCA_buy_trigger = -5.5
Line 591: Line 695:
   - 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.   - If you have DCA level specific buy triggers you need to set SOM triggers for each level also.
 +
 +[[dca.properties|TOP]]
  
 ---- ----
 == DEFAULT_DCA_trailing_buy ​ == == DEFAULT_DCA_trailing_buy ​ ==
- 
 <file java> <file java>
 DEFAULT_DCA_trailing_buy = 0.3 DEFAULT_DCA_trailing_buy = 0.3
Line 603: Line 708:
  
 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. ​
 +
 +[[dca.properties|TOP]]
  
 ---- ----
 == DEFAULT_DCA_trailing_buy_rebound_count== == DEFAULT_DCA_trailing_buy_rebound_count==
- 
 <file java> <file java>
 DEFAULT_DCA_trailing_buy_rebound_count = 1 DEFAULT_DCA_trailing_buy_rebound_count = 1
Line 619: Line 725:
  
 More detail in on how Trailing works [[a_trailing_story|here in A Trailing Story]]. More detail in on how Trailing works [[a_trailing_story|here in A Trailing Story]].
 +
 +[[dca.properties|TOP]]
  
 ---- ----
-== DEFAULT_DCA_buy_percentage  ​==+== DEFAULT_DCA_trailing_buy_reset_with_strategies ​== 
 +<file java> 
 +DEFAULT_DCA_trailing_buy_reset_with_strategies = 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 or false , default is false.\\
 +
 +If set to True, trailing will reset (stop trailing) if your strategies are not TRUE anymore and ready to buy.\\
 +If set to false, trailing will continue based on price at trail start and ignore strategy indicators.\\
 +
 +Using this property will stop [[dca.properties#​default_dca_trailing_buy]] if ANY of your current strategies change from being true.
 +
 +[[dca.properties|TOP]]
 +
 +----
 +== DEFAULT_DCA_buy_percentage ​ ==
 <file java> <file java>
 DEFAULT_DCA_buy_percentage = 100 DEFAULT_DCA_buy_percentage = 100
Line 634: Line 757:
 **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.
 +
 +[[dca.properties|TOP]]
  
 ---- ----
Line 650: Line 775:
   - If you have DCA level specific buy triggers you need to set SOM triggers for each level also.   - If you have DCA level specific buy triggers you need to set SOM triggers for each level also.
  
-\\ 
 [[dca.properties|TOP]] [[dca.properties|TOP]]
-\\ 
  
 ---- ----
- 
  
 ==== SELL SETTINGS ==== ==== SELL SETTINGS ====
Line 677: Line 799:
 **Note:** **Note:**
   - The label can be anything alphanumeric. WELOVESGTBATTEN will work   - The label can be anything alphanumeric. WELOVESGTBATTEN will work
 +
 +[[dca.properties|TOP]]
  
 ---- ----
 == DEFAULT_DCA_A_sell_strategy ​ == == DEFAULT_DCA_A_sell_strategy ​ ==
- 
 <file java> <file java>
 DEFAULT_DCA_A_sell_strategy = GAIN DEFAULT_DCA_A_sell_strategy = GAIN
Line 696: Line 819:
   - 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]].   - 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]] [[dca.properties|TOP]]
-\\ 
  
 ---- ----
 == DEFAULT_DCA_A_sell_value ​ == == DEFAULT_DCA_A_sell_value ​ ==
- 
 <file java> <file java>
 DEFAULT_DCA_A_sell_value = 2 DEFAULT_DCA_A_sell_value = 2
Line 715: Line 835:
   - 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.
 +
 +[[dca.properties|TOP]]
  
 ---- ----
Line 753: Line 875:
 DEFAULT_DCA_A_sell_value_limit = 15 \\ DEFAULT_DCA_A_sell_value_limit = 15 \\
 The bot will only sell if RSI is between 15 and 30// The bot will only sell if RSI is between 15 and 30//
 +
 +[[dca.properties|TOP]]
  
 ---- ----
-== DEFAULT_DCA_trailing_profit  ​==+== DEFAULT_DCA_sell_strategy_formula ​== 
 +<file java> 
 +DEFAULT_DCA_sell_strategy_formula = 
 +</​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: Any valid set of properly formatted strategies using javascript operators; examples below.
 +
 +**Note:**
 +  - Formatted strings follow the order of operations and uses AND ( && ), OR ( || ), NOT ( ! ).
 +  - You must use parenthesis to delimit what you want to add together, i.e.- you cannot use A && B || C because the bot will not know whether you want to use A and B together OR C .. or whether you want to use A ....and B OR C.
 +
 +**Example:​**
 +<file java>​DEFAULT_DCA_sell_strategy_formula = ((A && B) || C)</​file>​
 +Will look for either: A and B strategies to be TRUE , OR for the C strategy to be TRUE.
 +
 +<file java>​DEFAULT_DCA_sell_strategy_formula = A || B</​file>​
 +Will look for either: A OR B strategies to be true.
 +
 +<file java>​DEFAULT_DCA_sell_strategy_formula = (A || (B && C))</​file>​
 +Will look for either: A strategy to be TRUE , OR for the B and C strategies to be TRUE.
 +
 +[[dca.properties|TOP]]
 +
 +----
 +== DEFAULT_DCA_trailing_profit ​ ==
 <file java> <file java>
 DEFAULT_DCA_trailing_profit = 0 DEFAULT_DCA_trailing_profit = 0
Line 766: Line 914:
 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]]. 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.+**NOTES:** 
 +  ''​[[dca.properties#​DEFAULT_DCA_take_profit_wait_time|DEFAULT_DCA_take_profit]]''​ and ''​[[dca.properties#​DEFAULT_DCA_max_profit]]''​ can trigger a sell without trailing. 
 +  - If GAIN is NOT used as a sell strategy, then you cannot use DEFAULT_DCA_trailing_profit settings. 
 + 
 +[[dca.properties|TOP]]
  
 ---- ----
Line 791: Line 943:
 **Note** **Note**
   - Using DEFAULT will not alter the ''​trailing_profit''​ value at all.   - Using DEFAULT will not alter the ''​trailing_profit''​ value at all.
 +
 +[[dca.properties|TOP]]
  
 ---- ----
 == DEFAULT_DCA_trailing_profit_rebound_count == == DEFAULT_DCA_trailing_profit_rebound_count ==
- 
 <file java> <file java>
 DEFAULT_DCA_trailing_profit_rebound_count = 1 DEFAULT_DCA_trailing_profit_rebound_count = 1
Line 807: Line 960:
  
 More detail in on how Trailing works [[a_trailing_story|here in A Trailing Story]]. More detail in on how Trailing works [[a_trailing_story|here in A Trailing Story]].
 +
 +[[dca.properties|TOP]]
  
 ---- ----
 == DCA_orderbook_profit_calculation ​ == == DCA_orderbook_profit_calculation ​ ==
- 
 <file java> <file java>
 DCA_orderbook_profit_calculation = true DCA_orderbook_profit_calculation = true
Line 821: Line 975:
  
 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. 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.
 +
 +[[dca.properties|TOP]]
  
 ---- ----
 == DEFAULT_DCA_max_profit == == DEFAULT_DCA_max_profit ==
- 
 <file java> <file java>
 DEFAULT_DCA_max_profit = 15 DEFAULT_DCA_max_profit = 15
Line 834: Line 989:
 Instruct the bot to sell the coin if the profit reaches the set percentage regardless of all sell strategies being true. Instruct the bot to sell the coin if the profit reaches the set percentage regardless of all sell strategies being true.
 Set to 0 to disable Set to 0 to disable
 +
 +[[dca.properties|TOP]]
  
 ---- ----
 == DEFAULT_DCA_take_profit_percentage ​ == == DEFAULT_DCA_take_profit_percentage ​ ==
- 
 <file java> <file java>
 DEFAULT_DCA_take_profit_percentage = 0  DEFAULT_DCA_take_profit_percentage = 0 
Line 859: Line 1015:
 // //
  
-\\ 
 [[dca.properties|TOP]] [[dca.properties|TOP]]
-\\ 
  
 ---- ----
 == DEFAULT_DCA_take_profit_reset_percentage_move == == DEFAULT_DCA_take_profit_reset_percentage_move ==
- 
 <file java> <file java>
 DEFAULT_DCA_take_profit_reset_percentage_move = 0 DEFAULT_DCA_take_profit_reset_percentage_move = 0
Line 875: Line 1028:
 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]] [[dca.properties|TOP]]
-\\ 
  
 ---- ----
 == DEFAULT_DCA_take_profit_wait_time ​ == == DEFAULT_DCA_take_profit_wait_time ​ ==
- 
 <file java> <file java>
 DEFAULT_DCA_take_profit_wait_time = 0 DEFAULT_DCA_take_profit_wait_time = 0
Line 891: Line 1041:
 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]] [[dca.properties|TOP]]
-\\ 
  
 ---- ----
 == DEFAULT_DCA_take_profit_safety_arm == == DEFAULT_DCA_take_profit_safety_arm ==
- 
 <file java> <file java>
 DEFAULT_DCA_take_profit_safety_arm = 0.8 DEFAULT_DCA_take_profit_safety_arm = 0.8
Line 914: Line 1061:
   - See [[a_trailing story#​Scenario 5 - Trailing Stop loss|A trailing Story]] for more information.   - See [[a_trailing story#​Scenario 5 - Trailing Stop loss|A trailing Story]] for more information.
  
-\\ 
 [[dca.properties|TOP]] [[dca.properties|TOP]]
-\\ 
  
 ---- ----
 == DEFAULT_DCA_take_profit_safety_fire == == DEFAULT_DCA_take_profit_safety_fire ==
- 
 <file java> <file java>
 DEFAULT_DCA_take_profit_safety_fire = 0.5 DEFAULT_DCA_take_profit_safety_fire = 0.5
Line 934: Line 1078:
   - See [[a_trailing story#​Scenario 5 - Trailing Stop loss|A trailing Story]] for more information.   - See [[a_trailing story#​Scenario 5 - Trailing Stop loss|A trailing Story]] for more information.
  
-\\ 
 [[dca.properties|TOP]] [[dca.properties|TOP]]
-\\ 
  
 ---- ----
 == DEFAULT_DCA_pending_gain_percentage == == DEFAULT_DCA_pending_gain_percentage ==
- 
 <file java> <file java>
 DEFAULT_DCA_pending_gain_percentage = 2 DEFAULT_DCA_pending_gain_percentage = 2
Line 953: Line 1094:
   - Fees are taken into account.   - Fees are taken into account.
  
-\\ 
 [[dca.properties|TOP]] [[dca.properties|TOP]]
-\\ 
  
 ---- ----
 == DEFAULT_DCA_pending_order_wait_time ​ == == DEFAULT_DCA_pending_order_wait_time ​ ==
- 
 <file java> <file java>
 DEFAULT_DCA_pending_order_wait_time = 0 DEFAULT_DCA_pending_order_wait_time = 0
Line 975: Line 1113:
   -  ''​[[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]] [[dca.properties|TOP]]
-\\ 
  
 ---- ----
 == DEFAULT_DCA_pending_order_price_drop_trigger == == DEFAULT_DCA_pending_order_price_drop_trigger ==
- 
 <file java> <file java>
 DEFAULT_DCA_pending_order_price_drop_trigger = 10 DEFAULT_DCA_pending_order_price_drop_trigger = 10
Line 999: Line 1133:
   -  ''​[[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]] [[dca.properties|TOP]]
-\\ 
  
 ---- ----
 == DEFAULT_DCA_combined_cancel_pending_trigger == == DEFAULT_DCA_combined_cancel_pending_trigger ==
- 
 <file java> <file java>
 DEFAULT_DCA_combined_cancel_pending_trigger = 0 DEFAULT_DCA_combined_cancel_pending_trigger = 0
Line 1016: Line 1147:
  
 **Note:** **Note:**
-  - Will only cancel pending orders that were created from the DCA log i.[[dca.properties#​DEFAULT_DCA_pending_order_wait_time]] or [[dca.properties#DEFAULT_DCA_pending_order_price_drop_trigger]] +  - Will only cancel pending orders that DCA logic is being applied toSee [[FAQ#Which will my bot use?]]
  
-\\ 
 [[dca.properties|TOP]] [[dca.properties|TOP]]
-\\ 
  
 ---- ----
 == DEFAULT_DCA_cancel_pending_trigger == == DEFAULT_DCA_cancel_pending_trigger ==
- 
 <file java> <file java>
-DEFAULT_DCA_cancel_pending_trigger = 0.5+DEFAULT_DCA_cancel_pending_trigger = -0.5
 </​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_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.+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.+Cancel pending orders for a coin if the profit reaches the set percentage and return the coin to the PAIRS or DCA log as applicableIn order for this to cancel an existing pending order the value set must be lower than the GAIN or ''​[[dca.properties#​DEFAULT_DCA_pending_gain_percentage]]''​ set
  
 **Note:** **Note:**
-  - Will only cancel pending orders that were created from the DCA log i.[[dca.properties#DEFAULT_DCA_pending_order_wait_time]] or [[dca.properties#​DEFAULT_DCA_pending_order_price_drop_trigger]]+  - Will only cancel pending orders that DCA logic is being applied toSee [[FAQ#Which will my bot use?]] 
 +  - The percentage in the Pending Log is relative to the price the order is set for. 0% is where the pending order will otherwise sell.
  
-\\ 
 [[dca.properties|TOP]] [[dca.properties|TOP]]
-\\ 
  
 ---- ----
Line 1054: Line 1181:
 Default value is true if not set. Default value is true if not set.
  
-\\ 
 [[dca.properties|TOP]] [[dca.properties|TOP]]
-\\ 
  
 ---- ----
 == DEFAULT_DCA_stop_loss_trigger ​ == == DEFAULT_DCA_stop_loss_trigger ​ ==
- 
 <file java> <file java>
 DEFAULT_DCA_stop_loss_trigger = -10 DEFAULT_DCA_stop_loss_trigger = -10
Line 1074: Line 1198:
   - 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]] [[dca.properties|TOP]]
-\\ 
  
 ---- ----
 == DEFAULT_DCA_stop_loss_timeout == == DEFAULT_DCA_stop_loss_timeout ==
- 
 <file java> <file java>
 DEFAULT_DCA_stop_loss_timeout = 5 DEFAULT_DCA_stop_loss_timeout = 5
Line 1090: Line 1211:
 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]] [[dca.properties|TOP]]
-\\ 
  
 ---- ----
 == DEFAULT_DCA_trailing_stop_loss_trigger_arm == == DEFAULT_DCA_trailing_stop_loss_trigger_arm ==
- 
 <file java> <file java>
 DEFAULT_DCA_trailing_stop_loss_trigger_arm = 0.8 DEFAULT_DCA_trailing_stop_loss_trigger_arm = 0.8
Line 1104: Line 1222:
 Valid Values: Decimal values greater than or equal to 0 Valid Values: Decimal values greater than or equal to 0
  
-Set the value which will arm the Trailing Stop Loss sell method. ​+Set the value which will arm the Trailing Stop Loss sell method. If arm is not set, Trailing Stop Loss is armed automatically.
  
 If the profit goes above ''​[[dca.properties#​DEFAULT_DCA_trailing_stop_loss_trigger_arm]]''​ we flag the coin as armed. 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.+Once armed, ​if the profit% falls and meets the condition set in ''​[[dca.properties#​DEFAULT_DCA_trailing_stop_loss_trigger]]''​ the bot will attempt to sell the coins.
  
 **Notes:** **Notes:**
Line 1113: Line 1231:
   - See [[a_trailing story#​Scenario 5 - Trailing Stop loss|A trailing Story]] for more information.   - See [[a_trailing story#​Scenario 5 - Trailing Stop loss|A trailing Story]] for more information.
  
- 
-\\ 
 [[dca.properties|TOP]] [[dca.properties|TOP]]
-\\ 
  
 ---- ----
 == DEFAULT_DCA_trailing_stop_loss_trigger == == DEFAULT_DCA_trailing_stop_loss_trigger ==
- 
 <file java> <file java>
 DEFAULT_DCA_trailing_stop_loss_trigger = -3 DEFAULT_DCA_trailing_stop_loss_trigger = -3
Line 1126: Line 1240:
 [[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}}]] [[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.+Valid values: Decimal value less than 0. Set to 0 to disable.
  
 Set the percentage that ProfitTrailer will trail below the highest profit percentage reached in order to trigger a stop loss order. 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.  ​+If the price of a coin falls by at least the trigger %, it will be automatically sold, potentially FOR A LOSS. Use carefully. Research Stop Loss from a financial website before using it.  ​
  
 **Notes:​** ​ **Notes:​** ​
-  - trailing stop loss must be armed using ''​[[dca.properties#​DEFAULT_DCA_trailing_stop_loss_trigger_arm]]'' ​before it will be activated+  - If''​[[dca.properties#​DEFAULT_DCA_trailing_stop_loss_trigger_arm]]'' ​is used, trailing stop loss will not function until armed. 
 +  - Trailing stop loss works independently of the sell strategies in use.
   - 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''​
   - 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]]''​   - 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]]''​
 +  - See [[a_trailing story#​Scenario 5 - Trailing Stop Loss|A trailing Story]] for more information.
  
-\\ 
 [[dca.properties|TOP]] [[dca.properties|TOP]]
-\\ 
  
 ---- ----
 == DCA_stop_before_complete == == DCA_stop_before_complete ==
- 
 <file java> <file java>
 DCA_stop_before_complete = false DCA_stop_before_complete = false
Line 1151: Line 1264:
 Valid Values: true or false 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 true, stop loss functions ​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.+If set to false, ​stop loss functions in DCA will not occur until DCA is complete.
  
 What is complete? ​ What is complete? ​
Line 1160: Line 1273:
   - there is not enough balance to keep using DCA.   - there is not enough balance to keep using DCA.
  
-\\ 
 [[dca.properties|TOP]] [[dca.properties|TOP]]
-\\+
 ---- ----
 == DEFAULT_DCA_panic_sell_enabled == == DEFAULT_DCA_panic_sell_enabled ==
- 
 <file java> <file java>
 DEFAULT_DCA_panic_sell_enabled = false DEFAULT_DCA_panic_sell_enabled = false
Line 1178: Line 1289:
   - Coins in the [[web_interface_guide#​Pairs Log]] and in the [[web_interface_guide#​Pending Log]] will not be sold.   - Coins in the [[web_interface_guide#​Pairs Log]] and in the [[web_interface_guide#​Pending Log]] will not be sold.
  
- 
-\\ 
 [[dca.properties|TOP]] [[dca.properties|TOP]]
-\\ 
  
 ---- ----
  
 ==== Example Usage ==== ==== Example Usage ====
-----+
 ---- ----
 <file java> <file java>
Line 1236: Line 1344:
  
 Depending how many times DCA has occurred the buy trigger is modified. Depending how many times DCA has occurred the buy trigger is modified.
 +
 ---- ----
 +
 <file java> <file java>
 DEFAULT_DCA_A_sell_strategy = GAIN DEFAULT_DCA_A_sell_strategy = GAIN
Line 1254: Line 1364:
 </​file>​ </​file>​
 Attempt to sell a coin if we have at least X% profit and the price is greater than HIGHBB 50. Attempt to sell a coin if we have at least X% profit and the price is greater than HIGHBB 50.
-----+
 **[[dca.properties|TOP]]** **[[dca.properties|TOP]]**
  
 ~~DISCUSSION~~ ~~DISCUSSION~~
  • dca.properties.1549092714.txt.gz
  • Last modified: 3 months ago
  • by sgtbatten