notes_works/量化交易系统建议/09_解耦设计实现灵活架构.md
zhangkun9038@dingtalk.com 4380e95e00 2025-04-07 13:07:53: ...
2025-04-07 13:08:02 +08:00

36 lines
822 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
date:
<% tp.date.now ("YYYY-MM-DD HH:mm:ss") %>:
tags:
title:
---
# 解耦设计实现灵活架构
## 数据采集与存储模块
- 使用 GoCCXT 获取各大交易所的市场数据。
- 将数据存储到 Redis 进行缓存。
## 特征处理模块
- 从初级数据中提取高阶特征,可能需要用到额外的第三方库来计算 MACD、RSI 等技术指标。
## 缓存模块
- 使用 Redis 存储中间数据和计算结果。
## 数据存储模块
- 将计算后的特征数据存入 Elasticsearch。
## 调度模块
- 根据命令行参数(如 startTime 和 endTime将数据抓取和计算过程拆分成小段并按需执行。
## 总结
通过上述设计,你可以实现一个既能运行基于规则的策略,又能灵活引入机器学习策略的量化交易系统。