Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/401.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript MACD&x2B;高级图表绘图问题_Javascript_Highcharts_Highstock_Indicator - Fatal编程技术网

Javascript MACD&x2B;高级图表绘图问题

Javascript MACD&x2B;高级图表绘图问题,javascript,highcharts,highstock,indicator,Javascript,Highcharts,Highstock,Indicator,我被困在海图的MACD绘图中 我不明白我哪里做错了。请遵循链接,尝试仅为MACD求解和绘制图形 $(function () { $('#container').highcharts({ chart: { type: 'column' }, xAxis: { type: 'datetime', }, y

我被困在海图的MACD绘图中

我不明白我哪里做错了。请遵循链接,尝试仅为MACD求解和绘制图形

$(function () {
        $('#container').highcharts({
            chart: {
                type: 'column'
            },
            xAxis: {
               type: 'datetime',
            },
            yAxis:  [{ // Primary yAxis for volume
                title: {
                    text: 'volume',
                    style: {
                        color: 'blue'
                    }
                },
                height: '60%',

            },{ // Secondary yAxis for Return
                     height: '60%',
                     opposite: true
            },{
                labels: {
                    align: 'left',
                    x: -3
                },
                title: {
                    text: 'MACD'
                },
                top: '65%',
                height: '35%',
                opposite: true
            }],
               plotOptions: {
                column: {
                    pointPadding: 0.2,
                    borderWidth: 0
                }
            },
            series: [ { color: "blue",
                        data: [0.06694678963061322,0.22184874961635637,1,1.031408464251624,0.6989700043360187,1e-7,0.47712125471966244,1e-7,0.17609125905568124,0.6989700043360187,1e-7,1e-7,1e-7,0.47712125471966244,1e-7,0.47712125471966244,0.0791812460476248],
                        id: "left_bar",
                        name: "Sentiment",
                       type: "column",
                      },{
                        color: "#F09413",
                        data: [50,49.805,50.024142,51.9900907806,54.0333013483,56.1568100913,58.3637727279,60.5991052233,62.7140139956,65.2100317526,68.5422643752,72.0447740848,75.7262620405,80.3758545298,85.3109319979,89.457043293,3.9835696837],
                        id: "right_bar",
                        name: "Price",
                        type: "line",
                        yAxis: 1
                      },{
                        algorithm: "MACD",
                        linkedTo: "right_bar",
                        name: "MACD",
                        showInLegend: true,
                        type: "trendline",
                        yAxis: 1
                     }
                    ]
        });
    });

根据代码:看起来周期是硬编码的,所以这就是为什么不计算macd的原因。你的分数不够。

我已经更新了。现在我有了粘贴时间,并将句点设置为1。但仍然存在的问题是,所以请联系这个插件的作者,因为它是由第三方开发者编写的。