Can I say that about the golden fork and the dead fork?

Author: sansydj, Created: 2018-09-13 14:49:12, Updated:

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;
}    

More

13981928026How do you do that with Python?

The Little DreamThere is a _Cross function in the API documentation that can be used to determine the cross.