While calculating a simple moving average is as simple as the following:
MAs = closes.rolling(window=MAsWin).mean()
I cannot really find out how to calculate the exponential moving average. I tried many variations of the following but without luck:
MAs = closes.rolling(window= MAsWin, win_type='exponential').mean(std=0.1)
Any help is appreciated. Thank you.