Exemplo n.º 1
0
    def compute_ovb(self):
        ovb = long(0)
        for j in range(0, gCal.lastindex() + 1):
            if self.m_inClose[j] >= 0.0:
                pc = self.close(j - 1)
                if self.m_inClose[j] >= pc:
                    ovb = ovb + long(self.m_inVol[j])
                else:
                    ovb = ovb - long(self.m_inVol[j])

            self.m_ovb[j] = ovb
Exemplo n.º 2
0
    def compute_ovb(self):
        ovb = long(0)
        for j in range(0,gCal.lastindex()+1):
            if self.m_inClose[j]>=0.0:
                pc = self.close(j-1)
                if self.m_inClose[j]>=pc:
                    ovb = ovb + long(self.m_inVol[j])
                else:
                    ovb = ovb - long(self.m_inVol[j])

            self.m_ovb[j] = ovb
Exemplo n.º 3
0
def create_array(defval):
    n = gCal.lastindex() + 1
    a = array([defval] * n)
    return a
Exemplo n.º 4
0
def create_array(defval):
    n = gCal.lastindex()+1
    a = array([defval]*n)
    return a