-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhancement request: combine pattern filters #112
Comments
As of now, I think (not sure) this is only available in the Elite version. To implement this feature, the function would require at least 2 requests and some filtering functionality to implement. If you're interested, you could add it as a feature. |
Here is my crude attempt to implement it. #!/usr/bin/env python debug = False def add_to_tickers(): def print_tickers(): def print_list(msg, this_list): filters = ['idx_sp500', 'ta_sma50_pa'] # Shows sp500 and above 50day SMA sp500_50dma = [stocks['Ticker'] for stocks in stock_list] if debug_list: sp500_50dma_ta_pattern_channeldown = [] if debug_list: if debug: sp500_50dma_ta_pattern_wedge = [] try:
except: if debug_list: if debug: tickers.sort() sp500_filtered_stocks = list(set(sp500_50dma_ta_pattern_channeldown + sp500_50dma_ta_pattern_wedge)) print_list ("OR", sp500_filtered_stocks) #stock_list.get_ticker_details() |
First of all, great package!!
I have a request if its possible to combine pattern filters. For example, I want to find out all the stocks in sp500 which either have a wedge pattern or downward channel.
Thanks
mwahal
The text was updated successfully, but these errors were encountered: