Don't forget to check INDICATORS.properties to setup your indicators correctly. The indicators influence how aggressive or conservatives the values of BB, EMA, or SMA are and how they interact with your buy or sell strategy settings.


Buying

Find below all buy strategies currently available

This document refers to settings in the Pairs and DCA files.

Strategy = LOWBB
Buy as soon as the current price goes below the LOWBB line you specified.
BB values are percentages of the BB width. BB width = HIGHBB - LOWBB
For a coin pair to be bought using LOWBB, the ALL_buy_value must be equal to or less than the value of the LOWBB band multiplied by (1 + ALL_buy_value expressed as a percentage). So, in other words,

negative buy_value

Buy Price = LOWBB - ((HIGHBB - LOWBB) * ABS(buy_value)/100) 

positive buy value

Buy Price = LOWBB + ((HIGHBB - LOWBB) * ABS(buy_value)/100) 

→ Use TradingView to visualize LOWBB/HIGHBB with this indicator.


Possible ALL_buy_value example:
ALL_buy_value = 20 → 20% (of bbwidth) above LOWBB line
0 → right on top of the LOWBB line
-10 → 10% (of bbwidth) below LOWBB line


Strategy = HIGHBB
Buy as soon as the current price goes above the HIGHBB line you specified.
BB values are percentages of the BB width. BB width = HIGHBB - LOWBB

Possible ALL_buy_value example:
ALL_buy_value = 20 → 20% (of bbwidth) below HIGHBB line
0 → right on top of the HIGHBB line
-10 → 10% (of bbwidth) above HIGHBB line


Strategy = LOSS
Buy as soon as the pair drops the amount of percentages specified.
The percentage is the 24h change specified buy your exchange.

Possible ALL_buy_value example:
ALL_buy_value = -7 → buy if the pair has fallen 7% or more in the last 24h
7 → positive numbers are converted to negative. So result is the same as above.


Strategy = EMAGAIN
Buy as soon as the price goes below the specified EMA line.
ALL_buy_value is a percentage below or above the lowest of the 2 EMA lines.

Possible ALL_buy_value example:
ALL_buy_value = -1 → buy if the current price is 1% below the lowest EMA line or lower.
1 → buy if the current price is 1% above the lowest EMA line or lower.


Strategy = SMAGAIN
Buy as soon as the price goes below the specified SMA line.
ALL_buy_value is a percentage below or above the lowest of the 2 SMA lines.

Possible ALL_buy_value example:
ALL_buy_value = -3 → buy if the current price is 3% below (or lower) the lowest SMA line.
3 → buy if the current price is 3% above (or lower) the lowest SMA line.


→ Use TradingView to visualize SMAGAIN with this indicator.


Strategy = EMASPREAD
Buy as soon as EMA spread reaches your specified value.
ALL_buy_value is a percentage spread difference between EMA1 (slow) and EMA2. (fast)
Calculation: ((EMA2 / EMA1) - 1) * 100% → result of this calculation is the spread.

Possible ALL_buy_value example:
ALL_buy_value = -1 → buy if the current spread is -1% or larger (EMA2 is lower than EMA1)
1 → buy if the current spread is 1% or larger (EMA2 is higher than EMA1)


→ Use TradingView to visualize EMASPREAD with this indicator.


Strategy = SMASPREAD
Buy as soon as SMA spread reaches your specified value.
ALL_buy_value is a percentage spread difference between SMA1 (slow) and SMA2 (fast)
Calculation: ((SMA2 / SMA1) - 1) * 100% → result of this calculation is the spread.

Possible ALL_buy_value example:
ALL_buy_value = -1 → buy if the current spread is -1% or larger (SMA2 is LOWER than SMA1)
0.5 → buy if the current spread is 0.5% or larger (SMA2 is HIGHER than SMA1)


Strategy = SMACROSS
Buy when SMA lines crossed according to SMA_cross_candles value
and the spread between the lines has reached your specified ALL_buy_value
NOTE: trailing does not work with CROSS strategy
ALL_buy_value is a percentage spread difference between SMA1 (slow) and SMA2 (fast) (see SMASPREAD)

Possible ALL_buy_value example:
SMA_cross_candles = 2
ALL_buy_value = 3
ALL_trailing_buy = 0
If fast SMA just crossed up the slow SMA in the last 2 candles (exclude current candle)
and spread is bigger than 3%

SMA_cross_candles = 5
ALL_buy_value = -0.3
ALL_trailing_buy = 0
If fast SMA just crossed down the slow SMA in the last 5 candles (exclude current candle)
and spread is -0.3% or lower


Strategy = EMACROSS
Buy when EMA lines crossed each according to EMA_cross_candles value
and the spread between the lines has reached your specified value
NOTE: trailing does not work with CROSS strategy
ALL_buy_value is a percentage spread difference between EMA1 (slow) and EMA2 (fast) (see EMASPREAD)

Possible buy values example:
INDICATORS.properties
EMA_cross_candles = 2

PAIRS.properties
ALL_buy_value = 3
ALL_trailing_buy = 0
If fast EMA just crossed up the slow EMA in the last 2 candles (exclude current candle)
and spread is bigger than 3%

INDICATORS.properties
EMA_cross_candles = 5

PAIRS.properties
ALL_buy_value = -0.3
ALL_trailing_buy = 0
If fast EMA just crossed down the slow EMA in the last 5 candles (exclude current candle)
and spread is -0.3% or lower

Selling


Selling

Strategy = HIGHBB
Sell as soon as the current price goes above the HIGHBB line you specified.
BB values are percentages of the BB width. BB width = HIGHBB - LOWBB

Possible ALL_sell_value example:
ALL_sell_value = 20 → 20% below high BB line.
0 → right on top of the high BB line.
50 → Exactly between the high and low BB line
-10 → 10% ABOVE the high BB line.

When using HIGHBB you should also set ALL_min_profit in pairs.properties or min_profit in dca.properties to avoid selling at a loss.


Strategy = GAIN
Sell as soon as the current price reaches the profit specified.

Possible ALL_sell_value example:
ALL_sell_value = 2.5 → sell if profit is 2.5% or more.
-10 → sell if profit is -10% or more.

  • buy_and_sell_strategies1.txt
  • Last modified: 5 months ago
  • by solanthus