05-04-2018, 10:52 PM
Hello, I just follow the tutorials provided, now I decide to use RSI_BULL_BEAR strategie, but it generates problems when I try to run in online...
$ node gekko --config config.js
______ ________ __ __ __ __ ______
/ \ / |/ | / |/ | / | / \
/$$$$$$ |$$$$$$$$/ $$ | /$$/ $$ | /$$/ /$$$$$$ |
$$ | _$$/ $$ |__ $$ |/$$/ $$ |/$$/ $$ | $$ |
$$ |/ |$$ | $$ $$< $$ $$< $$ | $$ |
$$ |$$$$ |$$$$$/ $$$$$ \ $$$$$ \ $$ | $$ |
$$ \__$$ |$$ |_____ $$ |$$ \ $$ |$$ \ $$ \__$$ |
$$ $$/ $$ |$$ | $$ |$$ | $$ |$$ $$/
$$$$$$/ $$$$$$$$/ $$/ $$/ $$/ $$/ $$$$$$/
Gekko v0.5.14
I'm gonna make you rich, Bud Fox.
2018-05-04 22:49:45 (INFO): Setting up Gekko in realtime mode
2018-05-04 22:49:45 (INFO):
2018-05-04 22:49:45 (INFO): Setting up:
2018-05-04 22:49:45 (INFO): Candle writer
2018-05-04 22:49:45 (INFO): Store candles in a database
2018-05-04 22:49:45 (INFO):
2018-05-04 22:49:45 (INFO): Setting up:
2018-05-04 22:49:45 (INFO): Trading Advisor
2018-05-04 22:49:45 (INFO): Calculate trading advice
2018-05-04 22:49:45 (INFO): Using the strategy: RSI_BULL_BEAR
2018-05-04 22:49:45 (WARN): TALIB indicators could not be loaded, they will be unavailable.
2018-05-04 22:49:45 (WARN): TULIP indicators could not be loaded, they will be unavailable.
2018-05-04 22:49:45 (ERROR): Failed to load indicator STC
C:\Users\Administrator\documents\gekko-0.5.14\strategies\RSI_BULL_BEAR.js:34
this.addIndicator('maSlow', 'SMA', this.settings.SMA_long );
^
TypeError: Cannot read property 'SMA_long' of undefined
at Base.init (C:\Users\Administrator\documents\gekko-0.5.14\strategies\RSI_BULL_BEAR.js:34:52)
at Base.bound [as init] (C:\Users\Administrator\documents\gekko-0.5.14\node_modules\lodash\dist\lod
ash.js:729:21)
at new Base (C:\Users\Administrator\documents\gekko-0.5.14\plugins\tradingAdvisor\baseTradingMethod
.js:87:8)
at Actor.setupTradingMethod (C:\Users\Administrator\documents\gekko-0.5.14\plugins\tradingAdvisor\t
radingAdvisor.js:62:17)
at Actor.bound [as setupTradingMethod] (C:\Users\Administrator\documents\gekko-0.5.14\node_modules\
lodash\dist\lodash.js:729:21)
at new Actor (C:\Users\Administrator\documents\gekko-0.5.14\plugins\tradingAdvisor\tradingAdvisor.j
s:23:8)
at load (C:\Users\Administrator\documents\gekko-0.5.14\core\pluginUtil.js:95:22)
at C:\Users\Administrator\documents\gekko-0.5.14\node_modules\async\dist\async.js:1156:9
at replenish (C:\Users\Administrator\documents\gekko-0.5.14\node_modules\async\dist\async.js:1030:1
7)
at iterateeCallback (C:\Users\Administrator\documents\gekko-0.5.14\node_modules\async\dist\async.js
:1015:17)
Administrator@EC2AMAZ-ROGIEU5 MINGW64 ~/documents/gekko-0.5.14
Please give me some advice
$ node gekko --config config.js
______ ________ __ __ __ __ ______
/ \ / |/ | / |/ | / | / \
/$$$$$$ |$$$$$$$$/ $$ | /$$/ $$ | /$$/ /$$$$$$ |
$$ | _$$/ $$ |__ $$ |/$$/ $$ |/$$/ $$ | $$ |
$$ |/ |$$ | $$ $$< $$ $$< $$ | $$ |
$$ |$$$$ |$$$$$/ $$$$$ \ $$$$$ \ $$ | $$ |
$$ \__$$ |$$ |_____ $$ |$$ \ $$ |$$ \ $$ \__$$ |
$$ $$/ $$ |$$ | $$ |$$ | $$ |$$ $$/
$$$$$$/ $$$$$$$$/ $$/ $$/ $$/ $$/ $$$$$$/
Gekko v0.5.14
I'm gonna make you rich, Bud Fox.
2018-05-04 22:49:45 (INFO): Setting up Gekko in realtime mode
2018-05-04 22:49:45 (INFO):
2018-05-04 22:49:45 (INFO): Setting up:
2018-05-04 22:49:45 (INFO): Candle writer
2018-05-04 22:49:45 (INFO): Store candles in a database
2018-05-04 22:49:45 (INFO):
2018-05-04 22:49:45 (INFO): Setting up:
2018-05-04 22:49:45 (INFO): Trading Advisor
2018-05-04 22:49:45 (INFO): Calculate trading advice
2018-05-04 22:49:45 (INFO): Using the strategy: RSI_BULL_BEAR
2018-05-04 22:49:45 (WARN): TALIB indicators could not be loaded, they will be unavailable.
2018-05-04 22:49:45 (WARN): TULIP indicators could not be loaded, they will be unavailable.
2018-05-04 22:49:45 (ERROR): Failed to load indicator STC
C:\Users\Administrator\documents\gekko-0.5.14\strategies\RSI_BULL_BEAR.js:34
this.addIndicator('maSlow', 'SMA', this.settings.SMA_long );
^
TypeError: Cannot read property 'SMA_long' of undefined
at Base.init (C:\Users\Administrator\documents\gekko-0.5.14\strategies\RSI_BULL_BEAR.js:34:52)
at Base.bound [as init] (C:\Users\Administrator\documents\gekko-0.5.14\node_modules\lodash\dist\lod
ash.js:729:21)
at new Base (C:\Users\Administrator\documents\gekko-0.5.14\plugins\tradingAdvisor\baseTradingMethod
.js:87:8)
at Actor.setupTradingMethod (C:\Users\Administrator\documents\gekko-0.5.14\plugins\tradingAdvisor\t
radingAdvisor.js:62:17)
at Actor.bound [as setupTradingMethod] (C:\Users\Administrator\documents\gekko-0.5.14\node_modules\
lodash\dist\lodash.js:729:21)
at new Actor (C:\Users\Administrator\documents\gekko-0.5.14\plugins\tradingAdvisor\tradingAdvisor.j
s:23:8)
at load (C:\Users\Administrator\documents\gekko-0.5.14\core\pluginUtil.js:95:22)
at C:\Users\Administrator\documents\gekko-0.5.14\node_modules\async\dist\async.js:1156:9
at replenish (C:\Users\Administrator\documents\gekko-0.5.14\node_modules\async\dist\async.js:1030:1
7)
at iterateeCallback (C:\Users\Administrator\documents\gekko-0.5.14\node_modules\async\dist\async.js
:1015:17)
Administrator@EC2AMAZ-ROGIEU5 MINGW64 ~/documents/gekko-0.5.14
Please give me some advice