同花順變色主圖源碼(無(wú)源碼的請(qǐng)下載附件導(dǎo)入)
1、長(zhǎng)周期均線為綠色時(shí),不可操作;
2、長(zhǎng)周期為藍(lán)色,股價(jià)穿越短周期均線時(shí),可建50%的倉(cāng)位;
3、股價(jià)穿越長(zhǎng)期均線時(shí),可再建50%倉(cāng)位;
4、股價(jià)跌破短周期均線時(shí),減掉50%倉(cāng)位;
5、股價(jià)跌破長(zhǎng)周期均線時(shí),賣出全部股票;
6、長(zhǎng)周期均線為紅色時(shí),代表持股。短過(guò)長(zhǎng),蠟燭線中陽(yáng)或調(diào)空,可買;或短在長(zhǎng)上,連續(xù)2-3日小陽(yáng),成交量短在長(zhǎng)上,可買.
DIR1:=ABS(CLOSE-REF(CLOSE,5));
VIR1:=SUM(ABS(CLOSE-REF(CLOSE,1)),5);
ER1:=DIR1/VIR1;
CS1:=ER1*(0.8-2/8)+2/8;
CQ1:=CS1*CS1;
AMA1:EMA(DMA(CLOSE,CQ1),2) ,colorwhite;
DIR2:=ABS(CLOSE-REF(CLOSE,10));
VIR2:=SUM(ABS(CLOSE-REF(CLOSE,1)),10);
ER2:=DIR2/VIR2;
CS2:=ER2*(0.8-2/24)+2/24;
CQ2:=CS2*CS2;
AMA2:EMA(DMA(CLOSE,CQ2),2),colorgreen,LINETHICK2;
AMA3:IF(AMA2/REF(AMA2,1)>0.997,AMA2,DRAWNULL),colorblue,LINETHICK2;
AMA4:IF(AMA2/REF(AMA2,1)>1.001,AMA2,DRAWNULL),colorred,LINETHICK2;
MA$30:MA(CLOSE, 30),LINETHICK1;
|