# mdtx-online **Repository Path**: arielran/mdtx-online ## Basic Information - **Project Name**: mdtx-online - **Description**: Online algorithms used in mdtx - **Primary Language**: C++ - **License**: BSD-3-Clause - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 3 - **Created**: 2021-03-22 - **Last Updated**: 2021-03-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # mdtx-online #### 介绍 技术指标在线更新算法库,多数算法支持O(1)更新,方便同学们开发高性能的实时策略。 mdtx-online是研究/回测/交易系统mdtx的一部分,其他部件将陆续开源。 #### 软件架构 全部算法共分三类: 1. 更新器(updater/*): 基础算法类,提供insert,remove方法进行数据点的插入和移除。部分类提供roll方法方便一次进行滚动计算。 2. 指标(indicator/*): 指标计算类,基于updater构建的在线指标算法。每个指标类都是带状态仿函数(functor),使用迭代器(iterator)或指针进行在线指标计算。 3. 聚合器(aggregator/*): 数据聚合类,每个聚合器都是带状态仿函数,使用迭代器或指针进行在线数据聚合。 函数库唯一的外部依赖是boost/circular_buffer,环形缓冲用于记录窗口数据。 #### 安装教程 函数库只包含头文件,直接 ``` #include mdtx-online/mdtx-online.h ``` 使用。定义宏MDTX_USE_ARMADILLO启用Armadillo相关向量功能。 #### 参与贡献 1. Fork 本仓库 2. 新建分支 3. 提交代码 4. 新建 Pull Request