MA(C,9),LINETHICK2,COLORYELLOW;
MA(C,21),LINETHICK2,COLORRED;
IF(MA(C,9) REF(MA(C,9),1),MA(C,9),DRAWNULL),LINETHICK2,COLORBLUE;
IF(MA(C,21) REF(MA(C,21),1),MA(C,21),DRAWNULL),LINETHICK2,COLORGREEN;
TT1:=HHV((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2),4);
TT2:=REF((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2),1);
TT3:=((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2) TT2 );
TT4:=(REF((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2),1) REF((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2),2));
VAR1:=(((( TT1 0) AND TT3) AND TT4 ) AND (REF((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2),2) REF((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2),3)));
DRAWTEXT(VAR1,L*0.98,'★短买'),COLORYELLOW;{www.9m8.cn 九毛八公式指标网}
DRAWTEXT(CROSS(MA(C,3),MA(C,9)) AND C =REF(C,1) AND C O,L*0.98,'★加仓'),COLORMAGENTA;