Can someone tell me the difference between calculating the Bollinger bands I found in the examples:

1) algorithm.BB() used in alpha model

2) qb.Indicator(BollingerBands(30, 2), currency.Symbol, 360, Resolution.Minute), used in Jupyter Notebook

Thanks.