python 中的金融技术分析

发布于 2024-10-06 19:39:06 字数 1539 浏览 0 评论 0 原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

只有影子陪我不离不弃 2024-10-13 19:39:06

这里有一些想法...我只使用 Numpy、Scipy 和 Matplotlib 进行财务计算。

  • py-fi - 非常基本的财务功能
  • fin2py - 金融工具
  • Numpy/Scipy a> - 涵盖所有统计基础知识
  • Matplotlib - 绘制财务函数
  • RPy - R 的 Python 接口,允许使用 R 库
  • ystockquote - Yahoo! 的 Python API股票数据
  • QuantLib - 开源库(据说有 Python 绑定)
  • PyFinancial - 西班牙语文档
  • PyMacLab - “对进行动态宏观经济学研究有用的系列课程”
  • TSDB - 用于存储大量数据时间序列数据
  • PyVol - 金融时间序列的波动性估计

Here are a few thoughts... I have only used Numpy, Scipy, and Matplotlib for financial calculations.

  • py-fi - very basic financial functions
  • fin2py - financial tools
  • Numpy/Scipy - covers all of the statistics basics
  • Matplotlib - plotting financial functions
  • RPy - a Python interface to R allowing use of R libraries
  • ystockquote - Python API for Yahoo! Stock Data
  • QuantLib - Open source library (supposedly has Python Bindings)
  • PyFinancial - Docs in Spanish
  • PyMacLab - "Series of classes useful for conducting research in dynamic macroeconomics"
  • TSDB - for storing large volumes of time series data
  • PyVol - volatility estimation of financial time series
江挽川 2024-10-13 19:39:06

计算金融课程位于Coursera.org

他们使用名为 QSTK(QuantSoftware 工具包)
他们有一堆教程 在 wiki 页面上,您可以随时参加该课程
如果你想了解更多。

为了方便起见,我从下面的 wiki 页面复制了描述:

QSToolKit(QSTK)是一个基于Python的开源软件框架
旨在支持投资组合构建和管理。我们是
主要为金融学生、计算机学生构建 QSToolKit
学生和具有编程经验的定量分析师。你
不应期望将其用作桌面应用程序交易平台。
相反,请将其视为支持
建模、测试和交易的工作流程。

滚动浏览图库,查看可以使用 QSTK 轻松完成的各种操作。
如果您赶时间,可以跳至 QSToolKit_Installation_Guide。 

QSTK 的关键组件是:

- Data:数据访问包,可快速读取 
  历史数据(qstkutil.DataAccess)。
- 处理工具:使用pandas,一个专为时间序列设计的Python包 
  股权数据评估。
- 投资组合优化:使用 CVXOPT 库。
- 事件研究:高效的事件分析器,Event_Profiler。
- 模拟:一个简单的回测器,quicksim, 
  其中包括交易成本建模。

There is also a Computational Finnance Course on Coursera.org.

They use a Python Open Source Library called QSTK (QuantSoftware ToolKit).
They have a bunch of tutorials on the wiki page and you can always take the course
if you want to learn more.

For convenience I copied the description from the wiki page below:

QSToolKit (QSTK) is a Python-based open source software framework
designed to support portfolio construction and management. We are
building the QSToolKit primarily for finance students, computing
students, and quantitative analysts with programming experience. You
should not expect to use it as a desktop app trading platform.
Instead, think of it as a software infrastructure to support a
workflow of modeling, testing and trading.

Scroll through the Gallery to see the sorts of things you can do easily with QSTK.
If you are in a hurry, you can skip to the QSToolKit_Installation_Guide. 

Key components of QSTK are:

- Data: A data access package that enables fast reading of 
  historical data (qstkutil.DataAccess).
- Processing tools: Uses pandas, a Python package designed for time series 
  evaluation of equity data.
- Portfolio optimization: Using the CVXOPT library.
- Event studies: An efficient event analyzer, Event_Profiler.
- Simulation: A simple backtester, quicksim, 
  that includes transaction cost modeling.
旧街凉风 2024-10-13 19:39:06

您可能会发现这个技术指标存储库很有用。该库的工作方式与著名的 ta-lib 库类似,并且包含 talib 中未实现的指标

talibextensions

例如,您可以通过发送最高和最低向量以及周期数来使用最高高、最低低指标,方法如下:(从存储库中的测试中提取)

    from indicators import TalibExtension
    hhllMatrix = TalibExtension.HHLL(self.high, self.low, 5);

You might find this repository of technical indicators useful. The library works similarly to the famous ta-lib library, and contains indicators that were not implemented in talib

talibextensions

For example, you can use the Highest high, lowest low indicator, by sending high and low vectors, plus number of periods, in the following way: (Extracted from the test in the repository)

    from indicators import TalibExtension
    hhllMatrix = TalibExtension.HHLL(self.high, self.low, 5);
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文