How to get max close price for the past n days
How to get the maximum close price for the past n days? I tried to use Max indicator but it is not supported?
clsmax = bt.ind.Max(data.close, period=self.p.nmax)
TypeError: init() got an unexpected keyword argument 'period'
bt.ind.Maxis equivalent to python's
max. You can apply it to several data feeds/indicators (and combinations of boths)
You are looking for
Nis there to indicate that a period is involved.
I see. Thank you!