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
a_trailing_story [2019/05/07 20:57]
armchairguru
a_trailing_story [2019/06/08 22:44] (current)
armchairguru
Line 1: Line 1:
 ===== A Trailing Story ===== ===== A Trailing Story =====
- +<callout type="​success"​ icon="​glyphicon glyphicon-equalizer">​ 
-In any of the below examples other strategies could be used. Once all buy or sell strategies are true, they all behave in the same way and only the price matters while trailing. +In any of the below examples other strategies could be used. Once all buy or sell strategies are true, they all behave in the same way and only the price matters while trailing.\\ 
- +\\ 
-The below explanations all assume ''​[[pairs.properties#​DEFAULT_trailing_buy_reset_with_strategies]] = false''​ +The below explanations all assume ''​[[pairs_config#​DEFAULT_trailing_buy_reset_with_strategies]] = false''​\\ 
 +\\
   * [[a_trailing_story#​Scenario 1 - Trailing Profit]]   * [[a_trailing_story#​Scenario 1 - Trailing Profit]]
   * [[a_trailing_story#​Scenario 2 - Trailing Buy]]   * [[a_trailing_story#​Scenario 2 - Trailing Buy]]
   * [[a_trailing_story#​Scenario 3 - Trailing Grow]]   * [[a_trailing_story#​Scenario 3 - Trailing Grow]]
-  * [[a_trailing story#Scenario 4 - Trailing Rebound]] +  * [[a_trailing_story#Scenario 4 - Trailing Rebound]] 
-  * [[a_trailing story#Scenario 5 - Trailing Stop loss]]+  * [[a_trailing_story#Scenario 5 - Trailing Stop loss]] 
 +</​callout>​
  
  
----- 
 ===Scenario 1 - Trailing Profit=== ===Scenario 1 - Trailing Profit===
 **NOTE:** If GAIN is not used as one of the sell strategies, then trailing profit settings cannot be used. **NOTE:** If GAIN is not used as one of the sell strategies, then trailing profit settings cannot be used.
 \\ \\
  
-Let's say that your sell settings in pairs.properties ​are+Let's say that your sell settings in pairs_config ​are
 <file java> <file java>
 DEFAULT_A_sell_strategy = GAIN DEFAULT_A_sell_strategy = GAIN
Line 47: Line 47:
 === Scenario 2 - Trailing Buy === === Scenario 2 - Trailing Buy ===
  
-Let's say that your buy settings in dca.properties ​are+Let's say that your buy settings in the dca config ​are
 <file java> <file java>
 DEFAULT_DCA_A_buy_strategy = RSI DEFAULT_DCA_A_buy_strategy = RSI
Line 82: Line 82:
 **Note:​** ​ **Note:​** ​
   - Be aware that once trailing begins, even if RSI and LOWBB (or whatever strategies you are using) becomes untrue, the bot will still attempt to buy once it has trailed enough, as long as the price is still below the price at the time when trailing started.   - Be aware that once trailing begins, even if RSI and LOWBB (or whatever strategies you are using) becomes untrue, the bot will still attempt to buy once it has trailed enough, as long as the price is still below the price at the time when trailing started.
-  - The exception to this is if [[dca.properties#​default_dca_trailing_buy_reset_with_strategies]] is set to true, which will reset the trail if the strategies are no longer true.+  - The exception to this is if [[dca_config#​default_dca_trailing_buy_reset_with_strategies]] is set to true, which will reset the trail if the strategies are no longer true.
  
  
Line 90: Line 90:
 \\ \\
  
-This scenario will explain the effect of ''​[[pairs.properties#​DEFAULT_trailing_profit_type]]''​ and ''​[[dca.properties#​DEFAULT_DCA_trailing_profit_type]]''​ on trailing_profit.+This scenario will explain the effect of ''​[[pairs_config#​DEFAULT_trailing_profit_type]]''​ and ''​[[dca_config#​DEFAULT_DCA_trailing_profit_type]]''​ on trailing_profit.
  
 Throughout this scenario the bot will recalculate the size of ''​trailing_profit''​ when the profit increases using the formula for GROW:  Throughout this scenario the bot will recalculate the size of ''​trailing_profit''​ when the profit increases using the formula for GROW: 
Line 99: Line 99:
 </​file>​ </​file>​
  
-Let's say that your sell settings in pairs.properties ​are+Let's say that your sell settings in pairs_config ​are
 <file java> <file java>
 DEFAULT_A_sell_strategy = GAIN DEFAULT_A_sell_strategy = GAIN
Line 146: Line 146:
 \\ \\
  
-This scenario will explain the effect of ''​[[pairs.properties#​DEFAULT_trailing_profit_rebound_count]]''​ and ''​[[dca.properties#​DEFAULT_DCA_trailing_profit_rebound_count]]''​ on trailing_profit.+This scenario will explain the effect of ''​[[pairs_config#​DEFAULT_trailing_profit_rebound_count]]''​ and ''​[[dca_config#​DEFAULT_DCA_trailing_profit_rebound_count]]''​ on trailing_profit.
  
-Let's say that your sell settings in pairs.properties ​are+Let's say that your sell settings in pairs_config ​are
 <file java> <file java>
 DEFAULT_A_sell_strategy = GAIN DEFAULT_A_sell_strategy = GAIN
Line 188: Line 188:
 === Scenario 5 - Trailing Stop Loss === === Scenario 5 - Trailing Stop Loss ===
  
-Version 2.2 introduces 2 new methods of stop loss. [[pairs.properties#​DEFAULT_trailing_stop_loss_trigger|Traling Stop Loss]] and [[pairs.properties#​DEFAULT_take_profit_safety_arm|Take Profit Safety]]. The image below demonstrates their differences from standard Stop Loss.+Version 2.2 introduces 2 new methods of stop loss. [[pairs_config#​DEFAULT_trailing_stop_loss_trigger|Traling Stop Loss]] and [[pairs_config#​DEFAULT_take_profit_safety_arm|Take Profit Safety]]. The image below demonstrates their differences from standard Stop Loss.
  
 {{::​trailing-story-visual.png|}} {{::​trailing-story-visual.png|}}
Line 194: Line 194:
 == Trailing Stop Loss == == Trailing Stop Loss ==
  
-In the example above ''​[[pairs.properties#​DEFAULT_trailing_stop_loss_trigger]] = -3''​ and ''​[[pairs.properties#​DEFAULT_trailing_stop_loss_trigger_arm]] = 1.5''​+In the example above ''​[[pairs_config#​DEFAULT_trailing_stop_loss_trigger]] = -3''​ and ''​[[pairs_config#​DEFAULT_trailing_stop_loss_trigger_arm]] = 1.5''​
   - If the profit% moves above the arm value of 1.5% we flag the trailing stop loss as armed. ProfitTrailer will continue to make note of the highest profit% reached.   - If the profit% moves above the arm value of 1.5% we flag the trailing stop loss as armed. ProfitTrailer will continue to make note of the highest profit% reached.
     - If the highest profit% was 1.85% the bot is looking for a 3% drop before it will sell. i.e the profit % falling to -1.15% (1.85-3=-1.15)     - If the highest profit% was 1.85% the bot is looking for a 3% drop before it will sell. i.e the profit % falling to -1.15% (1.85-3=-1.15)
Line 200: Line 200:
  
 **Note:** **Note:**
-  - If ''​[[pairs.properties#​DEFAULT_trailing_stop_loss_trigger_arm]]''​ is NOT set Trailing Stop Loss is armed automatically.  +  - If ''​[[pairs_config#​DEFAULT_trailing_stop_loss_trigger_arm]]''​ is NOT set Trailing Stop Loss is armed automatically.  
-  - If ''​[[pairs.properties#​DEFAULT_trailing_stop_loss_trigger_arm]]''​ is set, and the price never goes above the arm value ProfitTrailer will not sell due to not being armed. +  - If ''​[[pairs_config#​DEFAULT_trailing_stop_loss_trigger_arm]]''​ is set, and the price never goes above the arm value ProfitTrailer will not sell due to not being armed. 
-  - If trailing stop loss is used in DCA it is affected by ''​[[dca.properties#​DCA_stop_before_complete]]''​+  - If trailing stop loss is used in DCA it is affected by ''​[[dca_config#​DCA_stop_before_complete]]''​
  
 == Take Profit Safety == == Take Profit Safety ==
Line 208: Line 208:
 Take profit Safety is similar to trailing stop loss but uses fixed values rather than dynamically trailing. Take profit Safety is similar to trailing stop loss but uses fixed values rather than dynamically trailing.
  
-If the profit goes above ''​[[pairs.properties#​DEFAULT_take_profit_safety_arm]]''​ we flag the coin as armed. +If the profit goes above ''​[[pairs_config#​DEFAULT_take_profit_safety_arm]]''​ we flag the coin as armed. 
-Then if the profit comes back down below the ''​[[pairs.properties#​DEFAULT_take_profit_safety_fire]]''​ value the bot will attempt to sell the coin.+Then if the profit comes back down below the ''​[[pairs_config#​DEFAULT_take_profit_safety_fire]]''​ value the bot will attempt to sell the coin.
  
 If the coin is never armed ProfitTrailer will not do anything if the price reaches the fire value. If the coin is never armed ProfitTrailer will not do anything if the price reaches the fire value.
  
  • a_trailing_story.1557262634.txt.gz
  • Last modified: 2 months ago
  • by armchairguru