TA-Lib/ta-lib-python

Details on talib.BBAND "mattype" parameter.

QuincyQuantitative opened this issue · 1 comments

Hi Community,

I am trying to find documentation on talib.BBANDS, specifically, the argument "mattype" which takes in SMA by default when set to 0 as per the doc string. I tested that it takes [0,8] as valid inputs but I am trying to figure out what each integer refers to (EMA etc.). Any inputs will be helpful. Thank you!

After going over the code, I figured this out. Posting for other members:

  • talib.MA_Type.SMA: 0
  • talib.MA_Type.EMA: 1
  • talib.MA_Type.WMA: 2
  • talib.MA_Type.DEMA: 3
  • talib.MA_Type.TEMA: 4
  • talib.MA_Type.TRIMA: 5
  • talib.MA_Type.KAMA: 6
  • talib.MA_Type.MAMA: 7
  • talib.MA_Type.T3: 8