Skip to content

Commit

Permalink
added RSI to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
askmike committed Feb 23, 2014
1 parent 6b95976 commit 5602b09
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
21 changes: 21 additions & 0 deletions docs/Configuring_gekko.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ Gekko supports a number of technical analysis indicators, currently it supports
- DEMA
- MACD
- PPO
- RSI

Open up the config.js file again and configure at this part:

Expand Down Expand Up @@ -177,6 +178,26 @@ Very similar to MACD but also a little different, read more [here](http://stockc
- 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/help/doku.php?id=chart_school:technical_indicators:relative_strength_in). Configure it like so:

// RSI settings:
config.RSI = {
interval: 14,
thresholds: {
low: 30,
high: 70,
// How many candle intervals should a trend persist
// before we consider it real?
persistence: 1
}
};

- 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.

## Enabling plugins

Gekko currently has a couple plugins:
Expand Down
6 changes: 5 additions & 1 deletion docs/internals/trading_methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

The trading methods are the core of Gekko's trading bot. They look at the market and decide what to do based on technical analysis. The trading methods can calculate indicators on top of the market data to come up with an advice for a position to take in the market. As of now the trading method is limited to a single market on a single exchange.

Gekko currently has three indicators ready, only implementing a single indicator: DEMA, MACD and PPO. Besides those you can also create your own trading method by using javascript. The easiest way to do this is open the file `gekko/methods/custom.js` and write your own trading method.
Gekko currently has a couple of methods already, only implementing a single indicator: DEMA, MACD, RSI and PPO. Besides those you can also create your own trading method by using javascript. The easiest way to do this is open the file `gekko/methods/custom.js` and write your own trading method.

## Creating a trading method

Expand Down Expand Up @@ -95,6 +95,10 @@ In your check or update method:

var result = this.indicators.mymacd.result;

#### Supported indicators

Gekko currently supports EMA, SMA, PPO, RSI and MACD.

### Configurables

You can create configurable parameters for your method which allows you to adjust the behaviour for your trading method. This way you can create one method but have different implementations running at the same time on different markets. You can achieve this by creating some parameters which can be changed in the config.js file:
Expand Down

0 comments on commit 5602b09

Please sign in to comment.