0
Follow
0
Followers
请问KLineChat的副图如何设置精度?
c.plot(f"{sub:.4f}", "积分差", color='#FF00B1', overlay=False)
为什么没有完整的参数说明呢?这个图表支持调整精度吗?
Related Recommendations
Inventor Quant Workflow FAQ (Continuously Updated)Financial Magic Zone Global KOL RecruitmentFAQ Summary (Updating...)PINE Language Introductory Tutorial of FMZ QuantPrimary Tutorial of Strategy Writing with FMZ Quant Trading Platform (Must Read)Getting Started with FMZ Quant Trading Platform (Must Read)
Comment
All comments (8)
javascript
function main() {
// 调用KLineChart函数创建图表控制对象c
let c = KLineChart({
overlay: true,
})
// 使用现货交易所对象测试,获取K线数据。如果使用期货交易所对象测试,需要先设置合约
let bars = exchange.GetRecords()
if (!bars) {
return
}
// 在K线数据上遍历执行画图操作,画图操作中必须以```c.begin(bar)```函数调用作为起始,以```c.close()```函数调用作为结束。
bars.forEach(function(bar, index) {
c.begin(bar)
c.plot(bar.Close - bar.Open, "diff", {overlay: false})
c.close()
})
}
您好,是需要控制以上代码中diff数据在副图上的精度吗?是这个需求吗?
9 months ago
您好,目前封装的KLineChart 图表库,不支持设置标题,如果需要设置标题,可以使用Chart函数画图:
9 months ago
- 1
