Hello,
I have found how to pass dynamic parameters to optstrategy (as discussed also in another post) like below:
d = {'period': [14, 16, 20 , 22, 25, 30], 'period2': [33, 39]}
cerebro.optstrategy(MyHolyGrailStrategy, *[], **d)
This way though, for period2, it only goes through values 33 and 39. What i was trying to find out is a way to pass a range of params though, like below:
strat = cerebro.optstrategy(TestStrategy.TestStrategy, maperiod=range(10, 31))
Any ideas?