1
0
mirror of https://github.com/polakowo/vectorbt.git synced 2022-03-22 01:31:39 +03:00

Allow more pandas-ta indicators and bump version

[ci deploy-pypi] [ci deploy-pages]
This commit is contained in:
Oleg Polakow
2021-12-28 23:16:33 +01:00
parent 26f58c79c0
commit 0a0077e42e
2 changed files with 5 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
# Copyright (c) 2021 Oleg Polakow. All rights reserved.
# This code is licensed under Apache 2.0 with Commons Clause license (see LICENSE.md for details)
__version__ = "0.22.0"
__version__ = "0.23.0"

View File

@@ -3495,8 +3495,10 @@ Other keyword arguments are passed to `{0}.run`.""".format(_0, _1)
return TALibIndicator
@classmethod
def parse_pandas_ta_config(cls, func: tp.Callable, test_input_names: tp.Optional[tp.Sequence[str]] = None,
test_index_len: int = 50) -> tp.Kwargs:
def parse_pandas_ta_config(cls,
func: tp.Callable,
test_input_names: tp.Optional[tp.Sequence[str]] = None,
test_index_len: int = 100) -> tp.Kwargs:
"""Get the config of a pandas-ta indicator."""
if test_input_names is None:
test_input_names = {'open_', 'open', 'high', 'low', 'close', 'adj_close', 'volume', 'dividends', 'split'}