06 2023 档案

vnpy 平台普通的发单逻辑规则
摘要:前一根k线出信号( send_order) ,后一根K线开始前计算是否能成交。 用当根K线的开盘价计算,并期望发单会造成实盘与回测不符的现象。 今天对比交易信号时,才发现这个规则,记录一下。 阅读全文

posted @ 2023-06-30 16:51 金凯旋 阅读(14) 评论(0) 推荐(0) 编辑

qcustomplot 绘图 5
摘要:需要解释的类: QCPGraphData data; plot 使用的时间通常是以秒为单位的, 所以,要将时间换算成秒填入key 设置x 轴时间显示格式:(默认只显示6个, 设定后,显示数量由dataTicker设置) 时间轴如果过大,显示会发生错误。 QSharedPointer<QCPAxisT 阅读全文

posted @ 2023-06-17 13:36 金凯旋 阅读(63) 评论(0) 推荐(0) 编辑

qcustomplot 绘图 4
摘要:关注点: 设置背景、增加文字图层、第二坐标显示控制、设置label显示位置 auto customPlot = plot; customPlot->axisRect()->setBackground(QPixmap("./solarpanels.jpg")); customPlot->addGrap 阅读全文

posted @ 2023-06-17 12:24 金凯旋 阅读(48) 评论(0) 推荐(0) 编辑

qcustomplot 绘图 3
摘要:内容:包络线(填充),散点图,线型,errorBar等 不同坐标的显示技巧:1、设置不同的x轴,2、QCPErrorBars 特有的 setDataPlottable(...); plot->legend->setVisible(true); plot->legend->setFont(QFont( 阅读全文

posted @ 2023-06-17 11:54 金凯旋 阅读(100) 评论(0) 推荐(0) 编辑

qcustomplot 绘图 2
摘要:这个例子涉及:双坐标,坐标联动、坐标自适应、多线绘制,图形填充,图形缩放 plot->addGraph(); plot->graph(0)->setPen(QPen(Qt::blue)); // line color blue for first graph plot->graph(0)->setB 阅读全文

posted @ 2023-06-17 11:32 金凯旋 阅读(50) 评论(0) 推荐(0) 编辑

 qcustomplot 绘图 1
摘要:周末,闲读,翻翻qcustomplot 例子。 以前用qchart, 实在无法接收这个类的低效。打开qchart, 仿佛在推一个滞重的铁门。qcustomplot 感觉轻快灵动。 1. 准备CMakeLists.txt cmake_minimum_required(VERSION 3.5) proj 阅读全文

posted @ 2023-06-17 11:25 金凯旋 阅读(52) 评论(0) 推荐(0) 编辑

qt 设置小问题
摘要:以往用qt都正常,昨晚升级了一下vs, 结果项目编译不正常了。 新建其他项目能够正常运行。 处理方法: build->Clear Cmake configuration. 阅读全文

posted @ 2023-06-07 11:22 金凯旋 阅读(6) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

导航

统计

点击右上角即可分享
微信分享提示