Ejemplo n.º 1
0
        def profitMeter(chart):
            matrix = np.zeros(shape=(half_scale_size * 2, timeFrame))
            yAxis = reMap(self.percentProfitReward, -3, 3, 84, 0, 84, 0)
            radius = reMap(self.realMoneySpent, 0, 2000, 1, 10, 10, 1)

            rr, cc = draw.circle(yAxis, 42, radius=radius, shape=matrix.shape)
            matrix[rr, cc] = 100

            matrix = matrix + chart

            return matrix
Ejemplo n.º 2
0
        def profitMeter(chart):
            matrix = np.zeros(shape=(half_scale_size * 2, timeFrame))
            yAxis = reMap(self.percentProfitReward, -3, 3, 84, 0, 84, 0)
            radius = reMap(self.fiatMoneyInvested, 0, 2000, 3, 10, 10, 1)

            if self.fiatMoneyInvested < 1:
                radius = 1

            rr, cc = draw.circle(yAxis, 42, radius=radius, shape=matrix.shape)
            matrix[rr, cc] = 100

            c = 255 - matrix
            np.putmask(chart, c < chart, c)
            chart += matrix

            return chart
Ejemplo n.º 3
0
        def profitMeter(chart):
            matrix = np.zeros(shape=(half_scale_size, timeFrame))
            yAxis = reMap(self.BTCPercentChange, -1.5,1.5, self.timeFrame,0, self.timeFrame, 0)
            xAxis = self.timeFrame / 2
            radius = reMap(self.fiatMoneyInvested, 0,2000,3,10, 10, 1)

            if self.fiatMoneyInvested < 1:
                radius = 1

            rr, cc = draw.circle(yAxis, xAxis, radius=2, shape=matrix.shape)
            matrix[rr, cc] = 100

            c = 255 - matrix
            np.putmask(chart, c < chart, c)
            chart += matrix

            return chart