-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
28 lines (18 loc) · 822 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
from tradingview_ta import TA_Handler, Interval, Exchange
SYMBOLS = ["BTCUSDT31H2023", "TRUUSDT", "LINKUSDT", "BANDUSDT", "UNIUSD", "ENJUSDT", "SOLUSDT", "RENUSDT",
"LTCUSDT", "ETHUSDT"]
SCREENER = "crypto"
EXCHANGE = "BINANCE"
inter = [Interval.INTERVAL_4_HOURS, Interval.INTERVAL_1_DAY, Interval.INTERVAL_1_WEEK]
for i in SYMBOLS:
print("----------------------------------------------------", i, '\n')
for j in inter:
BTC = TA_Handler(
symbol = i,
screener = SCREENER,
exchange = EXCHANGE,
interval = j
)
print("--------- Interval: ", j+": -------------", '\n')
print(i+":", BTC.get_analysis().summary['RECOMMENDATION'])
print("Close price is: ", BTC.get_analysis().indicators["close"], '\n')