# ma {#ma}

## Syntax {#syntax}

`ma(X, window, maType)`

Please see [TALib](../Themes/TALib.md) for the parameters and windowing logic.

## Arguments {#arguments}

**maType** is the type of moving averages. It is an integer in \[0,8\].0= [sma](../s/sma.md) , 1= [ema](../e/ema.md) , 2= [wma](../w/wma.md) , 3= [dema](../d/dema.md) , 4= [tema](../t/tema.md) , 5= [trima](../t/trima.md) , 6= [kama](../k/kama.md) , 8= [t3](../t/t3.md) . Note that value 7 \(mama\) is not supported.

## Details {#details}

Calculate the moving average \(whose type is determined by maType\) in a sliding window of the given length.

