I want to use the following function of ta-lib.
I want to understand the meaning of periods
.
MAVP
MAVP([input_arrays], [minperiod=2], [maxperiod=30], [matype=0])
Moving average with variable period (Overlap Studies)
Inputs:
price: (any ndarray) periods: (any ndarray)
Parameters:
minperiod: 2 maxperiod: 30 matype: 0 (Simple Moving Average)
Outputs:
real
It gives an error back when the length of periods
is different to the length of price
(additionally: it gives back a nparray, if matype
is >= 0 and <= 8, else an error is thrown).
The original documentation: https://mrjbq7.github.io/ta-lib/func_groups/overlap_studies.html
A reference to some (auto generated) documentation: https://www.backtrader.com/docu/talibindautoref.html
EDIT: The underlying c code is here: http://svn.code.sf.net/p/ta-lib/code/trunk/ta-lib/c/src/ta_func/ta_MAVP.c
also posted here: https://github.com/mrjbq7/ta-lib/issues/175