bluebot
Version:
A bitcoin trading bot for auto trading at various exchanges
172 lines (121 loc) • 5.79 kB
Markdown
Gekko uses [technical analysis indicators](http://www.investopedia.com/articles/active-trading/102914/technical-analysis-strategies-beginners.asp) inside **strategies**.
This investment advice is going to be either **long** or **short**.
Below you can find simple and limited trading methods that come with Gekko. These strategies come with Gekko and serve as examples, for any serious usage we recommend you [write your own](./creating_a_strategy.md).
Gekko currently comes with the following example strategies:
- [DEMA](
- [MACD](
- [PPO](
- [RSI](
- [StochRSI](
- [CCI](
- [talib-macd](
- [tulip-macd](
This method uses `Exponential Moving Average crossovers` to determine the current trend the
market is in. Using this information it will suggest to ride the trend. Note that this is
not MACD because it just checks whether the longEMA and shortEMA are [threshold]% removed
from eachother.
This method is fairly popular in bitcoin trading due to Bitcointalk user Goomboo. Read more about this method in [his topic](https://bitcointalk.org/index.php?topic=60501.0) or [here](http://stockcharts.com/school/doku.php?id=chart_school:technical_indicators:moving_averages).
You can configure the following parameters:
short = 10
long = 21
[]
down = -0.025
up = 0.025
- short is the short EMA that moves closer to the real market (including noise)
- long is the long EMA that lags behind the market more but is also more resistant to noise.
- the down treshold and the up treshold tell Gekko how big the difference in the lines needs to be for it to be considered a trend. If you set these to 0 each line cross would trigger new advice.
### MACD
This method is similar to DEMA but goes a little further by comparing the difference by an EMA of itself. Read more about it [here](http://stockcharts.com/school/doku.php?id=chart_school:technical_indicators:moving_average_convergence_divergence_macd).
You can configure the following parameters:
# EMA weight (α)
# the higher the weight, the more smooth (and delayed) the line
short = 10
long = 21
signal = 9
[]
down = -0.025
up = 0.025
persistence = 1
- short is the short EMA that moves closer to the real market (including noise)
- long is the long EMA that lags behind the market more but is also more resistant to noise.
- signal is the EMA weight calculated over the difference from short/long.
- the down treshold and the up treshold tell Gekko how big the difference in the lines needs to be for it to be considered a trend. If you set these to 0 each line cross would trigger new advice.
- persistence tells Gekko how long the thresholds needs to be met until Gekko considers the trend to be valid.
### PPO
Very similar to MACD but also a little different, read more [here](http://stockcharts.com/school/doku.php?id=chart_school:technical_indicators:price_oscillators_ppo).
You can configure the following parameters:
# EMA weight (α)
# the higher the weight, the more smooth (and delayed) the line
short = 12
long = 26
signal = 9
[]
down = -0.025
up = 0.025
persistence = 2
- short is the short EMA that moves closer to the real market (including noise)
- long is the long EMA that lags behind the market more but is also more resistant to noise.
- signal is the EMA weight calculated over the difference from short/long.
- the down treshold and the up treshold tell Gekko how big the difference in the lines needs to be for it to be considered a trend. If you set these to 0 each line cross would trigger new advice.
- persistence tells Gekko how long the thresholds needs to be met until Gekko considers the trend to be valid.
### RSI
The Relative Strength Index is a momentum oscillator that measures the speed and change of price movements. Read more about it [here](http://stockcharts.com/school/doku.php?id=chart_school:technical_indicators:relative_strength_index_rsi).
You can configure the following parameters:
interval = 14
[]
low = 30
high = 70
persistence = 2
- The interval is the amount of periods the RSI should use.
- The thresholds determine what level of RSI would trigger an up or downtrend.
- persistence tells Gekko how long the thresholds needs to be met until Gekko considers the trend to be valid.
You can configure the following parameters:
interval = 3
[]
low = 20
high = 80
persistence = 3
[]
You can configure the following parameters:
constant = 0.015
history = 90
[]
up = 100
down = -100
persistence = 0
[]
You can configure the following parameters:
[]
optInFastPeriod = 10
optInSlowPeriod = 21
optInSignalPeriod = 9
[]
down = -0.025
up = 0.025
You can configure the following parameters:
[]
optInFastPeriod = 10
optInSlowPeriod = 21
optInSignalPeriod = 9
[]
down = -0.025
up = 0.025
[]