주간 분기 차이 그래프 플러그인

저자:초목, 2020-02-29 21:42:15
태그:

헤지 분석을 위해 분기-주간 차트를 만들 수 있습니다.

플러그인은 거래 터미널에서 클릭 한 번으로 시작할 수 있으며 수수료가 없으며 수동 거래를 편리하게합니다.https://www.fmz.com/digest-topic/5051



var chart = { 
    __isStock: true,    
    title : { text : '差价分析图'},                     
    xAxis: { type: 'datetime'},                 
    yAxis : {                                        
        title: {text: '差价'},                   
        opposite: false,                             
    },
    series : [                    
        {name : "diff", data : []}, 

    ]
}
function main() {
    exchange.SetContractType('quarter')
    var recordsA = exchange.GetRecords(PERIOD_M5)
    exchange.SetContractType('this_week')
    var recordsB = exchange.GetRecords(PERIOD_M5)
    
    for(var i=0;i<Math.min(recordsA.length,recordsB.length);i++){
        var diff = recordsA[recordsA.length-Math.min(recordsA.length,recordsB.length)+i].Close - recordsB[recordsB.length-Math.min(recordsA.length,recordsB.length)+i].Close
        chart.series[0].data.push([recordsA[recordsA.length-Math.min(recordsA.length,recordsB.length)+i].Time, diff])
    }
    return chart
}

더 많은

토피오리$Cross can't rewrite! $Cross can't rewrite! $Cross can't rewrite! 어떡하지?

초목다시 $.PlotLine (dff) 로 바꾸고, 그래프 라이브러리를 클릭하고, 루프를 추가합니다. 당신은 거래 라이브러리를 참조하고 있습니까?

토피오리하지만, 이 프로젝트가 진행되고 있는 동안,

초목이 함수들은 다시 정의되지 않습니다.