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
wiki_changes [2019/01/10 01:48]
sgtbatten [PDHIGH]
wiki_changes [2019/05/28 02:11] (current)
armchairguru
Line 1: Line 1:
-For the Wiki Pages +====== ​For the Wiki Pages ======
- +
-[[Signals]] +
- +
-==== application.properties ​====+
  
 +==== FAQ ====
  
 ---- ----
-== server.use_testnet == 
  
-<file java> +==== application.properties ====
-server.use_testnet ​true +
-</​file>​ +
-Set to true to use the test net instead of the live net on Bitmex.+
  
-**Note:** +Shorting
-  - unlike ProfitTrailers [[application.properties#​server.test_mode]] the Bitmex testnet is not using the exact same data as the live net.+
  
----- +Leverage
-== server.timezone == +
- +
-<file java> +
-server.timezone = US/​Central +
-</​file>​ +
-Valid Values: [[https://​garygregory.wordpress.com/​2013/​06/​18/​what-are-the-java-timezone-ids|Java Time Zones]] +
- +
-Set the timezone ID of the location you live. This will take precedence over ''​[[application.properties#​server.timezone_offset]]''​ and will automatically handle daylight saving times.+
  
 ---- ----
-== trading.signal_providers == 
  
-<file java> +==== pairs config ====
-trading.signal_providers ​ +
-</​file>​ +
- +
-Define the Signal providers yo wish to use. Multiple Providers can be separated using a comma. If blank, all providers are included.+
  
 ---- ----
-== server.exchange == 
  
-add BITMEX +==== dca config ​====
----- +
- +
-==== pairs.properties ==== +
- +
- +
----- +
-== DEFAULT_buy_leverage == +
- +
-<file java> +
-DEFAULT_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>​ +
- +
----- +
-== DEFAULT_A_buy_strategy_direction == +
- +
-<file java> +
-DEFAULT_A_buy_strategy_direction = UP/DOWN +
-</​file>​ +
-[[faq#​how_do_i_change_settings_on_a_single_coin|{{:​csbw.png?​18|Coin Specific - click for more info}}]][[mandatory_settings#​optional_settings|{{:​optbw.png?​18|Optional - click for more info}}]] +
- +
-Valid Values: UP or DOWN +
- +
-Used to reverse the logic of a buy strategy in order to change when the strategy will indicate true relative to the ''​buy_value''​ used. +
- +
-//​Example:​\\ +
-DEFAULT_A_buy_strategy = RSI\\ +
-DEFAULT_A_buy_value = 35\\ +
-The strategy will be true when the RSI value is below 35\\ +
-\\ +
-DEFAULT_A_buy_strategy = RSI\\ +
-DEFAULT_A_buy_value = 35\\ +
-DEFAULT_A_buy_strategy_direction = UP\\ +
-The strategy will be true when the RSI value is above 35.// +
- +
- +
----- +
-== DEFAULT_trailing_stop_loss_trigger == +
- +
-<file java> +
-DEFAULT_trailing_stop_loss_trigger = -3 +
-</​file>​ +
-[[faq#​how_do_i_change_settings_on_a_single_coin|{{:​csbw.png?​18|Coin Specific - click for more info}}]][[mandatory_settings#​optional_settings|{{:​optbw.png?​18|Optional - click for more info}}]][[mandatory_settings#​caution|{{:​warnbr.png?​18|Caution - click for more info}}]] +
- +
-Valid values: Decimal value less than 0. +
- +
-Set the percentage that ProfitTrailer will trail below the highest profit percentage reached in order to trigger a stop loss order. +
- +
-If the value of a coin drops below stop loss line, it will be automatically sold, potentially FOR A LOSS. Use carefully. Research Stop Loss from a financial website before using it.   +
- +
-**Note:**  +
-  - DEFAULT_trailing_stop_loss_trigger will only stop loss coins in the pairs log. Coins in DCA log are handled by ''​[[dca.properties#​DEFAULT_DCA_trailing_stop_loss_trigger]]''​ +
- +
----- +
-== DEFAULT_trailing_stop_loss_trigger_arm ​== +
- +
-<file java> +
-DEFAULT_trailing_stop_loss_trigger_arm = 0.8 +
-</​file>​ +
-[[faq#​how_do_i_change_settings_on_a_single_coin|{{:​csbw.png?​18|Coin Specific - click for more info}}]][[mandatory_settings#​optional_settings|{{:​optbw.png?​18|Optional - click for more info}}]] +
- +
-Valid Values: Decimal values greater than or equal to 0 +
- +
-Set the value which will arm the Tailing Stop Loss sell method.  +
- +
-If the profit goes above ''​[[pairs.properties#​DEFAULT_trailing_stop_loss_trigger_arm]]''​ we flag the coin as armed. +
-Then if the profit comes back down below the ''​[[pairs.properties#​DEFAULT_trailing_stop_loss_trigger]]''​ value the bot will attempt to sell the coins. +
- +
-**Notes:​** +
-  - The arm value is just a boolean (true or false). ​ Once armed it can fire at whatever the stop loss value is. It will stay armed if you change arm or stop loss values even if the new arm value is higher but it will sell at the new stop loss value if changed. +
-  - See [[a_trailing story#​Scenario 5 - Trailing Stop loss|A trailing Story]] for more information. +
- +
----- +
- +
-== DEFAULT_take_profit_safety_arm == +
- +
-<file java> +
-DEFAULT_take_profit_safety_arm = 0.8 +
-</​file>​ +
-[[faq#​how_do_i_change_settings_on_a_single_coin|{{:​csbw.png?​18|Coin Specific - click for more info}}]][[mandatory_settings#​optional_settings|{{:​optbw.png?​18|Optional - click for more info}}]] +
- +
-Valid Values: Decimal values greater than or equal to 0 +
- +
-Set the value which will arm the Take Profit Safety sell method.  +
- +
-If the profit goes above ''​[[pairs.properties#​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 coins. +
- +
-**Notes:​** +
-  - The arm value is just a boolean (true or false). ​ Once armed it can fire at whatever the fire value is. It will stay armed if you change arm or fire values even if the new arm value is higher but it will fire at the new fire value if changed. +
-  - See [[a_trailing story#​Scenario 5 - Trailing Stop loss|A trailing Story]] for more information. +
- +
----- +
-== DEFAULT_take_profit_safety_fire == +
- +
-<file java> +
-DEFAULT_take_profit_safety_fire = 0.5 +
-</​file>​ +
-[[faq#​how_do_i_change_settings_on_a_single_coin|{{:​csbw.png?​18|Coin Specific - click for more info}}]][[mandatory_settings#​optional_settings|{{:​optbw.png?​18|Optional - click for more info}}]] +
- +
-Valid Values: Decimal values greater than or equal to 0 +
- +
-Set the value which will trigger the Take Profit Safety sell method. Requires ''​[[pairs.properties#​DEFAULT_take_profit_safety_arm]]''​ to be armed. +
- +
-**Notes:​** +
-  - Must be less than [[pairs.properties#​DEFAULT_take_profit_safety_arm]] +
-  - See [[a_trailing story#​Scenario 5 - Trailing Stop loss|A trailing Story]] for more information. +
- +
----- +
-== DEFAULT_pending_gain_percentage == +
- +
-<file java> +
-DEFAULT_pending_gain_percentage = 2 +
-</​file>​ +
-[[faq#​how_do_i_change_settings_on_a_single_coin|{{:​csbw.png?​18|Coin Specific - click for more info}}]][[mandatory_settings#​optional_settings|{{:​optbw.png?​18|Optional - click for more info}}]] +
- +
-Valid Values: Decimal values greater than or equal to 0 +
- +
-Set the target profit percentage for pending orders. Orders will be placed on the exchange at a price that results in the set percentage of profit. +
- +
-**Note:** +
-  - Fees are taken into account. +
- +
----- +
-== DEFAULT_cancel_pending_trigger == +
- +
-<file java> +
-DEFAULT_cancel_pending_trigger = 0.5 +
-</​file>​ +
-[[faq#​how_do_i_change_settings_on_a_single_coin|{{:​csbw.png?​18|Coin Specific - click for more info}}]][[mandatory_settings#​optional_settings|{{:​optbw.png?​18|Optional - click for more info}}]] +
- +
-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 PAIRS or DCA log as applicable. +
- +
-**Note:** +
-  - Will only cancel pending orders that were created from the pairs log i.e [[pairs.properties#​DEFAULT_pending_order_wait_time]] or [[pairs.properties#​DEFAULT_pending_order_price_drop_trigger]] +
- +
----- +
- +
-==== dca.properties ==== +
- +
-Make most DCA properties multi level. except for properties without DEFAULT in front and DEFAULT_DCA_buy_times. +
-[[faq#​how_do_i_vary_a_setting_per_dca_level|{{:​dcabw.png?​18|DCA level specific - click for more info}}]] +
- +
----- +
-== DEFAULT_DCA_A_buy_strategy_direction == +
- +
-<file java> +
-DEFAULT_DCA_A_buy_strategy_direction = UP/DOWN +
-</​file>​ +
-[[faq#​how_do_i_change_settings_on_a_single_coin|{{:​csbw.png?​18|Coin Specific - click for more info}}]][[mandatory_settings#​optional_settings|{{:​optbw.png?​18|Optional - click for more info}}]][[faq#​how_do_i_vary_a_setting_per_dca_level|{{:​dcabw.png?​18|DCA level specific - click for more info}}]] +
- +
-Valid Values: UP or DOWN +
- +
-Used to reverse the logic of a buy strategy in order to change when the strategy will indicate true relative to the ''​buy_value''​ used. +
- +
-//​Example:​\\ +
-DEFAULT_DCA_A_buy_strategy = RSI\\ +
-DEFAULT_DCA_A_buy_value = 35\\ +
-The strategy will be true when the RSI value is below 35\\ +
-\\ +
-DEFAULT_DCA_A_buy_strategy = RSI\\ +
-DEFAULT_DCA_A_buy_value = 35\\ +
-DEFAULT_DCA_A_buy_strategy_direction = UP\\ +
-The strategy will be true when the RSI value is above 35.// +
- +
----- +
-== DEFAULT_DCA_trailing_stop_loss_trigger == +
- +
-<file java> +
-DEFAULT_DCA_trailing_stop_loss_trigger = -3 +
-</​file>​ +
-[[faq#​how_do_i_change_settings_on_a_single_coin|{{:​csbw.png?​18|Coin Specific - click for more info}}]][[mandatory_settings#​optional_settings|{{:​optbw.png?​18|Optional - click for more info}}]][[mandatory_settings#​caution|{{:​warnbr.png?​18|Caution - click for more info}}]][[faq#​how_do_i_vary_a_setting_per_dca_level|{{:​dcabw.png?​18|DCA level specific - click for more info}}]] +
- +
-Valid values: Decimal value less than 0. +
- +
-Set the percentage that ProfitTrailer will trail below the highest profit percentage reached in order to trigger a stop loss order. +
- +
-If the value of a coin drops below stop loss line, it will be automatically sold, potentially FOR A LOSS. Use carefully. Research Stop Loss from a financial website before using it.   +
- +
-**Note:**  +
-  - 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_arm == +
- +
-<file java> +
-DEFAULT_DCA_trailing_stop_loss_trigger_arm = 0.8 +
-</​file>​ +
-[[faq#​how_do_i_change_settings_on_a_single_coin|{{:​csbw.png?​18|Coin Specific - click for more info}}]][[mandatory_settings#​optional_settings|{{:​optbw.png?​18|Optional - click for more info}}]][[mandatory_settings#​caution|{{:​warnbr.png?​18|Caution - click for more info}}]][[faq#​how_do_i_vary_a_setting_per_dca_level|{{:​dcabw.png?​18|DCA level specific - click for more info}}]] +
- +
-Valid Values: Decimal values greater than or equal to 0 +
- +
-Set the value which will arm the Tailing Stop Loss sell method.  +
- +
-If the profit goes above ''​[[dca.properties#​DEFAULT_DCA_trailing_stop_loss_trigger_arm]]''​ we flag the coin as armed. +
-Then if the profit comes back down below the ''​[[dca.properties#​DEFAULT_DCA_trailing_stop_loss_trigger]]''​ value the bot will attempt to sell the coins. +
- +
-**Notes:​** +
-  - The arm value is just a boolean (true or false). ​ Once armed it can fire at whatever the stop loss value is. It will stay armed if you change arm or stop loss values even if the new arm value is higher but it will sell at the new stop loss value if changed. +
-  - See [[a_trailing story#​Scenario 5 - Trailing Stop loss|A trailing Story]] for more information. +
- +
- +
----- +
-== DEFAULT_DCA_take_profit_safety_arm == +
- +
-<file java> +
-DEFAULT_DCA_take_profit_safety_arm = 0.8 +
-</​file>​ +
-[[faq#​how_do_i_change_settings_on_a_single_coin|{{:​csbw.png?​18|Coin Specific - click for more info}}]][[mandatory_settings#​optional_settings|{{:​optbw.png?​18|Optional - click for more info}}]][[faq#​how_do_i_vary_a_setting_per_dca_level|{{:​dcabw.png?​18|DCA level specific - click for more info}}]] +
- +
-Valid Values: Decimal values greater than or equal to 0 +
- +
-Set the value which will arm the Take Profit Safety sell method.  +
- +
-If the profit goes above ''​[[dca.properties#​DEFAULT_DCA_take_profit_safety_arm]]''​ we flag the coin as armed. +
-Then if the profit comes back down below the ''​[[dca.properties#​DEFAULT_DCA_take_profit_safety_fire]]''​ value the bot will attempt to sell the coins. +
- +
-**Notes:​** +
-  - The arm value is just a boolean (true or false). ​ Once armed it can fire at whatever the fire value is. It will stay armed if you change arm or fire values even if the new arm value is higher but it will fire at the new fire value if changed. +
-  - See [[a_trailing story#​Scenario 5 - Trailing Stop loss|A trailing Story]] for more information. +
- +
----- +
-== DEFAULT_DCA_take_profit_safety_fire == +
- +
-<file java> +
-DEFAULT_DCA_take_profit_safety_fire = 0.5 +
-</​file>​ +
-[[faq#​how_do_i_change_settings_on_a_single_coin|{{:​csbw.png?​18|Coin Specific - click for more info}}]][[mandatory_settings#​optional_settings|{{:​optbw.png?​18|Optional - click for more info}}]][[faq#​how_do_i_vary_a_setting_per_dca_level|{{:​dcabw.png?​18|DCA level specific - click for more info}}]] +
- +
-Valid Values: Decimal values greater than or equal to 0 +
- +
-Set the value which will trigger the Take Profit Safety sell method. Requires ''​[[dca.properties#​DEFAULT_DCA_take_profit_safety_arm]]''​ to be armed. +
- +
-**Notes:​** +
-  - Must be less than [[dca.properties#​DEFAULT_DCA_take_profit_safety_arm]] +
-  - See [[a_trailing story#​Scenario 5 - Trailing Stop loss|A trailing Story]] for more information. +
- +
----- +
-== DEFAULT_DCA_pending_gain_percentage == +
- +
-<file java> +
-DEFAULT_DCA_pending_gain_percentage = 2 +
-</​file>​ +
-[[faq#​how_do_i_change_settings_on_a_single_coin|{{:​csbw.png?​18|Coin Specific - click for more info}}]][[mandatory_settings#​optional_settings|{{:​optbw.png?​18|Optional - click for more info}}]][[faq#​how_do_i_vary_a_setting_per_dca_level|{{:​dcabw.png?​18|DCA level specific - click for more info}}]] +
- +
-Valid Values: Decimal values greater than or equal to 0 +
- +
-Set the target profit percentage for pending orders. Orders will be placed on the exchange at a price that results in the set percentage of profit. +
- +
-**Note:** +
-  - Fees are taken into account. +
- +
----- +
-== DEFAULT_DCA_cancel_pending_trigger == +
- +
-<file java> +
-DEFAULT_DCA_cancel_pending_trigger = 0.5 +
-</​file>​ +
-[[faq#​how_do_i_change_settings_on_a_single_coin|{{:​csbw.png?​18|Coin Specific - click for more info}}]][[mandatory_settings#​optional_settings|{{:​optbw.png?​18|Optional - click for more info}}]][[faq#​how_do_i_vary_a_setting_per_dca_level|{{:​dcabw.png?​18|DCA level specific - click for more info}}]] +
- +
-Valid Values: Positive or negative decimal values. +
- +
-Cancel pending orders for a coin if the profit reaches the set percentage and return the coin to the DCA log. +
- +
-**Note:** +
-  - Will only cancel pending orders that were created from the DCA log i.e [[dca.properties#​DEFAULT_DCA_pending_order_wait_time]] or [[dca.properties#​DEFAULT_DCA_pending_order_price_drop_trigger]] +
- +
----- +
-== DEFAULT_DCA_combined_cancel_pending_trigger == +
- +
-<file java> +
-DEFAULT_DCA_combined_cancel_pending_trigger = 0 +
-</​file>​ +
-[[faq#​how_do_i_change_settings_on_a_single_coin|{{:​csbw.png?​18|Coin Specific - click for more info}}]][[mandatory_settings#​optional_settings|{{:​optbw.png?​18|Optional - click for more info}}]][[faq#​how_do_i_vary_a_setting_per_dca_level|{{:​dcabw.png?​18|DCA level specific - click for more info}}]] +
- +
-Valid values: Positive or negative decimal values. +
- +
-Cancel pending orders for a coin if the combined profit with a non-pending amount of the same coin reaches the specified amount. +
- +
-**Note:** +
-  - Will only cancel pending orders that were created from the DCA log i.e [[dca.properties#​DEFAULT_DCA_pending_order_wait_time]] or [[dca.properties#​DEFAULT_DCA_pending_order_price_drop_trigger]] ​+
  
 ---- ----
  
 ==== Buy and Sell strategies ==== ==== Buy and Sell strategies ====
- 
-<color #ed1c24> 
-SIGNAL 
-DEMAGAIN 
-DEMASPREAD 
-DEMACROSS 
-HMAGAIN 
-HMASPREAD 
-HMACROSS 
-PDHIGH</​color>​ 
- 
-==== PDHIGH ==== 
- 
-PDHIGH is the previous day high. PDHIGH though its name suggests a Previous Day is just a previous candle, so you can use it on any supported time period. 
- 
-This buy strategy is true when current bid price is above or below the previous day high of a trading pair. 
  
 ---- ----
  
-**The Numbers** +==== Indicators config ====
- +
-Valid Values: positive or negative decimal values. +
- +
-So yesterday high for ETHBTC was 0.034432\\ +
-Current bid price is about 0.0321190\\ +
-So the PDHIGH value is negative (-6.71%).\\ ​+
  
 ---- ----
-**The Formula** 
  
-PDHIGH uses a spread calculation as follows: +==== Web Interface Guide ====
- +
-<file java> +
-%Spread ​((%Bid Price / %PDHIGH) - 1) * 100 +
-</​file>​ +
- +
-It is this %Spread that we display ​+
  
 ---- ----
  
-**The Parameters** 
- 
-''​[[indicators.properties#​PDHIGH_candle_period]]''​\\ 
- 
----- 
-  
-**Examples** 
-An example use of this strategy is to buy as soon as the bid price crosses the PDHIGH indicating that a possible break out has occurred. In this case the breakout is to the positive side indicating an upward trend. 
- 
-<file java> 
-DEFAULT_A_buy_strategy = PDHIGH 
-DEFAULT_A_buy_value = 0.00000001 
-DEFAULT_A_buy_value_limit = 30.0 
-</​file>​ 
- 
-''​[[pairs.properties#​DEFAULT_A_buy_value]] = 0.00000001''​ → buy zone begins 0.00000001% being positive indicates an upward trend. Bid price must be higher than this value. ''​[[pairs.properties#​DEFAULT_A_buy_value_limit]]''​ must be higher than 0.00000001 if used.\\ 
- 
-''​[[pairs.properties#​DEFAULT_A_buy_value]] = -0.00000001''​ → negative numbers indicates a downward trend. Bid price must be lower than this value. ''​[[pairs.properties#​DEFAULT_A_buy_value_limit]]''​ must be lower than -0.00000001 if used.\\ 
- 
-\\ 
-[[buy_and_sell_strategies|TOP]] 
-\\ 
----- 
- 
-===== Indicators.properties ===== 
- 
-== PDHIGH_candle_period == 
- 
-Define the period (in seconds) used to calculate the PDHIGH.\\ 
-Check the [[exchanges|Exchanges]] page for valid settings for each exchange. 
-<file java>​PDHIGH_candle_period = 300</​file>​ 
----- 
- 
-==== Trailing Story ==== 
- 
-=== 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 demonstates their differences from standard Stop Loss. 
- 
-{{::​trailing_story_visual.png?​direct|}} 
- 
-==trailing stop loss== 
- 
-In the example above ''​[[pairs.properties#​DEFAULT_trailing_stop_loss_trigger]] = -3''​. ​ 
-  - If the price was to drop and keep dropping it will behave exactly like standard stop loss and sell after 3% loss. 
-  - If the profit was to move above 0 to say 0.33 the trailing_stop_loss line moves up to -2.67. 3% below the peak profit achieved. 
-    - If the profit subsequently comes down to 0.10 the stop loss line is still at -2.67. 
-  - If the profit goes to 5% the stop loss line would be at 2% 
- 
-==take profit safety== 
- 
-Take profit Safety is similar to 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. 
-Then if the profit comes back down below the ''​[[pairs.properties#​DEFAULT_take_profit_safety_fire]]''​ value the bot will attempt to sell the coins. 
- 
-==== Web Interface Guide ==== 
- 
-[[web_interface_guide#​sales log]] 
- 
-  * **TAKE PROFIT SAFETY** - The sell occured due to triggering your ''​[[pairs.properties#​DEFAULT_take_profit_safety_arm]]''​ and ''​[[pairs.properties#​DEFAULT_take_profit_safety_fire]]''​ settings or DCA equivalents. 
-  * **TRAILING STOP LOSS** - The sell occurred due to triggering your ''​[[pairs.properties#​DEFAULT_trailing_stop_loss_trigger]]''​ or ''​[[dca.properties#​DEFAULT_DCA_trailing_stop_loss_trigger]]''​ 
- 
- 
----- 
 ==== MISC ==== ==== MISC ====
  
-FAQ: 
-<color #​ed1c24>​how to reset password with new DB</​color>​ 
  
-DCA level specific properties: Make most DCA properties multi level. except for properties without DEFAULT in front and DEFAULT_DCA_buy_times. [[faq#​how_do_i_vary_a_setting_per_dca_level|{{:​dcabw.png?​18|DCA level specific - click for more info}}]]+News Feed
  
 +BITMEX info
  
-News Feed+BINANCEDEX info
  
-built in Notifications work in test mode 
  
  
  
  • wiki_changes.1547084933.txt.gz
  • Last modified: 6 months ago
  • by sgtbatten