工作线:MA(CLOSE,8),COLORYELLOW,LINETHICK2;
生命线:MA(CLOSE,30),COLORMAGENTA;
趋势线:MA(CLOSE,60),DOTLINE,COLORBLUE;
ABC1:=STRCAT(HYBLOCK,2);
ABC2:=STRCAT(ABC1,DYBLOCK);
ABC3:=STRCAT(ABC2,2);
ABC4:=vol/CAPITAL*100>5;
ABC5:=EMA(CLOSE,12)-EMA(CLOSE,26);
ABC6:=EMA(ABC5,9);
ABC7:=(ABC5-ABC6)*2;
ABC8:=CLOSE>OPEN AND ABC7< 0 AND ABC7>REF(ABC7,1) AND REF(ABC7,1)< REF(ABC7,2) AND REF(ABC7,2)< REF(ABC7,3) AND REF(ABC7,3)< REF(ABC7,4) AND REF(ABC7,4)< REF(ABC7,5);
ABC9:=REF(ABC7,1)< 0 AND REF(ABC7,2)< 0 AND REF(ABC7,3)< 0 AND REF(ABC7,4)< 0 AND REF(ABC7,5)< 0 AND ABC4;
ABC10:=CLOSE/REF(CLOSE,1);
ABC11:=REF(ABC10< 1.01,1) AND ABC10< 1.03 AND ABC5< 0;
ABC12:=ABC8 AND ABC9 AND ABC11;
ABC13:=C>MA(C,30);
主力做多:=SMA((HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100,2,1),COLORGREEN,LINETHICK3;
主力做空:=SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,5,1)-8,COLORRED,LINETHICK3;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
macd:=(DIF-DEA)*2;
多头:=MACD>0;
起涨:=crOSS(主力做空,主力做多)AND 多头 AND ABC13;
DRAWTEXT(起涨,L*0.98,' ★起涨'),COLORYELLOW;
DRAWICON(起涨,L,9);
STICKLINE(起涨,OPEN,CLOSE,1,0),COLORMAGENTA;