facioquo / stock-indicators-python

Stock Indicators for Python. Maintained by @LeeDongGeon1996
https://python.StockIndicators.dev
Apache License 2.0
205 stars 34 forks source link

an ALL parameter to calc the all indicators with default parameter #358

Closed luigif2000 closed 3 months ago

luigif2000 commented 3 months ago

Dear, is there the possibility to have ALL the indicators created with only a few lines?

this feature could be very very useful.

thanks in advance and waiting a kindly reply.

luigif

LeeDongGeon1996 commented 3 months ago

You can use inspect module. But be careful that not every indicator methods have default parameter value.

import inspect
import stock_indicators.indicators as indicators

all_indicator_methods = inspect.getmembers(indicators, inspect.isfunction)
for indicator_method in all_indicator_methods:
    # call and do somthing here.
luigif2000 commented 3 months ago

thanks...that's very kind of You!! Best regards.

luigi