from_pandas_TA indicators won't print? #374
-
Greetings. I was wondering if someone could look at my code below and explain why my script will not print the Stochastic RSI: STOCHRSI = vbt.IndicatorFactory.from_pandas_ta('stochrsi') Something I noticed from the vectorbt documentation is that their example of this code execution looks like this: SMA = vbt.IndicatorFactory.from_pandas_ta('SMA') ...where the SMA.run has ".sma" at the end of the line. When I try to print sma without the ".sma" at the end of the line, it fails just like the Stochastic RSI above. Any ideas as to what is going on? My dataframe is already set up correctly. I tried adding ".stochrsi" to the end of stoch object but Python gave me the following error: AttributeError: 'STOCHRSI' object has no attribute 'stochrsi' |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Please read this: https://vectorbt.pro/documentation/indicators/design/#run-methods For instance, you can get all output names using STOCHRSI.output_names. |
Beta Was this translation helpful? Give feedback.
Please read this: https://vectorbt.pro/documentation/indicators/design/#run-methods
For instance, you can get all output names using STOCHRSI.output_names.