You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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
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?
The text was updated successfully, but these errors were encountered: