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
buy_and_sell_strategies [2018/09/12 03:49]
diesel [RSI]
buy_and_sell_strategies [2019/06/08 22:32] (current)
armchairguru
Line 1: Line 1:
 ====== Buy and Sell Strategies ====== ====== Buy and Sell Strategies ======
- +<callout type="​success"​ icon="​glyphicon glyphicon-list-alt">​ 
-====Strategies available==== +Click on the strategy name to jump to the strategy explanation section.\\
 The logic of each buy or sell strategy does not differ between pairs and dca. The logic of each buy or sell strategy does not differ between pairs and dca.
 +</​callout>​
  
-Click a strategy to view the strategy details. 
  
 ^ Strategies ^     ​NORMAL BUY    ^    NORMAL SELL     ​^ ​     DCA BUY       ​^ ​ DCA SELL        ^    ^ Strategies ^     ​NORMAL BUY    ^    NORMAL SELL     ​^ ​     DCA BUY       ​^ ​ DCA SELL        ^   
-^ [[buy_and_sell_strategies#​LOWBB]] ​     |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ | +^ [[buy_and_sell_strategies#​SIGNAL]] ​   |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  
 +^ [[buy_and_sell_strategies#​LOWBB]] ​    ​|  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ | 
 ^ [[buy_and_sell_strategies#​HIGHBB]] ​   |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ | ^ [[buy_and_sell_strategies#​HIGHBB]] ​   |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |
 ^ [[buy_and_sell_strategies#​GAIN]] ​       | |  {{glyphicon>​ok?​12}} ​ | |  {{glyphicon>​ok?​12}} ​ | ^ [[buy_and_sell_strategies#​GAIN]] ​       | |  {{glyphicon>​ok?​12}} ​ | |  {{glyphicon>​ok?​12}} ​ |
Line 14: Line 14:
 ^ [[buy_and_sell_strategies#​SMAGAIN]] ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ | ^ [[buy_and_sell_strategies#​SMAGAIN]] ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |
 ^ [[buy_and_sell_strategies#​EMAGAIN]] ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ | ^ [[buy_and_sell_strategies#​EMAGAIN]] ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |
 +^ [[buy_and_sell_strategies#​HMAGAIN]] ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |
 +^ [[buy_and_sell_strategies#​DEMAGAIN]] ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |
 ^ [[buy_and_sell_strategies#​SMASPREAD]] |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ | ^ [[buy_and_sell_strategies#​SMASPREAD]] |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |
 ^ [[buy_and_sell_strategies#​EMASPREAD]] |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ | ^ [[buy_and_sell_strategies#​EMASPREAD]] |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |
 +^ [[buy_and_sell_strategies#​HMASPREAD]] |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |
 +^ [[buy_and_sell_strategies#​DEMASPREAD]] |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |
 ^ [[buy_and_sell_strategies#​SMACROSS]] ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ | ^ [[buy_and_sell_strategies#​SMACROSS]] ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |
 ^ [[buy_and_sell_strategies#​EMACROSS]] ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ | ^ [[buy_and_sell_strategies#​EMACROSS]] ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |
 +^ [[buy_and_sell_strategies#​HMACROSS]] ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |
 +^ [[buy_and_sell_strategies#​DEMACROSS]] ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |
 ^ [[buy_and_sell_strategies#​RSI]] ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ | ^ [[buy_and_sell_strategies#​RSI]] ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |
 ^ [[buy_and_sell_strategies#​STOCH]] ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ | ^ [[buy_and_sell_strategies#​STOCH]] ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |
-^ [[buy_and_sell_strategies#​STOCHRSI (Classic)|STOCHRSI]] ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ | +^ [[buy_and_sell_strategies#​STOCHRSID]] ​(Use for TradingView visualization) ​|  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |
-^ [[buy_and_sell_strategies#​STOCHRSID]] ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |+
 ^ [[buy_and_sell_strategies#​STOCHRSIK]] ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ | ^ [[buy_and_sell_strategies#​STOCHRSIK]] ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |
 ^ [[buy_and_sell_strategies#​STOCHRSICROSS]] ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ | ^ [[buy_and_sell_strategies#​STOCHRSICROSS]] ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |
Line 27: Line 32:
 ^ [[buy_and_sell_strategies#​BBWIDTH]] ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ | ^ [[buy_and_sell_strategies#​BBWIDTH]] ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |
 ^ [[buy_and_sell_strategies#​OBV]] ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ | ^ [[buy_and_sell_strategies#​OBV]] ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |
 +^ [[buy_and_sell_strategies#​PDHIGH]] ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |
 +^ [[buy_and_sell_strategies#​PDLOW]] ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |
 +^ [[buy_and_sell_strategies#​PDCLOSE]] ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |
 +^ [[buy_and_sell_strategies#​LASTDCABUY]] ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |
 ^ [[buy_and_sell_strategies#​ANDERSON]] ​ | | |  {{glyphicon>​ok?​12}} ​ | | ^ [[buy_and_sell_strategies#​ANDERSON]] ​ | | |  {{glyphicon>​ok?​12}} ​ | |
 +^ [[buy_and_sell_strategies#​FIXEDPRICE]] ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |
 ^ [[buy_and_sell_strategies#​DISABLED]] ​  *See explanation below | | | | | ^ [[buy_and_sell_strategies#​DISABLED]] ​  *See explanation below | | | | |
  
 +==== SIGNAL ====
 +
 +This strategy allows you to integrate approved external signal provider'​s signals or your own TradingView signals.
 +SIGNAL is true when ProfitTrailer receives a correctly formatted signal from an external source.
 +If you have notifications turned on these will trigger when a signal buy or sell is made.
 +
 +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]]
 +
 +----
 +
 +**The Numbers**
 +
 +Valid Values: no additional buy or sell values are associated with this strategy as everything needed to signal a trade is derived from the signal being received from the external source. Your other buy and sell settings criteria still need to be met.
 +
 +----
 + 
 +**Examples**
 +
 +''​[[pairs_config#​DEFAULT_A_buy_strategy]] = SIGNAL''​ → buy will happen when a valid signal is received and your other settings buy criteria have been met. i.e. min_buy_volume\\
 +
 +''​[[pairs_config#​DEFAULT_A_sell_strategy]] = SIGNAL''​ → Sell will happen when a valid signal is received and your other settings sell criteria have been met. i.e. GAIN percentage profit has been achieved\\
 +
 +**Notes:​**  ​
 +  - 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]].
 +\\
 +[[buy_and_sell_strategies|TOP]]
 +\\
 +
 +----
 ==== LOWBB ==== ==== LOWBB ====
  
Line 71: Line 113:
 **The Parameters** **The Parameters**
  
-''​[[indicators.properties#​BB_std]]''​\\ +''​[[indicators_config#​BB_std]]''​\\ 
-''​[[indicators.properties#​BB_candle_period]]''​\\ +''​[[indicators_config#​BB_candle_period]]''​\\ 
-''​[[indicators.properties#​BB_Length]]''​\\+''​[[indicators_config#​BB_Length]]''​\\
 ---- ----
  
Line 79: Line 121:
 **Examples** **Examples**
  
-''​[[pairs.properties#​DEFAULT_A_buy_value]] = 20''​ → buy zone begins 20% (of width) above LOWBB line. Ask price must be less than this value. ''​[[pairs.properties#​DEFAULT_A_buy_value_limit]]''​ must be less than 20 including negative numbers if used.\\+''​[[pairs_config#​DEFAULT_A_buy_value]] = 20''​ → buy zone begins 20% (of width) above LOWBB line. Ask price must be less than this value. ''​[[pairs_config#​DEFAULT_A_buy_value_limit]]''​ must be less than 20 including negative numbers if used.\\
  
-''​[[pairs.properties#​DEFAULT_A_buy_value]] = 0''​ →  buy zone begins right on top of the LOWBB line. Ask price must be less than this value. ''​[[pairs.properties#​DEFAULT_A_buy_value_limit]]''​ must be less than 0 if used.\\+''​[[pairs_config#​DEFAULT_A_buy_value]] = 0''​ →  buy zone begins right on top of the LOWBB line. Ask price must be less than this value. ''​[[pairs_config#​DEFAULT_A_buy_value_limit]]''​ must be less than 0 if used.\\
  
-''​[[pairs.properties#​DEFAULT_A_buy_value]] = -10''​ →  buy zone begins 10% (of width) below LOWBB line. Ask price must be less than or equal to this value. ''​[[pairs.properties#​DEFAULT_A_buy_value_limit]]''​ must be less than -10 if used.\\+''​[[pairs_config#​DEFAULT_A_buy_value]] = -10''​ →  buy zone begins 10% (of width) below LOWBB line. Ask price must be less than or equal to this value. ''​[[pairs_config#​DEFAULT_A_buy_value_limit]]''​ must be less than -10 if used.\\
  
-''​[[pairs.properties#​DEFAULT_DCA_A_sell_value|DEFAULT_DCA_B_sell_value]] = -10''​ →  sell zone begins 10% (of width) below LOWBB line. Bid price price must be less than or equal to this value. ''​[[pairs.properties#​DEFAULT_A_sell_value_limit]]''​ must be less than -10 if used.\\+''​[[pairs_config#​DEFAULT_DCA_A_sell_value|DEFAULT_DCA_B_sell_value]] = -10''​ →  sell zone begins 10% (of width) below LOWBB line. Bid price price must be less than or equal to this value. ''​[[pairs_config#​DEFAULT_A_sell_value_limit]]''​ must be less than -10 if used.\\
  
 ---- ----
Line 123: Line 165:
 **The Parameters** **The Parameters**
  
-''​[[indicators.properties#​BB_std]]''​\\ +''​[[indicators_config#​BB_std]]''​\\ 
-''​[[indicators.properties#​BB_candle_period]]''​\\ +''​[[indicators_config#​BB_candle_period]]''​\\ 
-''​[[indicators.properties#​BB_Length]]''​\\+''​[[indicators_config#​BB_Length]]''​\\
  
 ---- ----
Line 145: Line 187:
 **Examples** **Examples**
  
-''​[[pairs.properties#​DEFAULT_A_buy_value]] = 20''​ → buy zone begins 20% (of width) below the HIGHBB line. Ask price must be  greater than this value. ''​[[pairs.properties#​DEFAULT_A_buy_value_limit]]''​ must be less than 20 (i.e a higher price)including negative numbers if used.\\+''​[[pairs_config#​DEFAULT_A_buy_value]] = 20''​ → buy zone begins 20% (of width) below the HIGHBB line. Ask price must be  greater than this value. ''​[[pairs_config#​DEFAULT_A_buy_value_limit]]''​ must be less than 20 (i.e a higher price)including negative numbers if used.\\
  
-''​[[pairs.properties#​DEFAULT_A_buy_value]] = -10''​ →  buy zone begins 10% (of width) above the HIGHBB line. Ask price must be greater than this value. ''​[[pairs.properties#​DEFAULT_A_buy_value_limit]]''​ must be less than -10 (higher price) if used.\\+''​[[pairs_config#​DEFAULT_A_buy_value]] = -10''​ →  buy zone begins 10% (of width) above the HIGHBB line. Ask price must be greater than this value. ''​[[pairs_config#​DEFAULT_A_buy_value_limit]]''​ must be less than -10 (higher price) if used.\\
  
-''​[[pairs.properties#​DEFAULT_DCA_A_sell_value|DEFAULT_DCA_B_sell_value]] = 0''​ →  sell zone begins right on top of the HIGHBB line. Bid price price must be greater than or equal to this value. ''​[[pairs.properties#​DEFAULT_A_sell_value_limit]]''​ must be less than 0 if used.\\+''​[[pairs_config#​DEFAULT_DCA_A_sell_value|DEFAULT_DCA_B_sell_value]] = 0''​ →  sell zone begins right on top of the HIGHBB line. Bid price price must be greater than or equal to this value. ''​[[pairs_config#​DEFAULT_A_sell_value_limit]]''​ must be less than 0 if used.\\
  
 ---- ----
Line 161: Line 203:
  
 ==== GAIN ==== ==== GAIN ====
 +**Note:** If GAIN is not used as a sell strategy, then trailing profit settings cannot be used. Be aware that allowing other strategies to sell regardless of current price may result in coins being sold for a loss.
  
-This MANDATORY ​sell strategy is true when current profit is greater than or equal to ''​sell_value''​.+This sell strategy is true when current profit is greater than or equal to ''​sell_value''​.
  
-GAIN acts as the minimum profit level you are targeting ​and as such it is required that GAIN be used as one of the sell strategies you use. If you set a negative value coins can be sold for a loss. +GAIN acts as the minimum profit level you are targeting. If you set a negative value coins can be sold for a loss. 
  
 The ''​sell_value''​ is a percentage of profit that must be reached. When calculating the price required to make this amount of profit the bot also accounts for fees (on Binance the bot assumes the full fee, not the BNB discounted fee.)  The ''​sell_value''​ is a percentage of profit that must be reached. When calculating the price required to make this amount of profit the bot also accounts for fees (on Binance the bot assumes the full fee, not the BNB discounted fee.) 
  
-The Profit % (P%) column in [[web_interface_guide#​pairs_log|pairs]] and [[web_interface_guide#​DCA_log|DCA]] Logs shows the fee corrected current profit using the highest bid price and also the highest bid price with enough volume if ''​[[pairs.properties#​DEFAULT_min_orderbook_profit_percentage]]''​ is used.+The Profit % (P%) column in [[web_interface_guide#​pairs_log|pairs]] and [[web_interface_guide#​DCA_log|DCA]] Logs shows the fee corrected current profit using the highest bid price and also the highest bid price with enough volume if ''​[[pairs_config#​DEFAULT_min_orderbook_profit_percentage]]''​ is used.
  
 ---- ----
Line 192: Line 235:
 **Examples** **Examples**
  
-''​[[pairs.properties#​DEFAULT_A_sell_value]] = 1''​ → sell zone begins 1% above the average bought price plus fees. Bid price must be greater than or equal to this value. \\ +''​[[pairs_config#​DEFAULT_A_sell_value]] = 1''​ → sell zone begins 1% above the average bought price plus fees. Bid price must be greater than or equal to this value. \\ 
-''​[[pairs.properties#​DEFAULT_A_sell_value]] = -10''​ → sell zone begins 10% below the average bought price plus fees. Bid price must be greater than or equal to this value. ​+''​[[pairs_config#​DEFAULT_A_sell_value]] = -10''​ → sell zone begins 10% below the average bought price plus fees. Bid price must be greater than or equal to this value. ​
  
 \\ \\
Line 228: Line 271:
 **Examples** **Examples**
  
-''​[[pairs.properties#​DEFAULT_A_buy_value]] = -7''​ → buy zone begins 7% below the price from 24 hours ago. Ask price must be less than this value. ''​[[pairs.properties#​DEFAULT_A_buy_value_limit]]''​ must be less than -7 if used.\\+''​[[pairs_config#​DEFAULT_A_buy_value]] = -7''​ → buy zone begins 7% below the price from 24 hours ago. Ask price must be less than this value. ''​[[pairs_config#​DEFAULT_A_buy_value_limit]]''​ must be less than -7 if used.\\
  
-''​[[pairs.properties#​DEFAULT_A_buy_value]] = 7''​ → positive numbers are converted to negative. So result is the same as above.\\+''​[[pairs_config#​DEFAULT_A_buy_value]] = 7''​ → positive numbers are converted to negative. So result is the same as above.\\
  
 \\ \\
Line 256: Line 299:
 **The Parameters** **The Parameters**
  
-''​[[indicators.properties#​SMA_candle_period]]''​\\ +''​[[indicators_config#​SMA_candle_period]]''​\\ 
-''​[[indicators.properties#​SMA_fast_length]]''​\\ +''​[[indicators_config#​SMA_fast_length]]''​\\ 
-''​[[indicators.properties#​SMA_slow_length]]''​\\+''​[[indicators_config#​SMA_slow_length]]''​\\
  
 ---- ----
Line 277: Line 320:
 **Examples** **Examples**
  
-''​[[pairs.properties#​DEFAULT_A_sell_value]] = 0.8''​ → sell zone begins 0.8% (of the price) above the lowest SMA line. Bid price must be equal to or greater than this value. ''​[[pairs.properties#​DEFAULT_A_sell_value_limit]]''​ must be greater than 0.8 if used.\\+''​[[pairs_config#​DEFAULT_A_sell_value]] = 0.8''​ → sell zone begins 0.8% (of the price) above the lowest SMA line. Bid price must be equal to or greater than this value. ''​[[pairs_config#​DEFAULT_A_sell_value_limit]]''​ must be greater than 0.8 if used.\\
  
-''​[[pairs.properties#​DEFAULT_A_buy_value]] = 0''​ →  buy zone begins on the lowest SMA line. Ask price must be greater than this value. ''​[[pairs.properties#​DEFAULT_A_buy_value_limit]]''​ must be greater than 0 if used.\\+''​[[pairs_config#​DEFAULT_A_buy_value]] = 0''​ →  buy zone begins on the lowest SMA line. Ask price must be greater than this value. ''​[[pairs_config#​DEFAULT_A_buy_value_limit]]''​ must be greater than 0 if used.\\
  
-''​[[dca.properties#​DEFAULT_DCA_A_buy_value|DEFAULT_DCA_B_buy_value]] = -1''​ →  buy zone begins 1% (of the price) below the lowest SMA line. Ask price must be less than this value. ''​[[dca.properties#​DEFAULT_DCA_A_buy_value_limit|DEFAULT_DCA_B_buy_value_limit]]''​ must be less than -1 if used.\\+''​[[dca_config#​DEFAULT_DCA_A_buy_value|DEFAULT_DCA_B_buy_value]] = -1''​ →  buy zone begins 1% (of the price) below the lowest SMA line. Ask price must be less than this value. ''​[[dca_config#​DEFAULT_DCA_A_buy_value_limit|DEFAULT_DCA_B_buy_value_limit]]''​ must be less than -1 if used.\\
  
 ---- ----
Line 308: Line 351:
 **The Parameters** **The Parameters**
  
-''​[[indicators.properties#​EMA_candle_period]]''​\\ +''​[[indicators_config#​EMA_candle_period]]''​\\ 
-''​[[indicators.properties#​EMA_fast_length]]''​\\ +''​[[indicators_config#​EMA_fast_length]]''​\\ 
-''​[[indicators.properties#​EMA_slow_length]]''​\\+''​[[indicators_config#​EMA_slow_length]]''​\\
 ---- ----
 **The Formula** **The Formula**
Line 328: Line 371:
 **Examples** **Examples**
  
-''​[[pairs.properties#​DEFAULT_A_sell_value]] = 0.8''​ → sell zone begins 0.8% (of the price) above the lowest EMA line. Bid price must be equal to or greater than this value. ''​[[pairs.properties#​DEFAULT_A_sell_value_limit]]''​ must be greater than 0.8 if used.\\+''​[[pairs_config#​DEFAULT_A_sell_value]] = 0.8''​ → sell zone begins 0.8% (of the price) above the lowest EMA line. Bid price must be equal to or greater than this value. ''​[[pairs_config#​DEFAULT_A_sell_value_limit]]''​ must be greater than 0.8 if used.\\
  
-''​[[pairs.properties#​DEFAULT_A_buy_value]] = 0''​ →  buy zone begins on the lowest EMA line. Ask price must be greater than this value. ''​[[pairs.properties#​DEFAULT_A_buy_value_limit]]''​ must be greater than 0 if used.\\+''​[[pairs_config#​DEFAULT_A_buy_value]] = 0''​ →  buy zone begins on the lowest EMA line. Ask price must be greater than this value. ''​[[pairs_config#​DEFAULT_A_buy_value_limit]]''​ must be greater than 0 if used.\\
  
-''​[[dca.properties#​DEFAULT_DCA_A_buy_value|DEFAULT_DCA_B_buy_value]] = -1''​ →  buy zone begins 1% (of the price) below the lowest EMA line. Ask price must be less than this value. ''​[[dca.properties#​DEFAULT_DCA_A_buy_value_limit|DEFAULT_DCA_B_buy_value_limit]]''​ must be less then -1 if used.\\+''​[[dca_config#​DEFAULT_DCA_A_buy_value|DEFAULT_DCA_B_buy_value]] = -1''​ →  buy zone begins 1% (of the price) below the lowest EMA line. Ask price must be less than this value. ''​[[dca_config#​DEFAULT_DCA_A_buy_value_limit|DEFAULT_DCA_B_buy_value_limit]]''​ must be less then -1 if used.\\
  
 ---- ----
Line 340: Line 383:
 [[buy_and_sell_strategies|TOP]] [[buy_and_sell_strategies|TOP]]
 \\ \\
 +
 ---- ----
 +==== HMAGAIN ====
 +
 +This buy/sell strategy is true when the current ask/bid price is above (positive ''​buy/​sell_value''​) or below (negative ''​buy/​sell_value''​) the lowest of the two HMA lines specified. It does not matter if the fast or slow HMA line is lower, the bot always looks at the value of the lower line.
 +
 +If a positive value is used the ask/bid price must be greater than (or equal to (for selling)) the value of the lower HMA band multiplied by (1 + ''​buy/​sell_value''​ expressed as a percentage).\\
 +If a negative value is used the ask/bid price must be less than (or equal to (for selling)) the value of the lower HMA band multiplied by (1 + ''​buy/​sell_value''​ expressed as a percentage).
 +
 +----
 +**The Numbers**
 +
 +Valid Values: positive or negative decimal values.
 +
 +1 = 1% of the price above the lowest of the two HMA lines\\
 +0 = Right on top of the lowest HMA line.\\
 +-0.5 = 0.5% of the price below the lowest of the two HMA lines\\
 +
 +----
 +**The Parameters**
 +
 +''​[[indicators_config#​HMA_candle_period]]''​\\
 +''​[[indicators_config#​HMA_fast_length]]''​\\
 +''​[[indicators_config#​HMA_slow_length]]''​\\
 +
 +----
 +**The Formula**
 +
 +Positive ''​buy/​sell_value''​
 +<file java>
 +buy price > lowest HMA * (1 + ABS(buy/​sell_value/​100))
 +sell price >= lowest HMA * (1 + ABS(buy/​sell_value/​100))
 +</​file>​
 +Negative ''​buy/​sell_value''​
 +<file java>
 +buy price < lowest HMA * (1 - ABS(buy/​sell_value/​100))
 +sell price <= lowest HMA * (1 - ABS(buy/​sell_value/​100))
 +</​file>​
 +
 +----
 +**Examples**
 +
 +''​[[pairs_config#​DEFAULT_A_sell_value]] = 0.8''​ → sell zone begins 0.8% (of the price) above the lowest HMA line. Bid price must be equal to or greater than this value. ''​[[pairs_config#​DEFAULT_A_sell_value_limit]]''​ must be greater than 0.8 if used.\\
 +
 +''​[[pairs_config#​DEFAULT_A_buy_value]] = 0''​ →  buy zone begins on the lowest HMA line. Ask price must be greater than this value. ''​[[pairs_config#​DEFAULT_A_buy_value_limit]]''​ must be greater than 0 if used.\\
 +
 +''​[[dca_config#​DEFAULT_DCA_A_buy_value|DEFAULT_DCA_B_buy_value]] = -1''​ →  buy zone begins 1% (of the price) below the lowest HMA line. Ask price must be less than this value. ''​[[dca_config#​DEFAULT_DCA_A_buy_value_limit|DEFAULT_DCA_B_buy_value_limit]]''​ must be less than -1 if used.\\
 +
 +\\
 +[[buy_and_sell_strategies|TOP]]
 +\\
 +
 +----
 +==== DEMAGAIN ====
 +
 +This buy/sell strategy is true when the current ask/bid price is above (positive ''​buy/​sell_value''​) or below (negative ''​buy/​sell_value''​) the lowest of the two DEMA lines specified. It does not matter if the fast or slow DEMA line is lower, the bot always looks at the value of the lower line.
 +
 +If a positive value is used the ask/bid price must be greater than (or equal to (for selling)) the value of the lower DEMA band multiplied by (1 + ''​buy/​sell_value''​ expressed as a percentage).\\
 +If a negative value is used the ask/bid price must be less than (or equal to (for selling)) the value of the lower DEMA band multiplied by (1 + ''​buy/​sell_value''​ expressed as a percentage).
 +
 +----
 +**The Numbers**
 +
 +Valid Values: positive or negative decimal values.
 +
 +1 = 1% of the price above the lowest of the two DEMA lines\\
 +0 = Right on top of the lowest DEMA line.\\
 +-0.5 = 0.5% of the price below the lowest of the two DEMA lines\\
 +
 +----
 +**The Parameters**
 +
 +''​[[indicators_config#​DEMA_candle_period]]''​\\
 +''​[[indicators_config#​DEMA_fast_length]]''​\\
 +''​[[indicators_config#​DEMA_slow_length]]''​\\
 +
 +----
 +**The Formula**
 +
 +Positive ''​buy/​sell_value''​
 +<file java>
 +buy price > lowest DEMA * (1 + ABS(buy/​sell_value/​100))
 +sell price >= lowest DEMA * (1 + ABS(buy/​sell_value/​100))
 +</​file>​
 +Negative ''​buy/​sell_value''​
 +<file java>
 +buy price < lowest DEMA * (1 - ABS(buy/​sell_value/​100))
 +sell price <= lowest DEMA * (1 - ABS(buy/​sell_value/​100))
 +</​file>​
 +
 +----
 +**Examples**
 +
 +''​[[pairs_config#​DEFAULT_A_sell_value]] = 0.8''​ → sell zone begins 0.8% (of the price) above the lowest DEMA line. Bid price must be equal to or greater than this value. ''​[[pairs_config#​DEFAULT_A_sell_value_limit]]''​ must be greater than 0.8 if used.\\
 +
 +''​[[pairs_config#​DEFAULT_A_buy_value]] = 0''​ →  buy zone begins on the lowest DEMA line. Ask price must be greater than this value. ''​[[pairs_config#​DEFAULT_A_buy_value_limit]]''​ must be greater than 0 if used.\\
 +
 +''​[[dca_config#​DEFAULT_DCA_A_buy_value|DEFAULT_DCA_B_buy_value]] = -1''​ →  buy zone begins 1% (of the price) below the lowest DEMA line. Ask price must be less than this value. ''​[[dca_config#​DEFAULT_DCA_A_buy_value_limit|DEFAULT_DCA_B_buy_value_limit]]''​ must be less than -1 if used.\\
 +
 +\\
 +[[buy_and_sell_strategies|TOP]]
 +\\
 +
 +----
 +
 ==== SMASPREAD ==== ==== SMASPREAD ====
  
Line 354: Line 501:
 **The Parameters** **The Parameters**
  
-''​[[indicators.properties#​SMA_candle_period]]''​\\ +''​[[indicators_config#​SMA_candle_period]]''​\\ 
-''​[[indicators.properties#​SMA_fast_length]]''​\\ +''​[[indicators_config#​SMA_fast_length]]''​\\ 
-''​[[indicators.properties#​SMA_slow_length]]''​\\+''​[[indicators_config#​SMA_slow_length]]''​\\
 ---- ----
 **The Formula** **The Formula**
Line 372: Line 519:
 ---- ----
 **Examples**\\ **Examples**\\
-''​[[pairs.properties#​DEFAULT_A_buy_value]] = -0.5''​ → buy strategy is true when the calculated spread is larger than -0.5%. (Fast SMA is LOWER than Slow SMA). ''​[[pairs.properties#​DEFAULT_A_buy_value_limit]]''​ must be less than -0.5 if used. \\+''​[[pairs_config#​DEFAULT_A_buy_value]] = -0.5''​ → buy strategy is true when the calculated spread is larger than -0.5%. (Fast SMA is LOWER than Slow SMA). ''​[[pairs_config#​DEFAULT_A_buy_value_limit]]''​ must be less than -0.5 if used. \\
  
-''​[[pairs.properties#​DEFAULT_A_sell_value]] = 0.6''​ → sell strategy is true when the calculated spread is 0.6% or larger. (Fast SMA is HIGHER than Slow SMA). ''​[[pairs.properties#​DEFAULT_A_sell_value_limit]]''​ must be greater than 0.6 if used.\\+''​[[pairs_config#​DEFAULT_A_sell_value]] = 0.6''​ → sell strategy is true when the calculated spread is 0.6% or larger. (Fast SMA is HIGHER than Slow SMA). ''​[[pairs_config#​DEFAULT_A_sell_value_limit]]''​ must be greater than 0.6 if used.\\
  
 ---- ----
Line 396: Line 543:
 **The Parameters** **The Parameters**
  
-''​[[indicators.properties#​EMA_candle_period]]''​\\ +''​[[indicators_config#​EMA_candle_period]]''​\\ 
-''​[[indicators.properties#​EMA_fast_length]]''​\\ +''​[[indicators_config#​EMA_fast_length]]''​\\ 
-''​[[indicators.properties#​EMA_slow_length]]''​\\+''​[[indicators_config#​EMA_slow_length]]''​\\
 ---- ----
 **The Formula** **The Formula**
Line 414: Line 561:
 ---- ----
 **Examples**\\ **Examples**\\
-''​[[pairs.properties#​DEFAULT_A_buy_value]] = -0.5''​ → buy strategy is true when the calculated spread is larger than -0.5% . (Fast EMA is LOWER than Slow EMA). ''​[[pairs.properties#​DEFAULT_A_buy_value_limit]]''​ must be less than -0.5 if used. \\+''​[[pairs_config#​DEFAULT_A_buy_value]] = -0.5''​ → buy strategy is true when the calculated spread is larger than -0.5% . (Fast EMA is LOWER than Slow EMA). ''​[[pairs_config#​DEFAULT_A_buy_value_limit]]''​ must be less than -0.5 if used. \\
  
-''​[[pairs.properties#​DEFAULT_A_sell_value]] = 0.6''​ → sell strategy is true when the calculated spread is 0.6% or larger. (Fast EMA is HIGHER than Slow EMA). ''​[[pairs.properties#​DEFAULT_A_buy_value_limit]]''​ must be greater than 0.6 if used.\\ ​+''​[[pairs_config#​DEFAULT_A_sell_value]] = 0.6''​ → sell strategy is true when the calculated spread is 0.6% or larger. (Fast EMA is HIGHER than Slow EMA). ''​[[pairs_config#​DEFAULT_A_buy_value_limit]]''​ must be greater than 0.6 if used.\\ ​
  
 ---- ----
Line 424: Line 571:
 [[buy_and_sell_strategies|TOP]] [[buy_and_sell_strategies|TOP]]
 \\ \\
 +
 +----
 +
 +==== HMASPREAD ====
 +
 +This buy/sell strategy is true when the spread between fast and slow HMA is larger (bigger spread) than (or equal to (for selling)) the ''​buy/​sell_value''​.
 +
 +With HMASPREAD the current price does not matter, only the magnitude of the spread.
 +----
 +**The Numbers**
 +
 +Valid Values: positive or negative decimal numbers. ​
 +
 +----
 +**The Parameters**
 +
 +''​[[indicators_config#​HMA_candle_period]]''​\\
 +''​[[indicators_config#​HMA_fast_length]]''​\\
 +''​[[indicators_config#​HMA_slow_length]]''​\\
 +----
 +**The Formula**
 +
 +<file java>
 +%HMASLOW = HMA(closeprices,​ HMA_slow_length)
 +
 +%HMAFAST = HMA(closeprices,​ HMA_fast_length)
 +
 +%Spread = ((%HMAFAST / %HMASLOW) - 1) * 100
 +</​file>​
 +
 +It is this %Spread that we display \\
 +
 +----
 +**Examples**\\
 +''​[[pairs_config#​DEFAULT_A_buy_value]] = -0.5''​ → buy strategy is true when the calculated spread is larger than -0.5%. (Fast HMA is LOWER than Slow HMA). ''​[[pairs_config#​DEFAULT_A_buy_value_limit]]''​ must be less than -0.5 if used. \\
 +
 +''​[[pairs_config#​DEFAULT_A_sell_value]] = 0.6''​ → sell strategy is true when the calculated spread is 0.6% or larger. (Fast HMA is HIGHER than Slow HMA). ''​[[pairs_config#​DEFAULT_A_sell_value_limit]]''​ must be greater than 0.6 if used.\\
 +
 +\\
 +[[buy_and_sell_strategies|TOP]]
 +\\
 +
 +----
 +
 +==== DEMASPREAD ====
 +
 +This buy/sell strategy is true when the spread between fast and slow DEMA is larger (bigger spread) than (or equal to (for selling)) the ''​buy/​sell_value''​.
 +
 +With DEMASPREAD the current price does not matter, only the magnitude of the spread.
 +----
 +**The Numbers**
 +
 +Valid Values: positive or negative decimal numbers. ​
 +
 +----
 +**The Parameters**
 +
 +''​[[indicators_config#​DEMA_candle_period]]''​\\
 +''​[[indicators_config#​DEMA_fast_length]]''​\\
 +''​[[indicators_config#​DEMA_slow_length]]''​\\
 +----
 +**The Formula**
 +
 +<file java>
 +%DEMASLOW = DEMA(closeprices,​ DEMA_slow_length)
 +
 +%DEMAFAST = DEMA(closeprices,​ DEMA_fast_length)
 +
 +%Spread = ((%DEMAFAST / %DEMASLOW) - 1) * 100
 +</​file>​
 +
 +It is this %Spread that we display \\
 +
 +----
 +**Examples**\\
 +''​[[pairs_config#​DEFAULT_A_buy_value]] = -0.5''​ → buy strategy is true when the calculated spread is larger than -0.5%. (Fast DEMA is LOWER than Slow DEMA). ''​[[pairs_config#​DEFAULT_A_buy_value_limit]]''​ must be less than -0.5 if used. \\
 +
 +''​[[pairs_config#​DEFAULT_A_sell_value]] = 0.6''​ → sell strategy is true when the calculated spread is 0.6% or larger. (Fast DEMA is HIGHER than Slow DEMA). ''​[[pairs_config#​DEFAULT_A_sell_value_limit]]''​ must be greater than 0.6 if used.\\
 +
 +\\
 +[[buy_and_sell_strategies|TOP]]
 +\\
 +
 ---- ----
  
Line 442: Line 672:
 **The Parameters** **The Parameters**
  
-''​[[indicators.properties#​SMA_cross_candles]]''​\\ +''​[[indicators_config#​SMA_cross_candles]]''​\\ 
-''​[[indicators.properties#​SMA_candle_period]]''​\\ +''​[[indicators_config#​SMA_candle_period]]''​\\ 
-''​[[indicators.properties#​SMA_fast_length]]''​\\ +''​[[indicators_config#​SMA_fast_length]]''​\\ 
-''​[[indicators.properties#​SMA_slow_length]]''​\\+''​[[indicators_config#​SMA_slow_length]]''​\\
 ---- ----
 **The Formula** **The Formula**
Line 458: Line 688:
  
 It is this %Spread that we display \\ It is this %Spread that we display \\
-A cross must have occurred within the number of ''​[[indicators.properties#​SMA_cross_candles]]''​ specified for the strategy to become true \\+A cross must have occurred within the number of ''​[[indicators_config#​SMA_cross_candles]]''​ specified for the strategy to become true \\
  
 ---- ----
 **Examples** **Examples**
  
-''​[[indicators.properties#​SMA_cross_candles]] = 5''​+''​[[indicators_config#​SMA_cross_candles]] = 5''​
  
-''​[[pairs.properties#​DEFAULT_A_buy_value]] = -0.2''​→ buy strategy is true when the calculated spread is larger than -0.2% (Fast SMA is LOWER than Slow SMA) and the Fast SMA crossed below the slow SMA within the last 5 candles ​(excluding the current candle). ''​[[pairs.properties#​DEFAULT_A_buy_value_limit]]''​ must be less than -0.2 if used. \\+''​[[pairs_config#​DEFAULT_A_buy_value]] = -0.2''​→ buy strategy is true when the calculated spread is larger than -0.2% (Fast SMA is LOWER than Slow SMA) and the Fast SMA crossed below the slow SMA within the last 5 candles. ''​[[pairs_config#​DEFAULT_A_buy_value_limit]]''​ must be less than -0.2 if used. \\
  
-''​[[pairs.properties#​DEFAULT_A_buy_value]] = 0.05''​→ buy strategy is true when the calculated spread is larger than 0.05% (Fast SMA is ABOVE Slow SMA) and the Fast SMA crossed above the slow SMA within the last 5 candles ​(excluding the current candle). ''​[[pairs.properties#​DEFAULT_A_buy_value_limit]]''​ must be more than 0.05 if used. \\+''​[[pairs_config#​DEFAULT_A_buy_value]] = 0.05''​→ buy strategy is true when the calculated spread is larger than 0.05% (Fast SMA is ABOVE Slow SMA) and the Fast SMA crossed above the slow SMA within the last 5 candles. ''​[[pairs_config#​DEFAULT_A_buy_value_limit]]''​ must be more than 0.05 if used. \\
  
-''​[[pairs.properties#​DEFAULT_A_sell_value]] = 0.6''​ → sell strategy is true when the calculated spread is 0.6% or larger (Fast SMA is HIGHER than Slow SMA) and the Fast SMA crossed above the slow SMA within the last 5 candles ​(excluding the current candle). ''​[[pairs.properties#​DEFAULT_A_sell_value_limit]]''​ must be more than 0.6 if used. \\+''​[[pairs_config#​DEFAULT_A_sell_value]] = 0.6''​ → sell strategy is true when the calculated spread is 0.6% or larger (Fast SMA is HIGHER than Slow SMA) and the Fast SMA crossed above the slow SMA within the last 5 candles. ''​[[pairs_config#​DEFAULT_A_sell_value_limit]]''​ must be more than 0.6 if used. \\
  
 ---- ----
Line 494: Line 724:
 **The Parameters** **The Parameters**
  
-''​[[indicators.properties#​EMA_cross_candles]]''​\\ +''​[[indicators_config#​EMA_cross_candles]]''​\\ 
-''​[[indicators.properties#​EMA_candle_period]]''​\\ +''​[[indicators_config#​EMA_candle_period]]''​\\ 
-''​[[indicators.properties#​EMA_fast_length]]''​\\ +''​[[indicators_config#​EMA_fast_length]]''​\\ 
-''​[[indicators.properties#​EMA_slow_length]]''​\\+''​[[indicators_config#​EMA_slow_length]]''​\\
 ---- ----
 **The Formula** **The Formula**
Line 510: Line 740:
  
 It is this %Spread that we display \\ It is this %Spread that we display \\
-A cross must have occurred within the number of ''​[[indicators.properties#​EMA_cross_candles]]''​ specified for the strategy to become true \\+A cross must have occurred within the number of ''​[[indicators_config#​EMA_cross_candles]]''​ specified for the strategy to become true \\
  
 ---- ----
 **Examples** **Examples**
  
-''​[[indicators.properties#​EMA_cross_candles]] = 5''​+''​[[indicators_config#​EMA_cross_candles]] = 5''​
  
-''​[[pairs.properties#​DEFAULT_A_buy_value]] = -0.5''​→ buy strategy is true when the calculated spread is larger than -0.5% (Fast EMA is LOWER than Slow EMA) and the Fast EMA crossed below the slow EMA within the last 5 candles ​(excluding the current candle). ''​[[pairs.properties#​DEFAULT_A_buy_value_limit]]''​ must be less than -0.5 if used. \\+''​[[pairs_config#​DEFAULT_A_buy_value]] = -0.5''​→ buy strategy is true when the calculated spread is larger than -0.5% (Fast EMA is LOWER than Slow EMA) and the Fast EMA crossed below the slow EMA within the last 5 candles. ''​[[pairs_config#​DEFAULT_A_buy_value_limit]]''​ must be less than -0.5 if used. \\
  
-''​[[pairs.properties#​DEFAULT_A_buy_value]] = 0.05''​→ buy strategy is true when the calculated spread is larger than 0.05% (Fast EMA is ABOVE Slow EMA) and the Fast EMA crossed above the slow EMA within the last 5 candles ​(excluding the current candle). ''​[[pairs.properties#​DEFAULT_A_buy_value_limit]]''​ must be more than 0.05 if used. \\+''​[[pairs_config#​DEFAULT_A_buy_value]] = 0.05''​→ buy strategy is true when the calculated spread is larger than 0.05% (Fast EMA is ABOVE Slow EMA) and the Fast EMA crossed above the slow EMA within the last 5 candles. ''​[[pairs_config#​DEFAULT_A_buy_value_limit]]''​ must be more than 0.05 if used. \\
  
-''​[[pairs.properties#​DEFAULT_A_sell_value]] = 0.6''​ → sell strategy is true when the calculated spread is 0.6% or larger (Fast EMA is HIGHER than Slow EMA) and the Fast EMA crossed above the slow EMA within the last 5 candles ​(excluding the current candle). ''​[[pairs.properties#​DEFAULT_A_sell_value_limit]]''​ must be more than 0.05 if used.\\+''​[[pairs_config#​DEFAULT_A_sell_value]] = 0.6''​ → sell strategy is true when the calculated spread is 0.6% or larger (Fast EMA is HIGHER than Slow EMA) and the Fast EMA crossed above the slow EMA within the last 5 candles. ''​[[pairs_config#​DEFAULT_A_sell_value_limit]]''​ must be more than 0.05 if used.\\
  
  
Line 531: Line 761:
 [[buy_and_sell_strategies|TOP]] [[buy_and_sell_strategies|TOP]]
 \\ \\
 +
 ---- ----
  
 +==== HMACROSS ====
 +
 +This buy/sell strategy is true when the HMA lines have crossed and the spread is larger (bigger spread) than (or equal to (for selling)) the ''​buy/​sell_value''​.
 +
 +The direction of the cross is important. If a positive ''​buy/​sell_value''​ is used the fast HMA line must have crossed above the slow HMA line. If a negative ''​buy/​sell_value''​ is used the fast HMA line must have crossed below the slow HMA line.
 +
 +The cross must take place within the number of ''​cross_candles''​ specified also.
 +
 +----
 +**The Numbers**
 +
 +Valid Values: Positive or negative decimal values.
 +
 +----
 +**The Parameters**
 +
 +''​[[indicators_config#​HMA_cross_candles]]''​\\
 +''​[[indicators_config#​HMA_candle_period]]''​\\
 +''​[[indicators_config#​HMA_fast_length]]''​\\
 +''​[[indicators_config#​HMA_slow_length]]''​\\
 +----
 +**The Formula**
 +
 +<file java>
 +%HMASLOW = HMA(closeprices,​ HMA_slow_length)
 +
 +%HMAFAST = HMA(closeprices,​ HMA_fast_length)
 +
 +%Spread = ((%HMAFAST / %HMASLOW) - 1) * 100
 +</​file>​
 +
 +It is this %Spread that we display \\
 +A cross must have occurred within the number of ''​[[indicators_config#​HMA_cross_candles]]''​ specified for the strategy to become true \\
 +
 +----
 +**Examples**
 +
 +''​[[indicators_config#​HMA_cross_candles]] = 5''​
 +
 +''​[[pairs_config#​DEFAULT_A_buy_value]] = -0.2''​→ buy strategy is true when the calculated spread is larger than -0.2% (Fast HMA is LOWER than Slow HMA) and the Fast HMA crossed below the slow HMA within the last 5 candles. ''​[[pairs_config#​DEFAULT_A_buy_value_limit]]''​ must be less than -0.2 if used. \\
 +
 +''​[[pairs_config#​DEFAULT_A_buy_value]] = 0.05''​→ buy strategy is true when the calculated spread is larger than 0.05% (Fast HMA is ABOVE Slow HMA) and the Fast HMA crossed above the slow HMA within the last 5 candles. ''​[[pairs_config#​DEFAULT_A_buy_value_limit]]''​ must be more than 0.05 if used. \\
 +
 +''​[[pairs_config#​DEFAULT_A_sell_value]] = 0.6''​ → sell strategy is true when the calculated spread is 0.6% or larger (Fast HMA is HIGHER than Slow HMA) and the Fast HMA crossed above the slow HMA within the last 5 candles. ''​[[pairs_config#​DEFAULT_A_sell_value_limit]]''​ must be more than 0.6 if used. \\
 +
 +\\
 +[[buy_and_sell_strategies|TOP]]
 +\\
 +
 +----
 +
 +==== DEMACROSS ====
 +
 +This buy/sell strategy is true when the DEMA lines have crossed and the spread is larger (bigger spread) than (or equal to (for selling)) the ''​buy/​sell_value''​.
 +
 +The direction of the cross is important. If a positive ''​buy/​sell_value''​ is used the fast DEMA line must have crossed above the slow DEMA line. If a negative ''​buy/​sell_value''​ is used the fast DEMA line must have crossed below the slow DEMA line.
 +
 +The cross must take place within the number of ''​cross_candles''​ specified also.
 +
 +----
 +**The Numbers**
 +
 +Valid Values: Positive or negative decimal values.
 +
 +----
 +**The Parameters**
 +
 +''​[[indicators_config#​DEMA_cross_candles]]''​\\
 +''​[[indicators_config#​DEMA_candle_period]]''​\\
 +''​[[indicators_config#​DEMA_fast_length]]''​\\
 +''​[[indicators_config#​DEMA_slow_length]]''​\\
 +----
 +**The Formula**
 +
 +<file java>
 +%DEMASLOW = DEMA(closeprices,​ DEMA_slow_length)
 +
 +%DEMAFAST = DEMA(closeprices,​ DEMA_fast_length)
 +
 +%Spread = ((%DEMAFAST / %DEMASLOW) - 1) * 100
 +</​file>​
 +
 +It is this %Spread that we display \\
 +A cross must have occurred within the number of ''​[[indicators_config#​DEMA_cross_candles]]''​ specified for the strategy to become true \\
 +
 +----
 +**Examples**
 +
 +''​[[indicators_config#​DEMA_cross_candles]] = 5''​
 +
 +''​[[pairs_config#​DEFAULT_A_buy_value]] = -0.2''​→ buy strategy is true when the calculated spread is larger than -0.2% (Fast DEMA is LOWER than Slow DEMA) and the Fast DEMA crossed below the slow DEMA within the last 5 candles. ''​[[pairs_config#​DEFAULT_A_buy_value_limit]]''​ must be less than -0.2 if used. \\
 +
 +''​[[pairs_config#​DEFAULT_A_buy_value]] = 0.05''​→ buy strategy is true when the calculated spread is larger than 0.05% (Fast DEMA is ABOVE Slow DEMA) and the Fast DEMA crossed above the slow DEMA within the last 5 candles. ''​[[pairs_config#​DEFAULT_A_buy_value_limit]]''​ must be more than 0.05 if used. \\
 +
 +''​[[pairs_config#​DEFAULT_A_sell_value]] = 0.6''​ → sell strategy is true when the calculated spread is 0.6% or larger (Fast DEMA is HIGHER than Slow DEMA) and the Fast DEMA crossed above the slow DEMA within the last 5 candles. ''​[[pairs_config#​DEFAULT_A_sell_value_limit]]''​ must be more than 0.6 if used. \\
 +
 +\\
 +[[buy_and_sell_strategies|TOP]]
 +\\
 +
 +----
 ==== RSI ==== ==== RSI ====
  
Line 549: Line 881:
 **The Parameters** **The Parameters**
  
-''​[[indicators.properties#​RSI_candle_period]]''​\\ +''​[[indicators_config#​RSI_candle_period]]''​\\ 
-''​[[indicators.properties#​RSI_length]]''​\\+''​[[indicators_config#​RSI_length]]''​\\
  
 ---- ----
Line 565: Line 897:
 **Examples** **Examples**
  
-''​[[pairs.properties#​DEFAULT_A_buy_value]] = 20''​ → buy zone begins when the RSI value is less than 20. ''​[[pairs.properties#​DEFAULT_A_buy_value_limit]]''​ must be less than 20 if used.\\ +''​[[pairs_config#​DEFAULT_A_buy_value]] = 20''​ → buy zone begins when the RSI value is less than 20. ''​[[pairs_config#​DEFAULT_A_buy_value_limit]]''​ must be less than 20 if used.\\ 
-''​[[pairs.properties#​DEFAULT_A_sell_value]] = 80''​ → sell zone begins when the RSI value is greater than or equal to 80. ''​[[pairs.properties#​DEFAULT_A_sell_value_limit]]''​ must be greater than 80 if used. \\ +''​[[pairs_config#​DEFAULT_A_sell_value]] = 80''​ → sell zone begins when the RSI value is greater than or equal to 80. ''​[[pairs_config#​DEFAULT_A_sell_value_limit]]''​ must be greater than 80 if used. \\ 
-''​[[dca.properties#​DEFAULT_DCA_A_buy_value|DEFAULT_DCA_B_buy_value]] = 30''​ → DCA buy zone begins when the RSI value is less than 30. ''​[[dca.properties#​DEFAULT_DCA_B_buy_value_limit]]''​ must be less than 30 if used.\\+''​[[dca_config#​DEFAULT_DCA_A_buy_value|DEFAULT_DCA_B_buy_value]] = 30''​ → DCA buy zone begins when the RSI value is less than 30. ''​[[dca_config#​DEFAULT_DCA_B_buy_value_limit]]''​ must be less than 30 if used.\\
  
 ---- ----
Line 592: Line 924:
 **The Parameters** **The Parameters**
  
-''​[[indicators.properties#​STOCH_length]]''​\\ +''​[[indicators_config#​STOCH_length]]''​\\ 
-''​[[indicators.properties#​STOCH_candle_period]]''​\\ +''​[[indicators_config#​STOCH_candle_period]]''​\\ 
-''​[[indicators.properties#​STOCH_K]]''​\\ +''​[[indicators_config#​STOCH_K]]''​\\ 
-''​[[indicators.properties#​STOCH_D]]''​\\+''​[[indicators_config#​STOCH_D]]''​\\
  
 ---- ----
Line 620: Line 952:
 **Examples** **Examples**
  
-''​[[pairs.properties#​DEFAULT_A_buy_value]] = 20''​ → buy zone begins when the STOCH value is less than 20. ''​[[pairs.properties#​DEFAULT_A_buy_value_limit]]''​ must be less than 20 if used.\\ +''​[[pairs_config#​DEFAULT_A_buy_value]] = 20''​ → buy zone begins when the STOCH value is less than 20. ''​[[pairs_config#​DEFAULT_A_buy_value_limit]]''​ must be less than 20 if used.\\ 
-''​[[pairs.properties#​DEFAULT_A_sell_value]] = 80''​ → sell zone begins when the STOCH value is greater than or equal to 80. ''​[[pairs.properties#​DEFAULT_A_sell_value_limit]]''​ must be greater than 80 if used.\\ +''​[[pairs_config#​DEFAULT_A_sell_value]] = 80''​ → sell zone begins when the STOCH value is greater than or equal to 80. ''​[[pairs_config#​DEFAULT_A_sell_value_limit]]''​ must be greater than 80 if used.\\ 
-''​[[dca.properties#​DEFAULT_DCA_A_buy_value|DEFAULT_DCA_B_buy_value]] = 30''​ → DCA buy zone begins when the STOCH value is less than 30. ''​[[dca.properties#​DEFAULT_DCA_A_buy_value_limit|DEFAULT_DCA_B_buy_value_limit]]''​ must be less than 30 if used.\\ +''​[[dca_config#​DEFAULT_DCA_A_buy_value|DEFAULT_DCA_B_buy_value]] = 30''​ → DCA buy zone begins when the STOCH value is less than 30. ''​[[dca_config#​DEFAULT_DCA_A_buy_value_limit|DEFAULT_DCA_B_buy_value_limit]]''​ must be less than 30 if used.\\
- +
-\\ +
-[[buy_and_sell_strategies|TOP]] +
-\\ +
----- +
-==== STOCHRSI (CLASSIC) ==== +
- +
-This buy/sell strategy is true when the STOCHRSI value is less than the ''​buy_value''​ or is greater than or equal to the ''​sell_value''​. +
- +
-STOCHRSI as a buy strategy is true if ''​buy_value''​ > STOCHRSI > ''​buy_value_limit''​. +
- +
-STOCHRSI as a sell strategy is true if ''​sell_value''​ <= STOCHRSI <= ''​sell_value_limit''​. +
- +
----- +
-**The Numbers** +
- +
-Valid Values: +
-Values between 0 and 1 are valid.  +
- +
----- +
-**The Parameters** +
- +
-''​[[indicators.properties#​STOCHRSI_candle_period]]''​\\ +
-''​[[indicators.properties#​STOCHRSI_rsi_length]]''​\\ +
-''​[[indicators.properties#​STOCHRSI_stoch_length]]''​\\ +
- +
----- +
-**The Formula** +
-<file java> +
-StochRSI = (RSI - Lowest Low RSI) / (Highest High RSI - Lowest Low RSI) +
-</​file>​ +
- +
----- +
-**Examples** +
- +
-''​[[pairs.properties#​DEFAULT_A_buy_value]] = 0.2''​ → buy zone begins when the calculated value is less than 0.2. ''​[[pairs.properties#​DEFAULT_A_buy_value_limit]]''​ must be less than 0.2 if used. \\ +
-''​[[pairs.properties#​DEFAULT_A_sell_value]] = 0.8''​ → sell zone begins when the calculated value is greater than or equal to 0.8. ''​[[pairs.properties#​DEFAULT_A_sell_value_limit]]''​ must be greater than 0.8 if used.\\ +
-''​[[dca.properties#​DEFAULT_DCA_A_buy_value|DEFAULT_DCA_B_buy_value]] = 0.3''​ → buy zone begins when the calculated value is less than 0.3. ''​[[dca.properties#​DEFAULT_DCA_A_buy_value_limit|DEFAULT_DCA_B_buy_value_limit]]''​ must be less than 0.3 if used.\\+
  
 \\ \\
Line 668: Line 962:
  
 ==== STOCHRSID ==== ==== STOCHRSID ====
 +=== (Use for TradingView visualization) ===
  
 This buy/sell strategy is true when the STOCHRSID value is less than the ''​buy_value''​ or is greater than or equal to the ''​sell_value''​. This buy/sell strategy is true when the STOCHRSID value is less than the ''​buy_value''​ or is greater than or equal to the ''​sell_value''​.
Line 683: Line 978:
 **The Parameters** **The Parameters**
  
-''​[[indicators.properties#​STOCHRSID_candle_period]]''​\\ +''​[[indicators_config#​STOCHRSID_candle_period]]''​\\ 
-''​[[indicators.properties#​STOCHRSID_rsi_length]]''​\\ +''​[[indicators_config#​STOCHRSID_rsi_length]]''​\\ 
-''​[[indicators.properties#​STOCHRSID_stoch_length]]''​\\ +''​[[indicators_config#​STOCHRSID_stoch_length]]''​\\ 
-''​[[indicators.properties#​STOCHRSID_K]]''​\\ +''​[[indicators_config#​STOCHRSID_K]]''​\\ 
-''​[[indicators.properties#​STOCHRSID_D]]''​\\+''​[[indicators_config#​STOCHRSID_D]]''​\\
  
 ---- ----
Line 710: Line 1005:
 **Examples** **Examples**
  
-''​[[pairs.properties#​DEFAULT_A_buy_value]] = 20''​ → buy zone begins when the calculated value is less than 20. ''​[[pairs.properties#​DEFAULT_A_buy_value_limit]]''​ must be less than 20 if used. \\ +''​[[pairs_config#​DEFAULT_A_buy_value]] = 20''​ → buy zone begins when the calculated value is less than 20. ''​[[pairs_config#​DEFAULT_A_buy_value_limit]]''​ must be less than 20 if used. \\ 
-''​[[pairs.properties#​DEFAULT_A_sell_value]] = 80''​ → sell zone begins when the calculated value is greater than or equal to 80. ''​[[pairs.properties#​DEFAULT_A_sell_value_limit]]''​ must be greater than 80 if used.\\ +''​[[pairs_config#​DEFAULT_A_sell_value]] = 80''​ → sell zone begins when the calculated value is greater than or equal to 80. ''​[[pairs_config#​DEFAULT_A_sell_value_limit]]''​ must be greater than 80 if used.\\ 
-''​[[dca.properties#​DEFAULT_DCA_A_buy_value|DEFAULT_DCA_B_buy_value]] = 30''​ → buy zone begins when the calculated value is less than 30. ''​[[dca.properties#​DEFAULT_DCA_A_buy_value_limit|DEFAULT_DCA_B_buy_value_limit]]''​ must be less than 30 if used.\\+''​[[dca_config#​DEFAULT_DCA_A_buy_value|DEFAULT_DCA_B_buy_value]] = 30''​ → buy zone begins when the calculated value is less than 30. ''​[[dca_config#​DEFAULT_DCA_A_buy_value_limit|DEFAULT_DCA_B_buy_value_limit]]''​ must be less than 30 if used.\\
  
 \\ \\
Line 735: Line 1030:
 **The Parameters** **The Parameters**
  
-''​[[indicators.properties#​STOCHRSIK_candle_period]]''​\\ +''​[[indicators_config#​STOCHRSIK_candle_period]]''​\\ 
-''​[[indicators.properties#​STOCHRSIK_rsi_length]]''​\\ +''​[[indicators_config#​STOCHRSIK_rsi_length]]''​\\ 
-''​[[indicators.properties#​STOCHRSIK_stoch_length]]''​\\ +''​[[indicators_config#​STOCHRSIK_stoch_length]]''​\\ 
-''​[[indicators.properties#​STOCHRSIK_K]]''​\\+''​[[indicators_config#​STOCHRSIK_K]]''​\\
  
 ---- ----
Line 758: Line 1053:
 **Examples** **Examples**
  
-''​[[pairs.properties#​DEFAULT_A_buy_value]] = 20''​ → buy zone begins when the calculated value is less than 20. ''​[[pairs.properties#​DEFAULT_A_buy_value_limit]]''​ must be less than 20 if used. \\ +''​[[pairs_config#​DEFAULT_A_buy_value]] = 20''​ → buy zone begins when the calculated value is less than 20. ''​[[pairs_config#​DEFAULT_A_buy_value_limit]]''​ must be less than 20 if used. \\ 
-''​[[pairs.properties#​DEFAULT_A_sell_value]] = 80''​ → sell zone begins when the calculated value is greater than or equal to 80. ''​[[pairs.properties#​DEFAULT_A_sell_value_limit]]''​ must be greater than 80 if used.\\ +''​[[pairs_config#​DEFAULT_A_sell_value]] = 80''​ → sell zone begins when the calculated value is greater than or equal to 80. ''​[[pairs_config#​DEFAULT_A_sell_value_limit]]''​ must be greater than 80 if used.\\ 
-''​[[dca.properties#​DEFAULT_DCA_A_buy_value|DEFAULT_DCA_B_buy_value]] = 30''​ → buy zone begins when the calculated value is less than 30. ''​[[dca.properties#​DEFAULT_DCA_A_buy_value_limit|DEFAULT_DCA_B_buy_value_limit]]''​ must be less than 30 if used.\\+''​[[dca_config#​DEFAULT_DCA_A_buy_value|DEFAULT_DCA_B_buy_value]] = 30''​ → buy zone begins when the calculated value is less than 30. ''​[[dca_config#​DEFAULT_DCA_A_buy_value_limit|DEFAULT_DCA_B_buy_value_limit]]''​ must be less than 30 if used.\\
  
 \\ \\
Line 784: Line 1079:
 **The Parameters** **The Parameters**
  
-''​[[indicators.properties#​STOCHRSICROSS_candle_period]]''​\\ +''​[[indicators_config#​STOCHRSICROSS_candle_period]]''​\\ 
-''​[[indicators.properties#​STOCHRSICROSS_rsi_length]]''​\\ +''​[[indicators_config#​STOCHRSICROSS_rsi_length]]''​\\ 
-''​[[indicators.properties#​STOCHRSICROSS_stoch_length]]''​\\ +''​[[indicators_config#​STOCHRSICROSS_stoch_length]]''​\\ 
-''​[[indicators.properties#​STOCHRSICROSS_K]]''​\\ +''​[[indicators_config#​STOCHRSICROSS_K]]''​\\ 
-''​[[indicators.properties#​STOCHRSICROSS_D]]''​\\ +''​[[indicators_config#​STOCHRSICROSS_D]]''​\\ 
-''​[[indicators.properties#​STOCHRSICROSS_cross_candles]]''​\\+''​[[indicators_config#​STOCHRSICROSS_cross_candles]]''​\\
  
 ---- ----
Line 813: Line 1108:
 \\ \\
 It is this %Spread that we display \\ It is this %Spread that we display \\
-A cross must have occurred within the number of ''​[[indicators.properties#​STOCHRSICROSS_cross_candles]]''​ specified for the strategy to become true \\+A cross must have occurred within the number of ''​[[indicators_config#​STOCHRSICROSS_cross_candles]]''​ specified for the strategy to become true \\
 ---- ----
 **Examples** **Examples**
  
-''​[[indicators.properties#​STOCHRSICROSS_cross_candles]] = 5''​+''​[[indicators_config#​STOCHRSICROSS_cross_candles]] = 5''​
  
-''​[[pairs.properties#​DEFAULT_A_buy_value]] = -0.5''​→ buy strategy is true when the calculated spread is larger than -0.5% (K is LOWER than D) and the K  +''​[[pairs_config#​DEFAULT_A_buy_value]] = -0.5''​→ buy strategy is true when the calculated spread is larger than -0.5% (K is LOWER than D) and the K  
- line crossed below the D line within the last 5 candles ​(excluding the current candle). ''​[[pairs.properties#​DEFAULT_A_buy_value_limit]]''​ must be less than -0.5 if used. \\+ line crossed below the D line within the last 5 candles. ''​[[pairs_config#​DEFAULT_A_buy_value_limit]]''​ must be less than -0.5 if used. \\
  
-''​[[pairs.properties#​DEFAULT_A_buy_value]] = 0.05''​→ buy strategy is true when the calculated spread is larger than 0.05% (K is HIGHER than D) and the K line crossed above the D line within the last 5 candles ​(excluding the current candle). ''​[[pairs.properties#​DEFAULT_A_buy_value_limit]]''​ must be more than 0.05 if used. \\+''​[[pairs_config#​DEFAULT_A_buy_value]] = 0.05''​→ buy strategy is true when the calculated spread is larger than 0.05% (K is HIGHER than D) and the K line crossed above the D line within the last 5 candles. ''​[[pairs_config#​DEFAULT_A_buy_value_limit]]''​ must be more than 0.05 if used. \\
  
-''​[[pairs.properties#​DEFAULT_A_sell_value]] = 0.6''​ → sell strategy is true when the calculated spread is 0.6% or larger (K is HIGHER than D) and the K line crossed above the D line within the last 5 candles ​(excluding the current candle). ''​[[pairs.properties#​DEFAULT_A_sell_value_limit]]''​ must be more than 0.6 if used.\\+''​[[pairs_config#​DEFAULT_A_sell_value]] = 0.6''​ → sell strategy is true when the calculated spread is 0.6% or larger (K is HIGHER than D) and the K line crossed above the D line within the last 5 candles. ''​[[pairs_config#​DEFAULT_A_sell_value_limit]]''​ must be more than 0.6 if used.\\
  
 \\ \\
Line 844: Line 1139:
 **The Parameters** **The Parameters**
  
-''​[[indicators.properties#​MACD_candle_period]]''​\\+''​[[indicators_config#​MACD_candle_period]]''​\\
 Longer candle periods tend to work better for MACD.  Longer candle periods tend to work better for MACD. 
  
-''​[[indicators.properties#​MACD_fast_length]]''​\\ +''​[[indicators_config#​MACD_fast_length]]''​\\ 
-''​[[indicators.properties#​MACD_slow_length]]''​\\ +''​[[indicators_config#​MACD_slow_length]]''​\\ 
-''​[[indicators.properties#​MACD_signal]]''​\\+''​[[indicators_config#​MACD_signal]]''​\\
 The values of 12, 26 and 9 are the typical fast, slow, signal setting used with the MACD, however other values can be substituted depending on your trading style and goals. The values of 12, 26 and 9 are the typical fast, slow, signal setting used with the MACD, however other values can be substituted depending on your trading style and goals.
  
Line 865: Line 1160:
 ---- ----
 **Examples**\\ **Examples**\\
-''​[[indicators.properties#​MACD_candle_period]]= 900''​ \\ +''​[[indicators_config#​MACD_candle_period]]= 900''​ \\ 
-''​[[indicators.properties#​MACD_fast_length]] = 12''​\\ +''​[[indicators_config#​MACD_fast_length]] = 12''​\\ 
-''​[[indicators.properties#​MACD_slow_length]] = 26''​\\ +''​[[indicators_config#​MACD_slow_length]] = 26''​\\ 
-''​[[indicators.properties#​MACD_signal]] = 9''​\\+''​[[indicators_config#​MACD_signal]] = 9''​\\
  
-''​[[pairs.properties#​DEFAULT_A_buy_value]] = 0.0000002''​ → buy zone begins when the calculated value of MACD is greater than 0.000000200. ''​[[pairs.properties#​DEFAULT_A_buy_value_limit]]''​ must be greater than 0.0000002 if used. \\+''​[[pairs_config#​DEFAULT_A_buy_value]] = 0.0000002''​ → buy zone begins when the calculated value of MACD is greater than 0.000000200. ''​[[pairs_config#​DEFAULT_A_buy_value_limit]]''​ must be greater than 0.0000002 if used. \\
  
-''​[[dca.properties#​DEFAULT_DCA_A_buy_value]] = 0.0000003''​ → buy zone begins when the calculated value of MACD is greater than 0.000000300. ''​[[dca.properties#​DEFAULT_DCA_A_buy_value_limit]]''​ must be greater than 0.0000003 if used.+''​[[dca_config#​DEFAULT_DCA_A_buy_value]] = 0.0000003''​ → buy zone begins when the calculated value of MACD is greater than 0.000000300. ''​[[dca_config#​DEFAULT_DCA_A_buy_value_limit]]''​ must be greater than 0.0000003 if used.
  
-''​[[pairs.properties#​DEFAULT_A_sell_value]] = -0.0000002''​ → sell zone begins when the calculated value of MACD is -0.000000200 or less. ''​[[pairs.properties#​DEFAULT_A_sell_value_limit]]''​ must be less than -0.0000002 if used. \\+''​[[pairs_config#​DEFAULT_A_sell_value]] = -0.0000002''​ → sell zone begins when the calculated value of MACD is -0.000000200 or less. ''​[[pairs_config#​DEFAULT_A_sell_value_limit]]''​ must be less than -0.0000002 if used. \\
  
-''​[[dca.properties#​DEFAULT_DCA_A_sell_value]] = -0.0000003''​ → sell zone begins when the calculated value of MACD falls to -0.000000300 or less. ''​[[dca.properties#​DEFAULT_A_sell_value_limit]]''​ must be less than 0.0000003 if used.+''​[[dca_config#​DEFAULT_DCA_A_sell_value]] = -0.0000003''​ → sell zone begins when the calculated value of MACD falls to -0.000000300 or less. ''​[[dca_config#​DEFAULT_A_sell_value_limit]]''​ must be less than 0.0000003 if used.
  
 \\ \\
Line 894: Line 1189:
 **The Parameters** **The Parameters**
  
-''​[[indicators.properties#​BB_std]]''​\\ +''​[[indicators_config#​BB_std]]''​\\ 
-''​[[indicators.properties#​BB_candle_period]]''​\\ +''​[[indicators_config#​BB_candle_period]]''​\\ 
-''​[[indicators.properties#​BB_length]]''​\\+''​[[indicators_config#​BB_length]]''​\\
  
  
Line 910: Line 1205:
 **Examples**\\ **Examples**\\
  
-''​[[pairs.properties#​DEFAULT_A_buy_value]] = 0.4''​ → buy zone begins when BBWIDTH is less than  0.4. ''​[[pairs.properties#​DEFAULT_A_buy_value_limit]]''​ must be less than 0.4 if used.\\+''​[[pairs_config#​DEFAULT_A_buy_value]] = 0.4''​ → buy zone begins when BBWIDTH is less than  0.4. ''​[[pairs_config#​DEFAULT_A_buy_value_limit]]''​ must be less than 0.4 if used.\\
  
-''​[[dca.properties#​DEFAULT_DCA_A_buy_value]] = 0.5''​ → True when BBWIDTH is less than 0.5. ''​[[dca.properties#​DEFAULT_DCA_A_buy_value_limit]]''​ must be less than 0.5 if used.\\+''​[[dca_config#​DEFAULT_DCA_A_buy_value]] = 0.5''​ → True when BBWIDTH is less than 0.5. ''​[[dca_config#​DEFAULT_DCA_A_buy_value_limit]]''​ must be less than 0.5 if used.\\
  
-''​[[pairs.properties#​DEFAULT_A_sell_value]] = 0.7''​ → sell zone begins when BBWIDTH is greater than 0.7. ''​[[pairs.properties#​DEFAULT_A_sell_value_limit]]''​ must be greater than 0.7 if used.\\+''​[[pairs_config#​DEFAULT_A_sell_value]] = 0.7''​ → sell zone begins when BBWIDTH is greater than 0.7. ''​[[pairs_config#​DEFAULT_A_sell_value_limit]]''​ must be greater than 0.7 if used.\\
  
  
Line 947: Line 1242:
 **The Parameters** **The Parameters**
  
-''​[[indicators.properties#​OBV_candle_period]]''​\\ +''​[[indicators_config#​OBV_candle_period]]''​\\ 
-''​[[indicators.properties#​OBV_length]]''​ - Must be less than 500\\ +''​[[indicators_config#​OBV_length]]''​ - Must be less than 500\\ 
-''​[[indicators.properties#​OBV_signal]]''​ - Must be less than OBV_length\\+''​[[indicators_config#​OBV_signal]]''​ - Must be less than OBV_length\\
  
 ---- ----
Line 970: Line 1265:
  
  
-''​[[pairs.properties#​DEFAULT_A_buy_value]] = -0.001''​ → buy zone begins when the calculated value is less than -0.001. ''​[[pairs.properties#​DEFAULT_A_buy_value_limit]]''​ must be less than -0.001 if used.\\ +''​[[pairs_config#​DEFAULT_A_buy_value]] = -0.001''​ → buy zone begins when the calculated value is less than -0.001. ''​[[pairs_config#​DEFAULT_A_buy_value_limit]]''​ must be less than -0.001 if used.\\ 
-''​[[pairs.properties#​DEFAULT_A_buy_value]] = 0.005''​ → buy zone begins when the calculated value is greater than 0.005. ''​[[pairs.properties#​DEFAULT_A_buy_value_limit]]''​ must be greater than 0.005 if used.\\+''​[[pairs_config#​DEFAULT_A_buy_value]] = 0.005''​ → buy zone begins when the calculated value is greater than 0.005. ''​[[pairs_config#​DEFAULT_A_buy_value_limit]]''​ must be greater than 0.005 if used.\\
  
 ---- ----
 → Use **TradingView** to visualize **OBV** with [[https://​www.tradingview.com/​script/​ihKHk5Pd-OBV-for-ProfitTrailer-by-BotIndicators-com/​|this indicator]]. → Use **TradingView** to visualize **OBV** with [[https://​www.tradingview.com/​script/​ihKHk5Pd-OBV-for-ProfitTrailer-by-BotIndicators-com/​|this indicator]].
 +
 +\\
 +[[buy_and_sell_strategies|TOP]]
 +\\
 +
 ---- ----
 +==== 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 spread is higher/​lower than the spread between previous candle high and the bid price of a trading pair.
  
 +----
 +
 +**The Numbers**
 +
 +Valid Values: positive or negative decimal values.
 +
 +So previous candle 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:
 +
 +<file java>
 +%Spread = ((%Bid Price / %PDHIGH) - 1) * 100
 +</​file>​
 +
 +It is this %Spread that we display ​
 +
 +----
 +
 +**The Parameters**
 +
 +''​[[indicators_config#​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_config#​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_config#​DEFAULT_A_buy_value_limit]]''​ must be higher than 0.00000001 if used.\\
 +
 +''​[[pairs_config#​DEFAULT_A_buy_value]] = -0.00000001''​ → negative numbers indicates a downward trend. Bid price must be lower than this value. ''​[[pairs_config#​DEFAULT_A_buy_value_limit]]''​ must be lower than -0.00000001 if used.\\
  
 \\ \\
 [[buy_and_sell_strategies|TOP]] [[buy_and_sell_strategies|TOP]]
 \\ \\
 +
 ---- ----
 +
 +====PDLOW====
 +
 +PDLOW is the previous day low. PDLOW (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 spread is higher/​lower than the spread between previous candle low and the bid price of a trading pair.
 +
 +----
 +
 +**The Numbers**
 +
 +Valid Values: positive or negative decimal values.
 +
 +So previous candle low for ETHBTC was 0.034432\\
 +Current bid price is about 0.0356225\\
 +So the PDLOW value is positive (3.45%).\\ ​
 +
 +----
 +**The Formula**
 +
 +PDLOW uses a spread calculation as follows:
 +
 +<file java>
 +%Spread = ((%Bid Price / %PDLOW) - 1) * 100
 +</​file>​
 +
 +It is this %Spread that we display ​
 +
 +----
 +
 +**The Parameters**
 +
 +''​[[indicators_config#​PDLOW_candle_period]]''​\\
 +
 +----
 + 
 +**Examples**
 +
 +An example use of this strategy is to buy as soon as the bid price crosses the PDLOW 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 = PDLOW
 +DEFAULT_A_buy_value = 0.00000001
 +DEFAULT_A_buy_value_limit = 30.0
 +</​file>​
 +
 +''​[[pairs_config#​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_config#​DEFAULT_A_buy_value_limit]]''​ must be higher than 0.00000001 if used.\\
 +
 +''​[[pairs_config#​DEFAULT_A_buy_value]] = -0.00000001''​ → negative numbers indicates a downward trend. Bid price must be lower than this value. ''​[[pairs_config#​DEFAULT_A_buy_value_limit]]''​ must be lower than -0.00000001 if used.\\
 +
 +\\
 +[[buy_and_sell_strategies|TOP]]
 +\\
 +
 +----
 +
 +====PDCLOSE====
 +
 +PDCLOSE is the previous day close. PDCLOSE (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 spread is higher/​lower than the spread between previous candle close and the bid price of a trading pair.
 +
 +----
 +
 +**The Numbers**
 +
 +Valid Values: positive or negative decimal values.
 +
 +So previous candle close for ETHBTC was 0.034432\\
 +Current bid price is about 0.0356225\\
 +So the PDCLOSE value is positive (3.45%).\\ ​
 +
 +----
 +**The Formula**
 +
 +PDCLOSE uses a spread calculation as follows:
 +
 +<file java>
 +%Spread = ((%Bid Price / %PDCLOSE) - 1) * 100
 +</​file>​
 +
 +It is this %Spread that we display ​
 +
 +----
 +
 +**The Parameters**
 +
 +''​[[indicators_config#​PDCLOSE_candle_period]]''​\\
 +
 +----
 + 
 +**Examples**
 +
 +An example use of this strategy is to buy as soon as the bid price crosses the PDCLOSE 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 = PDCLOSE
 +DEFAULT_A_buy_value = 0.00000001
 +DEFAULT_A_buy_value_limit = 30.0
 +</​file>​
 +
 +''​[[pairs_config#​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_config#​DEFAULT_A_buy_value_limit]]''​ must be higher than 0.00000001 if used.\\
 +
 +''​[[pairs_config#​DEFAULT_A_buy_value]] = -0.00000001''​ → negative numbers indicates a downward trend. Bid price must be lower than this value. ''​[[pairs_config#​DEFAULT_A_buy_value_limit]]''​ must be lower than -0.00000001 if used.\\
 +
 +
 +\\
 +[[buy_and_sell_strategies|TOP]]
 +\\
 +
 +----
 +
 +====LASTDCABUY====
 +
 +LASTDCABUY is a strategy that buys only if the ASK price is below the last DCA price. This is not the last average price, rather the last price at which a DCA buy was made.\\
 +LASTDCABUY does not use an indicator, buy value, or buy value limit.
 +
 +This buy strategy is true when the current ask price is below the price of our last DCA buy.
 +
 +----
 +
 +**The Numbers**
 +
 +Valid Values: positive or negative decimal values.\\
 +Price of our last DCA buy was 0.0352965\\
 +Current ask price is 0.0351170\\
 +So the LASTDCABUY value is true.
 +----
 +
 +**The Parameters**
 +
 +''​[[dca_config#​default_dca_a_buy_strategy|DEFAULT_DCA_A_Buy_Strategy]] = LASTDCABUY''​\\
 +
 +----
 + 
 +**Examples**
 +
 +The strategy is true when the current ask price is below the price of our last DCA buy.\\
 +**Note:** [[dca_config#​default_dca_a_buy_value|DCA Buy Value]] and [[dca_config#​default_dca_a_buy_value_limit|DCA Buy Value Limit]] are not used with this strategy.
 +
 +<file java>
 +DEFAULT_DCA_A_buy_strategy = LASTDCABUY
 +</​file>​
 +
 +\\
 +[[buy_and_sell_strategies|TOP]]
 +\\
 +
 +----
 +
 ==== ANDERSON ==== ==== ANDERSON ====
  
Line 1009: Line 1508:
 ---- ----
 **Examples**\\ **Examples**\\
-''​[[dca.properties#​DEFAULT_DCA_A_buy_strategy]] = ANDERSON''​\\+''​[[dca_config#​DEFAULT_DCA_A_buy_strategy]] = ANDERSON''​\\
  
-''​[[dca.properties#​DEFAULT_DCA_buy_trigger]] = -3''​\\ +''​[[dca_config#​DEFAULT_DCA_buy_trigger]] = -3''​\\ 
-''​[[dca.properties#​DEFAULT_DCA_buy_trigger_1]] = -2''​\\ +''​[[dca_config#​DEFAULT_DCA_buy_trigger_1]] = -2''​\\ 
-''​[[dca.properties#​DEFAULT_DCA_buy_trigger_2]] = -3.5''​\\ +''​[[dca_config#​DEFAULT_DCA_buy_trigger_2]] = -3.5''​\\ 
-''​[[dca.properties#​DEFAULT_DCA_buy_trigger_3]] = -4''​\\+''​[[dca_config#​DEFAULT_DCA_buy_trigger_3]] = -4''​\\
  
-''​[[dca.properties#​DEFAULT_DCA_trailing_buy]] = 0.2''​\\+''​[[dca_config#​DEFAULT_DCA_trailing_buy]] = 0.2''​\\
  
 In this scenario the DCA level specific triggers will be used for the first three DCA buys. After that, if the bot is allowed to buy more times, the DEFAULT trigger will be used for each level. In this scenario the DCA level specific triggers will be used for the first three DCA buys. After that, if the bot is allowed to buy more times, the DEFAULT trigger will be used for each level.
  
-In our example the bot buys a coin for whatever price using the strategies defined in pairs.properties. Now the bot looks at the lowest ask price in the order book and watches to see if it drops below our ''​buy_trigger''​. Once the Ask price goes below -2 the bot looks to trail back up by the ''​trailing_buy''​ amount. (See [[A_trailing_Story|A Traling Story]] for more info on trailing)+In our example the bot buys a coin for whatever price using the strategies defined in pairs_config. Now the bot looks at the lowest ask price in the order book and watches to see if it drops below our ''​buy_trigger''​. Once the Ask price goes below -2 the bot looks to trail back up by the ''​trailing_buy''​ amount. (See [[A_trailing_Story|A Traling Story]] for more info on trailing)
  
 If it successfully trails and is still below the ''​buy_trigger''​ ProfitTrailer tries to buy. After a successful DCA buy the average price is recalculated. and the bot now looks for the ASK price to drop -3.5% from the new average price. And so the process is repeated. If it successfully trails and is still below the ''​buy_trigger''​ ProfitTrailer tries to buy. After a successful DCA buy the average price is recalculated. and the bot now looks for the ASK price to drop -3.5% from the new average price. And so the process is repeated.
Line 1026: Line 1525:
 For the 4th buy onwards the default value of -3 will be used indefinitely as no level specific value has been set. For the 4th buy onwards the default value of -3 will be used indefinitely as no level specific value has been set.
  
 +
 +\\
 +[[buy_and_sell_strategies|TOP]]
 +\\
 +
 +==== FIXEDPRICE====
 +
 +FIXEDPRICE is as the name says a fixed price buying/​selling strategy
 +
 +The buy strategy is true when source price is below the specified price in buy_value \\
 +The sell strategy is true when source price is above or equal to the specified price in sell_value \\
 +
 +**Note:** It is recommended to use this strategy only with PAIR specific overrides as different coins have different prices. \\
 +So it's impossible to create a default value to pick all coins in a good price range.
 +----
 +
 +**The Numbers**
 +
 +Valid Values: positive decimal values.
 +
 +----
 +**The Formula**
 +
 +----
 +
 +**The Parameters**
 +
 +''​[[indicators_config#​FIXEDPRICE_source]]''​ = (ASK,BID or CLOSE)\\
 +
 +----
 + 
 +**Examples**
 +An example use of this strategy is to buy as soon as the ask price of a pair is below our specified price.
 +\\
 +
 +In Indicators Config:
 +<file java>
 +FIXEDPRICE_source = ASK
 +</​file>​
 +\\
 +In Pairs Config:
 +<file java>
 +BTT_A_buy_strategy = FIXEDPRICE
 +BTT_A_buy_value = 0.00000016
 +</​file>​
 +
 +''​[[pairs_config#​DEFAULT_A_buy_value]] = 0.00000016''​ → buy zone begins when the ask price for BTT is below 16 satoshi.\\
 +''​[[pairs_config#​DEFAULT_A_buy_value_limit]]''​ must be less than 0.00000016 if used.
  
 \\ \\
Line 1038: Line 1585:
  
 **Example**\\ **Example**\\
-''​[[pairs.properties#​DEFAULT_A_buy_strategy]] = LOWBB''​\\ +''​[[pairs_config#​DEFAULT_A_buy_strategy]] = LOWBB''​\\ 
-''​[[pairs.properties#​DEFAULT_B_buy_strategy]] = RSI''​\\+''​[[pairs_config#​DEFAULT_B_buy_strategy]] = RSI''​\\
 ---- ----
-''​[[pairs.properties#​XXX_B_buy_strategy]] = DISABLED''​\\+''​[[pairs_config#​XXX_B_buy_strategy]] = DISABLED''​\\
 ---- ----
 This has the effect of letting you use your default settings except for a specific coin, denoted by the XXX.\\ This has the effect of letting you use your default settings except for a specific coin, denoted by the XXX.\\
Line 1049: Line 1596:
 [[buy_and_sell_strategies|TOP]] [[buy_and_sell_strategies|TOP]]
 \\ \\
- 
-~~DISCUSSION~~ 
  • buy_and_sell_strategies.1536724172.txt.gz
  • Last modified: 10 months ago
  • by diesel