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

Ranges in TOML files do not work when datatype not equal to numeric/integer. #33

Open
bald123 opened this issue Jun 14, 2018 · 0 comments

Comments

@bald123
Copy link

bald123 commented Jun 14, 2018

When a range of type integer is declared in a strategy TOML file, all possible combinations seems to be calculated correctly. For example, a TOML file having the following setting:
StopLossPercentage = 2..5:1 OR StopLossPercentage = 2,3,4,5

creates 4 backtests, which is correct. When the datatype is of type boolean or string, this does not seem to work. For example:
StopLossStrategy = "regular","trailing","none" ==> creates error during script, "invalid character: , "..
StopLossStrategy = ["regular","trailing","none"] ==> only seems to be considering the first one.

Same goes for boolean:
StopLossLimit = [true, false] ==> not working, only seems to be considering the first one.

Etc. It looks like only numeric/integer ranges/arrays are interpreted correctly?

@bald123 bald123 changed the title Ranges in TOML files do not work when datatype not equal to integer. Ranges in TOML files do not work when datatype not equal to numeric/integer. Jun 14, 2018
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

1 participant