Finance-Python icon indicating copy to clipboard operation
Finance-Python copied to clipboard

python tools for Finance with the functionality of indicator calculation, business day calculation and so on.

Results 9 Finance-Python issues
Sort by recently updated
recently updated
newest added
trafficstars

使用DataAPI的时候找不到calculate_max_drawdown import DataAPI from PyFin.POpt.Calculators import calculate_max_drawdown ImportError: cannot import name 'calculate_max_drawdown'

环境: Mac OS Python3.6 安装方式: 用pip 和 源码 我用了两种安装方式(pip 和 源码),但是两个都是同样问题 安装库的时候一直停留在这行: PyFin/DateUtilities/Calendar.c:30589:5: warning: code will never be executed [-Wunreachable-code] PyErr_Format(PyExc_ValueError, "Assignment to slice of wrong length... ^~~~~~~~~~~~

我看了一下doc/下的.md文件,还是有许多地方不清楚。

`# -*- coding: utf-8 -*- from PyFin.Math.Accumulators.StatefulAccumulators import MovingCorrelationMatrix from PyFin.Analysis.TechnicalAnalysis.StatefulTechnicalAnalysers import SecuritySingleValueHolder `导入这个找不到 出现这个错误 `from PyFin.Math.Accumulators.StatefulAccumulators import MovingCorrelationMatrix ImportError: cannot import name 'MovingCorrelationMatrix' from 'PyFin.Math.Accumulators.StatefulAccumulators' (I:\Miniconda\envs\mycode\lib\site-packages\finance_python-0.7.3-py3.7-win-amd64.egg\PyFin\Math\Accumulators\StatefulAccumulators.cp37-win_amd64.pyd) ` 我用人家的库,需要有Finance-Python这个库,怎么安装好了老是出这种导入不了的错误啊. 而且这个我去找那个py文件里面就是这个?...

现阶段,数学累积器的基类``Accumulator``是一个非常重的类型定义。它的基础成员包含了许多不应该在它这一层就有定义的值,例如:``window``, ``isFull``等。特别是,``Accumulator``的``dependency``成员可以是另一个``Accumulator``,使得状态信息会非常复杂,同时也使得真正的``CompoundedValueHolder``变得没有用武之地。