MA5:MA(CLOSE,5),LINETHICK1,COLORGREEN; MA10:MA(CLOSE,10),LINETHICK1,COLORRED; MA30:MA(CLOSE,30),LINETHICK2,COLORYELLOW; 持倉:IF(CLOSE>=SAR(4,2,20),SAR(4,2,20),DRAWNULL),CIRCLEDOT,COLOR9428FF; 空倉:IF(CLOSE<=SAR(4,2,20),SAR(4,2,20),DRAWNULL),CIRCLEDOT,COLORC0C0C0; 現(xiàn)價(jià):CLOSE,COLORWHITE,NODRAW;{需要編寫選股關(guān)注微信公眾號(hào):程序化指標(biāo)} 十日漲跌: (C-REF(CLOSE,10))/REF(CLOSE,10)*100,COLORGREEN,NODRAW; 給:=EMA(C,2),COLORRED; 力:=EMA(SLOPE(C,9)*20+C,37); 買:=CROSS(給,力); 賣:=CROSS(力,給); STICKLINE(給>=力,LOW,HIGH,0.01,0),COLOR0000DD; STICKLINE(給>=力,CLOSE,OPEN,2,1),COLORRED; STICKLINE(給>=力,LOW,HIGH,0.01,0),COLOR0000DD; STICKLINE(給>=力,CLOSE,OPEN,2,1),COLORRED; STICKLINE(給<力,LOW,HIGH,0.01,0),COLORFFDD00; STICKLINE(給<力,CLOSE,OPEN,2,0),COLORFFFF00; STICKLINE(CROSS(給,力),OPEN,CLOSE,2.5,0),COLORYELLOW; STICKLINE(CROSS(力,給),OPEN,CLOSE,2.5,0),COLORWHITE; DRAWICON(買,L*0.975,25); DRAWTEXT(買,L*0.955,'殺'),COLORYELLOW; DRAWICON(賣,H*1.03,15); DRAWTEXT(賣,H*1.05,'逃'),COLORWHITE;
|