文華指標(biāo)(2011-08-08 19:47:22)
日線即日交易指標(biāo) 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); Z:=ABS(REF(HIGH,1)-REF(LOW,1)); Z1:(OPEN-Z); Z2:(OPEN+Z);
柴河晚渡
MA(C,8); MA(C,21);
AA1:=REF(HIGH,3)=HHV(HIGH,2*3+1); AAA:=FILTER(AA1,3); BB1:=BACKSET(AAA,3+1); CC1:=FILTER(BB1,3); CC:=CC1 OR ISLASTBAR; AA2:=REF(LOW,3)=LLV(LOW,2*3+1); AAA2:=FILTER(AA2,3); BB2:=BACKSET(AAA2,3+1); CC22:=FILTER(BB2,3); GG1:=ISLASTBAR AND REF(CC1,BARSLAST(CC1)); HH:=BACKSET(GG1,BARSLAST(CC1)+1); II:=HH>REF(HH,1); JJ1:=REF(BARSLAST(CC1),1); KK:=BACKSET(II,JJ1+2); LL:=KK>REF(KK,1); DRAWLINE(LL,HIGH,II,HIGH,COLORRED); GG2:=ISLASTBAR AND REF(CC22,BARSLAST(CC22)); HH2:=BACKSET(GG2,BARSLAST(CC22)+1); II2:=HH2>REF(HH2,1); JJ2:=REF(BARSLAST(CC22),1); KK2:=BACKSET(II2,JJ2+2); LL2:=KK2>REF(KK2,1); DRAWLINE(LL2,LOW,II2,LOW,COLORGREEN);
文華財經(jīng)技術(shù)指標(biāo)公式收藏
指標(biāo): WHZ001 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<REF(A,1) && A<REF(A,2); 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);
指標(biāo) WHZ002 TB:=IF(HIGH>REF(CLOSE,1),HIGH-REF(CLOSE,1)+CLOSE-LOW,CLOSE-LOW); TS:=IF(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,N),COLORYELLOW;
指標(biāo): WHZ003 VAR1:=100-90*(HHV(HIGH,20)-CLOSE)/(HHV(HIGH,20)-LLV(LOW,20)); VAR2:=100-90*(HHV(HIGH,20)-CLOSE)/(HHV(HIGH,20)-LLV(LOW,20)); VAR3:=100-MA(100*(HHV(HIGH,6)-CLOSE)/(HHV(HIGH,6)-LLV(LOW,6)),28); MR:IF(VAR2<MA(VAR3,6),MA(VAR3,6),VAR2),COLORRED; MC:IF(VAR1>MA(VAR3,6),MA(VAR3,6),VAR1),COLORGREEN; QR:MA(VAR3,6),COLORYELLOW;
指標(biāo): WHZ004 VAR3:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100; VAR4:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100; VAR5:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100; VAR6:=(VAR3+VAR4+VAR5)/3; VAR7:=EMA(VAR6,5); ZHIB: EMA(EMA(VAR3,5),5)*3, COLORSTICK; VAR8:=IF(VAR6<=-20,10,0); VAR9:=HHV(VAR8,10); STICKLINE(VAR8=10,20,10,COLORRED,0); VARA:=IF(VAR9 && CROSS(MA(CLOSE,3),MA(CLOSE,5)),20,0); K:EMA(VAR7,5)*2,COLORGREEN; D:EMA(K,5), COLORWHITE; J:K*3-D*2, COLORYELLOW; VARB:=BETWEEN(CLOSE,MA(CLOSE,3),MA(CLOSE,5)) && J>10; DRAWTEXT(VARA=20,15,'底部'); STICKLINE((VARA=20),0,10,COLORWHITE,0); VARC:=(ZIGZAG(CLOSE,5,1)>REF(ZIGZAG(CLOSE,5,1),1)) && (REF(ZIGZAG(CLOSE,5,1),1)<=REF(ZIGZAG(CLOSE,5,1),2)) && (REF(ZIGZAG (CLOSE,5,1),2)<=REF(ZIGZAG(CLOSE,5,1),3)); VARD:=(ZIGZAG(CLOSE,5,1)<REF(ZIGZAG(CLOSE,5,1),1)) && (REF(ZIGZAG(CLOSE,5,1),1)>=REF(ZIGZAG(CLOSE,5,1),2)) && (REF(ZIGZAG (CLOSE,5,1),2)>=REF(ZIGZAG(CLOSE,5,1),3)); STICKLINE((VARC=1),(-14),0,COLORMAGENTA,0); DRAWTEXT((VARC=1),(-14),'買'); STICKLINE((VARD=1),14,0,COLORGREEN,0); DRAWTEXT((VARD=1),18,'賣'); VARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20; VARF:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA ((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1); VAR10:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA ((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1); VAR11:=VARF<REF(VAR10,1) && VOL>REF(VOL,1) && CLOSE>REF(CLOSE,1); DRAWTEXT(VAR11 && COUNT(VAR11,30)=1,15,'大資金活動'); STICKLINE(VAR11 && COUNT(VAR11,30)=1,1,10,COLORCYAN,0); VAR12:=(HIGH+LOW+CLOSE)/3; VAR13:=(VAR12-MA(VAR12,14))/(0.015*AVEDEV(VAR12,14)); VAR14:=(VAR12-MA(VAR12,70))/(0.015*AVEDEV(VAR12,70)); VAR15:=IF(VAR13>=150 && VAR13<200 && VAR14>=150 && VAR14<200,10,0); VAR16:=IF(VAR13<=-150 && VAR13>-200 && VAR14<=-150 && VAR14>-200,-10,VAR15); VAR17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100; VAR18:=100-ABS(VAR17); VAR19:=IF(VAR18<90,VAR18,100); VAR1A:=IF(VARE>0,VARE,0); VAR1B:=IF(VAR14>=200 && VAR13>=150,15,IF(VAR14<=-200 && VAR13<=-150,-15,VAR16))+60; VAR1C:=VAR1A>48 && VAR1B>60 && VAR19<100; DRAWTEXT(VAR1C && COUNT(VAR1C,30)=1,15,'大筆出貨'); STICKLINE(VAR1C && COUNT(VAR1C,30)=1,0,10,COLORYELLOW,0);
指標(biāo):WHZ005 B:=IF(HIGH>REF(CLOSE,1),HIGH-REF(CLOSE,1)+CLOSE-LOW,CLOSE-LOW); S:=IF(REF(CLOSE,1)>LOW,REF(CLOSE,1)-LOW+HIGH-CLOSE,HIGH-CLOSE); V:=(B-S)*VOL/(B+S)/10000; V0:=DMA(V,0.1); V1:=DMA(V,0.05); RES1:=V0-V1; LON:SUM(RES1,0),COLORSTICK; LON; MA1:MA(LON,N);
指標(biāo):WHZ006 在K線圖上添加一條自己設(shè)定的價格水平線:
可以任意疊加任何指標(biāo),因為文華本身就有疊加功能,技術(shù)分析里功能就可以用, 搞一個單獨的指標(biāo)好疊加,名稱自己任意取.然后你要什么價位把需要的價位填在參數(shù)里就行了.
要4個價位就用這個: HH:N,COLORYELLOW; HH1:N1,COLORGREEN; HH2:N2,COLORMAGENTA; HH3:N3,COLORLIGHTGREY;
要3個價位就用這個: HH1:N1,COLORGREEN; HH2:N2,COLORMAGENTA; HH3:N3,COLORLIGHTGREY;
要2個價位就用這個: HH:N,COLORYELLOW; HH1:N1,COLORGREEN;
要1個價位就用這個: HH:N,COLORYELLOW;
HH1:N,COLORRED; HH2:N1,COLORMAGENTA; HH3:N2,COLORYELLOW; HH4:N3,COLORGREEN; 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,0);
指標(biāo):WHZ007 (雙向成交量和成交量之比的指標(biāo)) ZB:MA(SCALE,N); {N分鐘主動買/N分鐘成交量} ZS:MA(1-SCALE,N); {N分鐘主動賣/N分鐘成交量}
指標(biāo):WHZ008 VAR1:=(CLOSE*2+HIGH+LOW)/4; VAR2:=EMA(VAR1,30)-EMA(VAR1,20); VAR3:=EMA(VAR2,20); QRFJ:0; KFZL:(-2)*(VAR2-VAR3)*3.8; DFZL:2*(VAR2-VAR3)*3.8,COLORYELLOW;
期貨密碼
input:N(20,1,999); TY:=(sum(ma(c,3),3)+sum(ma(l,3),3)+sum(ma(h,3),3))/9; A1:=REF(sum(HHV(TY,34),5)/5,1)=HHV(TY,2*N); HD:=FILTER(FILTER(A1,N),N); B1:=REF(sum(LLV(TY,34),5)/5,1)=LLV(TY,2*N); LD:=FILTER(FILTER(B1,N),N); A:=REF(sum(HHV(TY,25),5)/5,BARSLAST(A1)); B:=REF(sum(LLV(TY,25),5)/5,BARSLAST(B1)); HH:=BARSLAST(c>REF(a,1)*1.003); LL:=BARSLAST(c<REF(b,1)*0.997); PARTLINE(HH<LL,b),colorFFFF; PARTLINE(HH>LL,a),colorFFFFFF; DRAWICON(CROSS(HH,LL),a,2);//開空 DRAWICON(CROSS(LL,HH),b,1);//開多 DRAWICON(hh<ll and cross(b,l),l,8);//加多 DRAWICON(hh>ll and cross(h,a),h,9);//加空 STICKLINE((HH<LL),OPEN,CLOSE,8,0),colorFF; STICKLINE((HH<LL),HIGH,LOW,0,0),colorFF; STICKLINE((HH>LL),OPEN,CLOSE,8,0),colorFF00; STICKLINE((HH>LL),HIGH,LOW,0,0),colorFF00;
|