mplfinance icon indicating copy to clipboard operation
mplfinance copied to clipboard

Feature Request: Support for Exponential Moving Average

Open PowerrNuller opened this issue 4 years ago • 4 comments

Is your feature request related to a problem? Please describe. With mav built in - support for emav - exponential moving average would be nice - and I suppose easy to configure.

Describe the solution you'd like Addition of emav as an argument to mpf.plot ***kwargs with support in mpf.make_mpf_style() to assign custom colors

Describe alternatives you've considered Manually calculate and plot? Why not add it?

Additional context Nope.

PowerrNuller avatar Jul 03 '20 03:07 PowerrNuller

A reasonable request. Regarding custom colors, is there any reason not to use the existing mavcolors? Do people every want to plot both SMA and EMA?

DanielGoldfarb avatar Jul 03 '20 13:07 DanielGoldfarb

A reasonable request. Regarding custom colors, is there any reason not to use the existing mavcolors? Do people every want to plot both SMA and EMA?

Not really, it is either SMA or EMA (or else), I personally prefer EMA, more adaptive. But it's a matter of 'tastes'

manuelwithbmw avatar Jul 03 '20 13:07 manuelwithbmw

Yes - I think having that flexibility helps and keep the library dynamic to help different traders with different sytles

PowerrNuller avatar Jul 03 '20 13:07 PowerrNuller

Has anyone managed to add the emav successfully? Thanks.

farzinaa avatar Feb 22 '22 02:02 farzinaa

Easy and well explained here https://github.com/matplotlib/mplfinance/issues/506

manuelwithbmw avatar Oct 14 '22 19:10 manuelwithbmw

Implemented: #563

DanielGoldfarb avatar Nov 01 '22 01:11 DanielGoldfarb