Pages:
Author

Topic: Gekko - a javascript trading bot and backtesting platform (Read 147876 times)

copper member
Activity: 196
Merit: 2
copper member
Activity: 196
Merit: 2
newbie
Activity: 6
Merit: 0
Sounds doable. 0.5BTC bounty and I can implement it.

Hello,
I need 2 strategies to implement in Gekko :

1) BB + RSI + MACD:
 
• Buy decision must satisfy three conditions:
  *  The signal is below the bottom line of Bollinger Bands
  *  The MACD in uptrend and has a cross intersection
  *  The Relative Strength Index is in uptrend
 
• Sell decision must satisfy three conditions:
  *  The signal is above the upper line of Bollinger Bands,
  *  The MACD in downtrend and has a cross intersection,
  *  The Relative Strength Index is in downtrend
 
• Additional Parameters :
  *  Standard parameters for BB
  *  Standard parameters for RSI
  *  Standard parameters for RSI
  *  Time Frame: Must be able to run on any time frame (M1, M5, M15, M30 etc )
  *  Buy Money Management: Be able to use% of account for each buy trade
  *  Sale Money Management: Be able to use% of account for each sale trade
  *  Stop Loss:%
 
2) 2 MA + SAR + RSI :

• Buy decision must satisfy three conditions:
  *  The Relative Strength Index is in uptrend
  *  The MA makes a Golden Cross: Crossover involving a short-term moving average breaking above the long-term moving average
  *  The Parabolic SAR dots, begin to be hanging above the candles
 
• Sell decision must satisfy three conditions:
  *  The Relative Strength Index is in downtrend
  *  The MA Makes to Death Cross: C rossover RESULTING from a l ong-term moving average breaking above the short-term moving average or support level.
  *  The Parabolic SAR dots, begin to be hanging bellow the candles
 
• Additional Parameters :
  *  Number of periods for Short-term moving average
  *  Number of periods for Long-term moving average
  *  Standard parameters for SAR
  *  Standard parameters for RSI
  *  Time Frame: Must be able to run on any time frame (M1, M5, M15, M30 etc )
  *  Buy Money Management: Be able to use% of account for each buy trade
  *  Sale Money Management: Be able to use% of account for each sale trade
  *  Stop Loss: %


I would like to know the feasibility of doing them and the cost

newbie
Activity: 5
Merit: 0
Hi.
Im realy stupid at this, but i almost managed to set up the live trading with gekko comand line.

I got two questions that i hope somebody could give me an well explaned answer for dummes..

First when i set up the paper trader it starts to watch the market but no trades seems to be made.. and how do i get a reprort of what has been done? it looks like this when running:


2018-07-25 15:02:40 (INFO):   Starting to watch the market: Binance BTC/USDT
2018-07-25 15:02:40 (DEBUG):   scheduling ticks
2018-07-25 15:02:40 (DEBUG):   Requested BTC/USDT trade data from Binance ...
2018-07-25 15:02:41 (DEBUG):   Processing 500 new trades. From 2018-07-25 12:59:54 UTC to 2018-07-25 13:02:39 UTC. (3 minutes)
2018-07-25 15:03:00 (DEBUG):   Requested BTC/USDT trade data from Binance ...
2018-07-25 15:03:01 (DEBUG):   Processing 69 new trades. From 2018-07-25 13:02:40 UTC to 2018-07-25 13:03:00 UTC. (a few seconds)
2018-07-25 15:03:20 (DEBUG):   Requested BTC/USDT trade data from Binance ...
2018-07-25 15:03:20 (DEBUG):   Processing 34 new trades. From 2018-07-25 13:03:00 UTC to 2018-07-25 13:03:20 UTC. (a few seconds)
2018-07-25 15:03:40 (DEBUG):   Requested BTC/USDT trade data from Binance ...
2018-07-25 15:03:41 (DEBUG):   Processing 40 new trades. From 2018-07-25 13:03:21 UTC to 2018-07-25 13:03:41 UTC. (a few seconds)

The other thing is, when i try to set up in live trade i get some error with portifolio manager??

2018-07-25 11:02:44 (INFO):   Setting up Gekko in realtime mode
2018-07-25 11:02:44 (INFO):   
2018-07-25 11:02:44 (INFO):   Setting up:
2018-07-25 11:02:44 (INFO):       Candle writer
2018-07-25 11:02:44 (INFO):       Store candles in a database
2018-07-25 11:02:44 (INFO):   

