nardew / talipp

talipp - incremental technical analysis library for python
https://nardew.github.io/talipp
MIT License
367 stars 59 forks source link

Update the example in README #119

Closed wei-shiuan-chang closed 6 months ago

wei-shiuan-chang commented 6 months ago

The example in README should be updated

from

# print result as lists per output parameters
print(f'Stoch(5, 3) decomposed result: {stoch.to_lists()}') # {'k': [70.83333333333333, 50.0, 42.857142857142854], 'd': [None, None, 54.563492063492056]} 

to

# print result as lists per output parameters
print(f'Stoch(5, 3) decomposed result: {composite_to_lists(stoch)}') # {'k': [70.83333333333333, 50.0, 42.857142857142854], 'd': [None, None, 54.563492063492056]} 

with library imported on top

from talipp.indicator_util import composite_to_lists
nardew commented 6 months ago

Thanks @wei-shiuan-chang, I have corrected it.