From e556104b1e2e01c98ceb1c16448cd4681ef70105 Mon Sep 17 00:00:00 2001 From: admin <admin@example.com> Date: 星期四, 22 五月 2025 14:10:31 +0800 Subject: [PATCH] 1.整理删除不必要的todo 2.将主要使用的策略分支弃用elif 3.修改有概念分支中瞬时量幅比的特别门槛(大市值票不看瞬时量幅比) 4.打印行情-精选-板块的具体数据 --- main.py | 14 +------------- 1 files changed, 1 insertions(+), 13 deletions(-) diff --git a/main.py b/main.py index 73c9a12..4efb767 100644 --- a/main.py +++ b/main.py @@ -71,18 +71,6 @@ # 鍒濆鍖栨媺鍙栧綋鏃ヤ拱鍏ヤ唬鐮� TodayBuyCodeManager() - # todo 2025-03-25 娴嬭瘯鏃犺鍗冲彲鍒犻櫎涓嬮儴娉ㄩ噴 - # # 鍏堜娇鐢╦son.load()鐩存帴浠庢枃浠朵腑璇诲彇銆愬凡缁忓瓨鍌ㄥ湪鏈湴鐨凨绾挎寚鏍囧睘鎬у瓧鍏搞�戝苟瑙f瀽JSON鏁版嵁 - # if os.path.exists(constant.K_BARS_PATH): - # with open(constant.K_BARS_PATH, 'r', encoding='utf-8') as f: - # data_cache.all_stocks_all_K_line_property_dict = json.load(f) - # print( - # f"data_cache.all_stocks_all_K_line_property_dict鐨勪釜鏁�==={len(data_cache.all_stocks_all_K_line_property_dict)}") - - # # 鑾峰彇鐩爣鏍囩殑K绾�---鍒濆鍖� - # all_K_line.main_index_k_line_history.init(data_cache.DataCache().today_date, data_cache.DataCache().next_trading_day, data_cache.DataCache().main_index_stocks) - # # 鐩存帴璋冪敤涓昏鎸囨暟K绾垮啓鍏ユ湰鍦版枃浠� - # all_K_line.main_index_k_line_dict_write() # 绗竴姝ワ細鍒濆鍖朿ontext鍑芥暟锛屽苟寮�鍚幏鍙栧疄鏃舵暟鎹殑绾跨▼ @@ -180,7 +168,7 @@ limit_up_price = tool.get_limit_up_price(code, self.__pre_close_price_dict[code]) if code in self.__last_price_dict: if abs(limit_up_price - self.__last_price_dict[code]) < 0.0001 < abs(limit_up_price - price): - # TODO 澶勭悊鐐告澘閫昏緫 + # 澶勭悊鐐告澘閫昏緫 # 鐩戝惉浜嗙偢鏉夸簡瑕佸仛鐨勫嚱鏁� try: selling_strategy.explosion_strategy(code) -- Gitblit v1.8.0