
pythonForFinance
文章平均质量分 95
LIQING LIN
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Anaconda_virtual env_Tensorflow_ipykernel_plotly_yfinance multi_level_index_DatetimeIndex为shortDate
最近系统更新后原先安装的TensorFlow和jupyter notebook都没了。原创 2024-10-21 15:32:43 · 1032 阅读 · 0 评论 -
eocc1_Findings_candlestick_ohlc_volume_get last week data sum()
except for A and B 除了 A 和 B 之外,每个信号的一天内(之前或之后)都会出现小幅高点或低点. Out of 11 signals in this figure, the method, a。原创 2023-11-12 16:14:26 · 244 阅读 · 0 评论 -
tsm2_2_Leverage_index_Sharpe Treynor Calmar semivariance_beta_Probability_Markov_Direct Linear_suppl
tsm2_2_Leverage_index_Sharpe Treynor Calmar semivariance_beta_Probability_Markov_Direct Linear_suppl原创 2023-07-06 21:40:27 · 589 阅读 · 0 评论 -
#1tsm2_mean_date xticklabel_histogram tick mark dist_Skewness Kurtosis_moment_P/E_t-Statist_returNAV
andthat iscurrentlyortonext期望或市场会或同样是错误的. That is not what is meant by the law of averages. Over a large sample, the bulk of events will be scattered分散theandthemDetectingts14_cb. It isfor the。原创 2023-06-29 03:58:32 · 13776 阅读 · 0 评论 -
tsm9_2Momentum_Oscillators_TSI_MFI_HPI_adx_psar_Rounded Tops_TRIX_Double Triple Smooth_macd_diverge
tsm9_2Momentum_Oscillators_TSI_MFI_HPI_adx_psar_Rounded Tops_TRIX_Double Triple Smooth_macd_diverge原创 2023-06-05 19:33:08 · 1881 阅读 · 0 评论 -
tsm9_Momentum_Ultimate Oscillators_MACDivergence index_Stochastic RSI_A/D Oscillator_RVI Vigor ADX
tsm9_Momentum_Ultimate Oscillators_MACDivergence index_Stochastic RSI_A/D Oscillator_RVI Vigor ADX原创 2023-05-14 11:11:18 · 1910 阅读 · 0 评论 -
Instal_tf_notebook_Spyder_tfgraphviz_pydot_pd_scikit-learn_ipython_pillow_NLTK_flask_mlxtend_gym_mkl
https://blog.csdn.net/Linli522362242/article/details/106537459:conda install tensorflowconda install jupyter notebookconda install Spyderpipinstall graphvizpip install tfgraphviz OR==>https://blog.csdn.net/Linli522362242/article/details/106...原创 2020-08-16 16:09:38 · 700 阅读 · 3 评论 -
n8_Visualizing Multivariate_sns_3D plot_matplotlib.dates_mpl_finance_aapl stock_EMA_RSI_Bollinger
When we have big data that contains many variables, the plot types in Chapter 7, Visualizing Online Data may no longer be an effective way of data visualization. We may try to cramp[kræmp]受限制的 as many variables in a single plot as possible, but the ov...原创 2021-11-12 08:19:35 · 1612 阅读 · 0 评论 -
cp11_old_14_WebIntegration
The Internet, or the Web, has evolved from some separate world into something that is everywhere and in everything. It has become a technology platform enabling a multitude许多 of different use cases. F...原创 2020-07-15 03:02:41 · 471 阅读 · 0 评论 -
cp11_13_Object Orientation And Graphical User Interfaces(安装install trait)
First, solve the problem. Then, write the code. — Jon JohnsonIt might be helpful to have (class/object) private attributes. These are generally indicated by one or two leading underscores, as the ...原创 2019-12-30 00:17:45 · 514 阅读 · 0 评论 -
11_14_TheFXCMTradingPlatform(str_DateTimeIndex
Retrieving DataFXCM provides access to historical market price data sets, such as tick data, in a pre-packagedvariant. This means that one can retrieve, for instance, compressed files from FXCM se...原创 2019-10-31 16:01:19 · 941 阅读 · 0 评论 -
cp11_15_TradingStrategies(dataframe.plot.scatter)2
https://blog.csdn.net/Linli522362242/article/details/102314389Deep Neural NetworksDeep neural networks (DNNs) try to emulate the functioning of the human brain. They are in general composed of an...原创 2019-10-15 03:47:21 · 392 阅读 · 0 评论 -
cp11_15_TradingStrategies(dataframe.plot.scatter)
Simple Moving Averages(SMAs)This section focuses on an algorithmic trading strategy based on simple moving averages and how to backtest such a strategy.简单移动平均线沿用最简单的统计学方式,将过去某特定时间内的价格取其平均值。简单移动平均线...原创 2019-10-14 02:05:05 · 3996 阅读 · 1 评论 -
Monte Carlo simulation_Implied volatilities_Black–Scholes–Merton (BSM)_Geometric_Geometric Brownian
import numpy as npfrom math import logimport matplotlib.pyplot as pltx = []y = []# Equation that defines profitdef generateProfit(d): global s if d>=s : return 0.6*...原创 2019-05-11 16:37:24 · 1584 阅读 · 1 评论 -
Cp4_DataTypesAndStructures
原创 2019-05-25 07:33:56 · 145 阅读 · 0 评论 -
cp5_DataVisualization_basic_introduction_matplotlib
cp5_DataVisualizationMay 31, 2019[1]: import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt %matplotlib inline[2]: np.random.seed(1000) y = np.random.s...翻译 2019-05-31 17:06:21 · 547 阅读 · 0 评论 -
多进程在windows安装的jupyter notebook 可能运行不了,显示一直运行
#jupyter Notebookimport multiprocessing as mppool = mp.Pool(processes =4)p1 = int(1e8 + 7)#Determine whether it is a prime numberdef is_prime(I): if I%2 ==0:################# retu...原创 2019-06-22 20:23:49 · 3786 阅读 · 1 评论 -
cp8_Performance Python ( ipyparallel, sorted(list.items(),key=lambda k_v: (k_v[1], k_v[0]))
•如果某个应用对于效率非常敏感,那么一般来说应当检查两个方面:1)使用了正确的实现框架,2)使用了正确的效率库。在Python中可以使用很多种库来提升效率。本章将介绍如下的库:•Cython,将Python与C框架结合起来进行静态编译•Ipython.parallel,局部或在某个集群进行并行运算•numexpr,快速数值计算•multiprocessing, Python内建的处...翻译 2019-08-19 14:59:17 · 1000 阅读 · 0 评论 -
cp9_MathematicalTools_np.linalg.lstsq VS (statsmodels)sm.OLS
import numpy as npimport matplotlib.pyplot as plt%matplotlib inlinedef f(x): return np.sin(x) + 0.5 * xxArr = np.linspace(-2 * np.pi, 2*np.pi, 50)plt.plot(xArr, f(xArr), 'b')plt.grid(True...原创 2019-07-17 17:31:29 · 1894 阅读 · 0 评论 -
cp10_Stochastics
import numpy as npimport numpy.random as nprimport matplotlib.pyplot as plt%matplotlib inlinethe rand function returns random numbers from the open interval [0,1) in the shape provided as a param...翻译 2019-08-04 19:37:38 · 1991 阅读 · 0 评论 -
Using OpenPyxl_ValueError: Row or column values must be at least 1
import openpyxl as oxlwb = oxl.Workbook()ws = wb.create_sheet(index=0, title='oxl_sheet')print(data)for r in range(data.shape[0]): for c in range(data.shape[1]): ws.cell(row=r, co...原创 2019-07-27 05:37:32 · 15131 阅读 · 1 评论 -
cp12_Excel Integration_Generating Workbooks(.xls and .xslx) 改变当前目录xlswings RunFrozenPython
import numpy as npimport pandas as pdimport xlrd, xlwtimport xlsxwriterpath='./' #current directoryGenerating Workbooks (.xls)a major drawback of xlwt is that it can only write spreadsheet fi...原创 2019-07-27 07:35:17 · 864 阅读 · 0 评论 -
cp11_statistics_dropna_np.isnan(raw).any()_columns==shape[1]_
Normality tests正态性检验A large number of important financial models, like the mean-variance portfoliotheory and the capital asset pricing model (CAPM), rest on the assumption thatreturns of securities...原创 2019-09-20 17:33:31 · 2393 阅读 · 0 评论 -
cp11(2nd)_statistics_dropna_np.isnan(raw).any()_columns==shape[1]_
https://blog.csdn.net/Linli522362242/article/details/99728616因为文件太大无法保存,所以分开Real DataThe example we use is a “classical” pair trading strategy, namely withgold and stocks of gold miningcompanie...原创 2019-09-20 17:41:26 · 698 阅读 · 0 评论 -
Mortgage Loan
A simple interest calculation is known to be P (1 + rt), where P is the principal amount, r is the interest rate, and t is the term,from decimal import Decimalimport matplotlib.pyplot as pltcolor...原创 2019-05-11 15:38:36 · 1118 阅读 · 0 评论