Skip to content

Instantly share code, notes, and snippets.

@dear983604
dear983604 / Save_stock_info.ipynb
Last active September 24, 2022 06:32
Save stock information tutorial by csv & sql
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dear983604
dear983604 / candlestick.ipynb
Created March 10, 2019 16:22
Candlestick and frame tutorial
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dear983604
dear983604 / object_detection.py
Last active March 7, 2019 12:01
Using tensorflow model to realize object detection
'''
tensorflow model下載點 : https://github.com/tensorflow/models
Model : ssd_mobilenet_v1_coco_11_06_2017
webcam : inner webcam (default=0)
python version : 3.5 in Anaconda
tensorflow version : 1.13 cpu
opencv version : 4.0
os : windows 10
'''
#導入套件
@dear983604
dear983604 / Plot_frames.ipynb
Created March 3, 2019 14:05
Tutorial of add_subplot & add_axes
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dear983604
dear983604 / KD_self_build.py
Created February 1, 2019 09:07
Self-build KD value
#導入套件
%matplotlib inline
import datetime
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
#專門做『技術分析』的套件
from talib import abstract
@dear983604
dear983604 / KD_parameter.py
Created February 1, 2019 03:39
Modify KD parameter and evaluate the results
#導入套件
%matplotlib inline
import datetime
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
#專門做『技術分析』的套件
from talib import abstract
#專門抓台股的套件
import twstock
@dear983604
dear983604 / Talib_practice.py
Last active July 27, 2019 16:09
TA-Lab套件教學
#導入套件
%matplotlib inline
import datetime
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
#專門做『技術分析』的套件
from talib import abstract
@dear983604
dear983604 / pdr_fyf_ts.py
Last active September 24, 2022 05:08
Demontration of the differences between three libraries
#導入套件
import datetime
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
#設定爬蟲股票代號
sid = '0050'
#設定爬蟲時間
@dear983604
dear983604 / Dow_stock_analysis.py
Last active December 23, 2018 16:43
Dow stock analysis
#輸入套件
%matplotlib inline
import pandas as pd
import numpy as np
#輸入台股歷年股災資料
TAIEX = {'TAIEX_H':[10328.98, 6484.93, 7135, 9859.65, 9220.69, 10014.28, 11270.18],
'TAIEX_L':[3411.68, 3845.76, 5255.06, 3955.43, 6609.11, 7203.07, 9400.69]}
df_TAIEX = pd.DataFrame(TAIEX, index=['2000', '2002', '2004', '2007', '2011', '2015', '2018'])
df_TAIEX['TAIEX_dif'] = (df_TAIEX['TAIEX_H'] - df_TAIEX['TAIEX_L']) / df_TAIEX['TAIEX_H']