ma#

API documentation for pandas_ta.overlap.ma Python function.

ma(name=None, source=None, **kwargs)[source]#

Simple MA Utility for easier MA selection

Available MAs:

dema, ema, fwma, hma, linreg, midpoint, pwma, rma, sinwma, sma, swma, t3, tema, trima, vidya, wma, zlma

Examples:

ema8 = ta.ma(“ema”, df.close, length=8) sma50 = ta.ma(“sma”, df.close, length=50) pwma10 = ta.ma(“pwma”, df.close, length=10, asc=False)

Args:

name (str): One of the Available MAs. Default: “ema” source (pd.Series): The ‘source’ Series.

Kwargs:

Any additional kwargs the MA may require.

Returns:

pd.Series: New feature generated.

Parameters:
  • name (str) –

  • source (Series) –

Return type:

Series