0
konzentrieren Sie sich auf
0
Anhänger

Kann ich das goldene Kreuz und das tote Kreuz auf diese Weise beurteilen?

Erstellt in: 2018-09-13 14:49:12, aktualisiert am:
comments   2
hits   2007
var macd = TA.MACD(records, 12, 26, 9);

var M1 = macd[2][macd[2].length-2];
var M2 = macd[2][macd[2].length-3];
// 金叉

if(M2<0 && M1>0){
    return 1;
} 
// 死叉
if (M2>0 && M1<0) {
    return 2;
}