def __init__(self): self.data_type_list = ["daily", "60min", "30min", "15min", "5min"] file_path = "input/user_stock_name_list.xlsx" self.user_stock_name_list = LoadUserData.load_user_stock_name_list( file_path) print self.user_stock_name_list self.creepy_data_from_wind_to_local()
def __init__(self): file_path = "input/HighLowPoint/user_data.xlsx" stock_code_list,stock_name_list,stock_buy_price_list,stock_sell_price_list = LoadUserData.load_user_data(file_path) stock_daily_data_list = LoadData.get_daily_stock_data(stock_code_list) self.fall_end_flag = [] self.rise_end_flag = [] print "begin running\n" self.run(stock_code_list,stock_buy_price_list,stock_sell_price_list)
def __init__(self): file_path = "input/HighLowPoint/user_data.xlsx" stock_code_list, stock_name_list, stock_buy_price_list, stock_sell_price_list = LoadUserData.load_user_data( file_path) stock_daily_data_list = LoadData.get_daily_stock_data(stock_code_list) self.fall_end_flag = [] self.rise_end_flag = [] print "begin running\n" self.run(stock_code_list, stock_buy_price_list, stock_sell_price_list)
def __init__(self): self.data_type_list = ["daily", "60min", "30min", "15min", "5min"] file_path = "input/user_stock_name_list.xlsx" self.user_stock_name_list = LoadUserData.load_user_stock_name_list(file_path) print self.user_stock_name_list self.creepy_data_from_wind_to_local()
def __init__(self): file_path = "input/user_data.xlsx" self.user_stock_code_list, self.user_stock_name_list, user_stock_buy_point_list, user_stock_sell_point_list = LoadUserData.load_user_data( file_path) self.daily_stock_data_all = LoadData.get_daily_stock_data( self.user_stock_code_list, "20150101") #存放收盘价 self.daily_stock_data = [] for ii in range(len(self.daily_stock_data_all)): temp = [] for jj in range(len(self.daily_stock_data_all[ii])): temp.append(self.daily_stock_data_all[ii][jj][4]) self.daily_stock_data.append(temp) #print self.daily_stock_data[0][-1],self.daily_stock_data[1][-1] self.reminder_info = [] self.run()
def __init__(self): file_path = "input/user_data.xlsx" self.user_stock_code_list,self.user_stock_name_list,user_stock_buy_point_list,user_stock_sell_point_list = LoadUserData.load_user_data(file_path) self.daily_stock_data_all = LoadData.get_daily_stock_data(self.user_stock_code_list,"20150101") #存放收盘价 self.daily_stock_data = [] for ii in range(len(self.daily_stock_data_all)): temp = [] for jj in range(len(self.daily_stock_data_all[ii])): temp.append(self.daily_stock_data_all[ii][jj][4]) self.daily_stock_data.append(temp) #print self.daily_stock_data[0][-1],self.daily_stock_data[1][-1] self.reminder_info= [] self.run()