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/03/12 22:38]
sgtbatten [SELL SETTINGS]
dca.properties [2019/05/07 20:47] (current)
armchairguru
Line 38: Line 38:
  
 ---- ----
-=== Example ​DCA Config ​===+=== DCA Settings ​===
 Click to view the documentation on each parameter. Click to view the documentation on each parameter.
  
Line 55: Line 55:
 [[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 77: 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 82: 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 99: 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 132: 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 142: 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 158: 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 174: 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 196: 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 215: 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_buy_leverage == == DEFAULT_DCA_buy_leverage ==
- 
 <file java> <file java>
 DEFAULT_DCA_buy_leverage = 2 DEFAULT_DCA_buy_leverage = 2
Line 253: Line 252:
   * The highest leverage BitMEX offers is up to 100x leverage on its Daily Bitcoin / JPY Futures Contract and the Perpetual Bitcoin / USD Perpetual Contract.   * 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]] [[dca.properties|TOP]]
-\\ 
  
 +----
 == DEFAULT_DCA_min_buy_volume ​ == == DEFAULT_DCA_min_buy_volume ​ ==
- 
 <file java> <file java>
 DEFAULT_DCA_min_buy_volume = 500 DEFAULT_DCA_min_buy_volume = 500
Line 269: 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 282: 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 299: 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 312: 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 329: 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 345: 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 359: Line 388:
  
 [[dca.properties|TOP]] [[dca.properties|TOP]]
- 
  
 ---- ----
Line 375: 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 399: 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 439: 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 455: Line 479:
  
 **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, unless ''​DEFAULT_DCA_A_buy_on_first_signal = true''​ is used or if [[dca.properties#​default_dca_buy_strategy_formula]] is used; if it is then the formula decides the trigger logic.
   - 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]]   - 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]].   - 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 484: 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 527: 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 551: 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 590: 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 612: 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 628: 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 640: 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 656: 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 671: 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 687: 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 714: 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 728: Line 814:
  
 **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, , unless [[dca.properties#​default_dca_sell_strategy_formula]] is used; if it is then the formula decides the trigger logic.
   - 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]]   - 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]].   - 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 752: 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 790: 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 803: 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 828: 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 844: 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 858: 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 871: 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 896: 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 912: 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 928: 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 951: 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 971: 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 989: Line 1093:
 **Note:** **Note:**
   - Fees are taken into account.   - Fees are taken into account.
 +  - If not set, a GAIN sell strategy [[dca.properties#​default_dca_a_sell_value|sell_value]] percentage can be used for the calculation instead
  
-\\ 
 [[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 1012: Line 1114:
   -  ''​[[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 1036: Line 1134:
   -  ''​[[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 1053: Line 1148:
  
 **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
Line 1067: Line 1159:
 [[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: 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 as applicable. ​We use negative values due to the way pending ​profit is displayed. 0% is where the pending order will otherwise sell.+Cancel pending orders for a coin if the profit reaches the set percentage and return the coin to the PAIRS or DCA log as applicable. ​In 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 1091: Line 1182:
 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 1103: Line 1191:
 [[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_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 ​value less than 0. Set to 0 to disable.
  
 Set the value that will trigger a stop loss order. If the value of a coin drops below the set percentage it will be automatically sold for a loss. Set the value that will trigger a stop loss order. If the value of a coin drops below the set percentage it will be automatically sold for a loss.
Line 1111: Line 1199:
   - 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 1127: Line 1212:
 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 1141: Line 1223:
 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 1150: Line 1232:
   - 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 1163: Line 1241:
 [[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 1188: Line 1265:
 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 1197: Line 1274:
   - 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 1215: Line 1290:
   - 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 1273: Line 1345:
  
 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 1291: Line 1365:
 </​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~~ 
  • dca.properties.1552430301.txt.gz
  • Last modified: 3 months ago
  • by sgtbatten