jones2000 / HQChart

HQChart - H5, 微信小程序 沪深/港股/数字货币/期货/美股 K线图(kline),走势图,缩放,拖拽,十字光标,画图工具,截图,筹码图. 分析家语法,通达信语法,(麦语法),第3方数据替换接口
https://jones2000.github.io/HQChart/webhqchart.demo/samples/kline_index_edit.html
Apache License 2.0
2.86k stars 735 forks source link

请教如何自定义数据渲染 #196

Closed zyf540860996 closed 2 months ago

zyf540860996 commented 6 months ago

求教,如何自定义主图下面其他图形的数据,

image
jones2000 commented 6 months ago

HQChart使用教程49-指标配置项说明

` Windows: [ { Index:"MA" }, { API: { Name:'窗口2自定义指标', Script:null, Args:null, Url:'http://xxxxxx' } }, { API: { Name:'窗口3自定义指标', Script:null, Args:null, Url:'http://xxxxx' }, },

 ], //窗口指标

`

linannan7777 commented 4 months ago

Url返回的数据格式是什么样的?

jones2000 commented 4 months ago

url随便写,http/https开头就可以。 在networkfilter能截获的

linannan7777 commented 4 months ago

我指的是通过url请求返回的数据对象格式应该是什么样子?请问有文章讲解吗?我看到部分源码里面要求code为0,要有outdata和stock对象,具体是怎样的

jones2000 commented 4 months ago

image