I found a profitable strategy How I go Live?
#1
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 Smile
  Reply
#2
I'm guessing you need to convert the TOML file for this strategy to JSON and add it to the config file for it to work properly in CLI.
If it isn't crypto, it isn't worth mining, it isn't worth speculating.
https://www.youtube.com/c/crypto49er
  Reply
#3
try to install tulind, talib and remove or change STC.js in indicators
  Reply
#4
Havent settings in config.
You can use: perl backtest.pl -v config/strategies/RSI_BULL_BEAR.toml
My projects [Strategies] [Datasets]
  Reply
#5
(05-04-2018, 10:52 PM)neodavidson Wrote: 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)
 
The new versions of BULL_BEAR don't need TALIB, TULIP and STC even though you receive error messages.

check your config.js fire for the correct settings:
there you should have the follwing lines

config.RSI_BULL_BEAR = {
SMA_long: xx,
SMA_short: xx,
 
//and your other settings
},
  Reply


Forum Jump:


Users browsing this thread: