Skip to content

Importing an indicator from Pandas_ta and setting entries and exits. #328

Answered by polakowo
Krzysiek191 asked this question in Q&A
Discussion options

You must be logged in to vote

@Krzysiek191 you can run vbt.pandas_ta('vwap').output_names to see which arrays VWAP produces. For instance, for VWAP, there is only one array vwap_d which can be accessed via vwap.vwap_d. To generate crossover signals, do vwap.close_crossed_above(vwap.vwap_d). You can read more about indicators here: https://vectorbt.dev/api/indicators/factory/

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@polakowo
Comment options

@Krzysiek191
Comment options

Answer selected by Krzysiek191
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants