1、文华指标1A:=(3*CLOSE+LOW+OPEN+HIGH)/6;B:(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;D:MA(B,10);STICKLINE(BD,
2、B,D,8,COLORRED);STICKLINE(B REF(HH,1);LL1:=BARSLAST(LL LL1),HH,COLORGREEN);STICKLINE(HH1 LL1),CLOSE,OPEN,COLORBLUE,0);DRAWLINE(HH1 LL1),H,(HH1 LL1),L,COLORBLUE);DRAWTEXT(CROSS(HH1,LL1),HH,开空);DRAWTEXT(CROSS(LL1,HH1),LL,开多);DRAWTEXT(FILTER(HH1 LL1),90),HIGH,加空);(EMA(CLOSE,60)+EMA(CLOSE,90)/2,CIRCLEDO
3、T;/文华财经洗钱XQA:=(CLOSE-LLV(LOW,32)/(HHV(HIGH,32)-LLV(LOW,32)*1.2*CLOSE;XQB:=SMA(XQA,13,1);XQC:SMA(XQB,5.5,1.5),COLORCYAN;XQD:3*XQB-2*XQC,COLORYELLOW;XQE:4*XQC-3*XQB,COLORMAGENTA;L1:=EMA(XQA,3);L2:=EMA(XQA,5);L3:=EMA(XQA,7);STICKLINE(L1L2,L3,L1,2,1),COLORRED;STICKLINE(L1L3STICKLINE(T1,L1,L3,2,0),COLORR
4、ED;STICKLINE(T2,L1,L3,2,0),COLORGREEN;文华指标3N1:=BARSLAST(DATE=10,10,N1);HJ:=MAX(OPEN,CLOSE );LJ:=MIN(OPEN,CLOSE);W:=MA(MA(HIGH+HJ)/2,N),10);E:=MA(MA(LOW+LJ)/2,N),10);A:=BARSLAST(CLOSEWB:=BARSLAST(ECLOSEDRAWLINE(AB,HIGH,AB,LOW,COLORCYAN);STICKLINE(AB,CLOSE,OPEN,COLORCYAN,0);文华指标458:58,COLORYELLOW;85:8
5、5,COLORRED; 31:31,COLORGREEN;VAVER:=(2*CLOSE+HIGH+LOW)/4;VMIN:=LLV(LOW,34);VMAX:=HHV(HIGH,34);VARC:=EMA(VAVER-VMIN)/(VMAX-VMIN)*100,13);VARD:=EMA(2*REF(VARC,1)/3+VARC/3,2);SMX:EMA(VARD,10),COLORRED;IFELSE (SMXMAE1)*5,COLORRED;R1:(MAE1E1)*5,COLORGREEN;DRAWTEXT(CROSS(E1,MAE1),E1-3,B);DRAWTEXT(CROSS(MA
6、E1,E1),MAE1+3,S);STICKLINE(E1-MAE10,E1,MAE1,COLORRED,0);STICKLINE(E1-MAE1EMA(C,6) A2:=EMA(C,5)EMA(C,6) E5:=EMA(C,21);E6:=EMA(C,22);E7:=EMA(C,23);E8:=EMA(C,24);E9:=EMA(C,25);E10:=EMA(C,26);E11:=EMA(C,27);E12:=EMA(C,28);E13:=EMA(C,29);E14:=EMA(C,30);T:=IFELSE(A2,-1,IFELSE(A1,1,0);G:=IFELSE(T=-1,E5,E5)
7、;H9:=IFELSE(T=1,E5,E5);J:=IFELSE(T=0,E5,E5);DRAWLINE(T=1DRAWLINE(T=-1DRAWSL(T=1,H9,0,1,0,COLORGREEN);DRAWSL(T=-1,G,0,1,0,COLORRED);DRAWLINE(T=0DRAWSL(T=0,J,0,1,0,COLORBLUE);G1:=IFELSE(T=-1,E6,E6);H1:=IFELSE(T=1,E6,E6);J1:=IFELSE(T=0,E6,E6);DRAWLINE(T=1DRAWLINE(T=-1DRAWSL(T=1,H1,0,1,0,COLORGREEN);DRA
8、WSL(T=-1,G1,0,1,0,COLORRED);DRAWLINE(T=0DRAWSL(T=0,J1,0,1,0,COLORBLUE);G2:=IFELSE(T=-1,E7,E7);H2:=IFELSE(T=1,E7,E7);J2:=IFELSE(T=0,E7,E7);DRAWLINE(T=1DRAWLINE(T=-1DRAWSL(T=1,H2,0,1,0,COLORGREEN);DRAWSL(T=-1,G2,0,1,0,COLORRED);DRAWLINE(T=0DRAWSL(T=0,J2,0,1,0,COLORBLUE);G3:=IFELSE(T=-1,E8,E8);H3:=IFEL
9、SE(T=1,E8,E8);J3:=IFELSE(T=0,E8,E8);DRAWLINE(T=1DRAWLINE(T=-1DRAWSL(T=1,H3,0,1,0,COLORGREEN);DRAWSL(T=-1,G3,0,1,0,COLORRED);DRAWLINE(T=0DRAWSL(T=0,J3,0,1,0,COLORBLUE);文华指标8VAR1:=(HHV(HIGH,13)-LLV(LOW,13);VAR2:=(HHV(HIGH,13)-CLOSE);VAR3:=(CLOSE-LLV(LOW,13);VAR4:=(VAR2/VAR1)*100)-70);VAR5:=(CLOSE-LLV(
10、LOW,60)/(HHV(HIGH,60)-LLV(LOW,60)*100);VAR6:=(2*CLOSE)+HIGH)+LOW)/4);VAR7:=SMA(VAR3/VAR1)*100),3,1);VAR8:=LLV(LOW,8);VAR9:=(SMA(VAR7,3,1)-SMA(VAR4,9,1);VAR10:=IFELSE(VAR9100),(VAR9-100),0);VAR11:=HHV(HIGH,8);VAR12:=EMA(VAR6-VAR8)/(VAR11-VAR8)*100),8);VAR13:=EMA(0.667*REF(VAR12,1)+(0.333*VAR12),2);ST
11、ICKLINE(VAR12-VAR13)0),VAR12,VAR13,COLORRED,0);STICKLINE(VAR12-VAR13)A,0,B,COLORRED,1);STICKLINE(AB,0,A,COLORCYAN,1);STICKLINE(BA,0 ,A,COLORRED,1);STICKLINE(AB,0 ,B,COLORCYAN,1);DRAWTEXT(CROSS(CC,0),CC+0.3,B);DRAWTEXT(CROSS(0,CC),CC+0.3,S);N1:=3;N2:=13;RSV1:=(CLOSE-LLV(LOW,N1)/(HHV(HIGH,N1)-LLV(LOW,
12、N1)*100;RSV2:=(CLOSE-LLV(LOW,N2)/(HHV(HIGH,N2)-LLV(LOW,N2)*100;J1:=SMA(RSV1,3,1);J2:=SMA(J1,3,1);A:3*SMA(RSV2,5,1)-2*SMA(SMA(RSV2,5,1),3,1);K:SMA(RSV2,3,1);D:SMA(K,3,1);BB:100;AA:IFELSE(A85,70,100);B:49;STICKLINE(A88,100,A,COLORRED,1);STICKLINE(A85,100,80,COLORRED,0);VAR1:=(CLOSE-LLV(LOW,34)/(HHV(HI
13、GH,34)-LLV(LOW,34)*100;AA:SMA(VAR1,5,1),COLORRED;BB:SMA(AA,3,1),COLORYELLOW;CC:IFELSE(CROSS(AA,BB)DD:IFELSE(CROSS(BB,AA)DRAWTEXT(DDREF(HHV(VOL,6),1);W2:=OPEN-CLOSE;HH1:= IFELSE (HREF(L,2)HH2:=VALUEWHEN(HH10,HH1);LL2:=VALUEWHEN(LL10,LL1);KA1:= IFELSE (CLOSEHH2,-3,IFELSE(CLOSE0,KA1);GA:=IFELSE(KA2=1,H
14、H2,LL2);GA1:=VALUEWHEN(ISLASTBAR,GA);DRAWNUMBER(L0,GA1,GA1,0,COLORCYAN);W1:=KA2;U1:=(HIGH+LOW+CLOSE*2)/4;HT:= IFELSE (OPENCLOSE,OPEN,CLOSE);LT:= IFELSE (OPEN0,OPEN,CLOSE,COLORCYAN,1);STICKLINE(W1REF(HIGH,1)|REF(LOW,2)REF(LOW,1);A3:=HIGHREF(HIGH,1)| HIGHREF(HIGH,2)|(HIGH-LOW)*0.3+LOWP;A31:=CLOSEPA4:=
15、REF(MA(CLOSE,5),2)REF(MA(CLOSE,5),1);A5:=VALUEWHEN(A1DRAWSL(A1RSV:=(CLOSE-LLV(LOW,14)/(HHV(HIGH,14)-LLV(LOW,14)*100;M:=MA(RSV,3);A:=MA(M,3);B:=MA(A,3);A6:=REF(LOW,2)PD:= VALUEWHEN(KG1, (HIGH+LOW)/2);STICKLINE(W20GA2:=VALUEWHEN(ISLASTBAR,D);DRAWNUMBER(LOW0, GA2,GA2,0,COLORRED);DRAWTEXT(CLOSE0,(HIGH+L
16、OW)/2,);AI1:=BARSLAST(REF(CROSS(A,B),1);M3:= BARSLAST(REF(CROSS(B,A),1);SO:=VALUEWHEN(CROSS(A,B),LOW);S2:=VALUEWHEN(CROSS(B,A),HIGH);K1:=VALUEWHEN(CROSS(A,B),A);B2:= CROSS(A,B) K2:=VALUEWHEN(CROSS(B,A),A);D2:= CROSS(B,A) 文华指标11HZ:=EMA(CLOSE,5);DB:=MA(HZ,1),COLORGREEN;ZB:=EMA(HZ,26),COLORRED;JX148:=E
17、MA(C,148);HZ2:EMA(HZ,21),COLORMAGENTA;HZ4:=EMA(HZ,39),COLORRED;FILLRGN(DBHZ2,DB,HZ2,COLORMAGENTA);FILLRGN(DBHZ4,ZB,HZ4,COLORRED);FILLRGN(ZBREF(HHV(VOL,4),1);W2:=OPEN-CLOSE;HH1:=IFELSE(HREF(L,2)HH2:=VALUEWHEN(HH10,HH1);LL2:=VALUEWHEN(LL10,LL1);KA1:=IFELSE(CLOSEHH2,-3,IFELSE(CLOSE0,KA1);GA:=IFELSE(KA2
18、=1,HH2,LL2);GA1:=VALUEWHEN(ISLASTBAR,GA);DRAWNUMBER(L0,GA1,GA1,0,COLORCYAN);W1:=KA2;U1:=(HIGH+LOW+CLOSE)/3;HT:=IFELSE(OPENCLOSE,OPEN,CLOSE);LT:=IFELSE(OPEN0,OPEN,CLOSE,COLORCYAN,1);STICKLINE(W1REF(HIGH,1)|REF(LOW,2)REF(LOW,1);A3:=HIGHREF(HIGH,1)| HIGHREF(HIGH,2)|(HIGH-LOW)*0.3+LOWP;A31:=CLOSEPA4:=RE
19、F(MA(CLOSE,5),2)REF(MA(CLOSE,5),1);A5:=VALUEWHEN(A1DRAWSL(A1RSV:=(CLOSE-LLV(LOW,12)/(HHV(HIGH,12)-LLV(LOW,12)*100;M:=SMA(RSV,3,1);A:=EMA(M,3);B:=EMA(A,3);A6:=REF(LOW,2)PVAR0:=(CLOSE-LLV(LOW,34)/(HHV(HIGH,34)-LLV(LOW,34)*100;VAR3:=SMA(VAR0,5,1);VAR1:=SMA(VAR3,3,1)-10;VAR4:=(HHV(HIGH,34)-CLOSE)/(HHV(H
20、IGH,34)-LLV(LOW,34)*100;VAR5:=SMA(VAR4,5,1);VAR2:=SMA(VAR5,3,1)-90;STICKLINE(REF(VAR1,1)VAR1,VAR1,REF(VAR1,1),COLORBLUE,0);STICKLINE(REF(VAR2,1)VAR2,VAR2,REF(VAR2,1),COLORRED,0);STICKLINE(REF(VAR2,1)EMA2(HIGH,30),EMA2(HIGH,30),EMA2(LOW,30),COLORMAGENTA,1);STICKLINE(CLOSEEMA2(HIGH,150),EMA2(HIGH,150)
21、,EMA2(LOW,150),COLORRED,1);STICKLINE(CLOSEEMA2(HIGH,30),EMA2(HIGH,30),COLORMAGENTA);PARTLINE(CLOSEEMA2(LOW,30),EMA2(LOW,30),COLORMAGENTA);PARTLINE(CLOSEEMA2(HIGH,150),EMA2(HIGH,150),COLORRED);PARTLINE(CLOSEEMA2(LOW,150),EMA2(LOW,150),COLORRED);PARTLINE(CLOSE0.5 STICKLINE(SUM(X,WS)0.5 DRAWLINE(SUM(X,
22、WS)0.5,LOW,CLOSEOPEN,OPEN,COLORCYAN);DRAWLINE(SUM(X,WS)0.5,HIGH,CLOSE0.5,LOW,CLOSE0.5,HIGH,CLOSE=OPEN,LOW,COLORCYAN);STICKLINE(SUM(S,WX)0.5 STICKLINE(SUM(S,WX)0.5 DRAWLINE(SUM(S,WX)0.5,LOW,CLOSEOPEN,OPEN,COLORRED);DRAWLINE(SUM(S,WX)0.5,HIGH,CLOSE0.5,LOW,CLOSE0.5,HIGH,CLOSE=OPEN,LOW,COLORRED);DRAWTEXT(SS,LOW-5,买);DRAWTEXT(XX,HIGH+20,卖);