You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
strange ba322e3950 pg batch write, boll indicator 9 months ago
.vscode trading sub grpc stream kline 11 months ago
api pg batch write, boll indicator 9 months ago
cmd pg batch write, boll indicator 9 months ago
config pg batch write, boll indicator 9 months ago
internal pg batch write, boll indicator 9 months ago
pkg pg batch write, boll indicator 9 months ago
.gitignore consul service discovery 11 months ago
README.md pg batch write, boll indicator 9 months ago
docker-compose.yml backtest insert ck 10 months ago
generate.go indicator 11 months ago
go.mod pg batch write, boll indicator 9 months ago
go.sum pg batch write, boll indicator 9 months ago

README.md

菜单

  • 币种管理
    • 增改查禁用删
  • 交易所账户管理
  • 订单管理
  • 策略管理
    • 加载,更新,平仓
  • (管理员)权限管理
  • (管理员)用户管理

1.看盘功能

  • 币种管理-添加币种
  • 初始化币种,拉取历史k线(1s-3个月),订阅实时k线,补齐停机/网络错误实时曲线缺失(自动检查,存入时检查相邻时间数据)
  • 币种数据落库, 币种数据缓存
  • websocket gateway, grpc stream, 订阅列表(k线/行情/深度)->实时推送前端 2.自定义指标功能
  • go plugin
  • MACD 指标
  • 指标订阅列表 grpc stream 3.自定义策略功能
  • go plugin
  • 交易管理-订单
  • 平均价交易信号
  • 移动止盈止损
  • 风险管控 4.策略模拟盘交易观察
  • 订阅列表-交易管理 grpc stream 盈亏/持仓量 5.管理系统 6.go plugin 指标库 7.go plugin 策略库 8.ai trade

victoriametrics

下单策略(胜率/方向正确率),止损参数 每一单隔离

聚合信号, (BTC, GOLD, Oil...), both kline close

  • AggregationSignalService
  • 时间窗口3/5s, 过期无效(监控信号成功率/延迟率)

k线推送

  • 实时k线 -> 内存聚合
  • closed -> cache -> async tsdb -> kline signal
  • query(监控成功率/缓存命中率) -> cache -> tsdb

价格/交易量精度->tsdb读写存储 kline时间窗口

Dragonfly redis替换

CCXT – 加密货币交易所交易库

绘图框架

tradingview advanced-charts:

DXcharts:

golang-clash:

strategy0: 趋势追踪,增长趋势,

  1. 寻找历史极值点(n根k线内),差值比例
  2. 当前属于波段增长点
  3. 买卖点画叉
  4. 移动止盈,固定止损,风险评估止损

量化框架参考

investing-algorithm-framework

回测信号可视化, /trading/strategySeries 一样从postgres拉信号/订单数据

go plugin插件化(指标/策略), 调度docker容器运行回测, grpc资源访问

确定潜在的可调参数

Wasm(WebAssembly), 接口类型WIT