AAA:=(3*C+H+L+O)/6; VAR1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36; VAR2:=(HHV(VAR1,5)+HHV(VAR1,10)+HHV(VAR1,20))/3; VAR3:=(LLV(VAR1,5)+LLV(VAR1,10)+LLV(VAR1,20))/3; VAR4:=(HHV(VAR2,5)+HHV(VAR2,10)+HHV(VAR2,20))/3; VAR5:=(LLV(VAR3,5)+LLV(VAR3,10)+LLV(VAR3,20))/3; VAR6:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3; DRAWBAND(VAR1,RGB(155,50,50),VAR6,RGB(250,250,0)); 短線:VAR1,COLORWHITE; 中線:VAR6,COLORYELLOW; 下跌:IF(VAR1=VAR6,VAR6,DRAWNULL),COLORGREEN; TJ1:=VOL=HHV(VOL,10)AND VOL>2*REF(VOL,1)AND CLOSE>VAR1; 獲利盤%:WINNER(CLOSE)*100,NODRAW,COLORMAGENTA; 套牢盤%:(1-WINNER(C))*100,NODRAW,COLORFF9933;
AA05:=MA(C,5),LINETHICK3,COLOR0099CC; 五日乖離率:=(C-AA05)/AA05*100; BB05:=ATAN((AA05/REF(AA05,1)-1)*100)*180/3.1416; 速度5:=SMA(EMA((AA05-REF(AA05,1))/REF(AA05,1),3)*100,3,1); 加速度5:EMA((速度5-REF(速度5,1)),3),NODRAW;
短趨:= (8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36; 中趨:=(LLV(短趨,2)+LLV(短趨,4)+LLV(短趨,6))/3;
TTJ1:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>短趨; 立樁量:=FILTER(TTJ1,5); TTJ2:=IF(BARSLAST(立樁量)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(立樁量)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(立樁量)=3 AND CLOSE>REF(HIGH,3),1,0))); 突破:=TTJ2=1; TTJ3:=IF(BARSLAST(立樁量)=1 AND CLOSE>REF(LOW,1),1,IF(BARSLAST(立樁量)=2 AND CLOSE>REF(LOW,2),1,IF(BARSLAST(立樁量)=3 AND CLOSE>REF(LOW,3),1,0))); 三天法則:=TTJ3=1; 成立:=三天法則 AND 突破; 條件成立:=FILTER(成立,3);
DRAWTEXT(條件成立,L*0.998,'立樁成立'),COLORYELLOW;
X1:=(C+L+H)/3; BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10; EMA8:=EMA(C,8); DRAWTEXT(FILTER(BB13>1 AND EMA(X1,13)>REF(EMA(X1,8),1),10), EMA8,'∠45升'),COLORWHITE;
A81:=EMA(C,3),COLORWHITE; A82:=EMA(C,5),COLORYELLOW; A83:=EMA(C,7),COLORMAGENTA; A84:=EMA(C,12),COLORGREEN; A85:=EMA(C,20),COLORRED; A86:=EMA(C,50),COLORBLUE,LINETHICK2; SS8:=CROSS(A81,A85) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018 ; SSS8:=CROSS(A81,A85) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018; DRAWICON(SS8 ,L-0.04,23);
Y:=(MA(C,5)-MA(C,30))/MA(C,5)*100; YY1:=C>MA(C,5) AND OPEN<MA(C,5); YY3:=C>MA(C,10) AND OPEN<MA(C,10); YY5:=C>MA(C,30) AND OPEN<MA(C,30); DRAWTEXT(YY1 AND YY5 AND YY3,LOW-0.03,'↖龍出大海'),COLORRED;
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),COLORFF00FF,LINETHICK0; ZZ:=(O+H+L)/3; YC:=(H+L)/2; YCHJX:=(EMA(ZZ,4))+(YC-REF(ZZ,3))/4; 今日買點:EMA(ZZ,3),COLORYELLOW,LINETHICK0; 明日買點:YCHJX,LINETHICK0; 昨測今日買點:REF(YCHJX,1),LINETHICK0;
BBI:=(MA(CLOSE,M1)+MA(CLOSE,M2)+MA(CLOSE,M3)+MA(CLOSE,M4))/4; IF(BBI>REF(BBI,1),BBI,DRAWNULL),COLORRED,LINETHICK2,NODRAW; IF(BBI<REF(BBI,1),BBI,DRAWNULL),COLORYELLOW,LINETHICK2,NODRAW; MA1:=MA(CLOSE,24),COLOR00E300,LINETHICK1; V2:=IF(CURRBARSCOUNT=1,VOL*240/FROMOPEN/REF(VOL,1)-1,VOL/REF(VOL,1)-1); STICKLINE(V2>=1,O,C,2,0),COLORMAGENTA; MA13:=MA(CLOSE,13); A1:=MIN(O,C); B1:=ABS(O-C); T1:=FILTER(BB13>1 AND EMA(X1,13)>REF(EMA(X1,8),1),10); STICKLINE(T1,A1,A1+B1/4,2,0),COLOR007575; STICKLINE(T1,A1+B1/4,A1+B1/2,2,0),COLORFF0000; STICKLINE(T1,A1+B1/2,A1+B1*3/4,2,0),COLOR007575; STICKLINE(T1,A1+B1*3/4,A1+B1,2,0),COLORFF0000; LC:=REF(CLOSE,1); RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100); FF:=EMA(CLOSE,3); MA15:=EMA(CLOSE,21);
STICKLINE(CROSS(FF,MA15),A1,A1+B1/2,2,0),COLOR7F017F; STICKLINE(CROSS(88,RSI),A1+B1,A1+B1/2,2,0),COLORGREEN; T2:=COUNT(CROSS(BBI,3),3)=1 AND CROSS(C,BBI); DRAWTEXT(T2,H*1.05,'反轉(zhuǎn)'),COLORWHITE; STICKLINE(T2,O,C,2,0),COLORRED;
A23:=((C + L) + H) / 3; A24:=EMA(A23,6); A25:=EMA(A24,5); A26:=CROSS(A24,A25); DRAWICON(A26,(L/1.01),30),LINETHICK2,COLORMAGENTA;
漲停:=CLOSE/REF(CLOSE,1)>=1.095; ZTCS:=COUNT(漲停,BARSSINCE(漲停)+1); DRAWNUMBER(漲停,HIGH*1.04,ZTCS),COLORYELLOW; GZT1:=STRCAT(' 共漲停: ',CON2STR(ZTCS,0)); GZT2:=STRCAT(GZT1,'次'); SSTS1:=STRCAT(' 上市: ',CON2STR(FINANCE(42),0)); SSTS2:=STRCAT(SSTS1,'天'); NTZZT1:=STRCAT(' 距今:',CON2STR(CONST(BARSLAST(漲停)),0)); NTZZT2:=STRCAT(NTZZT1,'天有漲停'); ZTTJ1:=STRCAT(SSTS2,GZT2); ZTTJ2:=STRCAT(ZTTJ1,NTZZT2); ZTTJ:=STRCAT('★漲停統(tǒng)計★',ZTTJ2); DRAWTEXT_FIX(CURRBARSCOUNT=1,0,0,0,ZTTJ),COLOR999999;
陽漲幅:=4; 陽倍量:=1.5; 單陽:=C>O*(1+陽漲幅/100) AND VOL>REF(VOL,1)*陽倍量; DRAWTEXT(CURRBARSCOUNT<100 AND 單陽,L*0.98,'陽'),COLOR00FFFF; 高不破價:=REF(C,BARSLAST(單陽)); 中不破價:=REF((C+L)/2,BARSLAST(單陽)); 低不破價:=REF(L,BARSLAST(單陽)); 單陽不破:=CURRBARSCOUNT<100 AND BARSLAST(單陽)<11 AND (LLV(L,BARSLAST(單陽))>低不破價 OR LLV(L,BARSLAST(單陽))=低不破價); STICKLINE(單陽不破,低不破價-低不破價*0.003,低不破價,0.1,0),COLORRED; DRAWTEXT(BARSLAST(單陽)=1 AND 單陽不破,低不破價*0.98,'1'),COLORGREEN; DRAWTEXT(BARSLAST(單陽)=2 AND 單陽不破,低不破價*0.98,'2'),COLORGREEN; DRAWTEXT(BARSLAST(單陽)=3 AND 單陽不破,低不破價*0.98,'3'),COLORGREEN; DRAWTEXT(BARSLAST(單陽)=4 AND 單陽不破,低不破價*0.98,'4'),COLORGREEN; DRAWTEXT(BARSLAST(單陽)=5 AND 單陽不破,低不破價*0.98,'5'),COLORGREEN; DRAWTEXT(BARSLAST(單陽)=6 AND 單陽不破,低不破價*0.98,'6'),COLORGREEN; DRAWTEXT(BARSLAST(單陽)=7 AND 單陽不破,低不破價*0.98,'7'),COLORGREEN; DRAWTEXT(BARSLAST(單陽)=8 AND 單陽不破,低不破價*0.98,'8'),COLORGREEN; DRAWTEXT(BARSLAST(單陽)=9 AND 單陽不破,低不破價*0.98,'9'),COLORGREEN; DRAWTEXT(BARSLAST(單陽)=10 AND 單陽不破,低不破價*0.98,'10'),COLORGREEN;
MA30:=MA(C,30); 支撐價:MA(REF(LLV(C,30),1),2),DOTLINE,COLORFF00FF; DRAWTEXT(ISLASTBAR,支撐價,'------支撐'),COLORFF00FF; 壓力價:MA(REF(HHV(C,30),1),2),DOTLINE,COLORGREEN; DRAWTEXT(ISLASTBAR,壓力價,'------壓力'),COLORGREEN; 短線交易:MA(REF(LLV(C,3),1),2),DOTLINE,COLORRED; DRAWTEXT(ISLASTBAR,短線交易,'------短買'),COLORRED;
HG00:='●龍 '; HG03:='●構(gòu) '; LHB:=SIGNALS_USER(490,0)>0 OR SIGNALS_USER(491,0)<0; JGZY:=SIGNALS_USER(498,0)>0 OR SIGNALS_USER(499,0)<0; DRAWTEXT(JGZY, L*0.978, HG03 ),COLORCYAN; DRAWTEXT(LHB, L*0.996, HG00 ),COLORYELLOW;
N1:=10; TK:=CONST(HHVBARS(V,10)),COLOR0000FF,LINETHICK1; 量能平臺:=IF(CURRBARSCOUNT<=N1+3,CONST(IF(TK=0,C,REF(C,TK))),DRAWNULL),COLORGRAY,LINETHICK1,NODRAW; NOTEXT_新量能點:IF(CURRBARSCOUNT=TK+1,量能平臺,DRAWNULL),CIRCLEDOT,COLOR00FFFF,LINETHICK9;
關(guān)鍵位:REFDATE((MA(C,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4,DATE),DOTLINE,COLOR999999,LINETHICK1; DRAWTEXT(ISLASTBAR,關(guān)鍵位,STRCAT('【關(guān)鍵位: ',STRCAT(CON2STR(關(guān)鍵位,2),' 元】'))),COLOR00FFFF;
VARC:=HIGH>LOW*1.0505; HDLY1:=OPEN/HHV(CLOSE,30)<0.78 AND OPEN=LLV(OPEN,30); HDLY2:=CLOSE>REF(CLOSE,1)*1.005; HDLY:=HDLY1 AND HDLY2 AND COUNT(VARC,5)>1; DRAWICON(HDLY,LOW*0.95,30); DRAWTEXT(HDLY,LOW*0.98,'海底'),COLORYELLOW;
|