2018-07-25 11:02:44 (INFO):   Setting up:
2018-07-25 11:02:44 (INFO):       Trading Advisor
2018-07-25 11:02:44 (INFO):       Calculate trading advice
2018-07-25 11:02:44 (INFO):       Using the strategy: RSI_BULL_BEAR_ADX
2018-07-25 11:02:44 (INFO):   ====================================
2018-07-25 11:02:44 (INFO):   Running RSI Bull and Bear + ADX
2018-07-25 11:02:44 (INFO):   ====================================
2018-07-25 11:02:44 (INFO):   Make sure your warmup period matches SMA_long and that Gekko downloads data if needed
2018-07-25 11:02:44 (INFO):      The trading method requests 60000 minutes of historic data. Checking availablity..
2018-07-25 11:02:44 (INFO):   

2018-07-25 11:02:44 (DEBUG):      Available local data:
2018-07-25 11:02:44 (DEBUG):         from: 60000 minutes ago
2018-07-25 11:02:44 (DEBUG):         to: 9 minutes ago
2018-07-25 11:02:44 (INFO):      Usable local data available, trying to match with exchange data..
2018-07-25 11:02:44 (DEBUG):      Fetching exchange data since 24 minutes ago
2018-07-25 11:02:45 (DEBUG):      Available exchange data:
2018-07-25 11:02:45 (DEBUG):         from: 24 minutes ago
2018-07-25 11:02:45 (DEBUG):         to: 0 minutes ago
2018-07-25 11:02:45 (DEBUG):      Stitching datasets
2018-07-25 11:02:45 (INFO):      Full history locally available. Seeding the trading method with all required historical candles.
2018-07-25 11:02:45 (DEBUG):      Seeding with:
2018-07-25 11:02:45 (DEBUG):         from: 60000 minutes ago
2018-07-25 11:02:45 (DEBUG):         to: 25 minutes ago
2018-07-25 11:02:47 (INFO):   Setting up:
2018-07-25 11:02:47 (INFO):       Trader
2018-07-25 11:02:47 (INFO):       Follows the advice and create real orders.
2018-07-25 11:02:47 (DEBUG):   syncing private data
2018-07-25 11:02:47 (INFO):   


/Users/macbookpro/gekko/exchange/portfolioManager.js:72
        throw new errors.ExchangeError(err);
        ^
Error
    at Object. (/Users/macbookpro/gekko/exchange/exchangeErrors.js:9:27)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object. (/Users/macbookpro/gekko/exchange/exchangeChecker.js:4:16)
    at Module._compile (module.js:652:30)
newbie
Activity: 93
Merit: 0
Okay, not having Gekko running is driving me nuts. .2BTC to whoever gets my Lithuanian Linux Gekko running.
full member
Activity: 490
Merit: 100
This bad guy works, although it seems to me something very unusual and a bit strange. Do you use Gekko, people? Watch it: https://www.youtube.com/watch?v=gb9G9pLEk1M
hero member
Activity: 658
Merit: 505
Okay, good to know. It's still usable for CEX.IO botting.

Two features would make this bot _REALLY_ usable:

1) Intelligent buying GHS on certain times a day, watching the market and buying when the bot things is cheapest using (MACD|DEMA|X). This could be configurable for instance like just watch and report or even alert via mail when the bot things the time is right. Or just tell the bot to at least try to enforce buy once a certain treshhold is hit, disregarding certain minimal losses just to get the mining going.

2) More importantly: Selling GHS for BTC when the market goes downward a certain % in a certain time period, just to minimize losses. This could be fixed in the config file and should be easy to develop. Just a simple sell API call like "IF GHS<0.0073 RUN EMERGENCYSELLOFF();". The more advanced technique would be that the bot tracks which prices he bought for and you tell him for instance that when the threshhold of your average GHS/BTC value drops below -10% then just sell and hold, wait for admin input.

Thanks Sarah!
m33
legendary
Activity: 1064
Merit: 1000
Never invest with borrowed coins
Is there a way to import pine scripts from tradingview into gekko?
newbie
Activity: 1
Merit: 0
Hi,

Is there a way to feed manual signals to the bot and have it trade automatically. Lets say I can feed in some json with exchange, symbol, buy, sell? I looked through the documentation but its a little confusing. I love the project and feel that it has potential to become a very useful tool. 
jr. member
Activity: 76
Merit: 1
Trying to get the Gekko IRC Bot working..


there is no port? and also it does not work as default either.

This is my config i added port: cause i use another one from the original (8067)

config.ircbot = {
  enabled: true,
  emitUpdates: false,
  channel: '#freespeech',
  server: 'something.ddns.net',
  port: '8067',
  botName: 'gekkobot'
}


But nothing happens and i see no logs.

Great javascript btw! made profits with RSI.

 Grin
