(1)止盈線(xiàn)為灰色,跌破就落袋為安;工作線(xiàn)孫一個(gè)主升行情線(xiàn),股價(jià)再紅色工作線(xiàn)之上可以買(mǎi)股,低于紅色線(xiàn)休眠;生命線(xiàn)中長(zhǎng)線(xiàn)指標(biāo),一般用的少。(2)加入了買(mǎi),和 頂信號(hào),同時(shí)買(mǎi)和黃柱會(huì)做相應(yīng)的選股,選股公式為了不混淆,我放在文章第二欄目了。 源碼: 參數(shù)甲:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4.15),0.9); 參數(shù)乙:=REF(EMA(參數(shù)甲,3),1); 思路:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; K:=SMA(思路,3,1); D:=SMA(K,3,1); J:=3*K-2*D; 取前值:=REF(CLOSE,1); 參數(shù):=((SMA(MAX((CLOSE - 取前值),0),3,1) / SMA(ABS((CLOSE - 取前值)),3,1)) * 100); FF:=EMA(CLOSE,3); AA1:=AMOUNT/VOL; BB1:=L<AA1*0.9; CC1:=(C-REF(C,1))/REF(C,1)*100>1.2; DD1:=L<MA(C,5)*0.921; EE1:=VOL<MA(V,5)*1.5; FF1:=BB1 AND CC1 AND DD1 AND EE1; F:=100*(C-REF(C,1))/REF(C,1); 取值1:=IF(C<REF(O,1) AND F<0,1,0); 取值2:=IF(C<REF(O,2) AND F<0,1,0); TT3:=取值1=0 AND REF(取值1,1)=1 AND 取值2=0 AND REF(取值2,1)=1 ; TT4:=取值1=1 AND REF(取值1,1)=0 AND 取值2=1 AND REF(取值2,1)=0 ; Z1:=MA(C,13); ZX:=REF(Z1,13/2+1); DRAWICON(CROSS(ZX,C),H*1.01,2); DRAWTEXT(CROSS(CLOSE,參數(shù)乙)AND J<55,LOW,'買(mǎi)'),COLORRED; DRAWTEXT(CROSS(88,參數(shù)),HIGH * 1.02,'短頂'),COLOR00FFFF; STICKLINE(TT3,OPEN,CLOSE,3,0),COLORFF00FF; A1:=EMA(C,14)COLORWHITE,LINETHICK1; 終極:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW; 出擊:IF(終極>=0,REF(EMA(C,14),BARSLAST(CROSS(終極,0))+1),DRAWNULL)COLORRED,LINETHICK1; 休假:IF(終極<0,REF(EMA(C,14),BARSLAST(CROSS(0,終極))+1),DRAWNULL)COLORGREEN,LINETHICK1; STICKLINE(CROSS(終極,0),C,O,2,0)COLORYELLOW; STICKLINE(CROSS(0,終極),C,O,2,0)COLORGREEN; STICKLINE(CROSS(終極,0)OR CROSS(0,終極),REF(EMA(C,14),1),REF(EMA(C,14),1)*0.998,2,0)COLORWHITE; STICKLINE(ISLASTBAR,REF(EMA(C,14),1),REF(EMA(C,14),1)*0.998,5,0)COLORWHITE; 工作線(xiàn):=EMA(C,14); 止盈線(xiàn):EMA(C,7),LINETHICK1,COLORGRAY; 工作區(qū):IF(C>=工作線(xiàn) AND EMA(C,14)>=EMA(C,25),工作線(xiàn),DRAWNULL), COLORRED,LINETHICK2; 生命線(xiàn):EMA(C,25),COLORYELLOW; {DRAWICON(CROSS(工作線(xiàn),生命線(xiàn)),工作線(xiàn)*0.95,5);原句} IF(CROSS(工作線(xiàn),生命線(xiàn)),工作線(xiàn)*0.975,DRAWNULL),CIRCLEDOT,COLORRED; DRAWICON(CROSS(C,生命線(xiàn)) AND C>EMA(C,14),L*0.99,1); DRAWICON(COUNT(C<EMA(C,7),2)=2 AND EMA(C,7)>EMA(C,14) AND COUNT(C>止盈線(xiàn),6)>=3,H*1.03,2); |
|
來(lái)自: xiaoyin1206 > 《均線(xiàn)》