小编Mat*_*ats的帖子

Tradingview 定制研究

尝试在 Tradingview 中创建自定义研究,但在加载 Tradingview 小部件时出现以下错误:

Error: unexpected study id:abcd
    at Function.o.findStudyMetaInfoByDescription (library.4b362457b3a7eceed386.js:29)
    at y.createStudy (library.4b362457b3a7eceed386.js:718)
    at t.<anonymous> (index.jsx:178)
    at charting_library.min.js:1
    at e.fire (library.4b362457b3a7eceed386.js:16)
    at a (library.4b362457b3a7eceed386.js:22)
    at Object.l [as emitOnce] (library.4b362457b3a7eceed386.js:22)
    at ft (library.4b362457b3a7eceed386.js:441)
    at t (library.4b362457b3a7eceed386.js:442)
    at e.fire (library.4b362457b3a7eceed386.js:16)
Run Code Online (Sandbox Code Playgroud)

我一直按照https://github.com/tradingview/charting_library/wiki/Creating-Custom-Studies上的说明进行操作

我已经使用了说明中的模板,只是更改为我的研究名称“abcd”

__customIndicators = [
  // *** your indicator object, created from the template ***
  {
    // Replace the <study name> with your study name
    // The name will be used internally by the Charting Library

    name: 'abcd',
    //name: …
Run Code Online (Sandbox Code Playgroud)

tradingview-api

6
推荐指数
2
解决办法
1万
查看次数

标签 统计

tradingview-api ×1