def update_atradx_config(): #-------------------------------------# variable = atradx.get() a = ConfigUpdater('atradx', variable) a.run()
def update_chomf_config(): #-------------------------------------# variable = chomf.get() a = ConfigUpdater('chomf', variable) a.run()
def update_boll_weight_config(): #-------------------------------------# variable = bollW.get() a = ConfigUpdater('boll_weight', variable) a.run()
def update_fib_config(): #-------------------------------------# variable = fib.get() a = ConfigUpdater('fib', variable) a.run()
def update_boll_config(): #-------------------------------------# variable = boll.get() a = ConfigUpdater('boll', variable) a.run()
def update_boll_window_days_config(): #-------------------------------------# variable = bollWD.get() a = ConfigUpdater('boll_window_days', variable) a.run()
def update_rLT_config(): #-------------------------------------# variable = rLT.get() a = ConfigUpdater('rsi_oversold', variable) a.run()
def update_pct_config(): #-------------------------------------# variable = pct_chg.get() a = ConfigUpdater('pct_chg', variable) a.run()
def update_rHT_config(): #-------------------------------------# variable = rHT.get() a = ConfigUpdater('rsi_overbought', variable) a.run()
def update_eMAT_config(): #-------------------------------------# variable = eMAT.get() a = ConfigUpdater('expma_periods', variable) a.run()
def update_mcLT_config(): #-------------------------------------# variable = mcLT.get() a = ConfigUpdater('macd_periods_long_term', variable) a.run()
def update_mcST_config(): #-------------------------------------# variable = mcST.get() a = ConfigUpdater('macd_periods_short_term', variable) a.run()
def update_mALT_config(): #-------------------------------------# variable = mALT.get() a = ConfigUpdater('movavg_window_days_long_term', variable) a.run()
def update_sEL_config(stock_dict): #-------------------------------------# variable = sel.get() if len(variable) == 0: pass else: stocks_listbox.insert(1, variable) if len(stock_dict) > 4: stocks_listbox.delete(-1) stock_list = [variable] for k, v in stock_dict.items(): stock_list.append(v) stock_dict.pop(v, None) if len(stock_list) > 4: stock_list.pop() stock_list = list(set(stock_list)) stock_cnt = 1 for in_stock in stock_list: exec('stock_dict[\'stock' + str(stock_cnt) + "'] = " + "'" + in_stock + "'") stock_cnt += 1 a = ConfigUpdater('sel_stocks', (",".join(map(str, stock_list)))) a.run() return stock_dict