def __init__(self, N1=5, N2=10, N3=21, N4=42, N5=84):
     self.KLines = KLine();
     # price
     self.MA1 = [];
     self.MA2 = [];
     self.MA3 = [];
     self.MA4 = [];
     self.MA5 = [];
     self.N1 = N1;
     self.N2 = N2;
     self.N3 = N3;
     self.N4 = N4;
     self.N5 = N5;
     self.status = None;
     # volume
     self.VMA1 = [];
     self.VMA2 = [];
     self.rmbvolumeN3 = 0;
     # points
     self.points = [[], [], []];
     # wave
     self.waves = [[], [], []];
     # trade time
     self.tradeSure = [{'buy':0, 'sell':0}, {'buy':0, 'sell':0}];
     self.tradeidx= 0;
Ejemplo n.º 2
0
 def __init__(self):
     self.KLines = KLine();
     self.lastidx = -1;
     self.data = [];
     self.MA23 = [];
     self.HHVVol = [];
     self.LimitAmount = 5 * 100000000;
Ejemplo n.º 3
0
 def __init__(self):
     self.KLines = KLine()
     self.lastidx = -1
     self.data = []
     self.MA = []
     self.N = 10
     self.HHVVol = []
     self.LimitAmount = 1 * 100000000
Ejemplo n.º 4
0
 def __init__(self, ValueN=10):
     self.KLines = KLine()
     self.Value = []
     self.Volume = []
     self.ValueN = ValueN
     self.status = None
     self.statuscost = 0
     self.statusbuycurrent = 0
     self.statusdelay = 0
     self.stats = []
     self.High = []
     self.Low = []
     self.lastidx = 0
Ejemplo n.º 5
0
    def __init__(self, market, period):
        self.market = market
        self.period = period
        self.KLines = KLine()
        self.MACD = MACD()
        self.KDJ = KDJ()
        self.WaveKline = WaveKline()
        self.WaveMACD_DIFF = WavePoint()
        self.WaveMACD_DEA = WavePoint()
        self.WaveMACD_MACD = WavePoint()
        self.WaveKDJ_K = WavePoint()
        self.WaveKDJ_D = WavePoint()

        # self.client = Client(access_key=RebotConfig.access_key, secret_key=RebotConfig.secret_key)
        self.begin = 0
Ejemplo n.º 6
0
 def __init__(self):
     self.KLines = KLine()
     self.lastidx = -1
     self.limitcount = 0
     self.data = []