Gekko Forum
[SHARE] Simple RSI BULL/BEAR strategy - Printable Version

+- Gekko Forum (https://forum.gekko.wizb.it)
+-- Forum: Gekko (https://forum.gekko.wizb.it/forum-13.html)
+--- Forum: Strategy Development (https://forum.gekko.wizb.it/forum-12.html)
+--- Thread: [SHARE] Simple RSI BULL/BEAR strategy (/thread-100.html)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38


RE: [SHARE] Simple RSI BULL/BEAR strategy - tommiehansen - 03-28-2018

(03-28-2018, 04:10 PM)ankasem Wrote: hi
What happens if the trade bot is started without historical data in the strategies
Strategies do not have past data, but if you start a trade bot with default settings, how does it behave in a strategy bear or bull trend ?
thank you

You need to set your history to the longest SMA-value you use and make sure that Gekko downloads the needed data.


RE: [SHARE] Simple RSI BULL/BEAR strategy - adiyogi - 03-28-2018

(03-25-2018, 11:43 PM)tommiehansen Wrote: Update RSI BULL/BEAR ADX now has a new TOML format.

Check: https://github.com/tommiehansen/gekko_tools/tree/master/strategies
or git pull it.

The latest commit seems to break things for me. 

Code:
Error: non-error thrown: Child process has died.
     at Object.onerror (/Users/AdityaNayak/Bots/trading/gekko/node_modules/koa/lib/context.js:105:40)
     at <anonymous>
     at process._tickCallback (internal/process/next_tick.js:188:7)



RE: [SHARE] Simple RSI BULL/BEAR strategy - Kris191 - 03-29-2018

Hi Tommie,

Updated all the files, still the same issue.. its spitting an error from my config as per below:

/root/gekko/CBTCEURconfigADX.js:43
short: 50,
^

SyntaxError: Unexpected token :
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:616:28)
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.getConfig (/root/gekko/core/util.js:46:15)

When i remove the parameters from the config i get this error..

2018-03-29 06:26:49 (INFO): Using the strategy: RSI_BULL_BEAR_ADX
/root/gekko/strategies/RSI_BULL_BEAR_ADX.js:39
this.addIndicator('maSlow', 'SMA', this.settings.SMA.long );
^

TypeError: Cannot read property 'SMA' of undefined
at Base.init (/root/gekko/strategies/RSI_BULL_BEAR_ADX.js:39:52)
at Base.bound [as init] (/root/gekko/node_modules/lodash/dist/lodash.js:729:21)
at new Base (/root/gekko/plugins/tradingAdvisor/baseTradingMethod.js:87:8)
at Actor.setupTradingMethod (/root/gekko/plugins/tradingAdvisor/tradingAdvisor.js:62:17)
at Actor.bound [as setupTradingMethod] (/root/gekko/node_modules/lodash/dist/lodash.js:729:21)
at new Actor (/root/gekko/plugins/tradingAdvisor/tradingAdvisor.js:23:8)
at load (/root/gekko/core/pluginUtil.js:95:22)
at /root/gekko/node_modules/async/dist/async.js:1156:9
at replenish (/root/gekko/node_modules/async/dist/async.js:1030:17)
at iterateeCallback (/root/gekko/node_modules/async/dist/async.js:1015:17)

No idea whats going on at all can someone help as my bots not running and the other i have ii'm afraid to switch off in case i c ant get it back online.


RE: [SHARE] Simple RSI BULL/BEAR strategy - Kris191 - 03-29-2018

I know have the SMA working but its kicking out that is doesn't recognise ADX, i ahve the files in the indicators folder as instructed

As a note the non ADX version works just fine i cannot seem to get it to link across.


RE: [SHARE] Simple RSI BULL/BEAR strategy - tommiehansen - 03-29-2018

Make sure you've actually updated all the files including the TOML-files and the extra files that is needed and that everything is where it should be.


RE: [SHARE] Simple RSI BULL/BEAR strategy - kilroy - 03-29-2018

having almost the same issue Kris191, you are getting this error:

2018-03-29 06:26:49 (INFO): Using the strategy: RSI_BULL_BEAR_ADX
/root/gekko/strategies/RSI_BULL_BEAR_ADX.js:39
this.addIndicator('maSlow', 'SMA', this.settings.SMA.long );
^

if I run RSI_BULL_BEAR_ADX I receive same error as you...

2018-03-29 09:52:54 (INFO):         Using the strategy: RSI_BULL_BEAR_ADX
/home/minerjoe/gekko/strategies/RSI_BULL_BEAR_ADX.js:39
        this.addIndicator('maSlow', 'SMA', this.settings.SMA.long );
                                                         ^

but when I execute RSI_BULL_BEAR I receive "this.settings.SMA_long);



2018-03-29 09:56:29 (INFO):         Using the strategy: RSI_BULL_BEAR
/home/minerjoe/gekko/strategies/RSI_BULL_BEAR.js:34
        this.addIndicator('maSlow', 'SMA', this.settings.SMA_long );
                                                         ^
Any help would be appreciated.  Reworked everything, just having issues with the indicators I guess.
Ubuntu 16.04
followed "instructions for use" on first page then
npm install talib
npm install tulind (it built from source)
node-pre-gyp ERR! Pre-built binaries not found for tulind@0.8.10 and node@8.10.0 (node-v57 ABI, glibc) (falling back to source compile with node-gyp)

am I missing anything else?


RE: [SHARE] Simple RSI BULL/BEAR strategy - ankasem - 03-29-2018

format and re-install
----------------------------------------
open terminal
-----------------------------------------------------
sudo apt-get update
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo apt-get install -y build-essential

sudo apt-get install git

git clone git://github.com/askmike/gekko.git

cd gekko 
npm install talib
npm install tulind

cd gekko
npm install --only=production

node gekko --ui


RE: [SHARE] Simple RSI BULL/BEAR strategy - luke77 - 04-03-2018

Hi everyone!

I tried to install Gekko and Gekkoga, following step by step the instructions.

I installed them on Windows 10 through Bash (Ubuntu app).

The problem is that when I launch gekkoga (on the second terminal) with the command "node run -c config/your-config.js" I receive this error:

module.js:549
    throw err;
    ^

Error: Cannot find module 'nodemailer'
    at Function.Module._resolveFilename (module.js:547:15)
    at Function.Module._load (module.js:474:25)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/root/gekko/gekkoga/index.js:2:20)
    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)


I checked everything and the configuration seems to be ok.

Someone knows why I receive this error? Any help?

Thank you in advance for your support.  Angel

Luke


RE: [SHARE] Simple RSI BULL/BEAR strategy - ankasem - 04-03-2018

Hi

I want to use rsi bull bear adx or rsi bull bear in cli mode (commandline)
config.js  how to insert into

Do I need to change the toml file

ThNk YoU


RE: [SHARE] Simple RSI BULL/BEAR strategy - Kris191 - 04-03-2018

You need to convert the toml file in to Json file. look in 3rd party forum there is a converter in there to help then cut and paste into your config.

Not my knowledge Tommie spent good few days helping me work this out. when i get on my laptop i will post the code in here