-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathglobals.py
115 lines (95 loc) · 3.79 KB
/
globals.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
from PySide.QtGui import *
import datetime
# -- Start settings -- #
# Percentage of the screen that the technical view will be allowed to take up.
# .4
MAX_HEIGHT_FACTOR = .5
# Number of attempts allowed to get ticker data {1 ... n | n <> 0}
# 2
GET_DATA_ATTEMPTS = 1
# Color of the x-axis grid lines
# "grey"
X_AXIS_GRID_COLOR = "grey"
# Color of the y-axis grid lines
# "grey"
Y_AXIS_GRID_COLOR = "grey"
# Color of the volume face
# "darkgoldenrod"
VOLUME_FACE_COLOR = "darkgoldenrod"
# Color of the volume edge
# "blue"
VOLUME_EDGE_COLOR = "blue"
# Scale of the y-axis log/linear
# "log"
Y_AXIS_SCALE = "linear"
# Gather this much time of data in years
# 2
YEARS_OF_DATA = 2
# Defult zoom when display is initialized. 1d, 5d, 1m, 3m, 6m, YTD, All
# "6m"
DEFAULT_ZOOM = "1m"
# -- Stop settings -- #
# -- Start technicals -- #
TECHNICALS = {
# ---------------------------------------------------------------------------- #
"Tech Name" : # Name of the Tech
{
"abbr" : "TN", # Tech accronim
0 : { # 1st parameter
"name" : "One", # parameter name
"class" : "QLineEdit", # parameter class type
"methods" : [["setText", "Hello!"], # methods for class
["setSizePolicy", (QSizePolicy.Minimum,
QSizePolicy.Fixed)],]
},
1 : { # nth parameter
"name" : "Two",
"class" : "QPushButton",
"methods" : [["setText", "Push Me"],
["setSizePolicy", (QSizePolicy.Minimum,
QSizePolicy.Fixed)],]
},
},
# ---------------------------------------------------------------------------- #
# ---------------------------------------------------------------------------- #
"Another Tech":
{
"abbr" : "AT",
0 : {
"name" : "1A",
"class" : "QLineEdit",
"methods" : [["setText", "Text for 1A"],
["setSizePolicy", (QSizePolicy.Minimum,
QSizePolicy.Fixed)],]
},
1 : {
"name" : "2B",
"class" : "QLineEdit",
"methods" : [["setText", "Text for 2b"],
["setSizePolicy", (QSizePolicy.Minimum,
QSizePolicy.Fixed)],]
},
},
# ---------------------------------------------------------------------------- #
# ---------------------------------------------------------------------------- #
"3":
{
"abbr" : "3",
0 : {
"name" : "1A",
"class" : "QLineEdit",
"methods" : [["setText", "Text for 1A"],
["setSizePolicy", (QSizePolicy.Minimum,
QSizePolicy.Fixed)],]
},
1 : {
"name" : "2B",
"class" : "QLineEdit",
"methods" : [["setText", "Text for 2b"],
["setSizePolicy", (QSizePolicy.Minimum,
QSizePolicy.Fixed)],]
},
},
# ---------------------------------------------------------------------------- #
}
# -- Stop technicals -- #