DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
X_2:=REF(CLOSE,1);
X_3:=IF((CLOSE-X_2)*100/X_2>=5-0.01*100/X_2,1,0);
macd:=(DIF-DEA)*2;
B1:=CNT0:=BARSLASTCOUNT(B1);
TJ21:=NT0=9 ;
TJ23:=ISLASTBAR AND BETWEEN(NT0,5,8);
DRAWTEXT(NT0=9,MACD*0.98,'9'),COLORRED;
好运120:REF(MACD/2,BARSLAST(MACD=HHV(MACD,120))),COLORA67D3D ,LINETHICK1;
好运250:REF(MACD/2,BARSLAST(MACD=HHV(MACD,250))),COLORGREEN,LINETHICK1;
XG8:=NOT(REF(好运120,1)=好运120);
STICKLINE(XG8,0,MACD,0,0),COLORYELLOW;
STICKLINE(MACD>=好运250,好运250,MACD,0,0),COLORMAGENTA;
DIFF:=( EMA(CLOSE,12) - EMA(CLOSE,26));
X_1:=EMA(CLOSE,9);
主升浪1:=EMA(X_1*1.14,5),;
主升浪2:=EMA(CLOSE,3),;
霍币3号:STICKLINE(主升浪2>主升浪1,0,0.03,5,0),COLORRED;