Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -125,13 +125,13 @@ def score_today_candle(data, window=4):
|
|
125 |
|
126 |
return score_candle(today_candle, prev_candle, abs(avg_downtrend))
|
127 |
|
128 |
-
def scan_sp500(top_n=25, progress=gr.Progress()):
|
129 |
tickers = load_sp500_tickers()
|
130 |
scores = []
|
131 |
tickers.append("QQQ")
|
132 |
|
133 |
for i, ticker in enumerate(progress.tqdm(tickers)):
|
134 |
-
data = load_data(ticker)
|
135 |
if not data.empty:
|
136 |
score = score_today_candle(data)
|
137 |
if score > 0:
|
|
|
125 |
|
126 |
return score_candle(today_candle, prev_candle, abs(avg_downtrend))
|
127 |
|
128 |
+
def scan_sp500(top_n=25, interval, progress=gr.Progress()):
|
129 |
tickers = load_sp500_tickers()
|
130 |
scores = []
|
131 |
tickers.append("QQQ")
|
132 |
|
133 |
for i, ticker in enumerate(progress.tqdm(tickers)):
|
134 |
+
data = load_data(ticker, interval)
|
135 |
if not data.empty:
|
136 |
score = score_today_candle(data)
|
137 |
if score > 0:
|