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/05/28 12:06]
t1m3c
buy_and_sell_strategies [2018/08/14 14:21] (current)
sgtbatten [BBWIDTH]
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#​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 20: Line 20:
 ^ [[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]]  |  {{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#​ANDERSON]] ​ | | |  {{glyphicon>​ok?​12}} ​ | | ^ [[buy_and_sell_strategies#​ANDERSON]] ​ | | |  {{glyphicon>​ok?​12}} ​ | |
 +^ [[buy_and_sell_strategies#​DISABLED]] ​  *See explanation below | | | | |
  
 ==== LOWBB ==== ==== LOWBB ====
Line 30: Line 34:
 ---- ----
 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 51: Line 57:
 **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 71: Line 79:
 **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 92: Line 102:
  
 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 98: Line 109:
 **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 120: Line 132:
 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 131: Line 145:
 **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 greater than 20 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 greater than -10 including positive numbers 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 greater than 0 if used.\\
  
 ---- ----
Line 207: Line 221:
  
 <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 214: Line 228:
 **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 227: Line 241:
 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 251: Line 265:
 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 261: Line 277:
 **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 281: Line 294:
 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 303: Line 316:
 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 313: Line 328:
 **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 328: Line 343:
 ==== 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 346: Line 361:
  
 <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 363: Line 385:
 ==== 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 381: Line 403:
  
 <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 399: Line 428:
 ==== 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 420: Line 449:
 **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 430: Line 465:
 ''​[[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 445: Line 480:
 ==== 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 466: Line 501:
 **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 476: Line 517:
 ''​[[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 494: Line 535:
 ==== RSI ==== ==== RSI ====
  
-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 RSI value is less than the ''​buy_value''​ or is greater than or equal to the ''​sell_value''​.
- +
-RSI as a buy strategy is true if ''​buy_value''​ > RSI > buy_value_limit. +
- +
-RSI as a sell strategy is true if ''​sell_value''​ < RSI.+
  
-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'' ​RSI < ''​buy_value_limit''​.
-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''​ >RSI >= ''​sell_value_limit''​.
  
 ---- ----
Line 530: Line 565:
 **Examples** **Examples**
  
-''​[[pairs.properties#​DEFAULT_A_buy_value]] = 20''​ → buy zone begins when the RSI value is less than or equal to 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 or equal to 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 or equal to 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 543: Line 578:
 ==== 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 558: Line 594:
 ''​[[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 581: Line 620:
 **Examples** **Examples**
  
-''​[[pairs.properties#​DEFAULT_A_buy_value]] = 20''​ → buy zone begins when the STOCH value is less than or equal to 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 or equal to 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 or equal to 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 589: Line 628:
 \\ \\
 ---- ----
-==== STOCHRSI ====+==== STOCHRSI ​(CLASSIC) ​====
  
-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 608: Line 645:
 **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]]''​\\
  
 ---- ----
Line 621: Line 658:
 **Examples** **Examples**
  
-''​[[pairs.properties#​DEFAULT_A_buy_value]] = 0.2''​ → buy zone begins when the calculated value is less than or equal to 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 or equal to 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 or equal to 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.\\
  
 \\ \\
Line 629: Line 666:
 \\ \\
 ---- ----
-==== MACD ==== 
  
-This buy/sell strategy is true when the MA lines have crossed and the ''​spread/​divergence/​convergence''​ is larger (bigger spread) than or equal to the ''​buy/​sell_value''​.+==== STOCHRSID ====
  
-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. +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''​.
-From [[https://​www.investopedia.com/​terms/​m/​macd.asp|this article at Investopedia.com]] (much more info here, please read): ​+
  
-Moving average convergence divergence (MACD) indicators can be interpreted using three different methods: Crossover, Dramatic Rise, and Divergence. It is the first method, Crossover, that we are using in PT+STOCHRSID as a buy strategy ​is true if ''​buy_value''​ > STOCHRSID > ''​buy_value_limit''​.
  
-**Crossover** - When the MACD falls below the signal ​line (is negative in our implementation), it is a bearish signal, which indicates ​that it may be time to sell. Conversely, when the MACD rises above the signal line (is positive), the indicator gives a bullish signalwhich suggests ​that the price of the asset is likely ​to experience upward momentumMany traders wait for confirmed cross above the signal ​line before entering into position to avoid getting "faked out" or entering into a position too early, as shown by the first arrow.+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(%KSTOCHRSID_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>​ 
 + 
 + 
 +Mathematicallythe %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(%RSISTOCHRSID_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.05 if used.\\ 
 + 
 +\\ 
 +[[buy_and_sell_strategies|TOP]] 
 +\\ 
 +---- 
 +==== MACD ==== 
 + 
 +This buy/sell strategy is true when the ''​spread/​divergence/​convergence''​ of the MA lines is larger (bigger spread) than or equal to the ''​buy/​sell_value''​. 
 + 
 +If positive ''​buy/​sell_value''​ is used the fast MA line must be above the slow MA line. If negative ''​buy/​sell_value''​ is used the fast MA line must be below the slow MA line.
  
 ---- ----
Line 674: Line 870:
 ''​[[indicators.properties#​MACD_signal]] = 9''​\\ ''​[[indicators.properties#​MACD_signal]] = 9''​\\
  
-''​[[pairs.properties#​DEFAULT_A_buy_value]] = 0.0000002''​ → Triggers “true” ​when the calculated value of MACD is 0.000000200 ​or greater. ''​[[pairs.properties#​DEFAULT_A_buy_value_limit]]''​ must be greater than 0.0000002 if used. \\+''​[[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. \\
  
-''​[[dca.properties#​DEFAULT_DCA_A_buy_value]] = 0.0000003''​ → Triggers “true” ​when the calculated value is 0.000000300 ​or greater. [[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''​ → Triggers “true” ​when the calculated value of MACD falls to -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''​ → Triggers “true” ​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 688: Line 884:
 ==== BBWIDTH ==== ==== BBWIDTH ====
  
-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 728: Line 910:
 **Examples**\\ **Examples**\\
  
-''​[[pairs.properties#​DEFAULT_A_buy_value]] = 0.5''​ → buy zone begins when BBWIDTH is less than or equal to ''​buy_value''​. ''​[[pairs.properties#​DEFAULT_A_buy_value_limit]]''​ must be less than 0.if used.\\+''​[[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.if used.\\
  
-''​[[dca.properties#​DEFAULT_DCA_A_buy_value]] = 0.5''​ → True when BBWIDTH is less than or equal to ''​buy_value''​. ''​[[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.5''​ → sell zone begins when BBWIDTH is greater than or equal to ''​sell_value''​.+''​[[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 746: Line 928:
  
 If ''​buy_value''​ >= 0: \\ If ''​buy_value''​ >= 0: \\
-''​buy_value''​ ​<OBV <''​buy_value_limit''​+''​buy_value''​ ​< OBV < ''​buy_value_limit''​
  
 If ''​buy_value''​ < 0:\\ If ''​buy_value''​ < 0:\\
-''​buy_value''​ ​>OBV >''​​buy_value_limit''​+''​buy_value''​ ​> OBV > ''​​buy_value_limit''​
  
 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 796: Line 970:
  
  
-''​[[pairs.properties#​DEFAULT_A_buy_value]] = -0.001''​ → buy zone begins when the calculated value is less than or equal to -0.001. ''​[[pairs.properties#​DEFAULT_A_buy_value_limit]]''​ must be less than -0.001 if used.\\ +''​[[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.properties#​DEFAULT_A_buy_value]] = 0.005''​ → buy zone begins when the calculated value is greater than or equal to 0.005. ''​[[pairs.properties#​DEFAULT_A_buy_value_limit]]''​ must be greater than 0.005 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.\\
  
 ---- ----
Line 812: Line 986:
 ==== 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. ​
  
Line 852: Line 1026:
 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]]
 +\\
 +
 +----
 +
 +==== DISABLED ====
 +
 +Disabled is used as a buy or sell strategy in place of another named strategy when coin specific strategies are used.\\
 +
 +**Example**\\
 +''​[[pairs.properties#​DEFAULT_A_buy_strategy]] = LOWBB''​\\
 +''​[[pairs.properties#​DEFAULT_B_buy_strategy]] = RSI''​\\
 +----
 +''​[[pairs.properties#​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.\\
 +The result is that all coins will use the LOWBB and RSI strategies in the example, the coin that is set in place of XXX will use ONLY LOWBB, because the '​B'​ buy strategy has been disabled.
  
 \\ \\
  • buy_and_sell_strategies.1527501987.txt.gz
  • Last modified: 3 months ago
  • by t1m3c