-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathBar.py
More file actions
53 lines (33 loc) · 1.05 KB
/
Copy pathBar.py
File metadata and controls
53 lines (33 loc) · 1.05 KB
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
#----------------------------------------------------------------------------------------------------------
#
# CLASS Bar
#
#-------------------------------------------------------------------------------------------- --------------
import numpy as np
class Bar:
def __init__( self,
p_open,
p_high,
p_low,
p_close,
p_volume,
p_high_low_order
):
self.open = p_open
self.high = p_high
self.low = p_low
self.close = p_close
self.volume = p_volume
self.high_low_order = p_high_low_order
def getOpen(self):
return self.open
def getHigh(self):
return self.high
def getLow(self):
return self.low
def getClose(self):
return self.close
def getVolume(self):
return self.volume
def getHighLowOrder(self):
return self.high_low_order