Fork me on GitHub

Tulip indicators #

When writing your own strategy you can use all indicators offered by the Tulip Indicators library. Gekko will pass the correct market data to Tulip and you only have to provide the optIn configurable parameters.

Install #

Bash on Windows, OSX or Linux #

Open your terminal. Then:

cd ~/gekko
npm install tulind --no-save

Example #

If you want to use the MACD indicator from Tulip, you need to register it in your strategy like so:

method.init = function() {
  var customMACDSettings = {
    optInFastPeriod: 10,
    optInSlowPeriod: 21,
    optInSignalPeriod: 9
  }

  // add the indicator to the strategy
  this.addTulipIndicator('mymacd', 'macd', customMACDSettings);
}

method.check = function() {
  // use indicator results
  var result = this.tulipIndicators.mymacd.result;
  var macddiff = result['macd'] - result['macdSignal'];

  // do something with macdiff
}

Tulip Indicators #

Here is a list of all supported indicators, click on them to see the required parameters.

API #

ad #

This indicator does not require any parameters.

adosc #

Required parameters:

adx #

Required parameters:

adxr #

Required parameters:

ao #

This indicator does not require any parameters.

apo #

Required parameters:

aroon #

Required parameters:

aroonosc #

Required parameters:

atr #

Required parameters:

avgprice #

This indicator does not require any parameters.

bbands #

Required parameters:

bop #

This indicator does not require any parameters.

cci #

Required parameters:

cmo #

Required parameters:

cvi #

Required parameters:

dema #

Required parameters:

di #

Required parameters:

dm #

Required parameters:

dpo #

Required parameters:

dx #

Required parameters:

ema #

Required parameters:

emv #

This indicator does not require any parameters.

fisher #

Required parameters:

fosc #

Required parameters:

hma #

Required parameters:

kama #

Required parameters:

kvo #

Required parameters:

linreg #

Required parameters:

linregintercept #

Required parameters:

linregslope #

Required parameters:

macd #

Required parameters:

marketfi #

This indicator does not require any parameters.

mass #

Required parameters:

medprice #

This indicator does not require any parameters.

mfi #

Required parameters:

msw #

Required parameters:

natr #

Required parameters:

nvi #

This indicator does not require any parameters.

obv #

This indicator does not require any parameters.

ppo #

Required parameters:

psar #

Required parameters:

pvi #

This indicator does not require any parameters.

qstick #

Required parameters:

roc #

Required parameters:

rocr #

Required parameters:

rsi #

Required parameters:

sma #

Required parameters:

stoch #

Required parameters:

sum #

Required parameters:

tema #

Required parameters:

tr #

This indicator does not require any parameters.

trima #

Required parameters:

trix #

Required parameters:

tsf #

Required parameters:

tsf #

Required parameters

typprice #

This indicator does not require any parameters.

ultosc #

Required parameters:

vhf #

Required parameters

vidya #

Required parameters

volatility #

Required parameters:

vosc #

Required parameters

vwma #

Required parameters:

wad #

This indicator does not require any parameters.

wcprice #

This indicator does not require any parameters.

wilders #

Required parameters:

Required parameters:

wma #

Required parameters:

zlema #

Required parameters: