mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-28 20:23:36 +00:00
Fix screener for General.Order and General.Signal (#500)
This commit is contained in:
@@ -115,12 +115,12 @@ def get_screener_data(
|
||||
if signal:
|
||||
screen.set_filter(signal=d_signals[signal])
|
||||
else:
|
||||
if d_general["Signal"]:
|
||||
if "Signal" in d_general:
|
||||
screen.set_filter(filters_dict=d_filters, signal=d_general["Signal"])
|
||||
else:
|
||||
screen.set_filter(filters_dict=d_filters)
|
||||
|
||||
if d_general["Order"]:
|
||||
if "Order" in d_general:
|
||||
if limit > 0:
|
||||
df_screen = screen.ScreenerView(
|
||||
order=d_general["Order"],
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
# Description: This is just a sample. The user that adds the preset can add a description for what type of stocks these filters are aimed for
|
||||
|
||||
[General]
|
||||
Order =
|
||||
Signal =
|
||||
Order = Ticker
|
||||
Signal = Top Gainers
|
||||
|
||||
[Descriptive]
|
||||
Sector = Technology
|
||||
|
||||
@@ -5,10 +5,10 @@
|
||||
|
||||
[General]
|
||||
# Ticker, Company, Sector, Industry, Country, Market Cap., Price/Earnings, Forward Price/Earnings, PEG (Price/Earnings/Growth), Price/Sales, Price/Book, Price/Cash, Price/Free Cash Flow, Dividend Yield, Payout Ratio, EPS(ttm), EPS growth this year, EPS growth next year, EPS growth past 5 years, EPS growth next 5 years, Sales growth past 5 years, EPS growth qtr over qtr, Sales growth qtr over qtr, Shares Outstanding, Shares Float, Insider Ownership, Insider Transactions, Institutional Ownership, Institutional Transactions, Short Interest Share, Short Interest Ratio, Earnings Date, Return on Assets, Return on Equity, Return on Investment, Current Ratio, Quick Ratio, LT Debt/Equity, Total Debt/Equity, Gross Margin, Operating Margin, Net Profit Margin, Analyst Recommendation, Performance (Week), Performance (Month), Performance (Quarter), Performance (Half Year), Performance (Year), Performance (Year To Date), Beta, Average True Range, Volatility (Week), Volatility (Month), 20-Day SMA (Relative), 50-Day SMA (Relative), 200-Day SMA (Relative), 50-Day High (Relative), 50-Day Low (Relative), 52-Week High (Relative), 52-Week Low (Relative), Relative Strength Index (14), Average Volume (3 Month), Relative Volume, Change, Change from Open, Gap, Volume, Price, Target Price, IPO Date
|
||||
Order =
|
||||
Order = Ticker
|
||||
|
||||
# Top Gainers, Top Losers, New High, New Low, Most Volatile, Most Active, Unusual Volume, Overbought, Oversold, Downgrades, Upgrades, Earnings Before, Earnings After, Recent Insider Buying, Recent Insider Selling, Major News, Horizontal S/R, TL Resistance, TL Support, Wedge Up, Wedge Down, Triangle Ascending, Triangle Descending, Wedge, Channel Up, Channel Down, Channel, Double Top, Double Bottom, Multiple Top, Multiple Bottom, Head & Shoulders, Head & Shoulders Inverse
|
||||
Signal =
|
||||
Signal = Top Gainers
|
||||
|
||||
|
||||
[Descriptive]
|
||||
|
||||
Reference in New Issue
Block a user