科技美学

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2022年8月3日

摘要: taxonomy不置顶。 1. change source code $checked_ontop = (array_key_exists('checked_ontop', $parsed_args)) ? esc_attr( $parsed_args['checked_ontop'] ) : tr 阅读全文
posted @ 2022-08-03 11:35 chankuang 阅读(31) 评论(0) 推荐(0)

摘要: 1. Change source code <div class="wp-list-table-container" style="overflow-x:auto;"> <table class="wp-list-table <?php echo implode( ' ', $this->get_t 阅读全文
posted @ 2022-08-03 11:08 chankuang 阅读(68) 评论(0) 推荐(0)

2022年8月1日

摘要: 1. 股票池有港股和美股的数据 '环球': {'2823.HK': 100, '2800.HK': 500, '1299.HK': 200, 'qqq': 10, 'spy': 10, 'tlt': 10} 不同交易所的timeframe 2. 同步不同市場數據 for ucode, size in 阅读全文
posted @ 2022-08-01 13:05 chankuang 阅读(54) 评论(0) 推荐(0)

2022年7月22日

摘要: 1. 代碼問題 idx = cerebro.optstrategy(SwingStrategy, bar_executed_exist=days_step, drop_down_exist=-3, target_price_exist=8, rebound_exist=3, swing_period 阅读全文
posted @ 2022-07-22 15:29 chankuang 阅读(548) 评论(0) 推荐(0)

2022年7月19日

摘要: 1. Yahoo finincal data df0 = yf.download(ucode, date_start, date_end, auto_adjust = False ) 用yfinance抓取指數數據。 2. Backtracker has $0 buy price after tra 阅读全文
posted @ 2022-07-19 11:45 chankuang 阅读(74) 评论(0) 推荐(0)

2022年7月15日

摘要: 由於Wordpress visual composer是用cache里的domain config params,所以會出現不更新的問題。 1. Visual composer source code $uploadDir = wp_upload_dir(null, true, true); wp- 阅读全文
posted @ 2022-07-15 14:23 chankuang 阅读(22) 评论(0) 推荐(0)

2022年6月26日

摘要: 1. 幸存者理论只选择幸存者百倍股(腾讯,平果),却忽略了无数已衰落的企业(阿里)。 2. 后视镜理论错误使用了未来的数据,如a. 当天的收盘价。b. 技术指标含有未来的数据。 3. 单一市场适用策略只适用於A50,却不适用於恒指。如果增加市场,策略就不适用,即该策略是无效。 4. 过度调优叁数过度 阅读全文
posted @ 2022-06-26 11:21 chankuang 阅读(180) 评论(0) 推荐(0)

2022年6月17日

摘要: 1. git global url config error npm ERR! C:\Program Files\Git\cmd\git.EXE ls-remote -h -t git://github.com/frozeman/WebSocket-Node.git It is a wrong gi 阅读全文
posted @ 2022-06-17 14:09 chankuang 阅读(67) 评论(0) 推荐(0)

2022年6月16日

摘要: 1.0 edit fontsize {root}\venv\Lib\site-packages\pyfolio\plotting.py def plotting_context(context='notebook', font_scale=1.0, rc=None): line 58, scale 阅读全文
posted @ 2022-06-16 11:10 chankuang 阅读(54) 评论(0) 推荐(0)

摘要: 1.0 Python Python 3.6.8 (must use this python version) 2.0 requirements.txt backtrader==1.9.76.123 pyfolio==0.9.2 zipline==1.3.0 pandas==0.22.0 yfinan 阅读全文
posted @ 2022-06-16 10:44 chankuang 阅读(418) 评论(0) 推荐(0)