DIF:EMA(CLOSE,12)-EMA(CLOSE,26),colorred,LINETHICK2;DEA:EMA(DIF,9),colorwhite,LINETHICK2;MACD:(DIF-DEA)*2,COLORSTICK;DRAWTEXT(CROSS(DIF,DEA),DIF-0,'建仓'),colorred;DRAWTEXT(CROSS(DEA,DIF),DIF+0,'空仓'),colorgreen;建仓:IF(DIF<0,DIF,0),coloryellow,LINETHICK2;加仓:IF(DIF<0,0,DIF),colorred,LINETHICK2;白线破仓:IF(DIF<DEA,DIF,DEA),colorwhite,LINETHICK2;趋势强弱:IF(DIF>DEA,DEA,DEA),COLORFF937F,LINETHICK2;N:=55;VAR2:=LLV(LOW,30);LS:=C/REF(C,1)>1.048AND C=H ANDBETWEEN(FORCAST(V,4),0.2*FORCAST(V,12),2.1*FORCAST(V,5));精确涨停:FILTER(LS,28)*0.10,,coloryellow;VAR4:=IF(CROSS(DIF,DEA),0.10,0.05);LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;VARB:=SMA(MAX(CLOSE-LC,0),7,1)/SMA(ABS(CLOSE-LC),7,1)*100;VARC:=SMA(MAX(CLOSE-LC,0),13,1)/SMA(ABS(CLOSE-LC),13,1)*100;VARD:=BARSCOUNT(CLOSE);机会来临:REF(IF((MA(C,5)-C)/C>0.04 AND(MA(C,10)-MA(C,5))/MA(C,5)>0.04,0.12,0),1),COLORF00FF0;A2:=(DIF-REF(DEA,1))/REF( DEA,1)*100;DRAWTEXT(CROSS(LS,精确涨停),0.12,'涨停 '),coloryellow;