原创 量化分析之(三)均線突破平臺處理

突破60、120、250日均線平臺,週期可選 #!/usr/bin/env python # -*- coding: utf-8 -*- # @license : (C) Copyright 2017-2020 # @Time :

原创 量化分析之(二)均線多頭處理

對於碼農來說,只能上code了,可以選擇均線多點來判斷當前均線是否處於多頭狀態。 import copy from gpx.common.gpc import * import progressbar as pb # logger =

原创 pandas報錯Try using .loc[row_indexer,col_indexer] = value instead

D:\Program Files (x86)\Python37-32\lib\site-packages\pandas\core\indexing.py:845: SettingWithCopyWarning: A value is

原创 tushare 之get_today_all修復接口完整code

#!/usr/bin/env python # -*- coding: utf-8 -*- # @license : (C) Copyright 2017-2020. # @contact : xsophiax # @Time :

原创 量化分析之倍量處理(一)

#!/usr/bin/env python # -*- coding: utf-8 -*- # @license : (C) Copyright 2017-2020. # @contact : [email protected] # @Time

原创 VC2019 - Debug時候出現 Script Error An error has occurred in the script on this page. 解決辦法

VS2019 Debug時候出現 Script Error An error has occurred in the script on this page. 解決辦法

原创 VC2019 - error LNK2026: 模塊對於 SAFESEH 映像是不安全的

在 VC2019使用外部lib時,有會出現 “error LNK2026: 模塊對於 SAFESEH 映像是不安全的”。 如何解決呢? 在當前工程的屬性頁中,填入/SAFESEH:NO

原创 backtrader學習筆記(一).SMA

#!/usr/bin/env python # -*- coding: utf-8 -*- # @license : (C) Copyright 2017-2020. # @Time : 2020/5/23 13:01 # @Fi

原创 VC2019 - error LNK2026: module unsafe for SAFESEH image 解決

在使用VS2019引用外部lib可能會出現如下錯誤顯示:  解決方式1: 解決方式2:

原创 Python學習筆記之argparse高級使用

       在有些開發中,尤其是小工具中,有時會用到命令行輸入,那怎麼樣把命令行輸入做的美觀,顯得高大上呢。 如下所示,請仔細看註釋說明: # -*- coding: utf-8 -*- import argparse _args

原创 PyInstaller打包異常問題

前幾天在使用PyInstaller打包一個程序時,發現PyInstaller怎麼用都顯示一個錯誤提示: PyInstaller cannot check for assembly dependencies. Please instal

原创 tushare 之get_today_all出現ValueError No found when decoding object value問題

在使用tushare.get_today_all出現ValueError: No ':' found when decoding object value問題改如何解決呢? 這是你會發現,其實get_today_all從網頁獲取的數據時正

原创 cython - 函數調用之返回Python list

1. primes.pyx def primes(int nb_primes): cdef int n, i, len_p cdef int p[1000] if nb_primes > 1000:

原创 cython - 函數調用之fib

1. fib.pyx # fib.pyx from __future__ import print_function def fib(n): """Print the Fibonacci series up to n."""

原创 backtrader學習筆記(三).MACD

#!/usr/bin/env python # -*- coding: utf-8 -*- # @license : (C) Copyright 2017-2020, ZGMicro.com. # @contact : 5509@163