-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
75 lines (59 loc) · 1.3 KB
/
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed May 6 16:22:50 2020
@author: satansspawn
"""
#sy = "RELIANCE.NS"
#key = 'OAPX1MWCR5GSEPXK'
from alpha_vantage.timeseries import TimeSeries
from alpha_vantage.techindicators import TechIndicators
from matplotlib.pyplot import figure
import matplotlib.pyplot as plt
import trial
import os
import test
# setting the windows size
# declaring string variable
# for storing name and password
#s = input("Enter stock symbol:")
#kk = input("Enter your API key for Alpha Vantage:")
print("Select timeframe from menu:")
print("1. 60 min")
print("2. 30 min")
print("3. 15 min")
print("4. 5 min")
print("5. 1 min")
print("6. Day adjusted")
print("7. Week adjusted")
print("8. Month adjusted")
print("9. Predict model for month close using week")
ch = int(input())
if ch == 1:
trial.og60(s, kk)
if ch == 2:
trial.og30(s, kk)
if ch == 3:
trial.og15(s, kk)
if ch == 4:
trial.og5(s, kk)
if ch == 5:
trial.og1(s, kk)
if ch == 6:
trial.ogdaily(s, kk)
if ch == 7:
trial.ogweekly(s, kk)
if ch == 8:
trial.ogmonthly(s, kk)
if ch == 9:
test.st(s, kk)
#print(ch)
root.mainloop()
"""trial.og60(s, kk)
trial.og30(s, kk)
trial.og15(s, kk)
trial.og5(s, kk)
trial.og1(s, kk)
trial.ogdaily(s, kk)
trial.ogweekly(s, kk)
trial.ogmonthly(s, kk)"""