Skip to content

Commit 0cba1ce

Browse files
author
andrewrgarcia
committed
add ema label in _valid_plot_kwargs(); _mav_validator also because ema has the same data-types as mav
1 parent 47e4c0c commit 0cba1ce

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/mplfinance/plotting.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@ def _valid_plot_kwargs():
119119
'mav' : { 'Default' : None,
120120
'Description' : 'Moving Average window size(s); (int or tuple of ints)',
121121
'Validator' : _mav_validator },
122+
123+
'ema' : { 'Default' : None,
124+
'Description' : 'Exponential Moving Average window size(s); (int or tuple of ints)',
125+
'Validator' : _mav_validator },
122126

123127
'renko_params' : { 'Default' : dict(),
124128
'Description' : 'dict of renko parameters; call `mpf.kwarg_help("renko_params")`',

0 commit comments

Comments
 (0)