文华指标71个(供参考)

更新时间:2024-02-26 19:24:01 阅读量: 综合文库 文档下载

说明:文章内容仅供预览,部分内容可能不全。下载后的文档,内容与下面显示的完全一致。下载之前请确认下面内容是否您想要的,是否完整无缺。

文华指标1

A:=(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(B>D,B,D,8,COLORRED); STICKLINE(B

文华指标2 N:=21;

HH:=HHV(HIGH,N); LL:=LLV(LOW,N);

HH1:=BARSLAST((HH > REF(HH,1))); LL1:=BARSLAST((LL < REF(LL,1)));

PARTLINE((HH1 < LL1),LL,COLORMAGENTA); PARTLINE((HH1 > LL1),HH,COLORGREEN);

STICKLINE((HH1 < LL1),CLOSE,OPEN,COLORRED,0); DRAWLINE((HH1 < LL1),H,(HH1 < LL1),L,COLORRED); 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 < REF(HH1,1)) AND (HH1 < LL1)),90),LOW,'♂加多'); DRAWTEXT(FILTER(((LL1 < REF(LL1,1)) AND (HH1 > LL1)),90),HIGH,'♀加空'); (EMA(CLOSE,60)+EMA(CLOSE,90))/2,CIRCLEDOT;

//文华财经洗钱

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(L1>L2,L3,L1,2,1),COLORRED; STICKLINE(L1

T1:=L2>L3&& L1REF(L1,1); STICKLINE(T1,L1,L3,2,0),COLORRED; STICKLINE(T2,L1,L3,2,0),COLORGREEN;

文华指标3

N1:=BARSLAST(DATE<>REF(DATE,1) )+1; N:=IFELSE(N1>=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(CLOSE>W&&VOL>REF(VOL,1)); B:=BARSLAST(E>CLOSE&&VOL>REF(VOL,1)); DRAWLINE(AB,HIGH,A>B,LOW,COLORCYAN); STICKLINE(AB,CLOSE,OPEN,COLORCYAN,0);

文华指标4

58:58,COLORYELLOW; 85:85,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 (SMX

E1:EMA(((VAVER-VMIN)/(VMAX-VMIN))*(100),13),COLORRED; MAE1:EMA(E1,5),COLORYELLOW; J1:(E1>MAE1)*5,COLORRED; R1:(MAE1>E1)*5,COLORGREEN; DRAWTEXT(CROSS(E1,MAE1),E1-3,'B'); DRAWTEXT(CROSS(MAE1,E1),MAE1+3,'S'); STICKLINE(E1-MAE1>0,E1,MAE1,COLORRED,0); STICKLINE(E1-MAE1<0,E1,MAE1,COLORBLUE,0);

文华指标5

A1:=HHV(HIGH,10); A2:=LLV(LOW,10); A3:=(A1-A2)*0.618+A2; A4:=(A1-A2)*0.5+A2; A5:=(A1-A2)*0.382+A2; PD:=ISLASTBAR; ZH:A1; ZL:A2; F3:A3; F4:A4; F5:A5;

DRAWNUMBER(PD,ZH,ZH,2,COLORYELLOW); DRAWNUMBER(PD,ZL,ZL,2,COLORYELLOW); DRAWNUMBER(PD,F3,F3,2,COLORYELLOW); DRAWNUMBER(PD,F4,F4,2,COLORYELLOW); DRAWNUMBER(PD,F5,F5,2,COLORYELLOW);

文华指标6

LC := REF(CLOSE,1);

VID := SUM(VOL,2)/(((HHV(HIGH,2)-LLV(LOW,2)))*100); RC := (CLOSE-LC)*VID; LONG := SUM(RC,0); DIFF := SMA(LONG,10,1); DEA := SMA(LONG,20,1); LON : DIFF-DEA; LONMA : MA(LON,10); LONT : LON, COLORSTICK;

文华指标7

A1:=EMA(C,5)>EMA(C,6) && EMA(C,6)>EMA(C,7) && EMA(C,7)>EMA(C,8) && EMA(C,8)>EMA(C,9) && EMA(C,9)>EMA(C,10) && EMA(C,10)>EMA(C,11) && EMA(C,11)>EMA(C,12) && EMA(C,12)>EMA(C,13) && EMA(C,13)>EMA(C,14) && EMA(C,14)>EMA(C,15) && EMA(C,15)>EMA(C,20) && EMA(C,20)>EMA(C,30) &&

EMA(C,30)>EMA(C,60) && EMA(C,60)>EMA(C,90) && EMA(C,90)>EMA(C,120) && EMA(C,120)>EMA(C,250); A2:=EMA(C,5)>EMA(C,6) && EMA(C,6)>EMA(C,7) && EMA(C,7)>EMA(C,8) && EMA(C,8)>EMA(C,9) && EMA(C,9)>EMA(C,10) && EMA(C,10)>EMA(C,11) && EMA(C,11)>EMA(C,12) && EMA(C,12)>EMA(C,13) && EMA(C,13)>EMA(C,14); 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); H9:=IFELSE(T=1,E5,E5); J:=IFELSE(T=0,E5,E5);

DRAWLINE(T=1&&REF(T,1)=1,H9,T=0&&REF(T,1)=1,REF(H9,1),COLORGREEN); DRAWLINE(T=-1&&REF(T,1)=-1,G,T=-1&&REF(T,1)=-1,REF(G,1),COLORRED); DRAWSL(T=1,H9,0,1,0,COLORGREEN); DRAWSL(T=-1,G,0,1,0,COLORRED);

DRAWLINE(T=0&&REF(T,1)=0,J,T=0&&REF(T,1)=0,REF(J,1),COLORBLUE); DRAWSL(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=1&&REF(T,1)=1,H1,T=0&&REF(T,1)=1,REF(H1,1),COLORGREEN); DRAWLINE(T=-1&&REF(T,1)=-1,G1,T=-1&&REF(T,1)=-1,REF(G1,1),COLORRED); DRAWSL(T=1,H1,0,1,0,COLORGREEN); DRAWSL(T=-1,G1,0,1,0,COLORRED);

DRAWLINE(T=0&&REF(T,1)=0,J1,T=0&&REF(T,1)=0,REF(J1,1),COLORBLUE); DRAWSL(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=1&&REF(T,1)=1,H2,T=0&&REF(T,1)=1,REF(H2,1),COLORGREEN); DRAWLINE(T=-1&&REF(T,1)=-1,G2,T=-1&&REF(T,1)=-1,REF(G2,1),COLORRED); DRAWSL(T=1,H2,0,1,0,COLORGREEN); DRAWSL(T=-1,G2,0,1,0,COLORRED);

DRAWLINE(T=0&&REF(T,1)=0,J2,T=0&&REF(T,1)=0,REF(J2,1),COLORBLUE); DRAWSL(T=0,J2,0,1,0,COLORBLUE); G3:=IFELSE(T=-1,E8,E8); H3:=IFELSE(T=1,E8,E8);

J3:=IFELSE(T=0,E8,E8);

DRAWLINE(T=1&&REF(T,1)=1,H3,T=0&&REF(T,1)=1,REF(H3,1),COLORGREEN); DRAWLINE(T=-1&&REF(T,1)=-1,G3,T=-1&&REF(T,1)=-1,REF(G3,1),COLORRED); DRAWSL(T=1,H3,0,1,0,COLORGREEN); DRAWSL(T=-1,G3,0,1,0,COLORRED);

DRAWLINE(T=0&&REF(T,1)=0,J3,T=0&&REF(T,1)=0,REF(J3,1),COLORBLUE); DRAWSL(T=0,J3,0,1,0,COLORBLUE);

文华指标8

VAR1:=(HHV(HIGH,13)-LLV(LOW,13)); VAR2:=(HHV(HIGH,13)-CLOSE); VAR3:=(CLOSE-LLV(LOW,13)); VAR4:=(((VAR2/VAR1)*100)-70);

VAR5:=(((CLOSE-LLV(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((VAR9>100),(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); STICKLINE(((VAR12-VAR13)>0),VAR12,VAR13,COLORRED,0); STICKLINE(((VAR12-VAR13)<0),VAR12,VAR13,COLORGREEN,0); MA11:EMA(VAR13,2),COLORYELLOW ; A:20,COLORCYAN; B:80,COLORLIGHTBLUE;

A:=(EMA(CLOSE,21)-EMA(CLOSE,3))/2*0.95; 0;

B:=(EMA(CLOSE,3)-EMA(CLOSE,21))/2*0.95; CC:(B-A),COLORRED;

STICKLINE(B>A,0,B,COLORRED,1); STICKLINE(A>B,0,A,COLORCYAN,1); STICKLINE(B>A,0 ,A,COLORRED,1); STICKLINE(A>B,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,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(A<=10,30,0);

CC:IFELSE(CROSS(J2,J1) AND J2>85,70,100); B:49;

STICKLINE(A>88,100,A,COLORRED,1); STICKLINE(A<=10,0,A,COLORBLUE,1);

STICKLINE(COUNT(A85,100,80,COLORRED,0);

VAR1:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100; AA:SMA(VAR1,5,1),COLORRED; BB:SMA(AA,3,1),COLORYELLOW;

CC:IFELSE(CROSS(AA,BB)&&BB<25,50,0),COLORRED; DRAWTEXT(CC>0,50,'买入');

DD:IFELSE(CROSS(BB,AA)&&AA>70,80,100),COLORGREEN; DRAWTEXT(DD<100,80,'卖出');

文华指标10

KG1:=VOL>REF(HHV(VOL,6),1); W2:=OPEN-CLOSE;

HH1:= IFELSE (HREF(L,2)&&REF(L,1)>REF(L,2),REF(L,2),0); HH2:=VALUEWHEN(HH1>0,HH1); LL2:=VALUEWHEN(LL1>0,LL1);

KA1:= IFELSE (CLOSE>HH2,-3,IFELSE(CLOSE0,KA1); GA:=IFELSE(KA2=1,HH2,LL2); GA1:=VALUEWHEN(ISLASTBAR,GA);

DRAWNUMBER(L>0,GA1,GA1,0,COLORCYAN); W1:=KA2;

U1:=(HIGH+LOW+CLOSE*2)/4;

HT:= IFELSE (OPEN>CLOSE,OPEN,CLOSE); LT:= IFELSE (OPEN0,OPEN,CLOSE,COLORCYAN,1); STICKLINE(W1<=0,OPEN,CLOSE,COLORRED,1);

P1:=MA(U1,10)+(REF(MA(CLOSE,5),2)-REF(MA(CLOSE,5),5)); P:=MA((P1+MA(CLOSE,4))/2,5);

A1:=REF(HIGH,2)>REF(HIGH,1)||REF(LOW,2)>REF(LOW,1);

A3:=HIGH>REF(HIGH,1)|| HIGH>REF(HIGH,2)||(HIGH-LOW)*0.3+LOW>P; A31:=CLOSE>P&&REF(LOW,1)REF((HIGH+LOW)/2,1); A4:=REF(MA(CLOSE,5),2)>REF(MA(CLOSE,5),1);

A5:=VALUEWHEN(A1&&A3&&A4&&A31,REF((HIGH+LOW)/2 ,1)); DRAWSL(A1&&A3&&A4&&A31,A5,0,4,0,COLORRED);

RSV:=(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)

A7:=LOWP&&CLOSE

A9:=VALUEWHEN(A6&&A7&&A8&&A71,REF((HIGH+LOW)/2 ,1)); DRAWSL(A6&&A7&&A8&&A71,A9,0,4,0,COLORGREEN);

DRAWSL(KG1&&VOL> REFX(VOL,1),(HIGH+LOW)/2,0,5,0,COLORYELLOW); D:= VALUEWHEN(KG1, (HIGH+LOW)/2);

STICKLINE(W2>0&&W1<=0,OPEN,CLOSE,COLORRED,0); STICKLINE(W2>0&&W1>0,OPEN,CLOSE,COLORCYAN,0); GA2:=VALUEWHEN(ISLASTBAR,D);

DRAWNUMBER(LOW>0, GA2,GA2,0,COLORRED); DRAWTEXT(CLOSE>0,(HIGH+LOW)/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) && A> REF(A,AI1) && LLV(CLOSE,3) < REF(LLV(CLOSE,3),AI1) &&CLOSE>MA(CLOSE,5); K2:=VALUEWHEN(CROSS(B,A),A);

D2:= CROSS(B,A) && A< REF(A,M3) && HHV(CLOSE,3)> REF(HHV(CLOSE,3),M3) &&CLOSE

MA1:=MA(P,5);

B2L:= CROSS(A,B) && A> REF(A,AI1) && LLV(CLOSE,3) < REF(LLV(CLOSE,3),AI1); DI2:= CROSS(B,A) && A< REF(A,M3) && HHV(CLOSE,3)> REF(HHV(CLOSE,3),M3);

文华指标11

HZ:=EMA(CLOSE,5);

DB:=MA(HZ,1),COLORGREEN; ZB:=EMA(HZ,26),COLORRED; JX148:=EMA(C,148);

HZ2:EMA(HZ,21),COLORMAGENTA; HZ4:=EMA(HZ,39),COLORRED;

FILLRGN(DB>HZ2,DB,HZ2,COLORMAGENTA); FILLRGN(DBHZ4,ZB,HZ4,COLORRED); FILLRGN(ZB

DRAWNUMBER(ISLASTBAR,DB,DB,0,COLORGREEN); DRAWNUMBER(ISLASTBAR,HZ2,HZ2,0,COLORRED); DRAWNUMBER(ISLASTBAR,ZB,ZB,0,COLORGREEN); DRAWNUMBER(ISLASTBAR,HZ4,HZ4,0,COLORRED); DRAWTEXT(CROSS(DB,HZ2),LOW-5,'多'); DRAWTEXT(CROSS(HZ2,DB),HIGH+25,'空');

KG1:=VOL>REF(HHV(VOL,4),1); W2:=OPEN-CLOSE;

HH1:=IFELSE(HREF(L,2)&&REF(L,1)>REF(L,2),REF(L,2),0); HH2:=VALUEWHEN(HH1>0,HH1); LL2:=VALUEWHEN(LL1>0,LL1);

KA1:=IFELSE(CLOSE>HH2,-3,IFELSE(CLOSE0,KA1); GA:=IFELSE(KA2=1,HH2,LL2);

GA1:=VALUEWHEN(ISLASTBAR,GA);DRAWNUMBER(L>0,GA1,GA1,0,COLORCYAN); W1:=KA2;

U1:=(HIGH+LOW+CLOSE)/3;

HT:=IFELSE(OPEN>CLOSE,OPEN,CLOSE); LT:=IFELSE(OPEN

DRAWLINE(W1=-3,LOW,W1=-3,LT,COLORRED); STICKLINE(W1>0,OPEN,CLOSE,COLORCYAN,1); STICKLINE(W1<=0,OPEN,CLOSE,COLORRED,1);

P1:=MA(U1,5)+(REF(MA(CLOSE,5),2)-REF(MA(CLOSE,5),4)); P:=(P1+MA(CLOSE,4))/2;

A1:=REF(HIGH,2)>REF(HIGH,1)||REF(LOW,2)>REF(LOW,1);

A3:=HIGH>REF(HIGH,1)|| HIGH>REF(HIGH,2)||(HIGH-LOW)*0.3+LOW>P; A31:=CLOSE>P&&REF(LOW,1)REF((HIGH+LOW)/2,1); A4:=REF(MA(CLOSE,5),2)>REF(MA(CLOSE,5),1);

A5:=VALUEWHEN(A1&&A3&&A4&&A31,REF((HIGH+LOW)/2 ,1)); DRAWSL(A1&&A3&&A4&&A31,A5,0,4,0,COLORRED);

RSV:=(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)

A7:=LOWP&&CLOSE

A9:=VALUEWHEN(A6&&A7&&A8&&A71,REF((HIGH+LOW)/2 ,1)); DRAWSL(A6&&A7&&A8&&A71,A9,0,4,0,COLORGREEN); D:= VALUEWHEN(KG1, (HIGH+LOW)/2);

STICKLINE(W2>0&&W1<=0,OPEN,CLOSE,COLORRED,0); STICKLINE(W2>0&&W1>0,OPEN,CLOSE,COLORCYAN,0);

VAR0:=(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(HIGH,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)

文华指标12

A:=EMA2(HIGH,30); B:=EMA2(LOW,30); A1:=EMA2(HIGH,150); B1:=EMA2(LOW,150);

S1:=CROSS(CLOSE,EMA2(HIGH,150)); X1:=CROSS(EMA2(LOW,150),CLOSE); WS1:=BARSLAST(S1)+1; WX1:=BARSLAST(X1)+1; SS1:=CROSS(SUM(S1,WX1),0.5); XX1:=CROSS(SUM(X1,WS1),0.5); S:=CROSS(CLOSE,EMA2(HIGH,30)); X:=CROSS(EMA2(LOW,30),CLOSE); WS:=BARSLAST(S)+1; WX:=BARSLAST(X)+1; SS:=CROSS(SUM(S,WX),0.5); XX:=CROSS(SUM(X,WS),0.5);

STICKLINE(CLOSE>EMA2(HIGH,30),EMA2(HIGH,30),EMA2(LOW,30),COLORMAGENTA,1); STICKLINE(CLOSEEMA2(HIGH,150),EMA2(HIGH,150),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(CLOSE

STICKLINE(SUM(X,WS)>0.5 && CLOSE>=OPEN,OPEN,CLOSE,COLORCYAN,1); STICKLINE(SUM(X,WS)>0.5 && CLOSE0.5,HIGH,CLOSE>OPEN,CLOSE,COLORCYAN); DRAWLINE(SUM(X,WS)>0.5,LOW,CLOSE>OPEN,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 && CLOSE>=OPEN,OPEN,CLOSE,COLORRED,1); STICKLINE(SUM(S,WX)>0.5 && CLOSE0.5,HIGH,CLOSE>OPEN,CLOSE,COLORRED); DRAWLINE(SUM(S,WX)>0.5,LOW,CLOSE>OPEN,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,'卖');

文华指标13 //轨道图;

LBF1:PUBU(CLOSE,4),COLORMAGENTA; LBF2:LBF1-8,COLORBLUE;

STICKLINE(LBF1>1 ,LBF1-1 ,LBF1+1 ,COLORGREEN , 1); TMP:=OPEN-CLOSE;

DRAWLINE(TMP>0.00001,HIGH,TMP>0.00001,OPEN,COLORCYAN); DRAWLINE(TMP>0.00001,LOW,TMP>0.00001,CLOSE,COLORCYAN); DRAWLINE(TMP<-0.00001,HIGH,TMP<-0.00001,CLOSE,COLORRED); DRAWLINE(TMP<-0.00001,LOW,TMP<-0.00001,OPEN,COLORRED);

DRAWLINE(ABS(TMP)<0.00001,LOW,ABS(TMP)<0.00001,OPEN,COLORWHITE); DRAWLINE(ABS(TMP)<0.00001,HIGH,ABS(TMP)<0.00001,OPEN,COLORWHITE); STICKLINE(TMP>0,OPEN,CLOSE,COLORCYAN,0); STICKLINE(TMP<=0,OPEN,CLOSE,COLORRED,1);

文华指标14 //均线色

MA60:=MA(CLOSE,60);

TJ:=IFELSE(MA60>REF(MA60,1),1,0); A:=MA60-REF(MA60,1); B:=REFX(A,1);

DRAWSL(TJ=1,MA60,B,1,0,COLORRED); DRAWSL(TJ=0,MA60,B,1,0,COLORCYAN);

文华指标15

Var1:=(2*CLOSE+HIGH+LOW+OPEN)/5; GG: 80;

Var2:=LLV(LOW,34);

Var3:=HHV(HIGH,34);

SK1: EMA((Var1-Var2)/(Var3-Var2)*100,13); SD1: EMA(SK1,3); DD: 20; QQ: 50;

Var4:=IFELSE(CROSS(SK1,SD1),40,22); Var5:=IFELSE(CROSS(SD1,SK1),60,78);

文华指标16

//傻瓜指标

A:=MA(CLOSE,3),COLORMAGENTA; A1:=(CLOSE+HIGH+LOW)/3; B:=EMA(A1,10); B2:=REF(B,1);

MA20:=EMA(CLOSE,20);

STICKLINE(B>B2,MA20,MA(MA20,2),COLORYELLOW,0); STICKLINE(B

STICKLINE(VAR1>MA21,CLOSE,OPEN,COLORLIGHTRED,0); STICKLINE(VAR1

DRAWLINE(VAR1>MA21,HIGH,VAR1>MA21,LOW,COLORLIGHTRED); DRAWLINE(VAR1MA21,CLOSE,OPEN,COLORGREEN,0); DRAWLINE(VAR1MA21,LOW,COLORGREEN);

STICKLINE(VAR1>VAR2&&VAR1VAR2,HIGH,VAR1

VARF:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100; VARJ:=MA(VARE,20)+STD(VARE,20); K:=SMA(VARF,3,1);

BIAS18:=CLOSE/MA(CLOSE,18)*100-100;

DRAWTEXT({REF(BIAS18,1)>=5&&}CROSS(VARJ,VARE)&&K>79,HIGH,'☆☆'); YY:=EMA(CLOSE,4); AA1:=YY-REF(YY,1); B1:=REFX(AA1,1);

C1:=IFELSE(YY>REF(YY,1),1,-1);

DRAWSL(C1=1,YY,B1,1,0,COLORMAGENTA);

DRAWSL(C1=-1,YY,B1,1,0,COLORGREEN);

VV:=EMA(CLOSE,9),COLORWHITE; A2:=VV-REF(VV,1); BB2:=REFX(A2,1);

C2:=IFELSE(VV>REF(VV,1),1,-1);

DRAWSL(C2=1,VV,BB2,1,0,COLORMAGENTA); DRAWSL(C2=-1,VV,BB2,1,0,COLORGREEN); Q4:=VALUEWHEN(ISLASTBAR,EMA(CLOSE,1)); DRAWNUMBER(LOW>0,Q4,Q4,0,COLORCYAN); MA60:=EMA(CLOSE,60);

PARTLINE(MA60>0,MA60,COLORRED);

Q5:=VALUEWHEN(ISLASTBAR,EMA(CLOSE,60)); DRAWNUMBER(LOW>0,Q5,Q5,0,COLORRED);

文华指标17

MA18:MA(CLOSE,20),COLORMAGENTA; MA2:MA(CLOSE,0),COLORGREEN;

STICKLINE(CLOSE=OPEN,OPEN,CLOSE,COLORCYAN,1); STICKLINE(CLOSEOPEN,CLOSE,COLORCYAN); DRAWLINE(CLOSEOPEN,OPEN,COLORCYAN); DRAWLINE(CLOSEMA18&&CLOSE>=OPEN,OPEN,CLOSE,COLORRED,1); STICKLINE(CLOSE>MA18&&CLOSEMA18,HIGH,CLOSE>OPEN,CLOSE,COLORRED); DRAWLINE(CLOSE>MA18,LOW,CLOSE>OPEN,OPEN,COLORRED); DRAWLINE(CLOSE>MA18,HIGH,CLOSEMA18,LOW,CLOSEMA18,HIGH,CLOSE=OPEN,LOW,COLORRED); Q3:=VALUEWHEN(ISLASTBAR,MA18);

DRAWNUMBER(LOW>0,Q3,Q3,0,COLORMAGENTA); Q2:=VALUEWHEN(ISLASTBAR,MA2);

DRAWNUMBER(LOW>0,Q2,Q2,0,COLORGREEN);

文华指标18

HH:=IFELSE(H>REF(H,1)&&H>REF(H,2)&&H>REF(H,3)&&H>REF(H,4)&&H>REF(H,5)&&L

LL:=IFELSE(H>REF(H,1)&&H>REF(H,2)&&H>REF(H,3)&&H>REF(H,4)&&H>REF(H,5)&&L

H1:=IFELSE(H>=REF(H,1)&&H>=REF(H,2)&&H>=REF(H,3)&&H>=REF(H,4)&&H>=REF(H,5)&& H>REFX(H,1) &&H>REFX(H,2)&&H>REFX(H,3)&&H>REFX(H,4) &&H>REFX(H,5),HH,0);

L1:=IFELSE(L<=REF(L,1)&&L<=REF(L,2)&&L<=REF(L,3)&&L<=REF(L,4)&&L<=REF(L,5)&& L

H5:=VALUEWHEN(H4REF(H4,2),HH); L5:=VALUEWHEN(L4>REF(L4,1)&&REF(L4,1)

POLYLINE(H5>0,H5,COLORWHITE); POLYLINE(L5>0,L5,COLORWHITE); DRAWNUMBER(H5<>REF(H5,1),H5,H5-L5,0,COLORMAGENTA); DRAWNUMBER(L5<>REF(L5,1),L5,H5-L5,0,COLORMAGENTA); D:=VALUEWHEN(ISLASTBAR,H5); E:=VALUEWHEN(ISLASTBAR,L5);

DRAWNUMBER(LOW>0,D,D,0,COLORWHITE); DRAWNUMBER(LOW>0,E,E,0,COLORWHITE); DRAWTEXT(CROSS(CLOSE,H5),H5,'★'); DRAWTEXT(CROSS(L5,CLOSE),L5,'☆');

文华指标19

HH1:=IFELSE(HREF(L,2)&&REF(L,1)>REF(L,2),REF(L,2),0); HH2:=VALUEWHEN(HH1>0,HH1); LL2:=VALUEWHEN(LL1>0,LL1);

K1:=IFELSE(CLOSE>HH2,-3,IFELSE(CLOSE0,K1); G:=IFELSE(K2=1,HH2,LL2); G1:=VALUEWHEN(ISLASTBAR,G);

DRAWNUMBER(L>0,G1,G1,0,COLORCYAN); W1:=K2;

W2:=OPEN-CLOSE;

DRAWLINE(W1=1&&REF(W1,1)=1,G,W1=1&&REF(W1,1)=1,REF(G,1),COLORGREEN); DRAWLINE(W1=-3&&REF(W1,1)=-3,G,W1=-3&&REF(W1,1)=-3,REF(G,1),COLORYELLOW); DRAWSL(K2=1,G,0,1,0,COLORGREEN); DRAWSL(K2=-3,G,0,1,0,COLORYELLOW);

文华指标20 N1:=5; N2:=10; N3:=50;

M1:EMA(C,N1),COLORWHITE; M2:EMA(C,N2),COLORYELLOW; M3:EMA(C,N3),COLORRED;

DRAWLINE(M1>M2 && M2M2 && M2M2 && M2

DRAWLINE(M1M3,L,M1M3,H,COLORCYAN); STICKLINE(M1M3,O,C,COLORCYAN,1);

DRAWLINE(M1>M2 && M2>M3,L,M1>M2 && M2>M3,H,COLORRED); STICKLINE(M1>M2 && M2>M3,O,C,COLORRED,1);

DRAWLINE(M1

DRAWNUMBER(LOW>0,Q1,Q1,0,COLORWHITE); DRAWNUMBER(LOW>0,Q2,Q2,0,COLORYELLOW); DRAWNUMBER(LOW>0,Q3,Q3,0,COLORRED); HO:=HIGH>REF(HIGH,1)

&&

HIGH>REF(HIGH,2)

&&

HIGH>=REFX(HIGH,1)

&&

IFELSE(HIGH=REFX(HIGH,2),HIGH>REFX(HIGH,3),HIGH>REFX(HIGH,2)); FXH:=CROSS(HO,0.9);

FF:=REF(HIGH,BARSLAST(FXH)); LO:=LOW

&&

LOW

&&

LOW<=REFX(LOW,1)

&&

IFELSE(LOW=REFX(LOW,2),LOW

DRAWNUMBER(LOW>0,Q8,Q8,2,COLORMAGENTA);

Q9:=VALUEWHEN(ISLASTBAR,JJ); DRAWNUMBER(LOW>0,Q9,Q9,2,COLORBLUE);

HH:=IFELSE(H>REF(H,1)&&H>REF(H,2)&&H>REF(H,3)&&H>REF(H,4)&&H>REF(H,5)&&L

&&L

LL:=IFELSE(H>REF(H,1)&&H>REF(H,2)&&H>REF(H,3)&&H>REF(H,4)&&H>REF(H,5)&&L

H1:=IFELSE(H>=REF(H,1)&&H>=REF(H,2)&&H>=REF(H,3)&&H>=REF(H,4)&&H>=REF(H,5)&& &&H>REFX(H,2)&&H>REFX(H,3)&&H>REFX(H,4) &&H>REFX(H,5),HH,0);

L1:=IFELSE(L<=REF(L,1)&&L<=REF(L,2)&&L<=REF(L,3)&&L<=REF(L,4)&&L<=REF(L,5)&& LREFX(H,1)

&&L

H4:=ZIGZAG(H3,0,0); L4:=ZIGZAG(L3,0,0); H5:=VALUEWHEN(H4REF(H4,2),HH); L5:=VALUEWHEN(L4>REF(L4,1)&&REF(L4,1)0,H5,COLORWHITE);

POLYLINE(L5>0,L5,COLORWHITE); DRAWNUMBER(H5<>REF(H5,1),H5,H5-L5,0,COLORMAGENTA); DRAWNUMBER(L5<>REF(L5,1),L5,H5-L5,0,COLORMAGENTA); D:=VALUEWHEN(ISLASTBAR,H5); E:=VALUEWHEN(ISLASTBAR,L5);

DRAWNUMBER(LOW>0,D,D,0,COLORWHITE); DRAWNUMBER(LOW>0,E,E,0,COLORWHITE); DRAWTEXT(CROSS(CLOSE,H5),H5,'多'); DRAWTEXT(CROSS(L5,CLOSE),L5,'空');

文华指标21

HO:=HIGH>REF(HIGH,1)

&&

HIGH>REF(HIGH,2)

&&

HIGH>=REFX(HIGH,1)

IFELSE(HIGH=REFX(HIGH,2),HIGH>REFX(HIGH,3),HIGH>REFX(HIGH,2)); FXH:=CROSS(HO,0.9);

PP:=REF(HIGH,BARSLAST(FXH)); LO:=LOW

&&

LOW

&&

LOW<=REFX(LOW,1)

IFELSE(LOW=REFX(LOW,2),LOW

JJ:=REF(LOW,BARSLAST(FXL));

STICKLINE(CLOSE,PP,PP+0.001,COLORMAGENTA,0); STICKLINE(CLOSE,JJ,JJ+0.001,COLORGREEN,0); A:=CLOSE;

VAR1:=A>REF(A,1) && A>REF(A,2);

VAR2:=REF(VAR1,1) && A<=REF(A,1) && A>=REF(A,2); VAR3:=REF(VAR2,1) && A>=REF(A,1) && A<=REF(A,2); VAR4:=REF(VAR3,1) && A<=REF(A,1) && A>=REF(A,2); VAR5:=REF(VAR4,1) && A>=REF(A,1) && A<=REF(A,2);

&&

&&

VAR6:=REF(VAR5,1) && A<=REF(A,1) && A>=REF(A,2); VAR7:=REF(VAR6,1) && A>=REF(A,1) && A<=REF(A,2); VAR8:=REF(VAR7,1) && A<=REF(A,1) && A>=REF(A,2); VAR9:=REF(VAR8,1) && A>=REF(A,1) && A<=REF(A,2); VARA:=REF(VAR9,1) && A<=REF(A,1) && A>=REF(A,2); VARB:=REF(VARA,1) && A>=REF(A,1) && A<=REF(A,2); VARC:=REF(VARB,1) && A<=REF(A,1) && A>=REF(A,2);

STICKLINE(VAR1||VAR2||VAR3||VAR4||VAR5||VAR6||VAR7||VAR8||VAR9||VARA||VARB||VARC,A,REF(A,1),COLORRED,1);

VARD:=A

VARE:=REF(VARD,1) && A>=REF(A,1) && A<=REF(A,2); VARF:=REF(VARE,1) && A<=REF(A,1) && A>=REF(A,2); VAR10:=REF(VARF,1) && A>=REF(A,1) && A<=REF(A,2); VAR11:=REF(VAR10,1) && A<=REF(A,1) && A>=REF(A,2); VAR12:=REF(VAR11,1) && A>=REF(A,1) && A<=REF(A,2); VAR13:=REF(VAR12,1) && A<=REF(A,1) && A>=REF(A,2); VAR14:=REF(VAR13,1) && A>=REF(A,1) && A<=REF(A,2); VAR15:=REF(VAR14,1) && A<=REF(A,1) && A>=REF(A,2); VAR16:=REF(VAR15,1) && A>=REF(A,1) && A<=REF(A,2); VAR17:=REF(VAR16,1) && A<=REF(A,1) && A>=REF(A,2); VAR18:=REF(VAR17,1) && A>=REF(A,1) && A<=REF(A,2);

STICKLINE(VARD||VARE||VARF||VAR10||VAR11||VAR12||VAR13||VAR14||VAR15||VAR16||VAR17||VAR18,A,REF(A,1),COLORCYAN,1);

VAR19:=REF(VARD||VARE||VARF||VAR10||VAR11||VAR12||VAR13||VAR14||VAR15||VAR16||VAR17||VAR18,1)&&VAR1; STICKLINE(VAR19,REF(A,1),REF(A,2),COLORMAGENTA,0);

VAR1A:=REF(VAR1||VAR2||VAR3||VAR4||VAR5||VAR6||VAR7||VAR8||VAR9||VARA||VARB||VARC,1)&&VARD; STICKLINE(VAR1A,REF(A,1),REF(A,2),COLORGREEN,0); M1:=EMA(CLOSE,5); M2:=MA(CLOSE,0); M3:=MA(CLOSE,0); M4:=EMA(CLOSE,50);

PARTLINE(M1>0,M1,COLORGREEN); PARTLINE(M2>0,M2,COLORYELLOW); PARTLINE(M3>0,M3,COLORBLUE); Q1:=VALUEWHEN(ISLASTBAR,M1); Q2:=VALUEWHEN(ISLASTBAR,M2); Q3:=VALUEWHEN(ISLASTBAR,M3); Q4:=VALUEWHEN(ISLASTBAR,M4);

DRAWNUMBER(LOW>0,Q1,Q1,0,COLORGREEN); DRAWNUMBER(LOW>0,Q2,Q2,0,COLORYELLOW); DRAWNUMBER(LOW>0,Q3,Q3,0,COLORBLUE); DRAWNUMBER(LOW>0,Q4,Q4,0,COLORMAGENTA);

HH:=IFELSE(H>REF(H,1)&&H>REF(H,2)&&H>REF(H,3)&&H>REF(H,4)&&H>REF(H,5)&&L

LL:=IFELSE(H>REF(H,1)&&H>REF(H,2)&&H>REF(H,3)&&H>REF(H,4)&&H>REF(H,5)&&L

H1:=IFELSE(H>=REF(H,1)&&H>=REF(H,2)&&H>=REF(H,3)&&H>=REF(H,4)&&H>=REF(H,5)&& &&H>REFX(H,2)&&H>REFX(H,3)&&H>REFX(H,4) &&H>REFX(H,5),HH,0);

L1:=IFELSE(L<=REF(L,1)&&L<=REF(L,2)&&L<=REF(L,3)&&L<=REF(L,4)&&L<=REF(L,5)&& &&L

H5:=VALUEWHEN(H4REF(H4,2),HH); L5:=VALUEWHEN(L4>REF(L4,1)&&REF(L4,1)0,H5,COLORWHITE); POLYLINE(L5>0,L5,COLORWHITE);

DRAWNUMBER(H5<>REF(H5,1),H5,H5-L5,0,COLORMAGENTA); DRAWNUMBER(L5<>REF(L5,1),L5,H5-L5,0,COLORMAGENTA); D:=VALUEWHEN(ISLASTBAR,H5); E:=VALUEWHEN(ISLASTBAR,L5);

DRAWNUMBER(LOW>0,D,D,0,COLORWHITE); DRAWNUMBER(LOW>0,E,E,0,COLORWHITE); DRAWTEXT(CROSS(CLOSE,H5),H5,'★'); DRAWTEXT(CROSS(L5,CLOSE),L5,'☆');

文华指标22

HZ:=EMA(CLOSE,13); DB:EMA(HZ,1),COLORWHITE; ZB:EMA(HZ,26),COLORMAGENTA; JX148:=EMA(C,148);

HZ2:EMA(HZ,8),COLORGREEN; HZ4:EMA(HZ,39),COLORMAGENTA; FILLRGN(DB>HZ2,DB,HZ2,COLORGREEN); FILLRGN(DBHZ4,ZB,HZ4,COLORMAGENTA); FILLRGN(ZB

LREFX(H,1)

文华指标23

VAR1:=(CLOSE-LLV(LOW,29))/(HHV(HIGH,29)-LLV(LOW,29))*100; K: SMA(SMA(VAR1,3,1),3,1); D: SMA(K,3,1); J: 3*K-2*D;

VAR2:=SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,3,1); VAR3:=(CLOSE+HIGH+LOW+OPEN)/4; VAR4:=LLV(LOW,34); VAR5:=HHV(HIGH,34);

VAR6:=EMA((VAR3-VAR4)/(VAR5-VAR4)*100,8); VAR7:=EMA(VAR6,5); A:80, COLORYELLOW; B:50, COLORYELLOW; Ccc:20, COLORYELLOW; VAR8:=MA(CLOSE,3); VAR9:=REF(CLOSE,2)*0.865; VARA:=REF(CLOSE,13)*0.772; VARB:=MIN(VAR9,VARA); VARD:=MA(CLOSE,13);

VARE:=CLOSE>0.899*REF(CLOSE,1) && CLOSE<0.901*REF(CLOSE,1); VARF:=EMA(CLOSE,30)-EMA(CLOSE,17);

STICKLINE(VAR6-VAR7>0,VAR6,VAR7,COLORRED,1); STICKLINE(VAR6-VAR7<0,VAR6,VAR7,COLORGREEN,1);

文华指标24

//黄金分割2

A:LLV(LOW,0),COLORGREEN; B:HHV(HIGH,0),COLORMAGENTA; G:A+(B-A)*0.809,COLORLIGHTGREY; E:A+(B-A)*0.618,COLORLIGHTRED; F:A+(B-A)*0.5,COLORYELLOW; D:A+(B-A)*0.382,COLORLIGHTGREEN; GG:A+(B-A)*0.191,COLORLIGHTGREY;

DRAWNUMBER(ISLASTBAR,G,0.809,3,COLORLIGHTGREY); DRAWNUMBER(ISLASTBAR,E,0.618,3,COLORLIGHTRED);

DRAWNUMBER(ISLASTBAR,F,0.5,3,COLORYELLOW); DRAWNUMBER(ISLASTBAR,D,0.382,3,COLORLIGHTGREEN); DRAWNUMBER(ISLASTBAR,GG,0.191,3,COLORLIGHTGREY); TMP:=OPEN-CLOSE;

SARLINE:=ABS(SAR(3,0.01,0.1));

DRAWLINE(CLOSE>SARLINE,HIGH,TMP>0.00001,OPEN,COLORRED); DRAWLINE(CLOSE>SARLINE,LOW,TMP>0.00001,CLOSE,COLORRED); DRAWLINE(CLOSE>SARLINE,HIGH,TMP<-0.00001,CLOSE,COLORRED); DRAWLINE(CLOSE>SARLINE,LOW,TMP<-0.00001,OPEN,COLORRED); DRAWLINE(CLOSE>SARLINE,LOW,ABS(TMP)<0.00001,OPEN,COLORRED); DRAWLINE(CLOSE>SARLINE,HIGH,ABS(TMP)<0.00001,OPEN,COLORRED); STICKLINE(TMP>0&&CLOSE>SARLINE,OPEN,CLOSE,COLORRED,0); STICKLINE(TMP<=0&&CLOSE>SARLINE,OPEN,CLOSE,COLORRED,1); DRAWLINE(CLOSE0.00001,OPEN,COLORGREEN); DRAWLINE(CLOSE0.00001,CLOSE,COLORGREEN); DRAWLINE(CLOSE0&&CLOSE

文华指标25

TB:=IFELSE(HIGH>REF(CLOSE,1),HIGH-REF(CLOSE,1)+CLOSE-LOW,CLOSE-LOW); TS:=IFELSE(REF(CLOSE,1)>LOW,REF(CLOSE,1)-LOW+HIGH-CLOSE,HIGH-CLOSE); VOL0:=(TB-TS)*VOL/(TB+TS)/10000; VOL1:=DMA(VOL0,0.1); VOL2:=DMA(VOL0,0.05); RES1:=VOL1-VOL2;

LON:SUM(RES1,0),COLORSTICK; MA1:MA(LON,10),COLORYELLOW;

FILLRGN( LON=MA1, LON, MA1,COLORLIGHTRED);

文华指标26

DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26); DEA:=EMA(DIFF,9);

MA(CLOSE,8),COLORWHITE; MA(CLOSE,21),COLORYELLOW;

STICKLINE(DIFF>DEA,CLOSE,OPEN,COLORRED,0); STICKLINE(DIFF>DEA,HIGH,LOW,COLORRED,0); STICKLINE(DIFF<=DEA,CLOSE,OPEN,COLORBLUE,0); STICKLINE(DIFF<=DEA,HIGH,LOW,COLORBLUE,0); DRAWTEXT(CROSS(DIFF,DEA),LOW-0.2,'多'),COLORWHITE; DRAWTEXT(CROSS(DEA,DIFF),HIGH+0.2,'空'),COLORGREEN;

文华指标27 N1:=8; N2:=13;

Y1:=(MA(CLOSE,2)+MA(CLOSE,3)+MA(CLOSE,4)+MA(CLOSE,5))/4; Y2:=EMA(Y1,5); Y3:=EMA(Y2,3);

YY:EMA(Y3,N1),COLORRED;

Z1:=(MA(CLOSE,9)+MA(CLOSE,6)+MA(CLOSE,7)+MA(CLOSE,8))/4; Z2:=EMA(Z1,5); Z3:=EMA(Z2,3);

ZZ:EMA(Z3,N2),COLORGREEN;

VERTLINE( CROSS( YY,ZZ ) , COLORRED); VERTLINE( CROSS( ZZ, YY), COLORGREEN); DRAWTEXT( CROSS( YY,ZZ ), ZZ, '▲'); DRAWTEXT( CROSS( ZZ,YY ),YY , '▽');

DRAWLINE(YY>=ZZ,HIGH,YY>=ZZ,OPEN,COLORRED); DRAWLINE(YY>=ZZ,LOW,YY>=ZZ,CLOSE,COLORRED); DRAWLINE(YY

DRAWLINE(ABS(YY-ZZ)<0.00001,LOW,ABS(YY-ZZ)<0.00001,OPEN,COLORWHITE); DRAWLINE(ABS(YY-ZZ)<0.00001,HIGH,ABS(YY-ZZ)<0.00001,OPEN,COLORWHITE); STICKLINE((YY-ZZ)>0.00001,OPEN,CLOSE,COLORRED,1); STICKLINE((YY-ZZ)<-0.00001,OPEN,CLOSE,COLORCYAN,1);

文华指标28

VAR1:=MA(CLOSE,4); VAR2:=MA(CLOSE,10); VAR3:=MA(CLOSE,16); VAR4:=MA(CLOSE,22); VARA:=MA(CLOSE,28);

VAR5:=(VAR1+VAR2+VAR3+VAR4+VARA)/5; VAR6:=(VAR5-REF(VAR5,6))/REF(VAR5,6)*2500; VAR7:=(VAR5-REF(VAR5,6))/REF(VAR5,6)*2500; VAR8:=EMA(VAR6,3);

STICKLINE(VAR6>REF(VAR6,1) && VAR6<0 && VAR6REF(VAR8,1) && VAR6<0 && VAR6>VAR8,VAR8,0,COLORYELLOW,0); STICKLINE(VAR6>REF(VAR6,1) && VAR6>0 && VAR8<0,VAR6,VAR8,COLORMAGENTA,0); STICKLINE(VAR8>REF(VAR8,1) && VAR8>0,VAR6,0,COLORRED,0);

STICKLINE(VAR6REF(VAR8,1) && VAR6>0,VAR6,VAR8,COLORWHITE,0); STICKLINE(VAR6

文华指标29

DRAWLINE((EMA(CLOSE,13) >= EMA(CLOSE,34)),LOW,(EMA(CLOSE,13) >= EMA(CLOSE,34)),HIGH,COLORRED); STICKLINE((EMA(CLOSE,13) >= EMA(CLOSE,34)),OPEN,CLOSE,COLORRED,3);

DRAWLINE((EMA(CLOSE,13) < EMA(CLOSE,34)),LOW,(EMA(CLOSE,13) < EMA(CLOSE,34)),HIGH,COLORGREEN); STICKLINE((EMA(CLOSE,13) < EMA(CLOSE,34)),OPEN,CLOSE,COLORGREEN,3); PARTLINE((EMA(CLOSE,13) >= EMA(CLOSE,34)),LLV(CLOSE,3),COLORMAGENTA); PARTLINE((EMA(CLOSE,13) < EMA(CLOSE,34)),HHV(CLOSE,3),COLORBLUE); DRAWTEXT(CROSS(EMA(CLOSE,13),EMA(CLOSE,34)),LOW,'多'); DRAWTEXT(CROSS(EMA(CLOSE,34),EMA(CLOSE,13)),HIGH,'空');

文华指标30

MA1:=MA(HIGH,30); MA2:=MA(LOW,30);

STICKLINE(CLOSE=OPEN,OPEN,CLOSE,COLORCYAN,1);

STICKLINE(CLOSEOPEN,CLOSE,COLORCYAN); DRAWLINE(CLOSEOPEN,OPEN,COLORCYAN); DRAWLINE(CLOSEMA2 && CLOSE>=OPEN,OPEN,CLOSE,COLORRED,1); STICKLINE(CLOSE>MA2 && CLOSEMA2,HIGH,CLOSE>OPEN,CLOSE,COLORRED); DRAWLINE(CLOSE>MA2,LOW,CLOSE>OPEN,OPEN,COLORRED); DRAWLINE(CLOSE>MA2,HIGH,CLOSEMA2,LOW,CLOSEMA2,HIGH,CLOSE=OPEN,LOW,COLORRED); DRAWLINE(CLOSE>MA1,MA1,OPEN>MA1,MA2,COLORMAGENTA ); DRAWLINE(CLOSE

STICKLINE(CLOSE>=MA2 && CLOSE<=MA1 && CLOSE>=OPEN,OPEN,CLOSE,COLORYELLOW,1); STICKLINE(CLOSE>=MA2 && CLOSE<=MA1 && CLOSE=MA2 && CLOSE<=MA1,HIGH,CLOSE>OPEN,CLOSE,COLORYELLOW); DRAWLINE(CLOSE>=MA2 && CLOSE<=MA1,LOW,CLOSE>OPEN,OPEN,COLORYELLOW); DRAWLINE(CLOSE>=MA2 && CLOSE<=MA1,HIGH,CLOSE=MA2 && CLOSE<=MA1,LOW,CLOSE=MA2 && CLOSE<=MA1,HIGH,CLOSE=OPEN,LOW,COLORYELLOW); MA3:=MA(HIGH,30); A:=MA3-REF(MA1,1); B:=REFX(A,1);

C1:=IFELSE(MA3>=REF(MA3,1) && REF(MA3,1)>=REF(MA3,2),1,0); DRAWSL(C1=1,MA3,B,1,0,COLORMAGENTA); MA4:=MA(LOW,30); D:=MA4-REF(MA4,1); E:=REFX(D,1);

F:=IFELSE(MA4>=REF(MA4,1) && REF(MA4,1)>=REF(MA4,2),1,0); DRAWSL(F=1,MA4,E,1,0,COLORMAGENTA); MA5:=MA(HIGH,30); G:=MA5-REF(MA5,1); H1:=REFX(G,1);

I:=IFELSE(MA5<=REF(MA5,1) && REF(MA5,1)<=REF(MA5,2),1,0); DRAWSL(I=1,MA5,H1,1,0,COLORGREEN); MA6:=MA(LOW,30); J:=MA6-REF(MA6,1); K:=REFX(J,1);

L1:=IFELSE(MA6<=REF(MA6,1) && REF(MA6,1)<=REF(MA6,2),1,0); DRAWSL(L1=1,MA6,K,1,0,COLORGREEN);

文华指标31

HH1:=IFELSE(HIGH REF(LOW,2)&&REF(LOW,1)>REF(LOW,2),REF(LOW,2),0); HH2:=VALUEWHEN(HH1>0,HH1); LL2:=VALUEWHEN(LL1>0,LL1);

K1:=IFELSE(CLOSE>HH2,-3,IFELSE(CLOSE0,K1); G:=IFELSE(K2=1,HH2,LL2); G1:=VALUEWHEN(ISLASTBAR,G);

DRAWNUMBER(L>0,G1,G1,0,COLORCYAN); W1:=K2;

W2:=OPEN-CLOSE;

HT:=IFELSE(OPEN>CLOSE,OPEN,CLOSE); LT:=IFELSE(OPEN0,OPEN,CLOSE,COLORCYAN,1); STICKLINE(W1<=0,OPEN,CLOSE,COLORRED,1);

STICKLINE(W2>0&&W1<=0,OPEN,CLOSE,COLORRED,0); STICKLINE(W2>0&&W1>0,OPEN,CLOSE,COLORCYAN,0);

DRAWLINE(W1=1&&REF(W1,1)=1,G,W1=1&&REF(W1,1)=1,REF(G,1),COLORGREEN); DRAWLINE(W1=-3&&REF(W1,1)=-3,G,W1=-3&&REF(W1,1)=-3,REF(G,1),COLORYELLOW); DRAWSL(K2=1,G,0,1,0,COLORGREEN); DRAWSL(K2=-3,G,0,1,0,COLORYELLOW);

HH:=IFELSE(HIGH>REF(HIGH,1)&& HIGH >REF(HIGH,2)&& HIGH >REF(HIGH,3)&& HIGH >REF (HIGH,4)&& LOW

&& LOW REF(HIGH,1)&& HIGH>REF(HIGH,2)&& HIGH >REF(HIGH,3)&& HIGH >REF (HIGH,4)&& LOW

&& LOW

H1:=IFELSE(HIGH >=REF(HIGH,1)&& HIGH >=REF(HIGH,2)&& HIGH >=REF(HIGH,3)&& HIGH >=REF(HIGH,4)&& HIGH >REFX(HIGH,1)

&& HIGH >REFX(HIGH,2)&& HIGH >REFX(HIGH,3)&& HIGH >REFX(HIGH,4),HH,0);

L1:=IFELSE(LOW <=REF(LOW,1)&& LOW <=REF(LOW,2)&& LOW <=REF(LOW,3)&& LOW <=REF (LOW,4)&& LOW

&& LOW

H3:=REFX(REF(H1,H2),2); L3:=REFX(REF(L1,L2),2); H4:=ZIGZAG(H3,0,0); L4:=ZIGZAG(L3,0,0);

H5:=VALUEWHEN(H4REF(H4,2),HH); L5:=VALUEWHEN(L4>REF(L4,1)&&REF(L4,1)0,H5,COLORWHITE); POLYLINE(L5>0,L5,COLORWHITE);

DRAWNUMBER(H5<>REF(H5,1),H5,H5-L5,0,COLORMAGENTA); DRAWNUMBER(L5<>REF(L5,1),L5,H5-L5,0,COLORMAGENTA); D:=VALUEWHEN(ISLASTBAR,H5); E:=VALUEWHEN(ISLASTBAR,L5);

DRAWNUMBER(LOW>0,D,D,0,COLORWHITE); DRAWNUMBER(LOW>0,E,E,0,COLORWHITE); DRAWTEXT(CROSS(CLOSE,H5),H5,'♂'); DRAWTEXT(CROSS(L5,CLOSE),L5,'▼');

文华指标32

MA1:=MA(HIGH,30); MA2:=MA(LOW,30);

STICKLINE(CLOSE=OPEN,OPEN,CLOSE,COLORCYAN,1); STICKLINE(CLOSEMA2 && CLOSE>=OPEN,OPEN,CLOSE,COLORRED,1); STICKLINE(CLOSE>MA2 && CLOSE

文华指标33

VAR1:EMA(CLOSE,3),COLORGREEN; VAR2: EMA(CLOSE,21),COLORGREEN;

STICKLINE(VAR1>VAR2,VAR2,VAR1,COLORMAGENTA,1); STICKLINE(VAR1

LM1:=SE; LM2:=BU;

OK:=((KK1 > KK2)||(LM1 > LM2)); OK1:=((KK1 > KK2)||(LM1 > LM2)); NOK:=((KK2 > KK1)||(LM2 > LM1)); NOK1:=((KK2 > KK1)||(LM2 > LM1));

STICKLINE(OK1,CLOSE,OPEN,COLORGREEN,0); DRAWLINE(OK1,HIGH,OK1,LOW,COLORGREEN); STICKLINE(OK,CLOSE,OPEN,COLORRED,0); DRAWLINE(OK,HIGH,OK,LOW,COLORRED); STICKLINE(NOK,CLOSE,OPEN,COLORRED,0); DRAWLINE(NOK,HIGH,NOK,LOW,COLORRED); STICKLINE(NOK1,CLOSE,OPEN,COLORGREEN,0); DRAWLINE(NOK1,HIGH,NOK1,LOW,COLORGREEN);

文华指标34

DKX:EMA2(CLOSE,21),COLORYELLOW; DKXM:MA(DKX,10),COLORGREEN;

STICKLINE(DKX>DKXM,DKX,DKXM,COLORYELLOW,0); STICKLINE(DKX<=DKXM,DKX,DKXM,COLORLIGHTGREY,0);

文华指标35

HNL:=IFELSE(HIGH>REF(HHV(HIGH,3),1),LOW,0);

L1:=IFELSE(HNL>REF(L,1),REF(L,1),IFELSE(HNL>REF(L,2),REF(L,2),IFELSE(HNL>REF(L,3),REF(L,3),IFELSE(HNL>REF(L,4),REF(L,4),0))));

L2:=IFELSE(L1>REF(L,1),REF(L,1),IFELSE(L1>REF(L,2),REF(L,2),IFELSE(L1>REF(L,3),REF(L,3),IFELSE(L1>REF(L,4),REF(L,4),0))));

L3:=VALUEWHEN(L2>0,L2);

LNH:=IFELSE(LOW

H1:=IFELSE(LNH

H2:=IFELSE(H1

H3:=VALUEWHEN(H2>0,H2);

SEL:=VALUEWHEN((CLOSE>H3&&REF(CLOSE,1)<=H3)||(CLOSE=L3),IFELSE(CLOSE>H3&&REF(CLOSE,1)<=H3,1,0));

LINE:IFELSE(SEL=1,L3,H3),COLORYELLOW;

DRAWNUMBER(ISLASTBAR,LINE,LINE,0,COLORYELLOW);

文华指标36

H11:=HIGH; L11:=LOW;

A:=IFELSE(HIGH>=REF(HIGH,1)&&HIGH>=REF(HIGH,2)&&HIGH>=REF(HIGH,3) &&HIGH>=REF(HIGH,4)&&HIGH>=REF(HIGH,5),LOW,0);

B:=IFELSE(LOW<=REF(LOW,1)&&LOW<=REF(LOW,2)&&LOW<=REF(LOW,3) &&LOW<=REF(LOW,4)&&LOW<=REF(LOW,5),HIGH,888888); P1:=IFELSE(A>REF(L11,1),REF(L11,1),0);

P2:=IFELSE(A>REF(L11,2)&&A<=REF(L11,1),REF(L,2),0);

P3:=IFELSE(A>REF(L11,3)&&A<=REF(L11,1)&&A<=REF(L11,2),REF(L11,3),0);

P4:=IFELSE(A>REF(L11,4)&&A<=REF(L11,1)&&A<=REF(L11,2)&&A<=REF(L11,3),REF(L11,4),0);

P5:=IFELSE(A>REF(L11,5)&&A<=REF(L11,1)&&A<=REF(L11,2)&&A<=REF(L11,3)&&A<=REF(L11,4),REF(L11,5),0); P6:=IFELSE(A>REF(L11,6)&&A<=REF(L11,1)&&A<=REF(L11,2)&&A<=REF(L11,3)&&A<=REF(L11,4)&&A<=REF(L11,5),REF(L11,6),0);

P7:=IFELSE(A>REF(L11,7)&&A<=REF(L11,1)&&A<=REF(L11,2)&&A<=REF(L11,3)&&A<=REF(L11,4)&&A<=REF(L11,5)&&A<=REF(L11,6),REF(L11,7),0);

P8:=IFELSE(A>REF(L11,8)&&A<=REF(L11,1)&&A<=REF(L11,2)&&A<=REF(L11,3)&&A<=REF(L11,4)&&A<=REF(L11,5)&&A<=REF(L11,6)&&A<=REF(L11,7),REF(L11,8),0);

P9:=IFELSE(A>REF(L11,9)&&A<=REF(L11,1)&&A<=REF(L11,2)&&A<=REF(L11,3)&&A<=REF(L11,4)&&A<=REF(L11,5)&&A<=REF(L11,6)&&A<=REF(L11,7)&&A<=REF(L11,8),REF(L11,9),0);

P10:=IFELSE(A>REF(L11,10)&&A<=REF(L11,1)&&A<=REF(L11,2)&&A<=REF(L11,3)&&A<=REF(L11,4)&&A<=REF(L11,5)&&A<=REF(L11,6)&&A<=REF(L11,7)&&A<=REF(L11,8)&&A<=REF(L11,9),REF(L11,10),0); AA:=P1+P2+P3+P4+P5+P6+P7+P8+P9+P10; PP1:=IFELSE(AA>REF(L11,1),REF(L11,1),0);

PP2:=IFELSE(AA>REF(L11,2)&&AA<=REF(L11,1),REF(L11,2),0);

PP3:=IFELSE(AA>REF(L11,3)&&AA<=REF(L11,1)&&AA<=REF(L11,2),REF(L11,3),0);

PP4:=IFELSE(AA>REF(L11,4)&&AA<=REF(L11,1)&&AA<=REF(L11,2)&&AA<=REF(L11,3),REF(L11,4),0);

PP5:=IFELSE(AA>REF(L11,5)&&AA<=REF(L11,1)&&AA<=REF(L11,2)&&AA<=REF(L11,3)&&AA<=REF(L11,4),REF(L11,5),0);

PP6:=IFELSE(AA>REF(L11,6)&&AA<=REF(L11,1)&&AA<=REF(L11,2)&&AA<=REF(L11,3)&&AA<=REF(L11,4)&&AA<=REF(L11,5),REF(L11,6),0);

PP7:=IFELSE(AA>REF(L11,7)&&AA<=REF(L11,1)&&AA<=REF(L11,2)&&AA<=REF(L11,3)&&AA<=REF(L11,4)&&AA<=REF(L11,5)&&AA<=REF(L11,6),REF(L11,7),0);

PP8:=IFELSE(AA>REF(L11,8)&&AA<=REF(L11,1)&&AA<=REF(L11,2)&&AA<=REF(L11,3)&&AA<=REF(L11,4)&&AA

<=REF(L11,5)&&AA<=REF(L11,6)&&AA<=REF(L11,7),REF(L11,8),0);

PP9:=IFELSE(AA>REF(L11,9)&&AA<=REF(L11,1)&&AA<=REF(L11,2)&&AA<=REF(L11,3)&&AA<=REF(L11,4)&&AA<=REF(L11,5)&&AA<=REF(L11,6)&&AA<=REF(L11,7)&&AA<=REF(L11,8),REF(L11,9),0);

PP10:=IFELSE(AA>REF(L11,10)&&AA<=REF(L11,1)&&AA<=REF(L11,2)&&AA<=REF(L11,3)&&AA<=REF(L11,4)&&AA<=REF(L11,5)&&AA<=REF(L11,6)&&AA<=REF(L11,7)&&AA<=REF(L11,8)&&AA<=REF(L11,9),REF(L11,10),0); AAA:=PP1+PP2+PP3+PP4+PP5+PP6+PP7+PP8+PP9+PP10; C11:=VALUEWHEN(AAA>0,AAA); T1:=IFELSE(B

T2:=IFELSE(B=REF(H11,1),REF(H11,2),0);

T3:=IFELSE(B=REF(H11,1)&&B>=REF(H11,2),REF(H11,3),0);

T4:=IFELSE(B=REF(H11,1)&&B>=REF(H11,2)&&B>=REF(H11,3),REF(H11,4),0);

T5:=IFELSE(B=REF(H11,1)&&B>=REF(H11,2)&&B>=REF(H11,3)&&B>=REF(H11,4),REF(H11,5),0); T6:=IFELSE(B=REF(H11,1)&&B>=REF(H11,2)&&B>=REF(H11,3)&&B>=REF(H11,4)&&B>=REF(H11,5),REF(H11,6),0);

T7:=IFELSE(B=REF(H11,1)&&B>=REF(H11,2)&&B>=REF(H11,3)&&B>=REF(H11,4)&&B>=REF(H11,5)&&B>=REF(H11,6),REF(H11,7),0);

T8:=IFELSE(B=REF(H11,1)&&B>=REF(H11,2)&&B>=REF(H11,3)&&B>=REF(H11,4)&&B>=REF(H11,5)&&B>=REF(H11,6)&&B>=REF(H11,7),REF(H11,8),0);

T9:=IFELSE(B=REF(H11,1)&&B>=REF(H11,2)&&B>=REF(H11,3)&&B>=REF(H11,4)&&B>=REF(H11,5)&&B>=REF(H11,6)&&B>=REF(H11,7)&&B>=REF(H11,8),REF(H11,9),0);

T10:=IFELSE(B=REF(H11,1)&&B>=REF(H11,2)&&B>=REF(H11,3)&&B>=REF(H11,4)&&B>=REF(H11,5)&&B>=REF(H11,6)&&B>=REF(H11,7)&&B>=REF(H11,8)&&B>=REF(H11,9),REF(H11,10),0); BB:=IFELSE((T1+T2+T3+T4+T5+T6+T7+T8+T9+T10)=0,888888,T1+T2+T3+T4+T5+T6+T7+T8+T9+T10); TT1:=IFELSE(BB

TT2:=IFELSE(BB=REF(H11,1),REF(H11,2),0);

TT3:=IFELSE(BB=REF(H11,1)&&BB>=REF(H11,2),REF(H11,3),0);

TT4:=IFELSE(BB=REF(H11,1)&&BB>=REF(H11,2)&&BB>=REF(H11,3),REF(H11,4),0);

TT5:=IFELSE(BB=REF(H11,1)&&BB>=REF(H11,2)&&BB>=REF(H11,3)&&BB>=REF(H11,4),REF(H11,5),0);

TT6:=IFELSE(BB=REF(H11,1)&&BB>=REF(H11,2)&&BB>=REF(H11,3)&&BB>=REF(H11,4)&&BB>=REF(H11,5),REF(H11,6),0);

TT7:=IFELSE(BB=REF(H11,1)&&BB>=REF(H11,2)&&BB>=REF(H11,3)&&BB>=REF(H11,4)&&BB>=REF(H11,5)&&BB>=REF(H11,6),REF(H11,7),0);

TT8:=IFELSE(BB=REF(H11,1)&&BB>=REF(H11,2)&&BB>=REF(H11,3)&&BB>=REF(H11,4)&&BB>=REF(H11,5)&&BB>=REF(H11,6)&&BB>=REF(H11,7),REF(H11,8),0);

TT9:=IFELSE(BB=REF(H11,1)&&BB>=REF(H11,2)&&BB>=REF(H11,3)&&BB>=REF(H11,4)&&BB>=REF(H11,5)&&BB>=REF(H11,6)&&BB>=REF(H11,7)&&BB>=REF(H11,8),REF(H11,9),0);

TT10:=IFELSE(BB=REF(H11,1)&&BB>=REF(H11,2)&&BB>=REF(H11,3)&&BB>=REF(H11,4)&&BB>=REF(H11,5)&&BB>=REF(H11,6)&&BB>=REF(H11,7)&&BB>=REF(H11,8)&&BB>=REF(H11,9),REF(H11,10),0); BBB:=TT1+TT2+TT3+TT4+TT5+TT6+TT7+TT8+TT9+TT10; D:=VALUEWHEN(BBB>0,BBB);

UD:=IFELSE(CLOSE>D&&REF(CLOSE,1)<=D,1,IFELSE(CLOSE=C11,-3,0)); K:=VALUEWHEN(UD<>0,UD); G:=IFELSE(K=1,C11,D),COLORRED;

POLYLINE(LOW>0,G,COLORYELLOW); G1:=VALUEWHEN(ISLASTBAR,G);

DRAWNUMBER(LOW>0,G1,G1,0,COLORYELLOW); TMP:=-K;

DRAWLINE(C<=G,HIGH,C<=G,OPEN,COLORGREEN); DRAWLINE(C<=G,LOW,C<=G,CLOSE,COLORGREEN); DRAWLINE(C>G,HIGH,C>G,CLOSE,COLORRED); DRAWLINE(C>G,LOW,C>G,OPEN,COLORRED);

DRAWLINE(ABS(TMP)<0.00001,LOW,ABS(TMP)<0.00001,OPEN,COLORWHITE); DRAWLINE(ABS(TMP)<0.00001,HIGH,ABS(TMP)<0.00001,OPEN,COLORWHITE); STICKLINE(C<=G,OPEN,CLOSE,COLORGREEN,0); STICKLINE(C>G,OPEN,CLOSE,COLORRED,0); DRAWTEXT(CROSS(C,G),L-5,'买'); DRAWTEXT(CROSS(G,C),H+10,'卖');

文华指标37

S:=CROSS(CLOSE,EMA2(HIGH,30)); X:=CROSS(EMA2(LOW,30),CLOSE); WS:=BARSLAST(S)+1; WX:=BARSLAST(X)+1; SS:=CROSS(SUM(S,WX),0.5); XX:=CROSS(SUM(X,WS),0.5);

STICKLINE(CLOSE>EMA2(HIGH,30),EMA2(HIGH,30),EMA2(LOW,30),COLORMAGENTA,1); STICKLINE(CLOSE

STICKLINE(CLOSE>EMA2(HIGH,150),EMA2(HIGH,150),EMA2(LOW,150),COLORLIGHTRED,1); STICKLINE(CLOSEEMA2(HIGH,30),EMA2(HIGH,30),COLORMAGENTA); PARTLINE(CLOSEEMA2(LOW,30),EMA2(LOW,30),COLORMAGENTA); PARTLINE(CLOSEEMA2(HIGH,150),EMA2(HIGH,150),COLORLIGHTRED); PARTLINE(CLOSEEMA2(LOW,150),EMA2(LOW,150),COLORLIGHTRED); PARTLINE(CLOSE=CLOSE,CLOSE,OPEN,COLORRED,0); STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,COLORCYAN,0); DRAWTEXT(SS,LOW,'买入'); DRAWTEXT(XX,HIGH,'卖出');

文华指标38

MA50:MA(CLOSE,50);

STICKLINE(CLOSE

DRAWLINE(CLOSEMA50,OPEN,CLOSE,COLORRED,0); DRAWLINE(CLOSE>MA50,HIGH,CLOSE>MA50,LOW,0);

文华指标38 N:=34;

A1:=IFELSE(DAY=1,CLOSE,0); A2:=IFELSE(DAY=2,CLOSE,0); A3:=IFELSE(DAY=3,CLOSE,0); A4:=IFELSE(DAY=4,CLOSE,0); A5:=IFELSE(DAY=5,CLOSE,0); A6:=IFELSE(DAY=6,CLOSE,0); A7:=IFELSE(DAY=7,CLOSE,0); A8:=IFELSE(DAY=8,CLOSE,0); A9:=IFELSE(DAY=9,CLOSE,0); A10:=IFELSE(DAY=10,CLOSE,0); A11:=IFELSE(DAY=11,CLOSE,0); A12:=IFELSE(DAY=12,CLOSE,0); A13:=IFELSE(DAY=13,CLOSE,0); A14:=IFELSE(DAY=14,CLOSE,0); A15:=IFELSE(DAY=15,CLOSE,0); A16:=IFELSE(DAY=16,CLOSE,0); A17:=IFELSE(DAY=17,CLOSE,0); A18:=IFELSE(DAY=18,CLOSE,0); A19:=IFELSE(DAY=19,CLOSE,0); A20:=IFELSE(DAY=20,CLOSE,0); A21:=IFELSE(DAY=21,CLOSE,0); A22:=IFELSE(DAY=22,CLOSE,0); A23:=IFELSE(DAY=23,CLOSE,0); A24:=IFELSE(DAY=24,CLOSE,0);

A25:=IFELSE(DAY=25,CLOSE,0); A26:=IFELSE(DAY=26,CLOSE,0); A27:=IFELSE(DAY=27,CLOSE,0); A28:=IFELSE(DAY=28,CLOSE,0); A29:=IFELSE(DAY=29,CLOSE,0); A30:=IFELSE(DAY=30,CLOSE,0); A31:=IFELSE(DAY=31,CLOSE,0); B1:=IFELSE(DAY=1,VOL,0); B2:=IFELSE(DAY=2,VOL,0); B3:=IFELSE(DAY=3,VOL,0); B4:=IFELSE(DAY=4,VOL,0); B5:=IFELSE(DAY=5,VOL,0); B6:=IFELSE(DAY=6,VOL,0); B7:=IFELSE(DAY=7,VOL,0); B8:=IFELSE(DAY=8,VOL,0); B9:=IFELSE(DAY=9,VOL,0); B10:=IFELSE(DAY=10,VOL,0); B11:=IFELSE(DAY=11,VOL,0); B12:=IFELSE(DAY=12,VOL,0); B13:=IFELSE(DAY=13,VOL,0); B14:=IFELSE(DAY=14,VOL,0); B15:=IFELSE(DAY=15,VOL,0); B16:=IFELSE(DAY=16,VOL,0); B17:=IFELSE(DAY=17,VOL,0); B18:=IFELSE(DAY=18,VOL,0); B19:=IFELSE(DAY=19,VOL,0); B20:=IFELSE(DAY=20,VOL,0); B21:=IFELSE(DAY=21,VOL,0); B22:=IFELSE(DAY=22,VOL,0); B23:=IFELSE(DAY=23,VOL,0); B24:=IFELSE(DAY=24,VOL,0); B25:=IFELSE(DAY=25,VOL,0); B26:=IFELSE(DAY=26,VOL,0); B27:=IFELSE(DAY=27,VOL,0); B28:=IFELSE(DAY=28,VOL,0); B29:=IFELSE(DAY=29,VOL,0); B30:=IFELSE(DAY=30,VOL,0); B31:=IFELSE(DAY=31,VOL,0); AB1:=SUM(A1*B1,N)/SUM(B1,N); AB2:=SUM(A2*B2,N)/SUM(B2,N); AB3:=SUM(A3*B3,N)/SUM(B3,N); AB4:=SUM(A4*B4,N)/SUM(B4,N); AB5:=SUM(A5*B5,N)/SUM(B5,N); AB6:=SUM(A6*B6,N)/SUM(B6,N);

AB7:=SUM(A7*B7,N)/SUM(B7,N); AB8:=SUM(A8*B8,N)/SUM(B8,N); AB9:=SUM(A9*B9,N)/SUM(B9,N); AB10:=SUM(A10*B10,N)/SUM(B10,N); AB11:=SUM(A11*B11,N)/SUM(B11,N); AB12:=SUM(A12*B12,N)/SUM(B12,N); AB13:=SUM(A13*B13,N)/SUM(B13,N); AB14:=SUM(A14*B14,N)/SUM(B14,N); AB15:=SUM(A15*B15,N)/SUM(B15,N); AB16:=SUM(A16*B16,N)/SUM(B16,N); AB17:=SUM(A17*B17,N)/SUM(B17,N); AB18:=SUM(A18*B18,N)/SUM(B18,N); AB19:=SUM(A19*B19,N)/SUM(B19,N); AB20:=SUM(A20*B20,N)/SUM(B20,N); AB21:=SUM(A21*B21,N)/SUM(B21,N); AB22:=SUM(A22*B22,N)/SUM(B22,N); AB23:=SUM(A23*B23,N)/SUM(B23,N); AB24:=SUM(A24*B24,N)/SUM(B24,N); AB25:=SUM(A25*B25,N)/SUM(B25,N); AB26:=SUM(A26*B26,N)/SUM(B26,N); AB27:=SUM(A27*B27,N)/SUM(B27,N); AB28:=SUM(A28*B28,N)/SUM(B28,N); AB29:=SUM(A29*B29,N)/SUM(B29,N); AB30:=SUM(A30*B30,N)/SUM(B30,N); AB31:=SUM(A31*B31,N)/SUM(B31,N); PARTLINE(DAY=1,AB1,COLORYELLOW); PARTLINE(DAY=2,AB2,COLORYELLOW); PARTLINE(DAY=3,AB3,COLORYELLOW); PARTLINE(DAY=4,AB4,COLORYELLOW); PARTLINE(DAY=5,AB5,COLORYELLOW); PARTLINE(DAY=6,AB6,COLORYELLOW); PARTLINE(DAY=7,AB7,COLORYELLOW); PARTLINE(DAY=8,AB8,COLORYELLOW); PARTLINE(DAY=9,AB9,COLORYELLOW); PARTLINE(DAY=10,AB10,COLORYELLOW); PARTLINE(DAY=11,AB11,COLORYELLOW); PARTLINE(DAY=12,AB12,COLORYELLOW); PARTLINE(DAY=13,AB13,COLORYELLOW); PARTLINE(DAY=14,AB14,COLORYELLOW); PARTLINE(DAY=15,AB15,COLORYELLOW); PARTLINE(DAY=16,AB16,COLORYELLOW); PARTLINE(DAY=17,AB17,COLORYELLOW); PARTLINE(DAY=18,AB18,COLORYELLOW); PARTLINE(DAY=19,AB19,COLORYELLOW);

PARTLINE(DAY=20,AB20,COLORYELLOW); PARTLINE(DAY=21,AB21,COLORYELLOW); PARTLINE(DAY=22,AB22,COLORYELLOW); PARTLINE(DAY=23,AB23,COLORYELLOW); PARTLINE(DAY=24,AB24,COLORYELLOW); PARTLINE(DAY=25,AB25,COLORYELLOW); PARTLINE(DAY=26,AB26,COLORYELLOW); PARTLINE(DAY=27,AB27,COLORYELLOW); PARTLINE(DAY=28,AB28,COLORYELLOW); PARTLINE(DAY=29,AB29,COLORYELLOW); PARTLINE(DAY=30,AB30,COLORYELLOW); PARTLINE(DAY=31,AB31,COLORYELLOW);

文华指标39

Y:=(HIGH+LOW)/2;

AO:=MA(Y ,5 )-MA(Y ,34 ),COLORWHITE; AO1:=REF(AO,1);

AC:=AO-MA( AO,5),COLORYELLOW; A:=0.99*(AO+AC)/2,COLORRED; AC1:=REF(AC,1);

STICKLINE(AO>0&&AC>0,0,AO+AC,COLORRED,0); STICKLINE(AO<0&&AC>0,0,AO,COLORWHITE,1); STICKLINE(AO<0&&AC>0,0,AO+AC,COLORWHITE,0); STICKLINE(AO>0&&AC<0,0,AO,COLORRED,1); STICKLINE(AO>0&&AC<0,0,AC+AO,COLORRED,0); STICKLINE(AO<0&&AC<0,0,AC+AO,COLORWHITE,0);

文华指标40

//考夫曼的ama-自适应移动平均线 N:=10;

DIRECTION:=CLOSE-REF(CLOSE,N);

VOLATILITY:=SUM(ABS((CLOSE-REF(CLOSE,1))),N); ER:=ABS(DIRECTION/VOLATILITY); FASTSC:=2/(2 + 1);

SLOWSC:=2/(30 + 1);

SSC:=ER*(FASTSC-SLOWSC)+SLOWSC; CONSTANT:=SSC*SSC;

AMAHIGH:REF(EMA(HIGH,N),1)+CONSTANT*(HIGH- REF(EMA(HIGH,N),1)); AMALOW:REF(EMA(LOW,N),1)+CONSTANT*(LOW- REF(EMA(LOW,N),1));

文华指标41

//金融天娇赢利公式 N1:=21; N2:=7;

X1:=HHV(HIGH,N1); X2:=LLV(LOW,N2);

D1:(X1+X2*2)/3,COLORGREEN; TMP:=D1-CLOSE;

DRAWLINE(TMP>0.00001,HIGH,TMP>0.00001,OPEN,COLORCYAN); DRAWLINE(TMP>0.00001,LOW,TMP>0.00001,CLOSE,COLORCYAN); DRAWLINE(TMP<-0.00001,HIGH,TMP<-0.00001,CLOSE,COLORRED); DRAWLINE(TMP<-0.00001,LOW,TMP<-0.00001,OPEN,COLORRED);

DRAWLINE(ABS(TMP)<0.00001,LOW,ABS(TMP)<0.00001,OPEN,COLORWHITE); DRAWLINE(ABS(TMP)<0.00001,HIGH,ABS(TMP)<0.00001,OPEN,COLORWHITE); STICKLINE(TMP>0.00001,OPEN,CLOSE,COLORCYAN,1); STICKLINE(TMP<-0.00001,OPEN,CLOSE,COLORRED,1);

文华指标42

RSV:=(C-LLV(L,7))/(HHV(H,7)-LLV(L,7))*100; RSV1:=(C-LLV(L,38))/(HHV(H,38)-LLV(L,38))*100; LJ:SMA(RSV1,5,1),COLORWHITE; SY:SMA(LJ,10,1),COLORYELLOW; FILLRGN(LJ<=SY,LJ,SY,COLORGREEN); FILLRGN(LJ>=SY,SY,LJ,COLORRED); A:=(3*C+L+O+H)/6;

VAR2Q:=MA(C,80)-MA(C,13)/3; SQX:=MA((C-VAR2Q)/VAR2Q,1);

XA:=EMA(SQX,12)*0.7; XB:=EMA(SQX,3);

DBQY:IFELSE(LLV(XB-XA,12)>0,0,-15),COLORBLUE; DIFF:=(EMA(C,17)-EMA(C,73))*100; DEA:=EMA(DIFF,73); MACD:=2*(DIFF-DEA);

STICKLINE(DIFF<=0 && DEA<=DIFF && REF(DIFF,1)

文华指标43

//江太短线

M1:=MA(CLOSE,5);

M2:MA(CLOSE,20),COLORYELLOW;

ZYZS:IFELSE((M1 > M2),M2,M1),COLORGREEN;

PARTLINE(ZYZS > REF(ZYZS,1) && ZYZS = M2,ZYZS,COLORGREEN); D:=(SMA(CLOSE,3,1) > SMA(CLOSE,21,1)); K:=(SMA(CLOSE,3,1) < SMA(CLOSE,21,1)); Z:=CLOSE >=OPEN; Y:=CLOSE < OPEN;

STICKLINE(K && Z,OPEN,CLOSE,COLORGREEN,1); DRAWLINE(K && Z,HIGH, K && Z,CLOSE,COLORGREEN); DRAWLINE(K && Z,LOW, K && Z,OPEN,COLORGREEN); STICKLINE(K && Y,OPEN,CLOSE,COLORGREEN,0); DRAWLINE(K && Y,HIGH, K && Y,LOW,COLORGREEN); STICKLINE(D && Z,OPEN,CLOSE,COLORRED,1); DRAWLINE(D && Z,HIGH, D && Z,CLOSE,COLORRED); DRAWLINE(D && Z,LOW, D && Z,OPEN,COLORRED); STICKLINE(D && Y,OPEN,CLOSE,COLORRED,0); DRAWLINE(D && Y,HIGH, D && Y,LOW,COLORRED);

文华指标44

//极品均线

VAR1:=(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100; VAR2:=EMA(VAR1,13); VAR3:=REF(VAR2,1);

STICKLINE(VAR2>=VAR3,VAR3,VAR2,COLORRED,1); STICKLINE(VAR3>VAR2,VAR2,VAR3,COLORCYAN,0); MA1:MA(VAR2,3),COLORWHITE; MA2:MA(VAR2,7),COLORYELLOW; MA3:MA(VAR2,9),COLORGREEN; MA4:MA(VAR2,18),COLORRED;

文华指标45

//古道西风

A1:=EMA((EMA(CLOSE,1)+EMA(CLOSE,3)+EMA(CLOSE,5))/3,3); A2:=EMA((EMA(CLOSE,3)+EMA(CLOSE,5)+EMA( CLOSE,7))/3,3); A3:=EMA((EMA(CLOSE,5)+EMA(CLOSE,7)+EMA( CLOSE,9))/3,3); A4:=EMA((EMA(CLOSE,7)+EMA(CLOSE,9)+EMA( CLOSE,11))/3,3); A5:=EMA((EMA(CLOSE,9)+EMA(CLOSE,11)+EMA( CLOSE,13))/3,3); A6:=EMA((EMA(CLOSE,11)+EMA(CLOSE,13)+EMA( CLOSE,15))/3,3); A7:=EMA((EMA(CLOSE,13)+EMA(CLOSE,15)+EMA( CLOSE,17))/3,3); A8:=EMA((EMA(CLOSE,15)+EMA(CLOSE,17)+EMA( CLOSE,19))/3,3); A9:=EMA((EMA(CLOSE,17)+EMA(CLOSE,19)+EMA( CLOSE,21))/3,3); A10:=EMA((EMA(CLOSE,19)+EMA(CLOSE,21)+EMA( CLOSE,23))/3,3); A11:=EMA((EMA(CLOSE,21)+EMA(CLOSE,23)+EMA( CLOSE,25))/3,3); A:=EMA((EMA(CLOSE,29)+EMA(CLOSE,31)+EMA(CLOSE,33))/3,3); A15:=A-(A1-A*0.997); A16:=A-(A2-A); A17:=A-(A3-A); A18:=A-(A4-A); A19:=A-(A5-A); A20:=A-(A6-A); A21:=A-(A7-A); A22:=A-(A8-A); A23:=A-(A9-A); A24:=A-(A10-A); A25:=A-(A11-A*0.997);

FILLRGN(A9>A,A9,A,COLORMAGENTA); FILLRGN(A9A,A,A23,COLORBLUE);

文华指标46

VAR1:=(C-LLV(L,13))/(HHV(H,13)-LLV(L,13))*100; N:SMA(VAR1,7,1); VAR2:=SMA(N,5,1);

X:IFELSE(CROSS(N,VAR2)&& CROSS(MA(C,5),MA(C,13)&& N>50),VAR2*2,VAR2),COLORYELLOW; VAR3:=EMA(C,8); VAR4:=EMA(C,20);

DRAWLINE(N>VAR2,N, N>VAR2,X,COLORRED); DRAWLINE(N

文华指标47

//凤鸣基准线

TURN:(HHV(HIGH,9)+LLV(LOW,9))/2,COLORWHITE; BASE:(HHV(HIGH,26)+LLV(LOW,26))/2,COLORBLUE; A:=TURN>=BASE;

DRAWLINE(A=0,HIGH,A=0,LOW,COLORGREEN); DRAWLINE(A=1,HIGH,A=1,LOW,COLORRED); STICKLINE(A=0,CLOSE,OPEN,COLORGREEN,0 ); STICKLINE(A=1,CLOSE,OPEN,COLORRED,0);

文华指标48

A1:=EMA(C,5)>EMA(C,6) && EMA(C,6)>EMA(C,7) && EMA(C,7)>EMA(C,8) && EMA(C,8)>EMA(C,9) && EMA(C,9)>EMA(C,10) && EMA(C,10)>EMA(C,11) && EMA(C,11)>EMA(C,12)

&& EMA(C,12)>EMA(C,13) && EMA(C,13)>EMA(C,14) && EMA(C,14)>EMA(C,15) && EMA(C,15)>EMA(C,20) && EMA(C,20)>EMA(C,30) && EMA(C,30)>EMA(C,60) && EMA(C,60)>EMA(C,90) && EMA(C,90)>EMA(C,120) && EMA(C,120)>EMA(C,250);

A2:=EMA(C,5)>EMA(C,6) && EMA(C,6)>EMA(C,7) && EMA(C,7)>EMA(C,8) && EMA(C,8)>EMA(C,9) && EMA(C,9)>EMA(C,10) && EMA(C,10)>EMA(C,11) && EMA(C,11)>EMA(C,12)

&& EMA(C,12)>EMA(C,13) && EMA(C,13)>EMA(C,14); B1:=IFELSE(A1,1,2);

PARTLINE(B1=2,EMA(C,5),COLORBLUE); PARTLINE(B1=2,EMA(C,6),COLORBLUE); PARTLINE(B1=2,EMA(C,7),COLORBLUE); PARTLINE(B1=2,EMA(C,8),COLORBLUE); PARTLINE(B1=2,EMA(C,9),COLORBLUE); PARTLINE(B1=2,EMA(C,10),COLORBLUE); PARTLINE(B1=2,EMA(C,11),COLORBLUE); PARTLINE(B1=2,EMA(C,12),COLORBLUE); PARTLINE(B1=2,EMA(C,13),COLORBLUE); PARTLINE(B1=2,EMA(C,14),COLORBLUE); PARTLINE(A2,EMA(C,5),COLORYELLOW); PARTLINE(A2,EMA(C,6),COLORYELLOW); PARTLINE(A2,EMA(C,7),COLORYELLOW); PARTLINE(A2,EMA(C,8),COLORYELLOW); PARTLINE(A2,EMA(C,9),COLORYELLOW); PARTLINE(A2,EMA(C,10),COLORYELLOW); PARTLINE(A2,EMA(C,11),COLORYELLOW); PARTLINE(A2,EMA(C,12),COLORYELLOW); PARTLINE(A2,EMA(C,13),COLORYELLOW); PARTLINE(A2,EMA(C,14),COLORYELLOW); PARTLINE(A1,EMA(C,5),COLORMAGENTA); PARTLINE(A1,EMA(C,6),COLORMAGENTA); PARTLINE(A1,EMA(C,7),COLORMAGENTA); PARTLINE(A1,EMA(C,8),COLORMAGENTA); PARTLINE(A1,EMA(C,9),COLORMAGENTA); PARTLINE(A1,EMA(C,10),COLORMAGENTA); PARTLINE(A1,EMA(C,11),COLORMAGENTA); PARTLINE(A1,EMA(C,12),COLORMAGENTA); PARTLINE(A1,EMA(C,13),COLORMAGENTA); PARTLINE(A1,EMA(C,14),COLORMAGENTA);

文华指标49

A1:=EMA(C,5)>EMA(C,6) && EMA(C,6)>EMA(C,7) && EMA(C,7)>EMA(C,8) && EMA(C,8)>EMA(C,9) && EMA(C,9)>EMA(C,10) && EMA(C,10)>EMA(C,11) && EMA(C,11)>EMA(C,12)

&& EMA(C,12)>EMA(C,13) && EMA(C,13)>EMA(C,14) && EMA(C,14)>EMA(C,15) && EMA(C,15)>EMA(C,20) && EMA(C,20)>EMA(C,30) && EMA(C,30)>EMA(C,60) && EMA(C,60)>EMA(C,90) && EMA(C,90)>EMA(C,120) && EMA(C,120)>EMA(C,250);

A2:=EMA(C,5)>EMA(C,6) && EMA(C,6)>EMA(C,7) && EMA(C,7)>EMA(C,8) && EMA(C,8)>EMA(C,9) && EMA(C,9)>EMA(C,10) && EMA(C,10)>EMA(C,11) && EMA(C,11)>EMA(C,12) && EMA(C,12)>EMA(C,13) && EMA(C,13)>EMA(C,14); E5:=EMA(C,5); E6:=EMA(C,6); E7:=EMA(C,7); E8:=EMA(C,8); E9:=EMA(C,9); E10:=EMA(C,10); E11:=EMA(C,11); E12:=EMA(C,12); E13:=EMA(C,13); E14:=EMA(C,14);

T:=IFELSE(A2,-1,IFELSE(A1,1,0)); G:=IFELSE(T=-1,E5,E5); HH:=IFELSE(T=1,E5,E5); J:=IFELSE(T=0,E5,E5);

DRAWLINE(T=1&&REF(T,1)=1,HH,T=0&&REF(T,1)=1,REF(HH,1),COLORGREEN); DRAWLINE(T=-1&&REF(T,1)=-1,G,T=-1&&REF(T,1)=-1,REF(G,1),COLORRED); DRAWSL(T=1,H,0,1,0,COLORGREEN); DRAWSL(T=-1,G,0,1,0,COLORRED);

DRAWLINE(T=0&&REF(T,1)=0,J,T=0&&REF(T,1)=0,REF(J,1),COLORBLUE); DRAWSL(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=1&&REF(T,1)=1,H1,T=0&&REF(T,1)=1,REF(H1,1),COLORGREEN); DRAWLINE(T=-1&&REF(T,1)=-1,G1,T=-1&&REF(T,1)=-1,REF(G1,1),COLORRED); DRAWSL(T=1,H1,0,1,0,COLORGREEN); DRAWSL(T=-1,G1,0,1,0,COLORRED);

DRAWLINE(T=0&&REF(T,1)=0,J1,T=0&&REF(T,1)=0,REF(J1,1),COLORBLUE); DRAWSL(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=1&&REF(T,1)=1,H2,T=0&&REF(T,1)=1,REF(H2,1),COLORGREEN); DRAWLINE(T=-1&&REF(T,1)=-1,G2,T=-1&&REF(T,1)=-1,REF(G2,1),COLORRED); DRAWSL(T=1,H2,0,1,0,COLORGREEN); DRAWSL(T=-1,G2,0,1,0,COLORRED);

DRAWLINE(T=0&&REF(T,1)=0,J2,T=0&&REF(T,1)=0,REF(J2,1),COLORBLUE); DRAWSL(T=0,J2,0,1,0,COLORBLUE); G3:=IFELSE(T=-1,E8,E8); H3:=IFELSE(T=1,E8,E8); J3:=IFELSE(T=0,E8,E8);

DRAWLINE(T=1&&REF(T,1)=1,H3,T=0&&REF(T,1)=1,REF(H3,1),COLORGREEN); DRAWLINE(T=-1&&REF(T,1)=-1,G3,T=-1&&REF(T,1)=-1,REF(G3,1),COLORRED); DRAWSL(T=1,H3,0,1,0,COLORGREEN); DRAWSL(T=-1,G3,0,1,0,COLORRED);

DRAWLINE(T=0&&REF(T,1)=0,J3,T=0&&REF(T,1)=0,REF(J3,1),COLORBLUE); DRAWSL(T=0,J3,0,1,0,COLORBLUE);

文华指标50

//三线开花趋势王

DRAWLINE(C>O|| (C=O && C>REF(C,1)),H,C>O|| (C=O && C>REF(C,1)),L,COLORRED); STICKLINE(C>O || (C=O && C>REF(C,1)),O,C,COLORRED,1);

DRAWLINE(C

X2:(MA(CLOSE,5)+MA(CLOSE,10)+MA(CLOSE,20)+MA(CLOSE,30)+MA(CLOSE,60)+MA(CLOSE,120))/6,COLORGREEN;

X3:(MA(CLOSE,20)+MA(CLOSE,60)+MA(CLOSE,120))/3,COLORGREEN; X4:=(MA(CLOSE,13)+MA(CLOSE,34)+MA(CLOSE,55))/3; DRAWLINE(X1>X4,X1,X1>X4,X4,COLORRED); DRAWLINE(X1X2,X3,COLORRED); PARTLINE(X1>X2,X1,COLORRED); PARTLINE(X2>X3,X2,COLORRED);

文华指标51

//三剑合一

TP:HHV(MA(HIGH,11),50),COLORWHITE; DP:HHV(MA(HIGH,11),15),COLORRED;

QS:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);

XL1:=LLV(MA(HIGH,11),1);

QS3:IFELSE(XL1>=DP,DP,XL1),COLORYELLOW;

文华指标52

//趋势飘带

MA(EMA(CLOSE,12),1),COLORWHITE; MA(EMA(CLOSE,12),3),COLORWHITE; MA(EMA(CLOSE,12),5),COLORWHITE; MA(EMA(CLOSE,12),7),COLORWHITE; MA(EMA(CLOSE,12),9),COLORWHITE; MA(EMA(CLOSE,12),11),COLORWHITE; MA(EMA(CLOSE,12),13),COLORWHITE; MA(EMA(CLOSE,60),1),COLORRED; MA(EMA(CLOSE,60),3),COLORRED; MA(EMA(CLOSE,60),5),COLORRED; MA(EMA(CLOSE,60),7),COLORRED; MA(EMA(CLOSE,60),9),COLORRED; MA(EMA(CLOSE,60),11),COLORRED; MA(EMA(CLOSE,60),13),COLORRED; SSX:MA(CLOSE,21),CIRCLEDOT;

文华指标53

//期货指南针 SHORT:=3; X:=1; LONG:=21;

STICKLINE(SMA(CLOSE,SHORT,X)

DRAWLINE(SMA(CLOSE,SHORT,X)

STICKLINE(SMA(CLOSE,SHORT,X)>SMA(CLOSE,LONG,X),OPEN,CLOSE,COLORRED,0);

DRAWLINE(SMA(CLOSE,SHORT,X)>SMA(CLOSE,LONG,X),HIGH,SMA(CLOSE,SHORT,X)>SMA(CLOSE,LONG,X),LOW,COLORRED

文华指标54

AA:=(OPEN+HIGH+LOW)/3; PB1:PUBU(OPEN,0),COLORRED; PB2:PUBU(OPEN,1),COLORGREEN; PB3:PUBU(OPEN,2),COLORWHITE; PB4:PUBU(OPEN,3),COLORYELLOW; PB5:PUBU(OPEN,4),COLORMAGENTA; PB6:PUBU(OPEN,5),COLORBLUE;

DRAWLINE(CLOSEPB6,HIGH,CLOSE>PB6,CLOSE,COLORRED); DRAWLINE(CLOSE>PB6,LOW,CLOSE>PB6,OPEN,COLORRED); DRAWLINE(CLOSE=PB6,LOW,CLOSE=PB6,OPEN,COLORWHITE); DRAWLINE(CLOSE=PB6,HIGH,CLOSE=PB6,OPEN,COLORWHITE); STICKLINE(CLOSEPB6,OPEN,CLOSE,COLORRED,1);

文华指标55

//K线动力型

VAR1:=EMA(MA(IFELSE(CLOSE>OPEN,(CLOSE-OPEN)*VOL,IFELSE(CLOSEREF(CLOSE,1),(CLOSE-REF(CLOSE,1))*VOL,IFELSE(CLOSE

VAR3:=EMA(MA(IFELSE(OPEN>REF(CLOSE,1),(OPEN-REF(CLOSE,1))*VOL,IFELSE(OPEN

VAR4:=EMA(MA(IFELSE(CLOSEOPEN,(OPEN-CLOSE)*VOL,0)),10),1); VAR5:=EMA(MA(IFELSE(CLOSEREF(CLOSE,1),(REF(CLOSE,1)-CLOSE)*VOL,0)),10),1);

VAR6:=EMA(MA(IFELSE(OPENREF(CLOSE,1),(REF(CLOSE,1)-OPEN)*VOL,0)),10),1); VAR7:=CLOSE>OPEN; VAR8:=CLOSE>REF(CLOSE,1); VAR9:=OPEN>REF(CLOSE,1);

DT:(VAR1+VAR2+VAR3)/3/100,COLORWHITE; KT:(VAR4+VAR5+VAR6)/3/100,COLORYELLOW ;

WARN1:EMA(EMA((VAR1+VAR2+VAR3)/3-(VAR4+VAR5+VAR6)/3,5),5)*1/100,COLORMAGENTA;

WARN2:EMA((COUNT(VAR8,12)/12+COUNT(VAR7,12)/12+COUNT(VAR9,12)/12)/3*MA(DT,5)*2*1.1,2),COLORBLUE; STICKLINE(KT>0,0,KT,COLORCYAN,0); STICKLINE(KT<0,0,KT,COLORRED,0);

X1:=EMA(EMA((VAR1+VAR2+VAR3)/3-(VAR4+VAR5+VAR6)/3,5),5)*1/100;

X2:=EMA((COUNT(VAR8,12)/12+COUNT(VAR7,12)/12+COUNT(VAR9,12)/12)/5*MA(DT,5.3)*2*6.8,5); X3:=EMA((COUNT(VAR8,22)/22+COUNT(VAR7,22)/22+COUNT(VAR9,22)/22)/18*MA(DT,8)*5*1.8,5); DRAWTEXT(CROSS(X1,0),0,'★'); DRAWTEXT(CROSS(X2,0),0,'★'); DRAWTEXT(CROSS(X3,0),0,'★<');

文华指标56 //操盘线 MX:=EMA(C,2);

SX:=EMA(SLOPE(C,21)*20+C,42); BU:=CROSS(MX,SX); SEL:=CROSS(SX,MX); DRAWTEXT(BU,LOW,'B'); DRAWTEXT(BU,LOW,' ̄'); DRAWTEXT(SEL,HIGH,' ̄'); DRAWTEXT(SEL,HIGH,'S');

DRAWLINE(MX>=SX,LOW,MX>=SX,HIGH,COLORRED); STICKLINE(MX>=SX,CLOSE,OPEN,COLORRED,1); STICKLINE(MX

STICKLINE(CROSS(MX,SX)||CROSS(SX,MX),OPEN,CLOSE,COLORYELLOW,0);

ZDX: EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4,2),COLORBLUE; J: MA(CLOSE,27),COLORGREEN; DRAWTEXT(CROSS(ZDX,J),J,' ̄ ̄'); DRAWTEXT(CROSS(J,ZDX),J,' ̄ ̄');

文华指标57

//多空安全线

VAR2:=(3*CLOSE+LOW+OPEN+HIGH)/6;

VAR3:=(20*VAR2+19*REF(VAR2,1)+18*REF(VAR2,2)+17*REF(VAR2,3)+16*REF(VAR2,4)+15*REF(VAR2,5)+14*REF(VAR2,6)+13*REF(VAR2,7)+12*REF(VAR2,8)+11*REF(VAR2,9)+10*REF(VAR2,10)+9*REF(VAR2,11)+8*REF(VAR2,12)+7*REF(VAR2,13)+6*REF(VAR2,14)+5*REF(VAR2,15)+4*REF(VAR2,16)+3*REF(VAR2,17)+2*REF(VAR2,18)+REF(VAR2,20))/210;

VAR4:=MA(VAR3,13);

VAR5:=EMA(MA(CLOSE,3),34);

VAR6:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4; VAR7:=MA(VAR6,5); VAR8:=MA(VAR6,10);

STICKLINE(IFELSE(VAR31.005*VAR4,VAR3,VAR4,COLORRED,1); DK: VAR5,COLORWHITE;

STICKLINE(COUNT(VAR3>1.005*VAR4

&&

VAR3<=REF(VAR3,1),2)=2

||

COUNT(IFELSE(VAR3=REF(VAR3,1),2)=2,VAR3,VAR4, COLORYELLOW,0);

文华指标58

//反弹琵琶

VAR1:=SMA(MAX(CLOSE-REF(CLOSE,1),0),5,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),5,1)*100; VAR2:(EMA(C,7)+EMA(C,14)+EMA(C,28))/3; VAR3:=(EMA(C,14)+EMA(C,28)+EMA(C,56))/3; VAR4:=(EMA(C,28)+EMA(C,56)+EMA(C,112))/3; VAR5:=(VAR2+VAR3+VAR4)/3; SSX:EMA(VAR5,4);

文华指标59

DUO:EMA(C,3),COLORWHITE; KONG:EMA(C,5),COLORBLUE; JH:EMA(KONG,5),COLORYELLOW; VARF1:=COUNT(CROSS(DUO,JH),2)=1; VARF2:=COUNT(CROSS(KONG,JH),2)=1; ZAI:=COUNT(VARF1 && VARF2,2)=2; VV2:=REF(CLOSE,1);

VV3:=SMA((CLOSE-VV2),6,1)/SMA(ABS(CLOSE-VV2),6,1)*100;

VF1:=MA(CLOSE,60)-MA(CLOSE,5)/3.2;

VARA:=(CLOSE-REF(OPEN,29))/REF(OPEN,29)*100; VARB:=EMA(0.667*REF(VARA,1)+0.333*VARA,5);

VARR1:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100; VAR1:=(HIGH+LOW+OPEN+2*CLOSE)/5; VAR2:=REF(VAR1,1);

VAR3:=SMA(MAX(VAR1-VAR2,0),10,1)/SMA(ABS(VAR1-VAR2),10,1)*100;

HY3:=IFELSE(COUNT(VAR3<20,5)>=1 && COUNT(VAR1=LLV(VAR1,10),10)>=1 && CLOSE>=OPEN*1.038 && VOL>MA(VOL,5)*1.2,1,0); S:=MA(VOL,5)/MA(VOL,60); A:=MA(S,5);

BIAS:=(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100; F:=MA(S,121);

RSV:=(CLOSE-LLV(LOW,45))/(HHV(HIGH,45)-LLV(LOW,45))*100; K:=SMA(RSV,15,1); D:=SMA(K,15,1); J:=3*K-2*D; LC:=REF(CLOSE,1);

RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100; S1:=IFELSE((J<11 && BIAS>-11 && CROSS( S,F) && (S-F)>0.010),2,0); MID:HHV(MA(H,13),13),COLORRED; QS:LLV(MA(H,13),1),COLORGREEN;

DRAWLINE(DUO>=QS,HIGH,DUO>QS,LOW,COLORRED); STICKLINE(DUO>=QS,OPEN,CLOSE,COLORRED,0); DRAWLINE(DUO

文华指标60

ZZ:=(HHV(HIGH,21)+LLV(LOW,21))/2;

DRAWLINE(CLOSEZZ,HIGH,CLOSE>ZZ,CLOSE,COLORRED); DRAWLINE(CLOSE>ZZ,LOW,CLOSE>ZZ,OPEN,COLORRED); STICKLINE(CLOSEZZ,OPEN,CLOSE,COLORRED,0); //合多分空

VAR4:=(LOW+HIGH+CLOSE)/3; CZ: MA(VAR4,5);

LS:HHV(CZ,13),COLORRED;

文华指标61

//顾比倒数线 N:=4;

X:=BARSLAST(HIGH=HHV(HIGH,N));

LL:=MIN(REF(LOW,X+3),MIN(REF(LOW,X+2),MIN(REF(LOW,X),REF(LOW,X+1)))); Y:=BARSLAST(LOW=LLV(LOW,N));

HH:=MAX(REF(HIGH,Y+3),MAX(REF(HIGH,Y+2),MAX(REF(HIGH,Y),REF(HIGH,Y+1)))); A:=BARSLAST(CLOSE>=HH); B:=BARSLAST(CLOSE<=LL); AB:IFELSE(A>B,HH,LL); TM:=CLOSE>=AB; TP:=CLOSE

DRAWLINE(TP,HIGH,TP,OPEN,COLORCYAN); DRAWLINE(TP,LOW,TP,CLOSE,COLORCYAN); DRAWLINE(TM,HIGH,TM,CLOSE,COLORRED); DRAWLINE(TM,LOW,TM,OPEN,COLORRED); STICKLINE(TP,OPEN,CLOSE,COLORCYAN,0); STICKLINE(TM,OPEN,CLOSE,COLORRED,1);

文华指标62

//[1]K线倒置源码:

STICKLINE(-CLOSE>-OPEN,-CLOSE,-OPEN,COLORRED,1);

DRAWLINE(-CLOSE>-OPEN,-HIGH,-CLOSE>-OPEN,-MAX(CLOSE,OPEN),COLORRED); DRAWLINE(-CLOSE>-OPEN,-MIN(CLOSE,OPEN),-CLOSE>-OPEN,-LOW,COLORRED); STICKLINE(-CLOSE=-OPEN,-CLOSE,-OPEN,COLORWHITE,0);

DRAWLINE(-CLOSE=-OPEN,-HIGH,-CLOSE=-OPEN,-LOW,COLORWHITE); STICKLINE(-CLOSE<-OPEN,-CLOSE,-OPEN,COLORCYAN,0);

DRAWLINE(-CLOSE<-OPEN,-HIGH,-CLOSE<-OPEN,-MAX(CLOSE,OPEN),COLORCYAN); DRAWLINE(-CLOSE<-OPEN,-MIN(CLOSE,OPEN),-CLOSE<-OPEN,-LOW,COLORCYAN); MA20:MA(-CLOSE,20);

文华指标63

TMP:=OPEN-CLOSE;

DRAWLINE(TMP>0.00001,HIGH,TMP>0.00001,OPEN,COLORCYAN); DRAWLINE(TMP>0.00001,LOW,TMP>0.00001,CLOSE,COLORCYAN); DRAWLINE(TMP<-0.00001,HIGH,TMP<-0.00001,CLOSE,COLORRED); DRAWLINE(TMP<-0.00001,LOW,TMP<-0.00001,OPEN,COLORRED);

DRAWLINE(ABS(TMP)<0.00001,LOW,ABS(TMP)<0.00001,OPEN,COLORWHITE); DRAWLINE(ABS(TMP)<0.00001,HIGH,ABS(TMP)<0.00001,OPEN,COLORWHITE); STICKLINE(TMP>0,OPEN,CLOSE,COLORCYAN,0); STICKLINE(TMP<=0,OPEN,CLOSE,COLORRED,1);

HO:=HIGH>REF(HIGH,1)&&HIGH>REF(HIGH,2)&&HIGH>=REFX(HIGH,1)&&IFELSE(HIGH=REFX(HIGH,2),HIGH>REFX(HIGH,3),HIGH>REFX(HIGH,2)); FXH:=CROSS(HO,0.9);

HH:=REF(HIGH,BARSLAST(FXH));

LO:=LOW

LL:=REF(LOW,BARSLAST(FXL));

STICKLINE(CLOSE,HH,HH+0.01,COLORMAGENTA,0); STICKLINE(CLOSE,LL,LL+0.01,COLORGREEN,0);

文华指标64

A:=CLOSE;

VAR1:=A>REF(A,1) && A>REF(A,2);

VAR2:=REF(VAR1,1) && A<=REF(A,1) && A>=REF(A,2); VAR3:=REF(VAR2,1) && A>=REF(A,1) && A<=REF(A,2); VAR4:=REF(VAR3,1) && A<=REF(A,1) && A>=REF(A,2); VAR5:=REF(VAR4,1) && A>=REF(A,1) && A<=REF(A,2); VAR6:=REF(VAR5,1) && A<=REF(A,1) && A>=REF(A,2); VAR7:=REF(VAR6,1) && A>=REF(A,1) && A<=REF(A,2); VAR8:=REF(VAR7,1) && A<=REF(A,1) && A>=REF(A,2); VAR9:=REF(VAR8,1) && A>=REF(A,1) && A<=REF(A,2); VARA:=REF(VAR9,1) && A<=REF(A,1) && A>=REF(A,2); VARB:=REF(VARA,1) && A>=REF(A,1) && A<=REF(A,2);

VARC:=REF(VARB,1) && A<=REF(A,1) && A>=REF(A,2);

STICKLINE(VAR1||VAR2||VAR3||VAR4||VAR5||VAR6||VAR7||VAR8||VAR9||VARA||VARB||VARC,A,REF(A,1),COLORRED,1);

VARD:=A

VARE:=REF(VARD,1) && A>=REF(A,1) && A<=REF(A,2); VARF:=REF(VARE,1) && A<=REF(A,1) && A>=REF(A,2); VAR10:=REF(VARF,1) && A>=REF(A,1) && A<=REF(A,2); VAR11:=REF(VAR10,1) && A<=REF(A,1) && A>=REF(A,2); VAR12:=REF(VAR11,1) && A>=REF(A,1) && A<=REF(A,2); VAR13:=REF(VAR12,1) && A<=REF(A,1) && A>=REF(A,2); VAR14:=REF(VAR13,1) && A>=REF(A,1) && A<=REF(A,2); VAR15:=REF(VAR14,1) && A<=REF(A,1) && A>=REF(A,2); VAR16:=REF(VAR15,1) && A>=REF(A,1) && A<=REF(A,2); VAR17:=REF(VAR16,1) && A<=REF(A,1) && A>=REF(A,2); VAR18:=REF(VAR17,1) && A>=REF(A,1) && A<=REF(A,2);

STICKLINE(VARD||VARE||VARF||VAR10||VAR11||VAR12||VAR13||VAR14||VAR15||VAR16||VAR17||VAR18,A,REF(A,1),COLORCYAN,1);

VAR19:=REF(VARD||VARE||VARF||VAR10||VAR11||VAR12||VAR13||VAR14||VAR15||VAR16||VAR17||VAR18,1)&&VAR1; STICKLINE(VAR19,REF(A,1),REF(A,2),COLORMAGENTA,0);

VAR1A:=REF(VAR1||VAR2||VAR3||VAR4||VAR5||VAR6||VAR7||VAR8||VAR9||VARA||VARB||VARC,1)&&VARD; STICKLINE(VAR1A,REF(A,1),REF(A,2),COLORGREEN,0);

文华指标65 N:=57; M:=0; CL:=1; HI:=0;

S:=IFELSE(CL,CLOSE,IFELSE(HI,HIGH,LOW)); Z:IFELSE(M,ZIGZAG(S,N,M),ZIGZAG(S,N,M)); P:=PEAK(S,N,1,M); PB:=PEAKBARS(S,N,1,M); T:=TROUGH(S,N,1,M); TB:=TROUGHBARS(S,N,1,M);

CHA:=IFELSE(PBTB,100*CHA/T,CHA));

TPTJ:=(CROSS(N1,N)&&PBTB&&TB=0&&NOT(ISLASTBAR)&&BARSLAST(CROSS(N1,N)&&PBPB); TTTJ:=(CROSS(N1,N)&&PB>TB)||(PBTB)>TB); DRAWTEXT(TPTJ,Z,'TP'); DRAWTEXT(TTTJ,Z,'TT');

//N函数ZIGZAG(X,N,M)参数 回撤程度

//M 函数ZIGZAG(X,N,M)参数 0为点数,1为百分比 //CL --CLOSE //HI --HIGH

//当CL取1时,ZIGZAG函数的X取收盘价;当CL取0,HI取1时X取HIGH;当两者都取0时,X取LOW。

文华指标66

M:=BARSLAST(DATE<>REF(DATE,1)); CC:=C-REF(C,1); HC:=H-REF(C,1); LC:=L-REF(C,1);

DRAWSL(M>0&&ISLASTBAR,REF(C,1),HC,1,0,COLORYELLOW); DRAWSL(M>0&&ISLASTBAR,REF(C,1),LC,1,0,COLORCYAN); DRAWSL(M>0,REF(C,1),CC,1,0,COLORWHITE); //FSX:CLOSE,COLORBLACK;

N:=IFELSE(DATE<>REF(DATE,1),1,BARSLAST(DATE<>REF(DATE,1))+1); P:=SUM(AVPRICE*VOL,N)/SUM(VOL,N); PP:=P-REF(P,1);

DRAWSL(M>0,REF(P,1),PP,1,0,COLORRED);

DRAWNUMBER(TIME=900,H,DATE,0,COLORBLUE); DRAWTEXT(TIME=1330,H,'M'); VERTLINE(TIME=1459,COLORBLUE);

文华指标67

HNL:=IFELSE(HIGH>REF(HHV(HIGH,3),1),LOW,0);

L1:=IFELSE(HNL>REF(L,1),REF(L,1),IFELSE(HNL>REF(L,2),REF(L,2),IFELSE(HNL>REF(L,3),REF(L,3),IFELSE(HNL>REF(L,4),REF(L,4),0))));

L2:=IFELSE(L1>REF(L,1),REF(L,1),IFELSE(L1>REF(L,2),REF(L,2),IFELSE(L1>REF(L,3),REF(L,3),IFELSE(L1>REF(L,4),REF(L,4),0))));

L3:=VALUEWHEN(L2>0,L2);

LNH:=IFELSE(LOW

H1:=IFELSE(LNH

H2:=IFELSE(H1

H3:=VALUEWHEN(H2>0,H2);

SEL:=VALUEWHEN((CLOSE>H3&&REF(CLOSE,1)<=H3)||(CLOSE=L3),IFELSE(CLOSE>H3&&REF(CLOSE,1)<=H3,1,0));

LINE:IFELSE(SEL=1,L3,H3),COLORYELLOW;

DRAWNUMBER(ISLASTBAR,LINE,LINE,0,COLORYELLOW);

文华指标68

X1:=(C+L+H)/3; X2:=EMA(X1,6); X3:=EMA(X2,5); X4:=EMA(X3,13); X5:=EMA(X4,2);

STICKLINE(X4>=X5,X4,X5,COLORRED,1); STICKLINE(X4

文华指标69 N1:=55;

STICKLINE(O>=C,C,O,COLORCYAN,0); DRAWLINE(O>=C,H,O>=C,L,COLORCYAN); STICKLINE(C>=O,C,O,COLORRED,1); DRAWLINE(C>=O,C,C>=O,H,COLORRED); DRAWLINE(C>=O,L,C>=O,O,COLORRED); LC:=REF(CLOSE,1);

TR:=MAX((HIGH - LOW),MAX((HIGH - LC),(LC - LOW))); ATR:=SMA(TR,20,1);

AA:=(HHV(HIGH,N1) - (2 * ATR));

BB:=CROSS(CLOSE,REF(HHV(HIGH,55),1)); SSS:=CROSS(MIN(MA(CLOSE,13),AA),CLOSE); BBB:=BARSLAST(BB); SSSB:=BARSLAST(SSS);

B1:=((BBB = 0) && (REF(SSSB,1) < REF(BBB,1))); B1B:=BARSLAST(B1);

B2:=((((BB = 1) && (B1B < SSSB)) && (B1B > 0)) && (COUNT(BB,SSSB) < 3)); B2B:=BARSLAST(B2);

本文来源:https://www.bwwdw.com/article/qxna.html

Top