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/07/13 13:32]
diesel [RSI]
buy_and_sell_strategies [2019/01/31 14:31] (current)
armchairguru
Line 8: Line 8:
  
 ^ 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}} ​ | | +^ [[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 15:
 ^ [[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]] ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ | +^ [[buy_and_sell_strategies#​STOCHRSI ​(Classic)|STOCHRSI]] ​   (Deprecated - Use STOCHRSID for TradingView visualization) |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ | 
-^ [[buy_and_sell_strategies#​TVSTOCHRSI]]  |  {{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#​STOCHRSICROSS]]  |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |
 ^ [[buy_and_sell_strategies#​MACD]] ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ |  {{glyphicon>​ok?​12}} ​ | ^ [[buy_and_sell_strategies#​MACD]] ​ |  {{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#​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#​ANDERSON]] ​ | | |  {{glyphicon>​ok?​12}} ​ | | ^ [[buy_and_sell_strategies#​ANDERSON]] ​ | | |  {{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.properties#​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.properties#​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 ====
  
 ---- ----
 This buy strategy is true when current ask price goes below the LOWBB threshold you specify.\\ ​ This buy strategy is true when current ask price goes below the LOWBB threshold you specify.\\ ​
 +This sell strategy is true when current bid price goes above the LOWBB threshold you specify.\\ ​
  
-BB buy values are percentages of the BB width. Width = HIGHBB - LOWBB and a ''​buy_value''​ of +/-10 represents 10% of this width.\\  +BB values are percentages of the BB width. Width = HIGHBB - LOWBB and a ''​buy_value''/''​sell_value''​ of +/-10 represents 10% of this width.\\  
-For a coin to be bought using LOWBB, the ask price must be equal to or less than the value of the LOWBB price multiplied by (1 + ''​buy_value''​ expressed as a percentage).\\+For a coin to be bought/sold using LOWBB, the ask/bid price must be less than the value of the LOWBB price multiplied by (1 + ''​buy_value''/''​sell_value''​ expressed as a percentage).\\
  
 ---- ----
 **The Numbers** ​ **The Numbers** ​
  
-Valid Values: 100 to -100+Valid Values: ​positive or negative decimal values \\ 
 +Frequent Values: from 100 to -100
  
 100 = 100% of the BB width above LOWBB. i.e. on the HIGHBB line\\ 100 = 100% of the BB width above LOWBB. i.e. on the HIGHBB line\\
 50 = 50% of the BB width above LOWBB. i.e halfway between HIGHBB and LOWBB\\ 50 = 50% of the BB width above LOWBB. i.e halfway between HIGHBB and LOWBB\\
 0 = on the LOWBB line\\ 0 = on the LOWBB line\\
--50 50% of the BB width below LOWBB\\ +-45.25 45.25% of the BB width below LOWBB\\ 
--100 100% of the BB width below LOWBB\\+-235 235% of the BB width below LOWBB\\
  
-The lower the value the more conservative it is.+The lower the value the more conservative it is for buying and more aggressive it is for selling.
  
 ---- ----
Line 53: Line 97:
 **The Formula** **The Formula**
  
-negative ''​buy_value''​+negative ''​buy/​sell_value''​
 <file java> <file java>
-Buy Price <= LOWBB - ((HIGHBB - LOWBB) * ABS(buy_value)/​100)+Buy Price < LOWBB - ((HIGHBB - LOWBB) * ABS(buy_value)/​100) 
 +Sell Price <= LOWBB - ((HIGHBB - LOWBB) * ABS(buy_value)/​100)
 </​file>​ </​file>​
-positive ''​buy ​value''​+positive ''​buy/sell_value''​
 <file java> <file java>
-Buy Price <= LOWBB + ((HIGHBB - LOWBB) * ABS(buy_value)/​100) ​+Buy Price < LOWBB + ((HIGHBB - LOWBB) * ABS(buy_value)/​100)  
 +Sell Price <= LOWBB + ((HIGHBB - LOWBB) * ABS(buy_value)/​100) ​
 </​file>​ </​file>​
  
Line 73: Line 119:
 **Examples** **Examples**
  
-''​[[pairs.properties#​DEFAULT_A_buy_value]] = 20''​ → buy zone begins 20% (of width) above LOWBB line. Ask price must be less than or equal to this value. ''​[[pairs.properties#​DEFAULT_A_buy_value_limit]]''​ must be less than 20 including negative numbers if used.\\+''​[[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.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.properties#​DEFAULT_A_buy_value]] = 0''​ →  buy zone begins ​right on top of the LOWBB line. Ask price must be less than or equal to this value. ''​[[pairs.properties#​DEFAULT_A_buy_value_limit]]''​ must be less than 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.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.\\+''​[[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.\\
  
 ---- ----
Line 94: Line 142:
  
 BB values are percentages of the BB width. Width = HIGHBB - LOWBB and a ''​buy_value''/''​sell_value''​ of +/-10 represents 10% of this width.\\ ​ BB values are percentages of the BB width. Width = HIGHBB - LOWBB and a ''​buy_value''/''​sell_value''​ of +/-10 represents 10% of this width.\\ ​
-For a coin to be bought/sold using HIGHBB, the ask/bid price must be greater than or equal to the value of the HIGHBB price multiplied by (1 - ''​buy_value''​/''​sell_value''​ expressed as a percentage).\\+For a coin to be bought using HIGHBB, the ask price must be greater than the value of the HIGHBB price multiplied by (1 - ''​buy_value'' ​expressed as a percentage).\\ 
 +For a coin to be sold using HIGHBB, the bid price must be greater than or equal to the value of the HIGHBB price multiplied by (1 - ''​sell_value''​ expressed as a percentage).\\
  
 ---- ----
Line 100: Line 149:
 **The Numbers** **The Numbers**
  
-Valid Values: ​integers ​from 100 to -100+Valid Values: ​positive or negative decimal values \\ 
 +Frequent Values: ​from 100 to -100
  
 100 = 100% of the BB width below HIGHBB. i.e. on the LOWBB line\\ 100 = 100% of the BB width below HIGHBB. i.e. on the LOWBB line\\
 50 = 50% of the BB width below HIGHBB. i.e halfway between HIGHBB and LOWBB\\ 50 = 50% of the BB width below HIGHBB. i.e halfway between HIGHBB and LOWBB\\
 0 = on the HIGHBB line\\ 0 = on the HIGHBB line\\
--50 50% of the BB width above HIGHBB\\+-45.25 45.25% of the BB width above HIGHBB\\
 -100 = 100% of the BB width above HIGHBB\\ -100 = 100% of the BB width above HIGHBB\\
  
Line 122: Line 172:
 negative ''​buy/​sell_value''​ negative ''​buy/​sell_value''​
 <file java> <file java>
-Buy/sell Price >= HIGHBB + ((HIGHBB - LOWBB) * ABS(buy/​sell_value)/​100)+Buy Price > HIGHBB + ((HIGHBB - LOWBB) * ABS(buy/sell_value)/​100) 
 +Sell Price >= HIGHBB + ((HIGHBB - LOWBB) * ABS(buy/​sell_value)/​100)
 </​file>​ </​file>​
 positive ''​buy/​sell_value''​ positive ''​buy/​sell_value''​
 <file java> <file java>
-Buy/sell Price >= HIGHBB - ((HIGHBB - LOWBB) * ABS(buy/​sell_value)/​100) ​+Buy Price > HIGHBB - ((HIGHBB - LOWBB) * ABS(buy/sell_value)/​100)  
 +Sell Price >= HIGHBB - ((HIGHBB - LOWBB) * ABS(buy/​sell_value)/​100)
 </​file>​ </​file>​
  
Line 133: Line 185:
 **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 or equal to this value. ''​[[pairs.properties#​DEFAULT_A_buy_value_limit]]''​ must be greater ​than 20 if used.\\+''​[[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.properties#​DEFAULT_A_buy_value]] = -10''​ →  buy zone begins 10% (of width) above the HIGHBB line. Ask price must be greater than or equal to this value. ''​[[pairs.properties#​DEFAULT_A_buy_value_limit]]''​ must be greater ​than -10 including positive 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.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_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.\\
  
 ---- ----
Line 209: Line 261:
  
 <file java> <file java>
-Buy Price <(price 24 hours ago) * (1-ABS(buy_value)/​100)+Buy Price < (price 24 hours ago) * (1-ABS(buy_value)/​100)
 </​file>​ </​file>​
  
Line 216: Line 268:
 **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 or equal to this value. ''​[[pairs.properties#​DEFAULT_A_buy_value_limit]]''​ must be less than -7 if used.\\+''​[[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.properties#​DEFAULT_A_buy_value]] = 7''​ → positive numbers are converted to negative. So result is the same as above.\\ ''​[[pairs.properties#​DEFAULT_A_buy_value]] = 7''​ → positive numbers are converted to negative. So result is the same as above.\\
Line 229: Line 281:
 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 SMA lines specified. It does not matter if the fast or slow SMA line is lower, the bot always looks at the value of the lower line. 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 SMA lines specified. It does not matter if the fast or slow SMA 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 the value of the lower SMA band multiplied by (1 + ''​buy/​sell_value''​ expressed as a percentage).\\ +If a positive value is used the ask/bid price must be greater than (or equal to (for selling)) ​the value of the lower SMA 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 the value of the lower SMA 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 SMA band multiplied by (1 + ''​buy/​sell_value''​ expressed as a percentage).
  
 ---- ----
Line 253: Line 305:
 Positive ''​buy/​sell_value''​ Positive ''​buy/​sell_value''​
 <file java> <file java>
-buy/sell price >= lowest SMA * (1 + ABS(buy/​sell_value/​100))+buy price > lowest SMA * (1 + ABS(buy/sell_value/​100)) 
 +sell price >= lowest SMA * (1 + ABS(buy/​sell_value/​100))
 </​file>​ </​file>​
 Negative ''​buy/​sell_value''​ Negative ''​buy/​sell_value''​
 <file java> <file java>
-buy/sell price <= lowest SMA * (1 - ABS(buy/​sell_value/​100))+buy price < lowest SMA * (1 - ABS(buy/sell_value/​100)) 
 +sell price <= lowest SMA * (1 - ABS(buy/​sell_value/​100))
 </​file>​ </​file>​
  
Line 263: Line 317:
 **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]] = 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.properties#​DEFAULT_A_buy_value]] = 0''​ →  buy zone begins on the lowest SMA line. Ask price must be greater than or equal to this value. ''​[[pairs.properties#​DEFAULT_A_buy_value_limit]]''​ must be greater than 0 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.\\
  
-''​[[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 or equal to this value. \\+''​[[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.\\
  
 ---- ----
 → Use **TradingView** to visualize **SMAGAIN** with [[https://​www.tradingview.com/​script/​2pg6fIJ0-SMAGAIN-for-Profit-Trailer-by-BotIndicators-com/​|this indicator]]. → Use **TradingView** to visualize **SMAGAIN** with [[https://​www.tradingview.com/​script/​2pg6fIJ0-SMAGAIN-for-Profit-Trailer-by-BotIndicators-com/​|this indicator]].
- 
----- 
-→ Use **TradingView** to visualize **EMAGAIN** with [[https://​www.tradingview.com/​v/​2pg6fIJ0/​|this indicator]]. 
  
 \\ \\
Line 283: Line 334:
 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 EMA lines specified. It does not matter if the fast or slow EMA line is lower, the bot always looks at the value of the lower line. 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 EMA lines specified. It does not matter if the fast or slow EMA 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 the value of the lower EMA band multiplied by (1 + ''​buy/​sell_value''​ expressed as a percentage).\\ +If a positive value is used the ask/bid price must be greater than (or equal to (for selling)) ​the value of the lower EMA 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 the value of the lower EMA 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 EMA band multiplied by (1 + ''​buy/​sell_value''​ expressed as a percentage).
 ---- ----
 **The Numbers** **The Numbers**
Line 305: Line 356:
 Positive ''​buy/​sell_value''​ Positive ''​buy/​sell_value''​
 <file java> <file java>
-buy/sell price >= lowest EMA * (1 + ABS(buy/​sell_value/​100))+buy price > lowest EMA * (1 + ABS(buy/sell_value/​100)) 
 +sell price >= lowest EMA * (1 + ABS(buy/​sell_value/​100))
 </​file>​ </​file>​
 Negative ''​buy/​sell_value''​ Negative ''​buy/​sell_value''​
 <file java> <file java>
-buy/sell price <= lowest EMA * (1 - ABS(buy/​sell_value/​100))+buy price < lowest EMA * (1 - ABS(buy/sell_value/​100)) 
 +sell price <= lowest EMA * (1 - ABS(buy/​sell_value/​100))
 </​file>​ </​file>​
  
Line 315: Line 368:
 **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]] = 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.properties#​DEFAULT_A_buy_value]] = 0''​ →  buy zone begins on the lowest EMA line. Ask price must be greater than or equal to this value. ''​[[pairs.properties#​DEFAULT_A_buy_value_limit]]''​ must be greater than 0 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.\\
  
-''​[[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 or equal to this value. \\+''​[[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.\\
  
 ---- ----
Line 327: Line 380:
 [[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.properties#​HMA_candle_period]]''​\\
 +''​[[indicators.properties#​HMA_fast_length]]''​\\
 +''​[[indicators.properties#​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.properties#​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.properties#​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 HMA line. Ask price must be greater than this value. ''​[[pairs.properties#​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 HMA 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.\\
 +
 +\\
 +[[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.properties#​DEMA_candle_period]]''​\\
 +''​[[indicators.properties#​DEMA_fast_length]]''​\\
 +''​[[indicators.properties#​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.properties#​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.properties#​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 DEMA line. Ask price must be greater than this value. ''​[[pairs.properties#​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 DEMA 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.\\
 +
 +\\
 +[[buy_and_sell_strategies|TOP]]
 +\\
 +
 +----
 +
 ==== SMASPREAD ==== ==== SMASPREAD ====
  
-This buy/sell strategy is true when the spread between fast and slow SMA is larger (bigger spread) than or equal to the ''​buy/​sell_value''​.+This buy/sell strategy is true when the spread between fast and slow SMA is larger (bigger spread) than (or equal to (for selling)) ​the ''​buy/​sell_value''​.
  
 With SMASPREAD the current price does not matter, only the magnitude of the spread. With SMASPREAD the current price does not matter, only the magnitude of the spread.
Line 348: Line 505:
  
 <file java> <file java>
-Spread = (SMA2 SMA1 - 1) * 100+%SMASLOW = SMA(closeprices,​ SMA_slow_length) 
 + 
 +%SMAFAST = SMA(closeprices,​ SMA_fast_length) 
 + 
 +%Spread = ((%SMAFAST ​%SMASLOW) ​- 1) * 100
 </​file>​ </​file>​
 +
 +It is this %Spread that we display \\
  
 ---- ----
-**Examples** +**Examples**\\ 
-''​[[pairs.properties#​DEFAULT_A_buy_value]] = -0.5''​ → buy strategy is true when the calculated spread is -0.5% or larger. (Fast SMA is LOWER than Slow SMA). ''​[[pairs.properties#​DEFAULT_A_buy_value_limit]]''​ must be less than -0.5 if used. \\ +''​[[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.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]] = 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.\\
  
 ---- ----
Line 365: Line 529:
 ==== EMASPREAD ==== ==== EMASPREAD ====
  
-This buy/sell strategy is true when the spread between fast and slow EMA is larger (bigger spread) than or equal to the ''​buy/​sell_value''​.+This buy/sell strategy is true when the spread between fast and slow EMA is larger (bigger spread) than (or equal to (for selling)) ​the ''​buy/​sell_value''​.
  
 With EMASPREAD the current price does not matter, only the magnitude of the spread. With EMASPREAD the current price does not matter, only the magnitude of the spread.
Line 383: Line 547:
  
 <file java> <file java>
-Spread = (EMA2 EMA1 - 1) * 100+%EMASLOW = EMA(closeprices,​ EMA_slow_length) 
 + 
 +%EMAFAST = EMA(closeprices,​ EMA_fast_length) 
 + 
 +%Spread = ((%EMAFAST ​%EMASLOW) ​- 1) * 100
 </​file>​ </​file>​
 +
 +It is this %Spread that we display \\
  
 ---- ----
 **Examples**\\ **Examples**\\
-''​[[pairs.properties#​DEFAULT_A_buy_value]] = -0.5''​ → buy strategy is true when the calculated spread is -0.5% or larger. (Fast EMA is LOWER than Slow EMA). ''​[[pairs.properties#​DEFAULT_A_buy_value_limit]]''​ must be less than -0.5 if used. \\ +''​[[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.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_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.\\ 
  
 ---- ----
Line 397: Line 568:
 [[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.properties#​HMA_candle_period]]''​\\
 +''​[[indicators.properties#​HMA_fast_length]]''​\\
 +''​[[indicators.properties#​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.properties#​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.properties#​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 HMA is HIGHER than Slow HMA). ''​[[pairs.properties#​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.properties#​DEMA_candle_period]]''​\\
 +''​[[indicators.properties#​DEMA_fast_length]]''​\\
 +''​[[indicators.properties#​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.properties#​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.properties#​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 DEMA is HIGHER than Slow DEMA). ''​[[pairs.properties#​DEFAULT_A_sell_value_limit]]''​ must be greater than 0.6 if used.\\
 +
 +\\
 +[[buy_and_sell_strategies|TOP]]
 +\\
 +
 ---- ----
  
 ==== SMACROSS ==== ==== SMACROSS ====
  
-This buy/sell strategy is true when the SMA lines have crossed and the spread is larger (bigger spread) than or equal to the ''​buy/​sell_value''​.+This buy/sell strategy is true when the SMA 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 SMA line must have crossed above the slow SMA line. If a negative ''​buy/​sell_value''​ is used the fast SMA line must have crossed below the slow SMA line. The direction of the cross is important. If a positive ''​buy/​sell_value''​ is used the fast SMA line must have crossed above the slow SMA line. If a negative ''​buy/​sell_value''​ is used the fast SMA line must have crossed below the slow SMA line.
Line 422: Line 676:
 **The Formula** **The Formula**
  
-A cross must have occurred within the number of ''​[[indicators.properties#​SMA_cross_candles]]''​ specified and: 
 <file java> <file java>
-Spread = (SMA2 SMA1 - 1) * 100+%SMASLOW = SMA(closeprices,​ SMA_slow_length) 
 + 
 +%SMAFAST = SMA(closeprices,​ SMA_fast_length) 
 + 
 +%Spread = ((%SMAFAST ​%SMASLOW) ​- 1) * 100
 </​file>​ </​file>​
 +
 +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 \\
  
 ---- ----
Line 432: Line 692:
 ''​[[indicators.properties#​SMA_cross_candles]] = 5''​ ''​[[indicators.properties#​SMA_cross_candles]] = 5''​
  
-''​[[pairs.properties#​DEFAULT_A_buy_value]] = -0.2''​→ buy strategy is true when the calculated spread is -0.2% or larger ​(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.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.properties#​DEFAULT_A_buy_value]] = 0.05''​→ buy strategy is true when the calculated spread is 0.05% or larger ​(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.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.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]] = 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. \\
  
 ---- ----
Line 447: Line 707:
 ==== EMACROSS ==== ==== EMACROSS ====
  
-This buy/sell strategy is true when the EMA lines have crossed and the spread is larger (bigger spread) than or equal to the ''​buy/​sell_value''​.+This buy/sell strategy is true when the EMA 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 EMA line must have crossed above the slow EMA line. If a negative ''​buy/​sell_value''​ is used the fast EMA line must have crossed below the slow EMA line. The direction of the cross is important. If a positive ''​buy/​sell_value''​ is used the fast EMA line must have crossed above the slow EMA line. If a negative ''​buy/​sell_value''​ is used the fast EMA line must have crossed below the slow EMA line.
Line 468: Line 728:
 **The Formula** **The Formula**
  
-A cross must have occurred within the number of ''​[[indicators.properties#​EMA_cross_candles]]''​ specified and: 
 <file java> <file java>
-Spread = (EMA2 EMA1 - 1) * 100+%EMASLOW = EMA(closeprices,​ EMA_slow_length) 
 + 
 +%EMAFAST = EMA(closeprices,​ EMA_fast_length) 
 + 
 +%Spread = ((%EMAFAST ​%EMASLOW) ​- 1) * 100
 </​file>​ </​file>​
 +
 +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 \\
  
 ---- ----
Line 478: Line 744:
 ''​[[indicators.properties#​EMA_cross_candles]] = 5''​ ''​[[indicators.properties#​EMA_cross_candles]] = 5''​
  
-''​[[pairs.properties#​DEFAULT_A_buy_value]] = -0.5''​→ buy strategy is true when the calculated spread is -0.5% or larger ​(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.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.properties#​DEFAULT_A_buy_value]] = 0.05''​→ buy strategy is true when the calculated spread is 0.05% or larger ​(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.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.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]] = 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.\\
  
  
Line 492: Line 758:
 [[buy_and_sell_strategies|TOP]] [[buy_and_sell_strategies|TOP]]
 \\ \\
 +
 ---- ----
  
-==== RSI ====+==== HMACROSS ​====
  
-This buy/sell strategy is true when the RSI value is less than or equal to the ''​buy_value''​ or is greater ​than or equal to the ''​sell_value''​.+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''​.
  
-RSI as a buy strategy is true if ''​buy_value''​ < RSI buy_value_limit.+The direction of the cross is important. If 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.properties#​HMA_cross_candles]]''​\\ 
 +''​[[indicators.properties#​HMA_candle_period]]''​\\ 
 +''​[[indicators.properties#​HMA_fast_length]]''​\\ 
 +''​[[indicators.properties#​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.properties#​HMA_cross_candles]]''​ specified for the strategy to become true \\ 
 + 
 +---- 
 +**Examples** 
 + 
 +''​[[indicators.properties#​HMA_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 HMA is LOWER than Slow HMA) and the Fast HMA crossed below the slow HMA 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.properties#​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 (excluding the current candle). ''​[[pairs.properties#​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 HMA is HIGHER than Slow HMA) and the Fast HMA crossed above the slow HMA within the last 5 candles (excluding the current candle). ''​[[pairs.properties#​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.properties#​DEMA_cross_candles]]''​\\ 
 +''​[[indicators.properties#​DEMA_candle_period]]''​\\ 
 +''​[[indicators.properties#​DEMA_fast_length]]''​\\ 
 +''​[[indicators.properties#​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.properties#​DEMA_cross_candles]]''​ specified for the strategy to become true \\ 
 + 
 +---- 
 +**Examples** 
 + 
 +''​[[indicators.properties#​DEMA_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 DEMA is LOWER than Slow DEMA) and the Fast DEMA crossed below the slow DEMA 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.properties#​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 (excluding the current candle). ''​[[pairs.properties#​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 DEMA is HIGHER than Slow DEMA) and the Fast DEMA crossed above the slow DEMA within the last 5 candles (excluding the current candle). ''​[[pairs.properties#​DEFAULT_A_sell_value_limit]]''​ must be more than 0.6 if used. \\ 
 + 
 +\\ 
 +[[buy_and_sell_strategies|TOP]] 
 +\\ 
 + 
 +---- 
 +==== RSI ====
  
-RSI as a sell strategy is true if ''​sell_value'' ​> RSI.+This buy/sell strategy is true when the RSI value is less than the ''​buy_value''​ or is greater than or equal to the ''​sell_value''​.
  
-The Relative Strength Index is momentum oscillator that measures the speed and change of price movements. It is a commonly used and very popular indicator and works well when paired with Bollinger Bands.  +RSI as buy strategy ​is true if ''​buy_value_limit'' ​RSI < ''​buy_value''​.
-The default and typically used ''​RSI_length'' ​for RSI is 14, lowering increases sensitivity,​ raising decreases it. +
-RSI is typically considered overbought when above 70 and oversold when below 30.+
  
-More can be learned about this indicator here: http://​stockcharts.com/​school/​doku.php?​id=chart_school:​technical_indicators:​relative_strength_index_rsi+RSI as a sell strategy is true if ''​sell_value_limit''​ >RSI >= ''​sell_value''​.
  
 ---- ----
Line 533: Line 895:
  
 ''​[[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.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.properties#​DEFAULT_A_sell_value]] = 80''​ → sell zone begins when the RSI value is greater than 80. \\+''​[[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. \\
 ''​[[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.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.\\
  
Line 545: Line 907:
 ==== STOCH ==== ==== STOCH ====
  
-This buy/sell strategy is true when: buy_value < calculated ​STOCH < buy_value_limit+This buy/sell strategy is true when the STOCH value is less than the ''​buy_value''​ or is greater than or equal to the ''​sell_value''​.
  
-A summary definition from [[http://​stockcharts.com/​school/​doku.php?​id=chart_school:​technical_indicators:​stochastic_oscillator_fast_slow_and_full|this at StockCharts.com]] (there is a great deal of in depth information in this article):+STOCH as a buy strategy is true if ''​buy_value''​ > STOCH > ''​buy_value_limit''​. 
 + 
 +STOCH as a sell strategy is true if ''​sell_value''​ <STOCH <= ''​sell_value_limit''​.
  
-The Stochastic Oscillator is a momentum indicator that shows the location of the close relative to the high-low range over a set number of periods. STOCH follows the speed or the momentum of price. As a rule, the momentum changes direction before price. STOCH is also used to identify bull and bear set-ups to anticipate a future reversal. Because the Stochastic Oscillator is range bound, is also useful for identifying overbought and oversold levels. 
 ---- ----
 **The Numbers** **The Numbers**
Line 560: Line 923:
 ''​[[indicators.properties#​STOCH_length]]''​\\ ''​[[indicators.properties#​STOCH_length]]''​\\
 ''​[[indicators.properties#​STOCH_candle_period]]''​\\ ''​[[indicators.properties#​STOCH_candle_period]]''​\\
 +''​[[indicators.properties#​STOCH_K]]''​\\
 +''​[[indicators.properties#​STOCH_D]]''​\\
 +
 ---- ----
 **The Formula** **The Formula**
Line 584: Line 950:
  
 ''​[[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.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.properties#​DEFAULT_A_sell_value]] = 80''​ → sell zone begins when the STOCH value is greater than 80.\\+''​[[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.\\
 ''​[[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.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.\\
  
Line 591: Line 957:
 \\ \\
 ---- ----
-==== STOCHRSI ====+==== STOCHRSI ​(CLASSIC) ​==== 
 +=== (Deprecated - Use STOCHRSID for TradingView visualization) ​===
  
-This buy/sell strategy is true when+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''​.
  
-From [[http://​stockcharts.com/​school/​doku.php?​id=chart_school:​technical_indicators:​stochrsi|this article on StockCharts.com]] (much more info here, please read): ​+STOCHRSI as a buy strategy is true if ''​buy_value''​ > STOCHRSI > ''​buy_value_limit''​.
  
-StochRSI is an oscillator that measures the level of RSI relative to its high-low range over a set time period. StochRSI applies the Stochastics formula to RSI values, instead of price values. This makes it an indicator of an indicator. The result is an oscillator that fluctuates between 0 and 1. +STOCHRSI as sell strategy ​is true if ''​sell_value''​ <= STOCHRSI <= ''​sell_value_limit''​.
- +
-Traders looking to enter a stock based on an overbought or oversold reading in RSI might find themselves continuously on the sidelines. Chande and Kroll developed StochRSI to increase sensitivity and generate more overbought/​oversold signals. A move above 0.80 is considered overbought, while move below 0.20 is considered oversold. Second, it can be used to identify the short-term trend+
  
 ---- ----
Line 610: Line 975:
 **The Parameters** **The Parameters**
  
-''​[[indicators.properties#​RSI_candle_period]]''​\\ +''​[[indicators.properties#​STOCHRSI_candle_period]]''​\\ 
-''​[[indicators.properties#​RSI_length]]''​\\ +''​[[indicators.properties#​STOCHRSI_rsi_length]]''​\\ 
-''​[[indicators.properties#​STOCH_length]]''​\\ +''​[[indicators.properties#​STOCHRSI_stoch_length]]''​\\
-''​[[indicators.properties#​STOCH_K]]''​\\ +
-''​[[indicators.properties#​STOCH_D]]''​\\+
  
 ---- ----
Line 626: Line 989:
  
 ''​[[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_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 0.8. \\+''​[[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.\\ ''​[[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.\\
 +
 +\\
 +[[buy_and_sell_strategies|TOP]]
 +\\
 +----
 +
 +==== STOCHRSID ====
 +
 +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''​.
 +
 +STOCHRSID as a buy strategy is true if ''​buy_value''​ > STOCHRSID > ''​buy_value_limit''​.
 +
 +STOCHRSID as a sell strategy is true if ''​sell_value''​ <= STOCHRSID <= ''​sell_value_limit''​.
 +----
 +**The Numbers**
 +
 +Valid Values:
 +Values between 0 and 100 are valid. ​
 +
 +----
 +**The Parameters**
 +
 +''​[[indicators.properties#​STOCHRSID_candle_period]]''​\\
 +''​[[indicators.properties#​STOCHRSID_rsi_length]]''​\\
 +''​[[indicators.properties#​STOCHRSID_stoch_length]]''​\\
 +''​[[indicators.properties#​STOCHRSID_K]]''​\\
 +''​[[indicators.properties#​STOCHRSID_D]]''​\\
 +
 +----
 +**The Formula**
 +First we calculate the RSI value \\
 +<file java>
 +%RSI = (RSI - Lowest Low RSI) / (Highest High RSI - Lowest Low RSI)
 +</​file>​
 +
 +Mathematically,​ the %K line looks like this:
 +<file java>
 +%K = SMA(%RSI, STOCHRSID_K)
 +</​file>​
 +
 +Then we we calculate the D line using the following formula \\
 +<file java>
 +%D = SMA(%K, STOCHRSID_D) * 100
 +</​file>​
 +
 +It is this %D value that we display
 +----
 +**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.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.\\
 +''​[[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.\\
 +
 +\\
 +[[buy_and_sell_strategies|TOP]]
 +\\
 +----
 +
 +==== STOCHRSIK ====
 +
 +This buy/sell strategy is true when the STOCHRSIK value is less than the ''​buy_value''​ or is greater than or equal to the ''​sell_value''​.
 +
 +STOCHRSIK as a buy strategy is true if ''​buy_value''​ > STOCHRSIK > ''​buy_value_limit''​.
 +
 +STOCHRSIK as a sell strategy is true if ''​sell_value''​ <= STOCHRSIK <= ''​sell_value_limit''​.
 +----
 +**The Numbers**
 +
 +Valid Values:
 +Values between 0 and 100 are valid. ​
 +
 +----
 +**The Parameters**
 +
 +''​[[indicators.properties#​STOCHRSIK_candle_period]]''​\\
 +''​[[indicators.properties#​STOCHRSIK_rsi_length]]''​\\
 +''​[[indicators.properties#​STOCHRSIK_stoch_length]]''​\\
 +''​[[indicators.properties#​STOCHRSIK_K]]''​\\
 +
 +----
 +**The Formula**
 +**The Formula**
 +First we calculate the RSI value \\
 +<file java>
 +%RSI = (RSI - Lowest Low RSI) / (Highest High RSI - Lowest Low RSI)
 +</​file>​
 +
 +
 +Mathematically,​ the %K line looks like this:
 +<file java>
 +%K = SMA(%RSI, STOCHRSID_K) * 100
 +</​file>​
 +
 +It is this %K value that we display.
 +----
 +**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.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.\\
 +''​[[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.\\
 +
 +\\
 +[[buy_and_sell_strategies|TOP]]
 +\\
 +----
 +
 +==== STOCHRSICROSS ====
 +
 +This buy/sell strategy is true when the K and D 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 K line must have crossed above the D line. If a negative ''​buy/​sell_value''​ is used the K line must have crossed below the D 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.properties#​STOCHRSICROSS_candle_period]]''​\\
 +''​[[indicators.properties#​STOCHRSICROSS_rsi_length]]''​\\
 +''​[[indicators.properties#​STOCHRSICROSS_stoch_length]]''​\\
 +''​[[indicators.properties#​STOCHRSICROSS_K]]''​\\
 +''​[[indicators.properties#​STOCHRSICROSS_D]]''​\\
 +''​[[indicators.properties#​STOCHRSICROSS_cross_candles]]''​\\
 +
 +----
 +**The Formula**
 +First we calculate the RSI value \\
 +<file java>
 +%RSI = (RSI - Lowest Low RSI) / (Highest High RSI - Lowest Low RSI)
 +</​file>​
 +
 +Mathematically,​ the %K line looks like this:
 +<file java>
 +%K = SMA(%RSI, STOCHRSID_K)
 +</​file>​
 +
 +Then we we calculate the D line using the following formula \\
 +<file java>
 +%D = SMA(%K, STOCHRSID_D) * 100
 +</​file>​
 +
 +<file java>
 +%Spread = ((%K / %D) - 1) * 100
 +</​file>​
 +\\
 +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 \\
 +----
 +**Examples**
 +
 +''​[[indicators.properties#​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 
 + 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. \\
 +
 +''​[[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.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.\\
  
 \\ \\
Line 638: Line 1165:
  
 If a positive ''​buy/​sell_value''​ is used the fast MA line must be above the slow MA line. If a negative ''​buy/​sell_value''​ is used the fast MA line must be below the slow MA line. If a positive ''​buy/​sell_value''​ is used the fast MA line must be above the slow MA line. If a negative ''​buy/​sell_value''​ is used the fast MA line must be below the slow MA line.
-From [[https://​www.investopedia.com/​terms/​m/​macd.asp|this article at Investopedia.com]] (much more info here, please read). 
  
 ---- ----
Line 678: Line 1204:
 ''​[[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.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.
  
-''​[[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]] = -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. \\
  
-''​[[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_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.
  
 \\ \\
Line 689: Line 1215:
  
 This buy/sell strategy is true when the BBWIDTH is < the ''​buy_value''​ or >= the ''​sell_value''​. ​ This buy/sell strategy is true when the BBWIDTH is < the ''​buy_value''​ or >= the ''​sell_value''​. ​
- 
-From [[http://​stockcharts.com/​school/​doku.php?​id=chart_school:​technical_indicators:​bollinger_band_width|this article at StockCharts.com]] (much more info here, please read): ​ 
- 
-Bollinger BandWidth is an indicator derived from Bollinger Bands. ​ 
- 
-BandWidth measures the percentage difference between the upper band and the lower band. BandWidth decreases as Bollinger Bands narrow and increases as Bollinger Bands widen. Because Bollinger Bands are based on the standard deviation, falling BandWidth reflects decreasing volatility and rising BandWidth reflects increasing volatility. 
- 
-Bollinger Bands consist of a middle band with two outer bands. The middle band is a simple moving average usually set at 20 periods. The outer bands are usually set 2 standard deviations above and below the middle band. Settings can be adjusted to suit the characteristics of particular securities or trading styles. 
- 
-Bollinger BandWidth is best known for identifying The Squeeze. This occurs when volatility falls to a very low level, as evidenced by the narrowing bands. The upper and lower bands are based on the standard deviation, which is a measure of volatility. The bands narrow as price flattens or moves within a relatively narrow range. The theory is that periods of low volatility are followed by periods of high volatility. Relatively narrow BandWidth (a.k.a. the Squeeze) can foreshadow a significant advance or decline. After a Squeeze, a price surge and subsequent band break signal the start of a new move. A new advance starts with a Squeeze and subsequent break above the upper band. A new decline starts with a Squeeze and subsequent break below the lower band. 
- 
-Using BBWIDTH with HIGHBB, where the coin breaks the upper band is a good possible use of this indicator. ​ 
  
 ---- ----
 **The Numbers** **The Numbers**
  
-Valid Values: Positive decimal values. ​ +Valid Values: Positive decimal values. ​ 
- +
-BBWIDTH should be set per coin, as it varies based on each coin's particular behavior. ​+
  
 ---- ----
Line 732: Line 1244:
 ''​[[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.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.\\
  
-''​[[pairs.properties#​DEFAULT_A_sell_value]] = 0.7''​ → sell zone begins when BBWIDTH is greater than 0.7.+''​[[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.\\
  
  
Line 752: Line 1264:
  
 If ''​sell_value''​ >= 0:\\ If ''​sell_value''​ >= 0:\\
-''​sell_value''​ >= OBV >= ''​buy_value_limit''​+''​sell_value''​ >= OBV >= ''​sell_value_limit''​
  
 If ''​sell_value''​ < 0: \\ If ''​sell_value''​ < 0: \\
-''​sell_value''​ =< OBV =< ''​buy_value_limit''​ +''​sell_value''​ =< OBV =< ''​sell_value_limit''​
- +
- +
- +
-On Balance Volume (OBV) measures buying and selling pressure as a cumulative indicator that adds volume on up days and subtracts volume on down days. It was one of the first indicators to measure positive and negative volume flow. Chartists can look for divergences between OBV and price to predict price movements or use OBV to confirm price trends. +
- +
-OBV for PT is calculated as the difference between the first volume amount captured (from OBV_length periods), and the signal candle (from OBV_signal),​ in percentage.  +
- +
-In PT, only the past 500 candles of volume are available, so OBV_length must be less than 500 (499 max). +
  
 ---- ----
Line 801: Line 1305:
 ---- ----
 → 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 current bid price is above or below the previous candle high of a trading pair.
  
 +----
 +
 +**The Numbers**
 +
 +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:
 +
 +<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]] [[buy_and_sell_strategies|TOP]]
 \\ \\
 +
 ---- ----
 +
 ==== ANDERSON ==== ==== ANDERSON ====
  
-Anderson-DCA was an idea by a team member (called yea Anderson..lol) that was implemented in the early days of ProfitTrailer.+Anderson-DCA was an idea by a team member (called yea Anderson) that was implemented in the early days of ProfitTrailer.
 The idea was that you could make DCA buys using different triggers each time to try to get out of a bad position faster instead of using a specific indicator. ​ The idea was that you could make DCA buys using different triggers each time to try to get out of a bad position faster instead of using a specific indicator. ​
  
  • buy_and_sell_strategies.1531488776.txt.gz
  • Last modified: 7 months ago
  • by diesel