DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
AA:=EMA(CLOSE,10);
多头:STICKLINE(DIF>DEA,CLOSE,OPEN,8,0),COLORRED;
STICKLINE(DIF>DEA,HIGH,LOW,0,0),COLORRED;
空头:STICKLINE(DIF<=DEA,CLOSE,OPEN,8,0),COLORGREEN;
STICKLINE(DIF<=DEA,HIGH,LOW,0,0),COLORGREEN;
STICKLINE(DIF<=DEA AND AA>MA(CLOSE,50),CLOSE,OPEN,8,0),COLORYELLOW;
STICKLINE(DIF<=DEA AND AA>MA(CLOSE,50),HIGH,LOW,0,0),COLORYELLOW;
STICKLINE(DIF>DEA AND AA<MA(CLOSE,50),CLOSE,OPEN,8,0),COLOR77AAFF;
STICKLINE(DIF>DEA AND AA<MA(CLOSE,50),HIGH,LOW,0,0),COLOR77AAFF;
DRAWTEXT(CROSS(DIF,DEA),LOW*0.995, '怀玉B'),COLORYELLOW,LINETHICK3;
DRAWTEXT(CROSS(DEA,DIF),HIGH*1.01, '格格S'),COLORGREEN,LINETHICK3;