Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backtest fails to run with multiple parameter ranges in toml #54

Open
WilbertNL opened this issue Jan 7, 2019 · 1 comment
Open

Backtest fails to run with multiple parameter ranges in toml #54

WilbertNL opened this issue Jan 7, 2019 · 1 comment

Comments

@WilbertNL
Copy link

WilbertNL commented Jan 7, 2019

Hi,

When I change one parameter in the .toml to a range like:
SMA_long = "210..215:1"
SMA_short = 20
all goes well, but as soon as I add another one like:
SMA_long = "210..215:1"
SMA_short = "10..13:1"
I get errors:

/home/gekkoadmin/gekko/core/tulind.js:42
            throw new Error(tulindError + paramName + ' needs to be a number');
            ^

Error: Gekko was unable to configure Tulip Indicators:
	optInTimePeriod needs to be a number
    at _.each.paramName (/home/gekkoadmin/gekko/core/tulind.js:42:19)
    at Function.forEach (/home/gekkoadmin/gekko/node_modules/lodash/dist/lodash.js:3298:15)
    at verifyParams (/home/gekkoadmin/gekko/core/tulind.js:34:7)
    at Object.create (/home/gekkoadmin/gekko/core/tulind.js:696:9)
    at AsyncIndicatorRunner.addTulipIndicator (/home/gekkoadmin/gekko/plugins/tradingAdvisor/asyncIndicatorRunner.js:145:23)
    at Base.addTulipIndicator (/home/gekkoadmin/gekko/plugins/tradingAdvisor/baseTradingMethod.js:226:29)
    at Base.bound [as addTulipIndicator] (/home/gekkoadmin/gekko/node_modules/lodash/dist/lodash.js:729:21)
    at Base.init (/home/gekkoadmin/gekko/strategies/RSI_BULL_BEAR_ADX.js:34:8)
    at Base.bound [as init] (/home/gekkoadmin/gekko/node_modules/lodash/dist/lodash.js:729:21)
    at new Base (/home/gekkoadmin/gekko/plugins/tradingAdvisor/baseTradingMethod.js:69:8)
USDT-BTC Backtest is failed. 

It doesn't matter which parameter is put in a test-range; as long as it is one it works, but as soon as a second is added it fails.

BacktestTool v0.7
Gekko v0.6.8

I had to make to manual changes to the backtest.pl file:

Any help would be greatly appreciated, thanks!

EDIT: cleaned up layout of output

@dannycoin
Copy link

cleaned up layout of output

did you find a solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants