AHC1:=CLOSE*VOL; AHC22:=EMA((EXPMA(AHC1,27)/EXPMA(VOL,27)+EXPMA(AHC1,54)/EXPMA(VOL,54)+EXPMA(AHC1,108)/EXPMA(VOL,108)+EXPMA(AHC1,316)/EXPMA(VOL,316))/4,34); 上轨:1.06*AHC22; 下轨:AHC22*0.94; STICKLINE(上轨>下轨,上轨,下轨,5,0),COLOR555555; DRAWKLINE(H,O,L,C); ZT:=REF(C,1)*1.1-C<0.01 AND H=C; 启爆:=CROSS(C,上轨) OR CROSS(C,下轨) AND ZT; DRAWTEXT(启爆,L,'启爆'),COLORCYAN; STICKLINE(启爆,C,O,3,1),COLORWHITE; STICKLINE(启爆,C,O,1,0),COLORGREEN;
强命线:=EMA(COST(81),10); 平线:HHV(强命线,60),COLORCYAN,DOTLINE; JH:DRAWTEXT(ISLASTBAR,平线,'---强命线'),COLORGREEN;
指导线:=EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4,2),LINETHICK1,COLORFFFFFF; 谦穗临界点:=MA(CLOSE,27),LINETHICK1,COLOR00FFFF; DRAWICON(IF(HHV(SUM(IF(C<WMA(C,2),V,0),4)/SUM(IF(C>WMA(C,2),V,0),4),5)>4 AND CROSS(2,SUM(IF(C<WMA(C,2),V,0),4)/SUM(IF(C>WMA(C,2),V,0),4)) AND C>=O,1,0),L*0.98,1); MA2:MA(C,60),COLORGREEN;
STICKLINE((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(C,1)),OPEN,CLOSE,2.8,0),COLORYELLOW; STICKLINE((REF(C,1)-C)*100/REF(C,1)>=(10-0.01*100/REF(C,1)),OPEN,CLOSE,2.8,0),COLOR007700; 买线:=EMA(C,4); 卖线:=EMA(SLOPE(C,20)*10+C,35); DRAWTEXT(CROSS(买线,卖线),LOW*1.00,'←买'),COLORRED; DRAWTEXT(CROSS(卖线,买线),HIGH*1.01,'←卖'),COLORGREEN; LC:=REF(CLOSE,1); RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100; DRAWTEXT(CROSS(90,RSI) , HIGH*0.98,'←逢高出局!'),COLOR00FF00 ; FF:=EMA(CLOSE,3); MA15:=EMA(CLOSE,21); DRAWTEXT(CROSS(MA15,FF),(HIGH * 1.02),'←拐点卖'),COLOR00FF00; DRAWTEXT(CROSS(FF,MA15),(LOW * 0.97),'←拐点买'),COLOR00FFFF; A:=(3*C+L+O+H)/6; X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+REF(A,20))/210; 主力成本:EMA(X,13),COLORFFFFE0; IF(C>=主力成本,主力成本,DRAWNULL),COLOR00ADCD,,LINETHICK2; DIFF:=EMA(CLOSE,3)-EMA(CLOSE,8); DEA:=EMA(DIFF,5); MACD := 2*(DIFF-DEA); X1:=EMA(DIFF,5)*5; X2:=((EMA(CLOSE,3)-EMA(CLOSE,8)))*5; A1:= CROSS(X2,X1) AND X1>=0; DRAWICON(A1,L*0.96,13); DRAWTEXT(A1,(LOW * 0.96),'←涨停回调点买'),COLORFFFFFF;
|