Hello,

I was working on a block strategy and when I attempted to make a parameter start at a decimal but increase by an integer it would not create the correct interval for what I was setting it for. In the example below, I wanted it to start at "0.75" points and then increase by 2 full points to the stop value, but it would only use full integers and not decimals. I wanted the intervals to be (0.75, 2.75, 4.75, 6.75, 8.75, and 10.75) but instead they showed up as (1,3,5,7,9,11).

I seem to recall not having this problem before, so perhaps it is related to a recent change. I can't be totally sure. As a workaround, I am able to set the interval to something like "2.01" and it will come close to what I am looking to do with the strategy.

Thanks,

Dandude

Here are a couple of screenshots of the problem:

I was working on a block strategy and when I attempted to make a parameter start at a decimal but increase by an integer it would not create the correct interval for what I was setting it for. In the example below, I wanted it to start at "0.75" points and then increase by 2 full points to the stop value, but it would only use full integers and not decimals. I wanted the intervals to be (0.75, 2.75, 4.75, 6.75, 8.75, and 10.75) but instead they showed up as (1,3,5,7,9,11).

I seem to recall not having this problem before, so perhaps it is related to a recent change. I can't be totally sure. As a workaround, I am able to set the interval to something like "2.01" and it will come close to what I am looking to do with the strategy.

Thanks,

Dandude

Here are a couple of screenshots of the problem:

Rename

Your Response
Post

Edit Post

Login is required