newbie
Activity: 182
Merit: 0
I don't think there is. You're gonna have to binge watch general strategies videos on YouTube.
newbie
Activity: 84
Merit: 0
hello all is there a book titled "gekko for dumbies" with step by step instruction on how to make a strategy using all indicators and explaining each line of code ?
newbie
Activity: 3
Merit: 0
Does anyone have historical data from Bitstamp EUR/BTC as a Gekko DB?
(( December -17 to today ))

Or do you know haow to get that and import to Gekko?
(( Bitcoincharts.com only tracks USD for Bitstamp it seems.... So the http://gekkowarez.com trick doesn't work))

newbie
Activity: 4
Merit: 0
Aloha :

 "It's better to beg forgiveness than to ask for permission"
  Forgive me please, for I am a total newbie...
   and perhaps not worthy

 I am running ubuntu 14.04 LTS
I have tried numerous DL and run methods, mostly as per
https://gekko.wizb.it/docs/installation/installing_gekko.html

 Yet I always wind up stalled out trying to launch it.
Something to do with my node.js install perhaps?

 when I run (as sudo, in the gekko dir):
"node.js gekko--ui"
  or
"node gekko--ui"
   I get
#########################
console.log(`
            ^
SyntaxError: Unexpected token ILLEGAL
    at Module._compile (module.js:439:25)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:902:3
#############################

 Thank you for your time and consideration
Gil Ray


its "node gekko --ui"

if you still get similar errors you can reinstall gekko it solves, i had similar issues beforehand
newbie
Activity: 2
Merit: 0
 Aloha :

 "It's better to beg forgiveness than to ask for permission"
  Forgive me please, for I am a total newbie...
   and perhaps not worthy

 I am running ubuntu 14.04 LTS
I have tried numerous DL and run methods, mostly as per
https://gekko.wizb.it/docs/installation/installing_gekko.html

 Yet I always wind up stalled out trying to launch it.
Something to do with my node.js install perhaps?

 when I run (as sudo, in the gekko dir):
"node.js gekko--ui"
  or
"node gekko--ui"
   I get
#########################
console.log(`
            ^
SyntaxError: Unexpected token ILLEGAL
    at Module._compile (module.js:439:25)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:902:3
#############################

 Thank you for your time and consideration
Gil Ray
newbie
Activity: 80
Merit: 0
Hello,
I need 2 strategies to implement in Gekko :

1) BB + RSI + MACD:
 
• Buy decision must satisfy three conditions:
  *  The signal is below the bottom line of Bollinger Bands
  *  The MACD in uptrend and has a cross intersection
  *  The Relative Strength Index is in uptrend
 
• Sell decision must satisfy three conditions:
  *  The signal is above the upper line of Bollinger Bands,
  *  The MACD in downtrend and has a cross intersection,
  *  The Relative Strength Index is in downtrend
 
• Additional Parameters :
  *  Standard parameters for BB
  *  Standard parameters for RSI
  *  Standard parameters for RSI
  *  Time Frame: Must be able to run on any time frame (M1, M5, M15, M30 etc )
  *  Buy Money Management: Be able to use% of account for each buy trade
  *  Sale Money Management: Be able to use% of account for each sale trade
  *  Stop Loss:%
 
2) 2 MA + SAR + RSI :

• Buy decision must satisfy three conditions:
  *  The Relative Strength Index is in uptrend
  *  The MA makes a Golden Cross: Crossover involving a short-term moving average breaking above the long-term moving average
  *  The Parabolic SAR dots, begin to be hanging above the candles
 
• Sell decision must satisfy three conditions:
  *  The Relative Strength Index is in downtrend
  *  The MA Makes to Death Cross: C rossover RESULTING from a l ong-term moving average breaking above the short-term moving average or support level.
  *  The Parabolic SAR dots, begin to be hanging bellow the candles
 
• Additional Parameters :
  *  Number of periods for Short-term moving average
  *  Number of periods for Long-term moving average
  *  Standard parameters for SAR
  *  Standard parameters for RSI
  *  Time Frame: Must be able to run on any time frame (M1, M5, M15, M30 etc )
  *  Buy Money Management: Be able to use% of account for each buy trade
  *  Sale Money Management: Be able to use% of account for each sale trade
  *  Stop Loss: %


I would like to know the feasibility of doing them and the cost

That's one hell of a nice post :-)

Thats true!
Are the developers still active here?
I see a lot of activity at github...
newbie
Activity: 182
Merit: 0
Hello,
I need 2 strategies to implement in Gekko :

1) BB + RSI + MACD:
 
• Buy decision must satisfy three conditions:
  *  The signal is below the bottom line of Bollinger Bands
  *  The MACD in uptrend and has a cross intersection
  *  The Relative Strength Index is in uptrend
 
• Sell decision must satisfy three conditions:
  *  The signal is above the upper line of Bollinger Bands,
  *  The MACD in downtrend and has a cross intersection,
  *  The Relative Strength Index is in downtrend
 
• Additional Parameters :
  *  Standard parameters for BB
  *  Standard parameters for RSI
  *  Standard parameters for RSI
  *  Time Frame: Must be able to run on any time frame (M1, M5, M15, M30 etc )
  *  Buy Money Management: Be able to use% of account for each buy trade
  *  Sale Money Management: Be able to use% of account for each sale trade
  *  Stop Loss:%
 
2) 2 MA + SAR + RSI :

• Buy decision must satisfy three conditions:
  *  The Relative Strength Index is in uptrend
  *  The MA makes a Golden Cross: Crossover involving a short-term moving average breaking above the long-term moving average
  *  The Parabolic SAR dots, begin to be hanging above the candles
 
• Sell decision must satisfy three conditions:
  *  The Relative Strength Index is in downtrend
  *  The MA Makes to Death Cross: C rossover RESULTING from a l ong-term moving average breaking above the short-term moving average or support level.
  *  The Parabolic SAR dots, begin to be hanging bellow the candles
 
• Additional Parameters :
  *  Number of periods for Short-term moving average
  *  Number of periods for Long-term moving average
  *  Standard parameters for SAR
  *  Standard parameters for RSI
  *  Time Frame: Must be able to run on any time frame (M1, M5, M15, M30 etc )
  *  Buy Money Management: Be able to use% of account for each buy trade
  *  Sale Money Management: Be able to use% of account for each sale trade
  *  Stop Loss: %


I would like to know the feasibility of doing them and the cost

That's one hell of a nice post :-)
newbie
Activity: 8
Merit: 0
Hello,
I need 2 strategies to implement in Gekko :

1) BB + RSI + MACD:
 
• Buy decision must satisfy three conditions:
  *  The signal is below the bottom line of Bollinger Bands
  *  The MACD in uptrend and has a cross intersection
  *  The Relative Strength Index is in uptrend
 
• Sell decision must satisfy three conditions:
  *  The signal is above the upper line of Bollinger Bands,
  *  The MACD in downtrend and has a cross intersection,
  *  The Relative Strength Index is in downtrend
 
• Additional Parameters :
  *  Standard parameters for BB
  *  Standard parameters for RSI
  *  Standard parameters for RSI
  *  Time Frame: Must be able to run on any time frame (M1, M5, M15, M30 etc )
  *  Buy Money Management: Be able to use% of account for each buy trade
  *  Sale Money Management: Be able to use% of account for each sale trade
  *  Stop Loss:%
 
2) 2 MA + SAR + RSI :

• Buy decision must satisfy three conditions:
  *  The Relative Strength Index is in uptrend
  *  The MA makes a Golden Cross: Crossover involving a short-term moving average breaking above the long-term moving average
  *  The Parabolic SAR dots, begin to be hanging above the candles
 
• Sell decision must satisfy three conditions:
  *  The Relative Strength Index is in downtrend
  *  The MA Makes to Death Cross: C rossover RESULTING from a l ong-term moving average breaking above the short-term moving average or support level.
  *  The Parabolic SAR dots, begin to be hanging bellow the candles
 
• Additional Parameters :
  *  Number of periods for Short-term moving average
  *  Number of periods for Long-term moving average
  *  Standard parameters for SAR
  *  Standard parameters for RSI
  *  Time Frame: Must be able to run on any time frame (M1, M5, M15, M30 etc )
  *  Buy Money Management: Be able to use% of account for each buy trade
  *  Sale Money Management: Be able to use% of account for each sale trade
  *  Stop Loss: %


I would like to know the feasibility of doing them and the cost
newbie
Activity: 182
Merit: 0
Does anyone have a strategy that has worked for them?
Maybe but no one will share Cheesy
newbie
Activity: 5
Merit: 0



That again has been fixed.. sorry about that. See here: https://github.com/askmike/gekko/pull/1824

I would recommend downloading a stable release from here instead of using the develop version (unless you are a developer). Download that from here: https://github.com/askmike/gekko/releases
[/quote]

Thanks again for your replies, very much appreciated. I have downloaded that version you link to, the TypeError: _.get is not a function error has gone, but the TypeError: Cannot read property 'log' persists.

Is this a permissions thing in OS X do you know?

Edit: Also getting 'Gekko was unable to set the portfolio'.

I can live paper trade, but tradebot gives me the errors.
Pages:
Jump to: