准确率100的技术指标文华财经指标公式期货软件做期货最准确指标
期货最好用的指标公式文华财经指标公式通道线精准买
MA5:=MA(C,5),COLORF00FF0;MA10:=MA(C,10);MA20:=MA(C,20);MA60:=MA(C,60),COLORGREEN;买线:=ZIGZAG(C,10,1);卖线:=MA(买线,3);CAPITAL:=GETPRICE1('流通股本');换手:=V/CAPITAL*100;基线:=MA(REF(LLV(C,30),1),2),NODRAW;AMOUNT:=AVPRICE*V;量能饱和度:=IF((AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100>100,100,(AMOUNT/C)/(HHV(AMOUNT, 20)/HHV(C,20))*100),NODRAW;MA8:=MA(C,8),COLORYELLOW;MA13:=MA(C,13),COLORE66878;MA50:=MA(C,50),COLORWHITE;MA55:=MA(C,55),COLORGREEN;MA144:=MA(C,144),COLORBLUE;X1:=(C+L+H)/3;X2:=EMA(X1,6);X3:=EMA(X2,5);VARF1:=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);VAR101:=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);VAR111:=VARF1<REF(VAR101,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);游资:=(VAR111 AND COUNT(VAR111,30)=1 AND 买线>=卖线);DRAWTEXT(游资,(基线*0.97),'--游资进'),COLORBLUE;STICKLINE(游资,(基线*0.96),(基线+0.2),9,0),COLORBLUE;VARS1:=(C-LLV(L,36))/(HHV(H,36)-LLV(L,36))*100;VARS2:=SMA(VARS1,3,1);VARS3:=SMA(VARS2,3,1);VARS4:=SMA(VARS3,3,1);抄底:=((FILTER((CROSS(VARS3,VARS4) AND VARS3<20),10)=1) AND 买线>=卖线); DRAWTEXT(抄底,(基线*0.94),'--抄底'),COLORFF00FF;STICKLINE(抄底,(基线*0.92),基线,9,0),COLORFF00FF;YY:=(CROSS(X2,X3) AND (买线>=卖线));DRAWTEXT(YY,(L*0.99),'--精准买'),COLORYELLOW;//STICKLINE1(YY,C,(L*0.98),9,0),COLORYELLOW;F:=100*(C-REF(C,1))/REF(C,1);S1:=IF(C<REF(O,1) AND F<0,1,0);S2:=IF(C<REF(O,2) AND F<0,1,0);短买点:=((CROSS((SMA(MAX(C-(REF(C,1)),0),4.1,1)/SMA(ABS(C-(REF(C,1))),4.1,1)*100),11)*1) AND S1=0 AND REF(S1,1)=1 AND S2=0 AND REF(S2,1)=1 AND 换手>=3 AND 买线>=卖线);//DRAWTEXT(短买点,(基线*0.94),'--短买点'),COLORFF00FF;//STICKLINE1(短买点,(基线*0.92),(基线*0.98),9,0),COLORFF00FF;VAR5:=(3*(SMA(SMA(((C-LLV(L,20))/(HHV(H,20)-LLV(L,20))*100),3,1),3,1)/28.57)-2*(EMA((SMA(S MA(((C-LLV(L,20))/(HHV(H,20)-LLV(L,20))*100),3,1),3,1)/28.57),5)));奔牛:=(CROSS(VAR5,(SMA(SMA(((C-LLV(L,20))/(HHV(H,20)-LLV(L,20))*100),3,1),3,1)/28.57)) AND 买线>=卖线);//DRAWTEXT(奔牛,(基线*0.98),'--奔牛'),COLOR00AAFF;//STICKLINE1(奔牛,(基线*0.96),基线,9,0),COLOR00AAFF;VARQ1:=EMA(CLOSE,3);VARQ2:=EMA(CLOSE,21);VARQ3:=BARSLAST(CROSS(VARQ2,VARQ1))>15;VARQ4:=VOL>MA(VOL,5)*2 AND VOL<MA(VOL,5)*5;黑马:=((CROSS(VARQ1,VARQ2) AND VARQ4 AND VARQ3) AND 买线>=卖线);//DRAWTEXT(黑马,(基线*0.98),'--黑马'),COLORFF6600;//STICKLINE1(黑马,(基线*0.96),基线,9,0),COLORFF6600;波段买点:=CROSS((ZIGZAG(C,10,1)),(MA((ZIGZAG(C,10,1)),3)));DRAWTEXT(波段买点,(基线*0.98),'--波段买'),COLOR00AAFF;STICKLINE1(波段买点,(基线*0.96),基线,9,0),COLORRED;VARDD:=(ZIGZAG(C,5,1)<REF(ZIGZAG(C,5,1),1)) AND (REF(ZIGZAG(C,5,1),1)>=REF(ZIGZAG(C,5,1),2)) AND (REF(ZIGZAG(C,5,1),2)>=REF(ZIGZAG(C,5,1),3));DRAWTEXT((VARDD=1),(H*1.05),'波段卖'),COLORWHITE;STICKLINE1((VARDD=1),(H*1.01),(H*1.03),9,0),COLORWHITE;大黑马:=(IF(CROSS((MA(3*SMA(((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100,6,1)-2*SMA(SMA(((C-LLV(L, 21))/(HHV(H,21)-LLV(L,21)))*100,5,1),5,1),2)),0) AND EMA(3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L ,55))*100,5,1),5)<40,8,0) AND 买线>=卖线);DRAWTEXT(大黑马,(基线*0.94),'-大黑马'),COLORBLUE;短高H:=(20*H+19*REF(H,1)+18*REF(H,2)+17*REF(H,3)+16*REF(H,4)+15*REF(H,5)+14*REF(H,6) +13*REF(H,7)+12*REF(H,8)+11*REF(H,9)+10*REF(H,10)+9*REF(H,11)+8*REF(H,12)+7*REF(H,13)+6*REF(H,14)+5*REF(H,15)+4*REF(H,16)+3*REF(H,17)+2*REF(H,18)+REF(H,20))/210,COLORBLUE,LINETHICK1;短低L:=(20*L+19*REF(L,1)+18*REF(L,2)+17*REF(L,3)+16*REF(L,4)+15*REF(L,5)+14*REF(L,6) +13*REF(L,7)+12*REF(L,8)+11*REF(L,9)+10*REF(L,10)+9*REF(L,11)+8*REF(L,12)+7*REF(L,13)+6*REF(L,14)+5*REF(L,15)+4*REF(L,16)+3*REF(L,17)+2*REF(L,18)+REF(L,20))/210,COLORBLUE,LINETHICK1;D90H:=EMA(短高H,90),COLORYELLOW,LINETHICK1;D90L:=EMA(短低L,90),COLORYELLOW,LINETHICK1;D90差:=D90H-D90L;D90顶:=D90H+D90差*2,COLORYELLOW,LINETHICK1;D90底:=D90L-D90差*2,COLORYELLOW,LINETHICK1;//XMA(X,N)=REFX(MA(X,N),N/2);XH25:=REFX1(MA(H,25),25/2);XXH25:=REFX1(MA(XH25,25),25/2);XL25:=REFX1(MA(L,25),25/2);XXL25:=REFX1(MA(XL25,25),25/2);高0:=(XXH25-XXL25+XXH25),LINETHICK1,COLORWHITE;低0:=XXL25*2-XXH25,LINETHICK1,COLORWHITE;多头定位:=低0>=D90底AND 高0>=D90顶;空头定位:=高0<=D90顶AND 低0<=D90底;震荡定位:=低0>=D90底AND 高0<=D90顶;XH60:=REFX1(MA(H,60),60/2);XXH60:=REFX1(MA(XH60,60),60/2);XL60:=REFX1(MA(L,60),60/2);XXL60:=REFX1(MA(XL60,60),60/2);波段顶0:=4*XXH60-3*XXL60,LINETHICK2,COLORWHITE;波段底0:=4*XXL60-3*XXH60,LINETHICK2,COLORWHITE;多止损:XXL25-(XXH25-XXL25)*3.5,DOT,COLORWHITE;多止盈:(XXH25-XXL25)*1+XXH25,NODRAW,COLORWHITE;空止损:(XXH25-XXL25)*3.5+XXH25,DOT,COLORYELLOW;空止盈:XXL25-(XXH25-XXL25)*0.5,NODRAW,COLORGREEN;做空:(XXH25-XXL25)*1+XXH25,LINETHICK1,COLORGREEN,DOT;做多:XXL25-(XXH25-XXL25)*1,LINETHICK1,COLORRED,DOT;空损:=(XXH25-XXL25)*3.9+XXH25,LINETHICK1,COLORYELLOW;多损:=XXL25-(XXH25-XXL25)*3.9,LINETHICK1,COLORYELLOW;波段顶:=(XXH60-XXL60)*3+XXH60,LINETHICK1,COLORYELLOW;波段底:=XXL60-(XXH60-XXL60)*3,LINETHICK1,COLORWHITE;止盈差:多止盈-空止盈,NODRAW;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;今D:=EMA(D,3);昨D:=REF(今D,1);白色点多定位1:=L<做多AND H>做多;白色点空定位1:=H>做空AND L<做空;白色点多定位2:=H<做多;白色点空定位2:=L>做空;多头红色点:=今D>昨D;空头红色点:=今D<昨D;多头红色点定位1:=白色点多定位1=1 AND 多头红色点=1;多头红色点定位2:=白色点多定位2=1 AND 多头红色点=1;空头红色点定位2:=白色点空定位2=1 AND 空头红色点=1;空头红色点定位1:=白色点空定位1=1 AND 空头红色点=1;多头多定位:=CROSS(做多,L) AND 多头定位=1;多头平定位:=CROSS(H,做空) AND 多头定位=1 AND 震荡定位=0;空头空定位:=CROSS(H,做空) AND 空头定位=1;空头平定位:=CROSS(做多,L) AND 空头定位=1 AND 震荡定位=0;震荡多定位:=CROSS(做多,L) AND 震荡定位=1;震荡空定位:=CROSS(H,做空) AND 震荡定位=1;DRAWICON(多头多定位=1 OR 震荡多定位=1,多损,'ICO116');DRAWICON(空头空定位=1 OR 震荡空定位=1,空损,'ICO117');//VERTLINE1(REFX(ISLASTBAR,11));G:=MA5;DY:=MA10;NNH:=BARSLAST(H=HHV(H,15)) ,NODRAW;NNL:=BARSLAST(L=LLV(L,15)) ,NODRAW;NN:=IF(REF(G,NNH)>REF(DY,NNH) AND NNH<=12,NNH,IF(REF(G,NNL)<REF(DY,NNL) AND NNL<=12,NNL,13)) ,NODRAW;YN:=IF(ISLASTBAR AND NN>0,NN,13) ,NODRAW;HHY:=REF(H,YN)=HHV(H,14);LLY:=REF(L,YN)=LLV(L,14);FG01:=BACKSET(HHY,YN+1)>BACKSET(HHY,YN),NODRAW;//只设置前面第6个FD01:=BACKSET(LLY,YN+1)>BACKSET(LLY,YN) ,NODRAW;FG02:=FG01=FD01 AND G>DY,NODRAW;FD02:=FG01=FD01 AND G<DY,NODRAW;TTTT:=BARSLAST(FD01),NODRAW;FG0:=FG01 AND IF(FG02=1,H=HHV(H,BARSLAST(REF(FD01,1))+1),H=HHV(H,IF(BARSLAST(L=LLV(L,7))>=5,5,BARSLA ST(FD01)))) AND FD02=0 ,NODRAW;FD0:=FD01 AND IF(FD02=1,L=LLV(L,BARSLAST(REF(FG01,1))+1),L=LLV(L,IF(BARSLAST(H=HHV(L,7))>=5,5,BARSLAST( FG01)))) AND FG02=0 ,NODRAW;GT:=BARSLAST(FG0),NODRAW;DT:=BARSLAST(FD0),NODRAW;LLLL:=DT=0 AND REF(DT,1)<GT AND L>REF(L,REF(DT,1)+1),NODRAW;FG1:=BACKSET(REFX(GT,1)=0 AND GT<DT AND REFX(H,1)>=REF(H,GT),GT+1),NODRAW;FD1:=BACKSET(REFX(DT,1)=0 AND DT<GT AND REFX(L,1)<=REF(L,DT),DT+1),NODRAW;FG11:=IF(GT=0 AND REF(GT,1)<DT ANDIF(REF(G,BARSLAST(L=LLV(L,7)))>REF(DY,BARSLAST(L=LLV(L,7))),BARSLAST(L=LLV(L,7))<5,1) AND H<REF(H,REF(GT,1)+1),1,0),NODRAW;FD11:=IF(DT=0 AND REF(DT,1)<GT AND IF(REF(G,BARSLAST(H=HHV(H,7)))<REF(DY,BARSLAST(H=HHV(H,7))),BARSLAST(H=HHV(H,7))<5,1) AND L>REF(L,REF(DT,1)+1),1,0),NODRAW;GT1:=BARSLAST(FG11<>1 AND FG1<>1 AND FG0),NODRAW;DT1:=BARSLAST(FD11<>1 AND FD1<>1 AND FD0),NODRAW;FD2:=BACKSET(REFX(GT1,1)=0 AND DT1<3 AND GT1-DT1<4 AND REF(L,DT1)>LLV(L,GT1+5),DT1+1),NODRAW;FG2A:=BACKSET(REFX(GT1,1)=0 AND DT1<3 AND GT1-DT1<4 AND REF(L,DT1)<=LLV(L,GT1+5) AND REF(H,GT1)>HHV(H,GT1+5),GT1+1),NODRAW;FG2B:=IF(GT1=0 AND DT1<4 AND REF(GT1,1)-DT1<4 AND REF(L,DT1)<=LLV(L,REF(GT1,1)+6) AND H>HHV(H,REF(GT1,1)+6),1,0),NODRAW;FG2:=BACKSET(REFX(DT1,1)=0 AND GT1<3 AND DT1-GT1<4 AND REF(H,GT1)<HHV(H,DT1+5),GT1+1),NODRAW;FD2A:=BACKSET(REFX(DT1,1)=0 AND GT1<3 AND DT1-GT1<4 AND REF(H,GT1)>=HHV(L,DT1+5) AND REF(L,DT1)>LLV(L,DT1+5),DT1+1),NODRAW;FD2B:=IF(DT1=0 AND GT1<4 AND REF(DT1,1)-GT1<4 AND REF(H,GT1)>=HHV(H,REF(DT1,1)+6) AND L>LLV(L,REF(DT1,1)+6),1,0),NODRAW;TTTTTT:= H<REF(H,REF(GT1,1)+1) AND DT1<4,NODRAW;HHHHHH:=REF(LLV(L,10),DT1),NODRAW;FG21:=IF(GT1=0 AND DT1<4 AND H<=REF(H,REF(GT1,1)+1) ,1,0),NODRAW;FD21:=IF(DT1=0 AND GT1<4 AND L>=REF(L,REF(DT1,1)+1) ,1,0),NODRAW;FD231:=BACKSET(REFX(GT1,1)=0 AND DT1>3 AND GT1>DT1 AND GT1-DT1<4 AND REFX(H,1)>REF(H,GT1) AND REF(L,DT1)>REF(LLV(L,10),DT1),DT1+1),NODRAW;FG23:=BACKSET(REFX(GT1,1)=0 AND DT1>3 AND GT1>DT1 AND GT1-DT1<4 AND REFX(H,1)>REF(H,GT1) AND (REF(H,GT1)<REF(HHV(H,13),GT1) OR REF(FD231,DT1)=0),GT1+1),NODRAW;FG231:=BACKSET(REFX(DT1,1)=0 AND GT1>3 AND DT1>GT1 AND DT1-GT1<4 AND REFX(L,1)<REF(L,DT1) AND REF(H,GT1)<REF(HHV(H,10),GT1) ,GT1+1),NODRAW;FD23:=BACKSET(REFX(DT1,1)=0 AND GT1>3 AND DT1>GT1 AND DT1-GT1<4 AND REFX(L,1)<REF(L,DT1) AND ( REF(L,DT1)>REF(LLV(L,13),DT1) OR REF(FG231,GT1)=0),DT1+1),NODRAW;FDD23:=REF(H,GT1)<REF(HHV(H,10),GT1) OR REF(FD23,DT1)=0,NODRAW;FD24:=BACKSET(REFX(GT1,1)=0 AND DT1>3 AND GT1>DT1 AND GT1-DT1<4 AND REFX(H,1)<HHV(H,GT1+3) AND REF(L,DT1)>LLV(L,DT1+5),DT1+1),NODRAW;FG24:=BACKSET(REFX(DT1,1)=0 AND GT1>3 AND DT1>GT1 AND DT1-GT1<4 AND REFX(L,1)>LLV(L,DT1+3) AND REF(H,GT1)<HHV(H,GT1+5),GT1+1),NODRAW;GT2:=BARSLAST(FG21<>1 AND FG23<>1 AND FG231<>1 AND FG24<>1 AND FG2<>1 AND FG2A<>1 AND FG2B<>1 AND GT1=0),NODRAW;DT2:=BARSLAST(FD21<>1 AND FD23<>1 AND FD231<>1 AND FD24<>1 AND FD2<>1 AND FD2A<>1 AND FD2B<>1 AND DT1=0),NODRAW;FG3:=BACKSET(REFX(GT2,1)=0 AND GT2<DT2 AND REFX(H,1)>=REF(H,GT2),GT2+1),NODRAW;FD3:=BACKSET(REFX(DT2,1)=0 AND DT2<GT2 AND REFX(L,1)<=REF(L,DT2),DT2+1),NODRAW;FG31:=IF(GT2=0 AND REF(GT2,1)<DT2 AND H<REF(H,REF(GT2,1)+1),1,0),NODRAW;FD31:=IF(DT2=0 AND REF(DT2,1)<GT2 AND L>REF(L,REF(DT2,1)+1),1,0),NODRAW;GT3:=BARSLAST(GT2=0 AND FG3<>1 AND FG31<>1 ),NODRAW;DT3:=BARSLAST(DT2=0 AND FD3<>1 AND FD31<>1),NODRAW;FG4:=BACKSET(REFX(GT3,1)=0 AND GT3<DT3 AND REFX(H,1)>=REF(H,GT3),GT3+1),NODRAW; FD4:=BACKSET(REFX(DT3,1)=0 AND DT3<GT3 AND REFX(L,1)<=REF(L,DT3),DT3+1),NODRAW; FG41:IF(GT3=0 AND REF(GT3,1)<DT3 AND H<REF(H,REF(GT3,1)+1),1,0),NODRAW;FD41:IF(DT3=0 AND REF(DT3,1)<GT3 AND L>REF(L,REF(DT3,1)+1),1,0),NODRAW;HHH:=GT3=0 AND FG31<>1 AND FG3<>1,NODRAW;LLL:=DT3=0 AND FD31<>1 AND FD3<>1,NODRAW;DX:=HHH||LLL;L1:=CROSS(BACKSET(ISLASTBAR,SUMBARS(DX,3)),0.5);L2:=CROSS(BACKSET(ISLASTBAR,SUMBARS(DX,2)),0.5);L3:=CROSS(BACKSET(ISLASTBAR,SUMBARS(DX,1)),0.5);PP:=IF(HHH,H,L);A1:=VALUEWHEN(L1,PP);A2:=VALUEWHEN(L2,PP);A3:=VALUEWHEN(L3,PP);AAA:=REFX1((A2-A1)*0.618+A3,1000);DRAWTEXT(HHH,H,'●'),COLORWHITE,FONTSIZE30;DRAWTEXT(LLL,L,'●'),COLORWHITE,FONTSIZE30;HHH,SOUND('B');LLL,SOUND('A');DRAWCOLORKLINE(买线>=卖线&& C>=O&&(HHH||LLL),COLORRED,1); DRAWCOLORKLINE(买线>=卖线&& C<O&&(HHH||LLL),COLORRED,0); DRAWCOLORKLINE(买线<卖线&& C>=O&&(HHH||LLL),COLORGREEN,1); DRAWCOLORKLINE(买线<卖线&& C<O&&(HHH||LLL),COLORGREEN,0);STICKLINE1(CROSS(买线,卖线),O,C,9,0),COLOR00AAFF;STICKLINE1(买线<卖线&&(HHH||LLL),H,L,0,0),COLORGREEN;STICKLINE1(买线<卖线&&(HHH||LLL),C,O,9,0),COLOR007700;STICKLINE1(买线<卖线&&(HHH||LLL),C,O,8,0),COLOR008E00;STICKLINE1(买线<卖线&&(HHH||LLL),C,O,7,0),COLOR009900;STICKLINE1(买线<卖线&&(HHH||LLL),C,O,6,0),COLOR00A600;STICKLINE1(买线<卖线&&(HHH||LLL),C,O,5,0),COLOR00B500;STICKLINE1(买线<卖线&&(HHH||LLL),C,O,4,0),COLOR00C600;STICKLINE1(买线<卖线&&(HHH||LLL),C,O,3,0),COLOR00D500;STICKLINE1(买线<卖线&&(HHH||LLL),C,O,2,0),COLOR00E600;STICKLINE1(买线>=卖线&&(HHH||LLL),H,L,0,0),COLOR0000FF;STICKLINE1(买线>=卖线&&(HHH||LLL),C,O,9,0),COLOR0000A3;STICKLINE1(买线>=卖线&&(HHH||LLL),C,O,8,0),COLOR0000B7;STICKLINE1(买线>=卖线&&(HHH||LLL),C,O,6,0),COLOR0000C8; STICKLINE1(买线>=卖线&&(HHH||LLL),C,O,5,0),COLOR0000D9; STICKLINE1(买线>=卖线&&(HHH||LLL),C,O,4,0),COLOR0000CD; STICKLINE1(买线>=卖线&&(HHH||LLL),C,O,3,0),COLOR0000E9; STICKLINE1(买线>=卖线&&(HHH||LLL),C,O,2,0),COLOR0000EA; STICKLINE1(买线>=卖线&&(HHH||LLL),C,O,1,0),COLOR0000FF;。
期货最好用的指标公式文华财经指标公式RSI日周月顶底背离
RSV1:=(CLOSE-LLV(LOW,89))/(HHV(HIGH,89)-LLV(LOW,89))*100;//收盘价与N周期最低值做差,N周期最高值与N周期最低值做差,两差之间做比值。
RSV2:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;//收盘价与N周期最低值做差,N周期最高值与N周期最低值做差,两差之间做比值。
RSV3:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;//收盘价与N周期最低值做差,N 周期最高值与N周期最低值做差,两差之间做比值。
RSV5:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;//收盘价与N周期最低值做差,N 周期最高值与N周期最低值做差,两差之间做比值。
K5:SMA(RSV5,3,1);//RSV的移动平均值D5:SMA(K5,3,1);//K的移动平均值月K:SMA(RSV1,3,1);//RSV的移动平均值月D:SMA(月K,3,1);//K的移动平均值周K:SMA(RSV2,3,1);//RSV的移动平均值周D:SMA(月K,3,1);//K的移动平均值日K:SMA(RSV3,3,1);//RSV的移动平均值日D:SMA(月K,3,1);//K的移动平均值日金叉:=CROSS(日K,日D);周金叉:=CROSS(周K,周D);月金叉:=CROSS(月K,月D);X1:=日D>REF(日D,1);DRAWICON(X1,日D*0.98,36);X2:=日D<REF(日D,2);DRAWICON(X2,日D*0.98,37);X3:=周D>REF(周D,1);DRAWICON(X3,周D*0.98,36);X4:=周D<REF(周D,2);DRAWICON(X4,周D*0.98,37);X5:=月D>REF(月D,1);DRAWICON(X5,月D*0.98,36);X6:=月D<REF(月D,2);DRAWICON(X6,月D*0.98,37);DRAWICON(日金叉,日D*0.98,25);DRAWICON(CROSS(周D,日D),周D*0.98,27);DRAWICON(周金叉,周D*0.98,34);DRAWICON(CROSS(月D,周D),月D*0.98,35);DRAWICON(月金叉,月D*0.98,13);DRAWICON(CROSS(月D,日D),月D*0.98,14);二叉共振:=日金叉+周金叉+月金叉=2;三叉共振:=日金叉+周金叉+月金叉=3;STICKLINE(二叉共振,35,65,1,0),COLORRED;STICKLINE(二叉共振,40,60,1,-1),COLORCYAN;STICKLINE(三叉共振,30,70,1,0),COLORRED;STICKLINE(三叉共振,36,64,1,-1),COLORYELLOW;DRAWTEXT(二叉共振,55,'二金叉共振');DRAWTEXT(三叉共振,55,'三金叉共振');CURRBARSCOUNT:=DATACOUNT-BARPOS+1;DRAWTEXT(CURRBARSCOUNT=25,70,'【编辑优化】青稞酒一壶'),COLOR555555;JM:=CROSS(K5,D5);JMCOUNT:=COUNT(JM,BARSLAST(D5>=30));JMTJ:=28*(D5<30 AND COUNT(JMCOUNT=1,21)=1);DRAWTEXT (JMTJ,70,'①'),COLORWHITE;JMTJ2:=28*(D5<30 AND COUNT(JMCOUNT=2,21)=1);DRAWTEXT (JMTJ2,70,'②'),COLORYELLOW;JMTJ3:=28*(D5<30 AND COUNT(JMCOUNT=3,21)=1); DRAWTEXT (JMTJ3,70,'③'),COLORYELLOW;JMTJ4:=28*(D5<30 AND COUNT(JMCOUNT=4,21)=1); DRAWTEXT (JMTJ4,70,'④'),COLORYELLOW;JMTJ5:=28*(D5<30 AND COUNT(JMCOUNT=5,21)=1); DRAWTEXT (JMTJ5,70,'⑤'),COLORYELLOW;DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA); STICKLINE(FILTER(B1>0,5),-20,-10,3,0),COLORGREEN;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);A2:=BARSLAST(REF(CROSS(K,D),1));B2:=REF(C,A2+1)>C AND REF(K,A2+1)<K AND CROSS(K,D); STICKLINE(FILTER(B2>0,5),-20,-10,3,0),COLORYELLOW;LC:=REF(CLOSE,1);RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100; RSI2:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100; A3:=BARSLAST(REF(CROSS(RSI1,RSI2),1));B3:=REF(C,A3+1)>C AND REF(RSI1,A3+1)<RSI1 AND CROSS(RSI1,RSI2); STICKLINE(FILTER(B3>0,5),-20,-10,3,0),COLORWHITE;C1:=BARSLAST(REF(CROSS(DEA,DIFF),1));D1:=REF(C,C1+1)<C AND REF(DIFF,C1+1)>DIFF AND CROSS(DEA,DIFF); STICKLINE(FILTER(D1>0,5),-10,0,3,1),COLOR0066FF;C2:=BARSLAST(REF(CROSS(D,K),1));D2:=REF(C,C2+1)<C AND REF(K,C2+1)>K AND CROSS(D,K); STICKLINE(FILTER(D2>0,5),-10,0,3,1),COLORRED;C3:=BARSLAST(REF(CROSS(RSI2,RSI1),1));D3:=REF(C,C3+1)<C AND REF(RSI1,C3+1)>RSI1 AND CROSS(RSI2,RSI1); STICKLINE(FILTER(D3>0,5),-10,0,3,1),COLORFF00FF;DRAWTEXT(FILTER(D3>0,5),0,'--R顶背离'),COLORFF00FF; DRAWTEXT(FILTER(D2>0,5),-10,'--K顶背离'),COLORRED; DRAWTEXT(FILTER(D1>0,5),-5,'--M顶背离'),COLOR0066FF; DRAWTEXT(FILTER(B3>0,5),-10,'--R底背离'),COLORWHITE; DRAWTEXT(FILTER(B2>0,5),-20,'--K底背离'),COLORYELLOW; DRAWTEXT(FILTER(B1>0,5),-15,'--M底背离'),COLORGREEN;。
期货最好用的指标公式文华财经指标公式 精准抄底逃顶
VAR1:=(CLOSE+HIGH+LOW+OPEN)/4;CAPITAL:=GETPRICE1('流通股本');VAR2:=SUMBARS(VOL,CAPITAL);VAR3:=HHV(VAR1,VAR2);VAR4:=LLV(VAR1,VAR2);VAR5:=(2*VAR1-VAR4-REF(VAR4,1))/(VAR3-VAR4);VAR6:=(VAR1-VAR4)/(VAR3-VAR4);VAR7:=IF(VAR1<=VAR4,VAR5*60,VAR6*60);VAR8:=600*(EMA(CLOSE,3)-EMA(LOW,30))/EMA(LOW,30);VAR9:=EMA(VAR8,7);VARA:=(WINNER(120*CLOSE/100)-WINNER(100*CLOSE/100))*100;VARB:=(-100)*(WINNER(120*CLOSE/100)-WINNER(100*CLOSE/100))+5;波段买入:= IF(VARA+VARB<7 AND CROSS(VAR8,VAR9) AND VAR9<-18 AND VAR9<VARB,60,50),COLORYELLOW;//DRAWICON(波段买入=60,70,1),COLORRED;VARC:=HHV(HIGH,9)-LLV(LOW,9);VARD:=HHV(HIGH,9)-CLOSE;VARE:=CLOSE-LLV(LOW,9);VARF:=VARD/VARC*100-70;VAR10:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;VAR11:=(2*CLOSE+HIGH+LOW)/4;VAR12:=SMA(VARE/VARC*100,3,1);VAR13:=LLV(LOW,34);VAR14:=SMA(VAR12,3,1)-SMA(VARF,9,1);VAR15:=IF(VAR14>100,VAR14-100,0);VAR16:=HHV(HIGH,34);VAR17:=EMA((VAR11-VAR13)/(VAR16-VAR13)*100,8);巫修全制:= VAR17,COLORYELLOW ;VAR18:=EMA(VAR17,5);//STICKLINE1(VAR17>0 AND VAR17-VAR18>=0,79,80,6,0),COLORRED ;//STICKLINE1(VAR17>0 AND VAR17-VAR18<0,79,80,6,1),COLOR00FF00 ;//STICKLINE1(VAR17>0 AND VAR17-VAR18>=0,19,20,6,0),COLORRED;//STICKLINE1(VAR17>0 AND VAR17-VAR18<0,19,20,6,1),COLOR00FF00 ;STICKLINE1(VAR17-VAR18>0,VAR17,VAR18,8,1),COLORRED ;STICKLINE1(VAR17-VAR18<0,VAR17,VAR18,8,1),COLOR00FF00 ;VAR22:=REF(LOW,1);VAR23:=SMA(ABS(LOW-VAR22),3,1)/SMA(MAX(LOW-VAR22,0),3,1)*100;VAR24:=EMA(IF(CLOSE*1.3,VAR23*10,VAR23/10),3);VAR25:=LLV(LOW,30);VAR26:=HHV(VAR24,30);VAR27:=IF(MA(CLOSE,58),1,0);VAR28:=EMA(IF(LOW<=VAR25,(VAR24+VAR26*2)/2,0),3)/618*VAR27;VAR29:=IF(VAR28>100,100,VAR28);STICKLINE1(VAR29>-150,0,VAR29,3,0),COLORFF00FF;底部吸筹指标:= (CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100, COLOR00FF00;STICKLINE1(CROSS(底部吸筹指标,-24),100,0,6,0),COLORFFFFFF;先知:= (CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100,COLORFF00FF;可能放量拉升:= IF(CROSS(底部吸筹指标,-24),1,0),COLORFFFFFF;VARK1:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;VARK2:=REVERSE(VARK1);VARK3:=SMA(VARK1,3,1);波段王:=SMA(VARK3,3,1),COLORRED,LINETHICK2;波段鬼:=SMA(波段王,2.5,1),COLORYELLOW,LINETHICK2;趋势线:= 3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LO W,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),COLORFF6666,LINETHICK2;卖:=IF((CROSS(波段鬼,波段王) OR CROSS(波段鬼,趋势线) OR CROSS(波段王,趋势线) ) AND 波段鬼>65,90,0),STICK,COLORFFFF00 ,LINETHICK3;RSV9:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K1:=SMA(RSV9,3,1);DK1:=K1-REF(K1,1),COLORSTICK;出手就赢:=IF(DK1>7 AND REF(DK1,1)<0 AND (DK1-REF(DK1,1))>9,50,0),STICK,COLORYELLOW;//DRAWICON(出手就赢>0,50 ,1);买点准备:=IF(趋势线<=10,0,10), COLORFF9933,LINETHICK3;STICKLINE1(CROSS(趋势线,10),0,73,6,0),COLOR3366FF;DRAWTEXT(IF(CROSS(趋势线,10),100,0),68,'抄底'),COLORWHITE ;//DRAWTEXT(IF(CROSS(10,趋势线),1,0), 10,'$备钱'),COLOR33FFCC;//{目前位置:对当前股票所处的技术位置进行评价,可对是否介入作出辅助判断} RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;DRAWTEXT(REF(J,1)<0 AND J>0,50,'考虑'),COLORRED ;//STICKLINE1(REF(J,1)<0 AND J>0,60,0,2,0),COLOR0000FF;目前位置:=K;技术低位:20;技术中位:50,POINTDOT;技术高位:80;AAA:=(3*C+H+L+O)/6;VAR1X:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)+4*REF(AAA,4)+3*REF(AAA,5)+2*RE F(AAA,6)+REF(AAA,8))/36,LINETHICK2,COLORRED;VAR2X:=(HHV(VAR1X,2)+HHV(VAR1X,4)+HHV(VAR1X,8))/3;VAR3X:=(LLV(VAR1X,2)+LLV(VAR1X,4)+LLV(VAR1X,8))/3;VAR4X:=(HHV(VAR2X,2)+HHV(VAR2X,4)+HHV(VAR2X,8))/3;VAR5X:=(LLV(VAR3X,2)+LLV(VAR3X,4)+LLV(VAR3X,8))/3,COLORRED;VAR6X:=(LLV(VAR1X,2)+LLV(VAR1X,4)+LLV(VAR1X,8))/3;DRAWICON(REF(VAR5X,1)=REF(VAR1X,1) AND VAR5X<VAR1X,VAR17,'ICO1'),COLORRED; DRAWICON(REF(VAR4X,1)=REF(VAR1X,1) AND VAR4X>VAR1X,VAR17,'ICO2'),COLORGREEN;。
文华财经期货软件指标公式源码准确率最高的期货指标 螺纹钢期货指标公式
短高H:=EMA2(H,20),COLORBLUE,LINETHICK1;短低L:=EMA2(L,20),COLORBLUE,LINETHICK1;D90H:=EMA(短高H,90)-(EMA(短高H,90)-EMA(短低L,90))*0.2,COLORRED,LINETHICK1;D90L:=EMA(短低L,90)+(EMA(短高H,90)-EMA(短低L,90))*0.2,COLORRED,LINETHICK1;高0:=(EMA(EMA(H,25),25)-EMA(EMA(L,25),25))*1+EMA(EMA(H,25),25),LINETHICK1,COLORWHITE; 低0:=EMA(EMA(L,25),25)-(EMA(EMA(H,25),25)-EMA(EMA(L,25),25))*1,LINETHICK1,COLORWHITE; 多头定位:=(高0+低0)/2>(D90H+D90L)/2;空头定位:=(高0+低0)/2<(D90H+D90L)/2;波段顶0:=(EMA(EMA(H,120),120)-EMA(EMA(L,120),120))*4+EMA(EMA(H,120),120),LINETHICK1,COLOR RED;波段底0:=EMA(EMA(L,120),120)-(EMA(EMA(H,120),120)-EMA(EMA(L,120),120))*4,LINETHICK1,COLORG REEN;STICKLINE(多头定位=1,波段顶0,波段底0,5,0),COLOR001050;STICKLINE(空头定位=1,波段顶0,波段底0,5,0),COLOR404050;中中中:=((EMA(EMA(H,15),15)+EMA(EMA(H,20),20)+EMA(EMA(H,30),30)+EMA(EMA(H,40),40))/4+(E MA(EMA(L,15),15)+EMA(EMA(L,20),20)+EMA(EMA(L,30),30)+EMA(EMA(L,40),40))/4)/2,COLORGR EEN;EMA中中中:=EMA(中中中,10),COLORWHITE;A:=(3*C+L+O+H)/6;B:=EMA2(A,20),COLORRED,LINETHICK1;D:=MA(B,10),COLORRED,LINETHICK2;D14:=MA(B,14),COLORRED,LINETHICK2;D21:=MA(B,21),COLORRED,LINETHICK2;A1:=MA((3*C+L+O+H)/6,28);B1:=EMA2(A1,20),COLORGREEN,LINETHICK1;D1:=MA(B1,14),COLORGREEN,LINETHICK2;FILLRGN(B1>D1,B1,D1,RGB(255,0,0));FILLRGN(B1<D1,B1,D1,RGB(255,255,0));FILLRGN(D14>D21,D21,D14,RGB(255,0,0));FILLRGN(D14<D21,D21,D14,RGB(255,255,0));FILLRGN(B>D,B,D,RGB(255,0,0));FILLRGN(B<D,B,D,RGB(255,255,0));中中顶:=(EMA(EMA(H,15),15)+EMA(EMA(H,20),20)+EMA(EMA(H,30),30)+EMA(EMA(H,40),40))/4*2-(E MA(EMA(L,15),15)+EMA(EMA(L,20),20)+EMA(EMA(L,30),30)+EMA(EMA(L,40),40))/4,LINETHICK2, COLORGREEN;中中底:=(EMA(EMA(L,15),15)+EMA(EMA(L,20),20)+EMA(EMA(L,30),30)+EMA(EMA(L,40),40))/4*2-(E MA(EMA(H,15),15)+EMA(EMA(H,20),20)+EMA(EMA(H,30),30)+EMA(EMA(H,40),40))/4,LINETHICK 2,COLORGREEN;短中顶:=(EMA(EMA(H,5),5)+EMA(EMA(H,8),8)+EMA(EMA(H,11),11)+EMA(EMA(H,14),14)+EMA(EMA( H,4),4))/5+((EMA(EMA(H,5),5)+EMA(EMA(H,8),8)+EMA(EMA(H,11),11)+EMA(EMA(H,14),14)+EM A(EMA(H,4),4))/5-(EMA(EMA(L,5),5)+EMA(EMA(L,8),8)+EMA(EMA(L,11),11)+EMA(EMA(L,14),14)+ EMA(EMA(L,4),4))/5)/2,COLORWHITE;短中底:=(EMA(EMA(L,5),5)+EMA(EMA(L,8),8)+EMA(EMA(L,11),11)+EMA(EMA(L,14),14))/4-((EMA(EM A(H,5),5)+EMA(EMA(H,8),8)+EMA(EMA(H,11),11)+EMA(EMA(H,14),14)+EMA(EMA(H,4),4))/5-(EM A(EMA(L,5),5)+EMA(EMA(L,8),8)+EMA(EMA(L,11),11)+EMA(EMA(L,14),14)+EMA(EMA(L,4),4))/5)/ 2,COLORWHITE;中顶:=(EMA(EMA(H,30),30)+EMA(EMA(H,40),40)+EMA(EMA(H,50),50)+EMA(EMA(H,60),60))/4*2.0 3-(EMA(EMA(L,30),30)+EMA(EMA(L,40),40)+EMA(EMA(L,50),50)+EMA(EMA(L,60),60))/4,LINETHI CK2,COLORRED;中底:=(EMA(EMA(L,30),30)+EMA(EMA(L,40),40)+EMA(EMA(L,50),50)+EMA(EMA(L,60),60))/4*1.97-( EMA(EMA(H,30),30)+EMA(EMA(H,40),40)+EMA(EMA(H,50),50)+EMA(EMA(H,60),60))/4,LINETHIC K2,COLORRED;长顶:=(EMA(EMA(H,90),90)+EMA(EMA(H,120),120)+EMA(EMA(H,150),150))/3*2.08-(EMA(EMA(L,9 0),90)+EMA(EMA(L,120),120)+EMA(EMA(L,150),150))/3,LINETHICK2,COLORYELLOW;长底:=(EMA(EMA(L,90),90)+EMA(EMA(L,120),120)+EMA(EMA(L,150),150))/3*1.92-(EMA(EMA(H,90),90)+EMA(EMA(H,120),120)+EMA(EMA(H,150),150))/3,LINETHICK2,COLORYELLOW;波段顶:(EMA(EMA(H,120),120)-EMA(EMA(L,120),120))*4+EMA(EMA(H,120),120),LINETHICK2,COLOR YELLOW;波段底:EMA(EMA(L,120),120)-(EMA(EMA(H,120),120)-EMA(EMA(L,120),120))*4,LINETHICK2,COLORY ELLOW;AF长:=EMA((CLOSE+HIGH+LOW)/3,18);BF长:=REF(AF长,1);AF中:=EMA((CLOSE+HIGH+LOW)/3,10);BF中:=REF(AF中,1);AF5:=EMA((CLOSE+HIGH+LOW)/3,6);BF5:=REF(AF5,1);AF3:=EMA((CLOSE+HIGH+LOW)/3,3);BF3:=REF(AF3,1);买入定位:=AF长>BF长OR AF中>BF中OR AF5>BF5 OR AF3>BF3;卖出定位:=AF长<BF长OR AF中<BF中OR AF5<BF5;顶底定位:=AF长<BF长OR AF中<BF中OR AF5<BF5 OR AF3<BF3;STICKLINE(买入定位=1,LOW,HIGH,0.0,1),COLORRED;STICKLINE(买入定位=1,CLOSE,OPEN,2,1),COLORRED;STICKLINE(AF中<BF中,LOW,HIGH,0.0,0),COLORGREEN;STICKLINE(AF中<BF中,CLOSE,OPEN,2,1),COLORGREEN;STICKLINE(卖出定位=1 AND 中中顶>中顶,LOW,HIGH,0.0,1),COLORGREEN;STICKLINE(卖出定位=1 AND 中中顶>中顶,CLOSE,OPEN,2,1),COLORGREEN;STICKLINE(顶底定位=1 AND H>中中顶AND H>中顶,CLOSE,OPEN,2,1),COLORGREEN; STICKLINE(顶底定位=1 AND H>中中顶AND H>中顶,LOW,HIGH,0.0,1),COLORGREEN;加仓定位1:=卖出定位=1 AND 中中顶>中顶;加仓定位2:=顶底定位=1 AND H>中中顶AND H>中顶;DRAWTEXT(中中中<EMA中中中AND CROSS(AF中,BF中) AND 短中底<中中底AND 短中底<中底,L*0.97,'战神推荐'),COLORFF00FF;DRAWTEXT(中中中>=EMA中中中AND CROSS(AF中,BF中) AND 短中底<中中底,L*0.97,'强烈推荐'),COLORFF00FF;DRAWTEXT(CROSS(BF3,AF3) AND H>中中顶AND H>中顶,H*1.03,'【逃顶】'),COLORGREEN; DRAWTEXT(加仓定位1=0 AND 加仓定位2=0 AND CROSS(AF中,BF中) AND 中中中>=EMA中中中,L*0.995,'加'),COLORYELLOW;DRAWTEXT(CROSS(AF长,BF长) AND 中底<长底,L*0.97,'【抄底】'),COLORRED; DRAWTEXT(CROSS(AF长,BF长) AND 中底<长底AND 中底>长底,L*0.97,'中底'),COLORYELLOW; STICKLINE(AF中>BF中AND 短中底<中底AND 短中底<中底,CLOSE,OPEN,2,0),COLORRED; DRAWTEXT(AF3>BF3 AND 短中底<中中底AND H<中中底,L*0.985,'投机'),COLORWHITE; STICKLINE(AF3>BF3 AND 短中底<中中底AND H<中中底,CLOSE,OPEN,2,0),COLORRED; STICKLINE(中中中>=EMA中中中AND CROSS(AF中,BF中) AND AF中<中中中AND AF中<(中顶+中底)/2 AND H<短中顶,CLOSE,OPEN,3,0),COLORRED;DRAWTEXT(中中中>=EMA中中中AND CROSS(AF中,BF中) AND AF中<中中中AND AF中<(中顶+中底)/2 AND H<短中顶,L*0.97,'【买】'),COLORRED;DRAWTEXT(CROSS(BF中,AF中) AND 中中中<EMA中中中,H*1.01,'卖'),COLORGREEN; DRAWICON(AF中<中中中AND AF中<(中顶+中底)/2 AND H<短中顶AND CROSS(AF中,BF中) AND 中中中<EMA中中中,L*0.99,1);DRAWTEXT(CROSS((高0+低0)/2,(D90H+D90L)/2),波段底0*0.965,'【空转多】'),COLORRED; DRAWTEXT(CROSS((D90H+D90L)/2,(高0+低0)/2),波段顶0*1.04,'【多转空】'),COLORWHITE;DRAWLINE1(CROSS( BACKSET(LOW<=LLV(LOW,12),BARSLAST(HIGH>=HHV(HIGH,12))+1),0.5),HIG H,CROSS( BACKSET(HIGH>=HHV(HIGH,12),BARSLAST(LOW<=LLV(LOW,12))+1),0.5),HHV(HIGH,4),1) ,LINETHICK2,COLORMAGENTA;DRAWLINE1(CROSS( BACKSET(HIGH>=HHV(HIGH,12),BARSLAST(LOW<=LLV(LOW,12))+1),0.5),LOW, CROSS( BACKSET(LOW<=LLV(LOW,12),BARSLAST(HIGH>=HHV(HIGH,12))+1),0.5),LLV(LOW,4),1),LIN ETHICK2,COLORWHITE;DRAWTEXT(ISLASTBAR,波段底,'底'),COLORYELLOW;DRAWTEXT(ISLASTBAR,波段顶,'顶'),COLORYELLOW;。
期货最好用的指标公式文华财经指标公式多空波段线
期货最好用的指标公式文华财经指标公式多空波段线
简介:
文华财经的多空波段线指标是为了有效地捕捉期货市场价格的变化趋
势而设计的技术分析指标,它可以用于确定期货价格处于上涨、下跌或横
盘的位置,也可以帮助投资者在投资期货时确定最佳买卖点。
原理:
多空波段线指标也叫作“文华财经波段”,它是一种以价格变动的波
动范围来绘制期货价格趋势的技术分析指标。
多空波段线指标通过计算期
货价格在一定历史时间区间内的最高价和最低价,然后在价格轴上以不断
变化的上限值和下限值,绘制趋势线作为指标线。
构成:
文华财经多空波段线指标由三条指标线组成,分别为上轨线、下轨线
和中轨线,它们都是以价格变动范围来绘制的,有助于投资者准确判断期
货价格的变化趋势:
1、上轨线:
上轨线(Upper Band)是文华财经多空波段线指标中的一条指标线。
上轨线是以期货价格在其中一历史时间区间内的最高价为基础,以其中一
参数(一般为2%)为调整参数,在价格轴上以调整参数宽度绘制的一条
趋势线,用来表示期货价格的上限值。
2、下轨线:
下轨线(Lower Band)是文华财经多空波段线指标中的另一条指标线。
期货最好用的指标公式文华财经指标公式过滤盘整震荡指标
CURRBARSCOUNT:=DATACOUNT - BARPOS;DRAWGBK(C>0,RGB(0,20,100),RGB(80,80,80),0);DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);//DEA := EMA(DIFF,9);//MACD1:=2*(DIFF-DEA),COLORSTICK;//MACD:=MACD1*3,NODRAW;STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,0.0001,0),COLORRED; STICKLINE(MACD>REF(MACD,1) AND MACD<0,0,MACD,0.0001,0),COLORRED; STICKLINE(MACD<REF(MACD,1),0,MACD,0.0001,0),COLORCYAN;VA1:=HHVBARS(MACD,BARSLAST(MACD<0)+1);VA2:=CROSS(BACKSET(CROSS(0,MACD),REF(VA1,1)+2),0.5);QG:=CROSS(BACKSET(CROSS(0,MACD) OR (ISLASTBAR AND MACD>0),REF(VA1,1)+2),0.5); DRAWLINE1(VA2,MACD,REF(VA2,1),REF(MACD,1),0),COLORBLUE;前高:=VALUEWHEN(REF(VA2,1),REF(MACD,1));VA3:=LLVBARS(MACD,BARSLAST(MACD>0)+1);VA4:=CROSS(BACKSET(CROSS(MACD,0),REF(VA3,1)+2),0.5);BD:=BARSLAST(FILTER(CROSS(0,MACD),20));DRAWLINE1(VA4,MACD,REF(VA4,1),REF(MACD,1),0);前低:=VALUEWHEN(REF(VA4,1),REF(MACD,1));BDTJ:=IF(MACD<0,FILTER(MACD=LLV(MACD,BARSLAST(MACD>0)),20),NULL);TSBDTJ:=BARSLAST(BDTJ);BDZH:=FILTER(MACD<REFX1(LLV(MACD,BD+1),10000),20);BDTS:=BARSLAST(BDZH);本低:IF(BD+1>=1,REFX1(LLV(MACD,BD+1),10000),NULL);BDCL:=CROSS(COUNT(CROSS(MACD>本低/2 AND MACD<0,0.5),TSBDTJ)=1,0.5) AND TSBDTJ>=0; 终点:=IF(ISLASTBAR AND MACD>0 AND MACD=HHV(MACD,BARSLAST(MACD<0)),1,IF(FILTER(QG,20),2,NULL));UU:=(终点=1 OR 终点=2) AND MACD>0;ZZ:=FILTER(UU,20);DRAWLINE1(ZZ,MACD,REF(ZZ,1),REF(MACD,1),0),COLORWHITE;本高:=VALUEWHEN(REF(ZZ,1),REF(MACD,1));横线:=REFX1(REF(MACD,BARSLAST(ZZ)),10000);WW:=MACD>横线;起始点:=FILTER(REFX(BARSLAST(WW),1)=1,20);天数:BARSLAST(起始点),COLORYELLOW,NODRAW;//{多空与微积分}SHORT:=12;LONG:=26;MID:=9;M1:=3;M2:=3;KG:=1;DFC:=C-REF(C,1);WJXS:=(LONG-SHORT)/2;JGL_JF:WJXS*EMA(DFC,SHORT),COLORYELLOW;DIF_JIP:=EMA(JGL_JF,LONG),COLOR1188FF;DEA_GEM:=EMA(DIF_JIP,MID),COLORGREEN;MACD_LING:=2*(DIF_JIP-DEA_GEM),COLOR1133FF,COLORSTICK;K_DF_J:=SMA(JGL_JF,M1,1),DOT,COLORFEDCBA;D_DF_G:=SMA(K_DF_J,M2,1),DOT,COLOR13F8F9;J_DF_L:=2.5*K_DF_J-1.5*D_DF_G,COLORF813F9;RF:=REF(J_DF_L,1);DJ:=ABS(J_DF_L-RF);MM:=(HHV(DJ,120)+LLV(DJ,120))/2;STICKLINE1(J_DF_L>RF,J_DF_L,RF,2.3,0),COLOR1388D3;STICKLINE1(J_DF_L>RF,J_DF_L,RF,1.0,0),COLOR13AAD3;STICKLINE1(J_DF_L<RF,J_DF_L,RF,2.3,0),COLOR338833;STICKLINE1(J_DF_L<RF,J_DF_L,RF,1.0,0),COLOR33AA33;N:=SQRT(SHORT*LONG);NN:=IF(N<9,9,N);BZC:=STD(DFC,NN);U:IF(KG=1,K_DF_J+2*BZC,MA(C,25600)),COLORFE9813,CROSSDOT,LINETHICK2;D:IF(KG=1,K_DF_J-2*BZC,MA(C,25600)),COLORFE9813,CROSSDOT,LINETHICK2;IF( U >= REF(U,1), U, NULL ), COLORRED,CROSSDOT,LINETHICK2;IF( D >= REF(D,1), D, NULL ), COLORRED,CROSSDOT,LINETHICK2;DRAWTEXT(TIME=700,-0.4,'亚盘'),COLORCYAN;DRAWTEXT(TIME=1600,-0.4,'欧盘');DRAWTEXT(TIME=2100,-0.4,'美盘'),COLORYELLOW;U1:(U+D)/2;G:=REFX1(IF(CURRBARSCOUNT<=81,HHV(H,BARSLAST(CURRBARSCOUNT=81)),0),10000);DA:=REFX1(IF(CURRBARSCOUNT<=81,LLV(L,BARSLAST(CURRBARSCOUNT=81)),0),10000); STICKLINE(DATE<>REF(DATE,1) AND PERIOD<5,0.4,-0.4,0,-1),COLORWHITE;DRAWLINE1(起始点,横线,ZZ,横线,0),COLORGREEN,DOT;上横线:=VALUEWHEN(ZZ,横线);DRAWLINE1(BDZH,REFX1(LLV(MACD,BD+1),10000),BDTJ=1,MACD,0),COLOR8080FF,DOT;下横线:=VALUEWHEN(BDTJ=1,MACD);DRAWNUMBER(BDTJ,REFX1(LLV(MACD,BD+1),10000)*0.9,BDTS,2,COLORYELLOW); DRAWNUMBER(ZZ,上横线*1.1,天数,2,COLORYELLOW);TJ:=IF(起始点,BARSLAST(ZZ),NULL);红柱数量:=IF(天数>0 AND 天数<=REF(TJ,天数),SUM(MACD>0,天数),NULL),COLORWHITE,NODRAW;横线起始价:=REF(C,天数),NODRAW;空间评估:=(横线起始价-C)/C*100,NODRAW;TT:=BARSLAST(ZZ);WQG:=CROSS(COUNT(CROSS(MACD<本高/2 AND MACD>0,0.5),ZZ)=1,0.5) AND ZZ>=0; STICKLINE(MACD>前高AND 本高>前高AND BARSLAST(CROSS(MACD<本高/2,0.5))>0 AND MACD>(前高+本高)/2,MACD,前高,1,0),COLORYELLOW;//前高本高二分位:IF(MACD>0 AND 本高<>前高,,NULL)DRAWLINE1(WQG&&MACD>0 AND 本高<>前高,(前高+本高)/2,REF(WQG,1),REF((前高+本高)/2,1),0),COLORC0C000,DOT;DRAWTEXT(WQG,MACD*1.1,'本高成立'),COLORWHITE;DRAWTEXT(BDCL,MACD*1.1,'本低成立'),COLORWHITE;STICKLINE1(WQG,MACD,0,1,0),COLORGREEN;TSB1:=BARSLAST(MACD>0)-1;STICKLINE(BARSLAST(BDCL)>=0 AND MACD<前低AND MACD<0,MACD,前低,1,0),COLORGREEN;STICKLINE(BDCL,MACD,0,1,0),COLORWHITE;STICKLINE(MACD>前高AND 本高>前高AND BARSLAST(WQG)>0,MACD,前高,1,0),COLORRED; DRAWTEXT(VA2 AND VA2<>UU,U,'空');DRAWTEXT(ZZ,(MACD/10)*9,'本'),COLORWHITE;DRAWTEXT(ZZ,MACD/10,'高'),COLORWHITE;DRAWTEXT(BDTJ,(MACD/10)*9,'低'),COLORRED;DRAWTEXT(BDTJ,MACD/10,'本'),COLORRED;IF(BARSLAST(BDCL)>=0,本低/2,NULL),COLORRED,DOT;STICKLINE(MACD>前高,MACD,前高,0.0001,0),COLORYELLOW;STICKLINE(MACD<0 AND MACD<前低AND 前低<0,MACD,前低,2,0),COLORBLUE; 倍量:=U>=2*REF(U,1) AND REF(U,1)<=REF(U,2) AND C>REF(C,1);DRAWTEXT(倍量>=1 AND U >= REF(U,1),0.25,'∠多'),COLORYELLOW; STICKLINE(倍量>=1 AND U >= REF(U,1),0.2,-0.2,0.00001,0),COLORRED;EMA(JGL_JF,LONG),COLORGREEN,LINETHICK2;IF(DIF_JIP>REF(DIF_JIP,1),DIF_JIP,NULL),COLORRED,LINETHICK3;反均差:=EMA(CLOSE,26)*10-EMA(CLOSE,12)*10;正均差:=EMA(CLOSE,12)*10-EMA(CLOSE,26)*10;均差:=(正均差-反均差),COLORRED,LINETHICK1;量比:VOL/REF(MA(VOL,5),1),COLORYELLOW,NODRAW;STICKLINE(量比>1.5 AND C>O AND 均差>0,U,0,0.5,0),COLORMAGENTA;。
准确率100的技术指标文华财经指标公式期货软件螺纹铁矿恒指买卖点
N:=10;底部:1,NODRAW,COLORMAGENTA;顶部:100,NODRAW,COLORCYAN;顶部警戒:90,COLOR008000;强弱分界:50,COLOR00BFBF;底部警戒:10,COLORRED;DRAWTEXT(ISLASTBAR,强弱分界,'强弱分界'),COLORYELLOW; DRAWTEXT(ISLASTBAR,顶部警戒,'顶部警戒'),COLORGREEN; DRAWTEXT(ISLASTBAR,底部警戒,'底部警戒'),COLORRED;DRAWTEXT(ISLASTBAR,顶部,'顶部'),COLORCYAN;DRAWTEXT(ISLASTBAR,底部,'底部'),COLORMAGENTA;V11:=3*SMA((C-LLV(L,N))/(HHV(H,N)-LLV(L,N))*100,5,1)-2*SMA(SMA((C-LLV(L,N))/(HHV(H,N)-LLV (L,N))*100,5,1),3,1);趋势线:EMA(V11,3),LINETHICK2,COLORMAGENTA;筹码:=((COST(90)+COST(70)+COST(50)+COST(30)+COST(10))/5);V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;STICKLINE(趋势线<8,趋势线,10,5,0),COLOR00E3E3;DRAWTEXT(BARSLASTCOUNT(趋势线<8)=1 AND 筹码>1,13,'主力吸筹'),COLOR00E3E3;STICKLINE(趋势线>92,趋势线,90,5,0),COLOR008000;DRAWTEXT(BARSLASTCOUNT(趋势线>92)=1 AND 筹码>1,84,'主力出货'),COLORGREEN;VAR18:=(HIGH+LOW+CLOSE)/(3);VAR19:=(VAR18-MA(VAR18,14))/((0.015)*(AVEDEV(VAR18,14)));VAR1A:=(VAR18-MA(VAR18,70))/((0.015)*(AVEDEV(VAR18,70)));VAR1B:=IF((VAR19>=150) AND (VAR19<200) AND (VAR1A>=150) AND (VAR1A<200),(-10),0);VAR1C:=IF((VAR19<=(-150)) AND (VAR19>(-200)) AND (VAR1A<=(-150)) AND (VAR1A>(-200)),10,0);买:CROSS(趋势线,10),COLORRED,NODRAW;卖:CROSS(90,趋势线),COLORGREEN,NODRAW;DRAWTEXT(CROSS(趋势线,10),趋势线,'★买'),COLORRED;DRAWTEXT(CROSS(90,趋势线),90,'★卖'),COLORGREEN;逃顶1:=IF((BARSCOUNT(CLOSE)<70),100,IF((VAR1A>=200) AND (VAR19>=150),(-20),VAR1B)+100),COLORCCFF66;抄底1:=IF((BARSCOUNT(CLOSE)<70),(-100),IF((VAR1A<=(-200)) AND (VAR19<=(-150)),20,VAR1C)-100),COLORBLUE;逃顶:逃顶1=80,NODRAW;抄底:抄底1=-80,COLOR0080FF,NODRAW;DRAWTEXT(BARSLASTCOUNT(逃顶=1)=1,93,'逃顶'),COLORWHITE;DRAWTEXT(BARSLASTCOUNT(抄底=1)=1,7,'抄底'),COLOR0080FF;DRAWICON(BARSLASTCOUNT(逃顶=1),99,2);DRAWICON(BARSLASTCOUNT(抄底=1),1,1);。
准确率最高的期货指标文华财经期货软件指标公式期货指标大全汇总
N:=20;MA1:=MA(CLOSE,7);MA2:=MA(CLOSE,13);MA3:=MA(CLOSE,34);MA4:=MA(CLOSE,50);VAR3:=LLV(HIGH,240);VAR4:=100*(CLOSE-VAR3)/VAR3;VAR5:=(CLOSE-LLV(LOW,528))/(HHV(HIGH,528)-LLV(LOW,528))*100;VAR6:=(CLOSE-LLV(CLOSE,530))/(HHV(CLOSE,530)-LLV(CLOSE,530))*100;VAR7:=0;VAR8:=SMA(MAX(CLOSE-REF(CLOSE,1),0),34,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),7,1)*100;VAR9:=SMA(MAX(CLOSE-REF(CLOSE,1),0),13,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),13,1)*100;VAR10:=IF(TROUGHBARS(C,16,1,1)=0 AND HIGH>LOW+0.04,4,0);VAR11:=ZIGZAG(C,6,1)>REF(ZIGZAG(C,6,1),1) AND REF(ZIGZAG(C,6,1),1)<=REF(ZIGZAG(C,6,1),2) AND REF(ZIGZAG(C,6,1),2)<=REF(ZIGZAG(C,6,1),3);VAR12:=ZIGZAG(C,6,1)<REF(ZIGZAG(C,6,1),1) AND REF(ZIGZAG(C,6,1),1)>=REF(ZIGZAG(C,6,1),2) AND REF(ZIGZAG(C,6,1),2)>=REF(ZIGZAG(C,6,1),3);VAR13:=ZIGZAG(C,22,1)>REF(ZIGZAG(C,22,1),1) AND REF(ZIGZAG(C,22,1),1)<=REF(ZIGZAG(C,22,1),2) AND REF(ZIGZAG(C,22,1),2)<=REF(ZIGZAG(C,22,1),3);VAR14:=ZIGZAG(C,22,1)<REF(ZIGZAG(C,22,1),1) AND REF(ZIGZAG(C,22,1),1)>=REF(ZIGZAG(C,22,1),2) AND REF(ZIGZAG(C,22,1),2)>=REF(ZIGZAG(C,22,1),3);VAR15:=ZIGZAG(C,51,1)>REF(ZIGZAG(C,51,1),1) AND REF(ZIGZAG(C,51,1),1)<=REF(ZIGZAG(C,51,1),2) AND REF(ZIGZAG(C,51,1),2)<=REF(ZIGZAG(C,51,1),3);VAR16:=ZIGZAG(C,51,1)<REF(ZIGZAG(C,51,1),1) AND REF(ZIGZAG(C,51,1),1)>=REF(ZIGZAG(C,51,1),2) AND REF(ZIGZAG(C,51,1),2)>=REF(ZIGZAG(C,51,1),3);VAR17:=ZIGZAG(C,72,1)>REF(ZIGZAG(C,72,1),1) AND REF(ZIGZAG(C,72,1),1)<=REF(ZIGZAG(C,72,1),2) AND REF(ZIGZAG(C,72,1),2)<=REF(ZIGZAG(C,72,1),3);VAR18:=ZIGZAG(C,72,1)<REF(ZIGZAG(C,72,1),1) AND REF(ZIGZAG(C,72,1),1)>=REF(ZIGZAG(C,72,1),2) AND REF(ZIGZAG(C,72,1),2)>=REF(ZIGZAG(C,72,1),3);VAR19:=EMA(CLOSE,2)-EMA(CLOSE,150);买1:=VAR10;买2:=(VAR11+VAR13+VAR15+VAR17);卖1:=(VAR12+VAR14+VAR16+VAR18);B:=IF(买1>0 OR 买2>0,LOW*0.99,NULL),CROSSDOT,LINETHICK3,COLORYELLOW; DRAWTEXT(买1>0 OR 买2>0,LOW*0.99,'买入'),COLORRED;S:=IF(卖1>0,HIGH*1.01,NULL),CROSSDOT,LINETHICK3,COLORGREEN;DRAWTEXT(卖1>0,HIGH*1.02,'卖出'),COLORGREEN;VAR100:=(100 - ((90 * (HHV(HIGH,20) - CLOSE)) / (HHV(HIGH,20) - LLV(LOW,20))));VAR200:=(100 - ((90 * (HHV(HIGH,20) - CLOSE)) / (HHV(HIGH,20) - LLV(LOW,20))));VAR300:=(100 - MA(((100 * (HHV(HIGH,5) - CLOSE)) / (HHV(HIGH,5) - LLV(LOW,5))),34)); BOLLZ:MA(CLOSE,N),LINETHICK2,COLORWHITE;UB:BOLLZ+2*STD(CLOSE,N),LINETHICK2,COLORYELLOW;LB:BOLLZ-2*STD(CLOSE,N),LINETHICK2,COLORMAGENTA;ZJ1953:=ZIGZAG(H,15,1);粉丝:=MA(ZJ1953,3);DRAWTEXT(CROSS(ZJ1953,粉丝),LOW*1.025,'↖基金入场'),COLORMAGENTA;DRAWTEXT(CROSS(粉丝,ZJ1953),HIGH*0.988,'←基金清仓'),COLORFFFFFF;阻力价:HHV(HIGH,19),COLORGREEN,LINETHICK1,NODRAW;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*RE F(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),COLORMAGENTA,NODRAW;UR:=2;LR:=4;TC1:=IF(H=HHV(H,8*UR),H,NULL);TC2:=REFX1(BARSLAST(TC1=H),9999)+1;UPPER:=REFX1(IF(TC2=1,H,REF(H,TC2-1)),9999);BC1:=IF(L=LLV(L,8*LR),L,NULL);BC2:=REFX1(BARSLAST(BC1=L),9999)+1;LOWER:=REFX1(IF(BC2=1,L,REF(L,BC2-1)),9999);CURRBARSCOUNT:=REFX1(BARPOS,9999)-BARPOS+1;LP:=CURRBARSCOUNT<=BC2 AND L=LOWER;//低点定位}HP:=CURRBARSCOUNT<=TC2 AND H=UPPER;//高点定位}NOD:=(IF(TC2>BC2,TC2,BC2)-IF(TC2>BC2,BC2,TC2));//用时}LR1:=FORCAST(C,NOD+1);NP:=IF(CURRBARSCOUNT<=MAX(BC2,TC2),REFX1(IF(MIN(TC2,BC2)=1,LR1,REF(LR1,MIN(TC2,BC2)-1)),9999),NULL),POINTDOT,COLOR93BDA8,NODRAW;//近点}//隐藏}LR2:=SLOPE(C,NOD+1);LR3:=REFX1(IF(MIN(TC2,BC2)=1,LR2,REF(LR2,MIN(TC2,BC2)-1)),9999);FP:=NP-LR3*(NOD),POINTDOT,COLOR93BDA8,NODRAW;//远点}//隐藏}EQU:=(NP+FP)/2,POINTDOT,COLOR93BDA8,NODRAW;//隐藏}AD:=ABS(NP-FP);//高差};DBL:=BARSLAST(BC1<>NULL)+1;DBH:=BARSLAST(TC1<>NULL)+1;BSP:=IF(BC2>TC2,DBL,DBH)-1;LRL:=IF(NP>FP,FP+AD/NOD*BSP,FP-AD/NOD*BSP);AT1:=IF(BETWEEN(CURRBARSCOUNT,BC2,TC2) AND H>LRL,H,LRL);AT2:=HHV(AT1-LRL,MAX(BC2,TC2));AT3:=REFX1(BARSLAST(AT1-LRL=AT2),9999);AT4:=REFX1(IF(AT3=0,H,REF(H,AT3)),9999);AT5:=REFX1(IF(AT3=0,AT1-LRL,REF(AT1-LRL,AT3)),9999);ATL:=LRL+AT5;UT1:=IF(BETWEEN(CURRBARSCOUNT,BC2,TC2) AND L<LRL,L,LRL);UT2:=HHV(LRL-UT1,MAX(BC2,TC2));UT3:=REFX1(BARSLAST(LRL-UT1=UT2),9999);UT4:=REFX1(IF(UT3=0,H,REF(H,UT3)),9999);UT5:=REFX1(IF(UT3=0,LRL-UT1,REF(LRL-UT1,UT3)),9999);UTL:=LRL-UT5;RH:=IF(CURRBARSCOUNT>=MIN(BC2,TC2)-10,ATL,REFX1(REF(ATL,MIN(BC2,TC2)-11),9999));//限制高}RL:=IF(CURRBARSCOUNT>=MIN(BC2,TC2)-10,UTL,REFX1(REF(UTL,MIN(BC2,TC2)-11),9999));//限制低}中轨:IF(NP>FP,IF(LRL<=RH,LRL,NULL),IF(LRL>=RL,LRL,NULL)),COLOR666666,LINETHICK2;上轨:IF(NP>FP,IF(ATL<=RH,ATL,NULL),IF(ATL>=RL,ATL,NULL)),COLOR666666,LINETHICK2;下轨:IF(NP>FP,IF(UTL<=RH,UTL,NULL),IF(UTL>=RL,UTL,NULL)),COLOR666666,LINETHICK2;VAR1:=(C+H+O+L)/4;顶阴影线:=REFX1(MA(VAR1,20),20/2)*(1+1/8),COLORGREEN,LINETHICK1;DRAWTEXT(CROSS(HIGH,顶阴影线),HIGH*0.990,'↙逃'),COLORGREEN;高点:=10;低点:=10;高点选择:=1;低点选择:=1;波浪尺1:=0;波浪尺2:=1;PURC:=REFX1(REF(HHV(H,高点*10),高点选择),9999);PLZ:=REFX1(BARSLAST(PURC=H),9999)+1;顶X:=REFX1(IF(PLZ=1,H,REF(H,PLZ-1)),9999);QQT:=REFX1(REF(LLV(L,低点*10),低点选择),9999);PLL:=REFX1(BARSLAST(QQT=L),9999)+1;低X:=REFX1(IF(PLL=1,L,REF(L,PLL-1)),9999);DRAWKLINE1(H,O,L,C);顶点:顶X,COLORRED;底点:低X,COLORRED;波动速率:=100*((顶X-低X)/(IF(PLL>PLZ,低X,顶X)))/(PLL-PLZ),NODRAW,COLORMAGENTA;波动幅度:=((顶X-低X)/(IF(PLL>PLZ,低X,顶X)))*100;波动价位:=(顶X-低X)*(IF(PLL>PLZ,1,-1));BPURC:=REFX1(REF(HHV(H,(IF(波浪尺1>0,波浪尺1,IF(PLZ<PLL,高点,低点)))*5),波浪尺2),9999); BPLZ:=REFX1(BARSLAST(BPURC=H),9999)+1;BQQT:=REFX1(REF(LLV(L,(IF(波浪尺1>0,波浪尺1,IF(PLZ<PLL,高点,低点)))*5),波浪尺2),9999); BPLL:=REFX1(BARSLAST(BQQT=L),9999)+1;BLC1:=REFX1(REF(HHV(H,(IF(波浪尺1>0,波浪尺1,IF(PLZ<PLL,高点,低点)))*5),波浪尺2),9999); BLC2:=REFX1(BARSLAST(BPURC=H),9999)+1;BLC顶X:=REFX1(IF(BPLZ=1,H,REF(H,BPLZ-1)),9999);BLC3:=REFX1(REF(LLV(L,(IF(波浪尺1>0,波浪尺1,IF(PLZ<PLL,高点,低点)))*5),波浪尺2),9999);B6C4:=REFX1(BARSLAST(BQQT=L),9999)+1;BLC低X:=REFX1(IF(BPLL=1,L,REF(L,BPLL-1)),9999);BASE:=IF(波动速率<0,BLC顶X,BLC低X),COLORRED;BLCX:=IF(波动速率<0,-1,1);BLCZ:=(顶点-底点)*(IF(PLL>PLZ,1,-1));B618:=BASE+(BLCZ*0.618),COLORRED,DOT;B382:=BASE+(BLCZ*0.382),COLORRED,DOT;B05:=BASE+(BLCZ*0.5),COLORRED,DOT;B809:=BASE+(BLCZ*0.809),COLORRED,DOT;B191:=BASE+(BLCZ*0.191),COLORRED,DOT;B100:=BASE+(BLCZ*1),COLORRED;B200:=BASE+(BLCZ*2),COLORRED;B11:=BASE+(BLCZ*1.191),COLORRED;B12:=BASE+(BLCZ*1.382),COLORRED;B13:=BASE+(BLCZ*1.5),COLORRED;B14:=BASE+(BLCZ*1.618),COLORRED;B15:=BASE+(BLCZ*1.809),COLORRED;BZ1:=BASE+(BLCZ*0.236),COLORRED;BZ2:=BASE+(BLCZ*1.236),COLORRED;BZ3:=BASE+(BLCZ*2.236),COLORRED;B11B:=BASE+(BLCZ*2.191),COLORRED;B12B:=BASE+(BLCZ*2.382),COLORRED;B13B:=BASE+(BLCZ*2.5),COLORRED;B14B:=BASE+(BLCZ*2.618),COLORRED;B15B:=BASE+(BLCZ*2.809),COLORRED;B300:=BASE+(BLCZ*3),COLORRED;XZDD:=IF(PLL>PLZ,BPLL,BPLZ);QADQ:=IF(PLL>PLZ,PLL,PLZ);QADH:=IF(PLL>PLZ,PLZ,PLL);QHL1:=IF(PLL>PLZ,L,H);QHL2:=IF(PLL>PLZ,H,L);DRAWLINE(CURRBARSCOUNT=QADQ,QHL1,CURRBARSCOUNT=QADH,QHL2,0),COLORRED; DRAWLINE(CURRBARSCOUNT=QADH,QHL2,CURRBARSCOUNT=XZDD,QHL1,0),COLORRED;JRH:=HHV(C,2);JRL:=LLV(C,2);YTSL:=(3*C+L+O+H)/6;Z1D:=C>=REF(C,1);Z1X:=C<=REF(C,1);Z2D:=C>=REF(C,2);Z2X:=C<=REF(C,2);X1D2:=Z1X AND Z2D;D1X2:=Z1D AND Z2X;R1:=Z1D AND Z2D;R2:=REF(R1,1) AND X1D2;R3:=REF(R2,1) AND D1X2;R4:=REF(R3,1) AND X1D2;R5:=REF(R4,1) AND D1X2;R6:=REF(R5,1) AND X1D2;R7:=REF(R6,1) AND D1X2;R8:=REF(R7,1) AND X1D2;R9:=REF(R8,1) AND D1X2;RA:=REF(R9,1) AND X1D2;RB:=REF(RA,1) AND D1X2;RC:=REF(RB,1) AND X1D2;RD:=Z1X AND Z2X;RE:=REF(RD,1) AND D1X2;RF:=REF(RE,1) AND X1D2;R10:=REF(RF,1) AND D1X2;R11:=REF(R10,1) AND X1D2;R12:=REF(R11,1) AND D1X2;R13:=REF(R12,1) AND X1D2;R14:=REF(R13,1) AND D1X2;R15:=REF(R14,1) AND X1D2;R16:=REF(R15,1) AND D1X2;R17:=REF(R16,1) AND X1D2;R18:=REF(R17,1) AND D1X2;R19:=((REF(RD OR RE OR RF OR R10 OR R11 OR R12 OR R13 OR R14 OR R15 OR R16 OR R17 OR R18,1)) AND R1);R1A:=((REF(R1 OR R2 OR R3 OR R4 OR R5 OR R6 OR R7 OR R8 OR R9 OR RA OR RB OR RC,1)) AND RD);红色持股:=R1 OR R2 OR R3 OR R4 OR R5 OR R6 OR R7 OR R8 OR R9 OR RA OR RB OR RC,COLOR0000FF,NODRAW;离场:=IF(红色持股,JRL,NULL);明离场价:=离场,COLORFF99FF,NODRAW;今离场价:REF(离场,1),COLORGREEN,NODRAW;青色观望:=RD OR RE OR RF OR R10 OR R11 OR R12 OR R13 OR R14 OR R15 OR R16 OR R17 OR R18,COLORFFFF00,NODRAW;进:=IF(青色观望,JRH,NULL);明进场价:=进,COLOR33AACC,NODRAW;今进场价:REF(明进场价,1),COLORRED,NODRAW;短买:R19,COLORLIGHTRED,NODRAW;STICKLINE(ISLASTBAR AND (红色持股OR REF(红色持股,1)=1),今离场价,今离场价,30,1),COLOR0000FF;STICKLINE(ISLASTBAR AND (青色观望OR REF(青色观望,1)=1),今进场价,今进场价,30,1),COLOR00FF00;QLIFE:=(EMA(CLOSE,60)+EMA(CLOSE,90))/2,POINTDOT,COLORGREEN,LINETHICK4; FROMOPEN:=IF(HOUR<12,60*(HOUR-9)-30+MINUTE,120+60*(HOUR-13)+MINUTE);TT:=240/FROMOPEN;比:=TT;J12:=(HIGH - ((HIGH - LOW) / 3));J23:=(LOW + ((HIGH - LOW) / 3));AAA:=REFX1(HHV(H,90),9999);BBB:=REFX1(LLV(L,100),9999);DRAWKLINE1(H,O,L,C);升:=EMA(C,2),COLOR000000;降:=EMA(SLOPE(C,12)*20+C,30),COLOR000000;买:=CROSS(升,降);卖:=CROSS(降,升);BUY1:=ZIGZAG(C,10,1);SELL1:=MA(BUY1,2);DRAWICON(CROSS(BUY1,SELL1),L-0.3,7);DRAWICON(CROSS(SELL1,BUY1),H+0.2,8);STICKLINE(BUY1>SELL1 AND O>=C,C,O,-1,0),COLORRED;STICKLINE(BUY1>SELL1 AND O>=C,L,H,0,0),COLORRED;STICKLINE(BUY1<SELL1 AND O<=C,O,C,-1,1),COLORCYAN;STICKLINE(BUY1<SELL1 AND O<=C,O,L,0,1),COLORCYAN;STICKLINE(BUY1<SELL1 AND O<=C,C,H,0,1),COLORCYAN;GET:ZIGZAG(C,5,1),COLORAAAAAA;PL5:=ZIGZAG(C,5,1);EN1:=ZIGZAG(C,5,1)>REF(ZIGZAG(C,5,1),1) AND REF(ZIGZAG(C,5,1),1)<=REF(ZIGZAG(C,5,1),2) AND REF(ZIGZAG(C,5,1),2)<=REF(ZIGZAG(C,5,1),3);EX1:=ZIGZAG(C,5,1)<REF(ZIGZAG(C,5,1),1) AND REF(ZIGZAG(C,5,1),1)>=REF(ZIGZAG(C,5,1),2) AND REF(ZIGZAG(C,5,1),2)>=REF(ZIGZAG(C,5,1),3);PL10:=ZIGZAG(C,13,1);EN2:=ZIGZAG(C,10,1)>REF(ZIGZAG(C,10,1),1) AND REF(ZIGZAG(C,10,1),1)<=REF(ZIGZAG(C,10,1),2) AND REF(ZIGZAG(C,10,1),2)<=REF(ZIGZAG(C,10,1),3);EX2:=ZIGZAG(C,10,1)<REF(ZIGZAG(C,10,1),1) AND REF(ZIGZAG(C,10,1),1)>=REF(ZIGZAG(C,10,1),2) AND REF(ZIGZAG(C,10,1),2)>=REF(ZIGZAG(C,10,1),3);PL20:=ZIGZAG(C,26,1);EN3:=ZIGZAG(C,20,1)>REF(ZIGZAG(C,20,1),1) AND REF(ZIGZAG(C,20,1),1)<=REF(ZIGZAG(C,20,1),2)AND REF(ZIGZAG(C,20,1),2)<=REF(ZIGZAG(C,20,1),3);EX3:=ZIGZAG(C,20,1)<REF(ZIGZAG(C,20,1),1) AND REF(ZIGZAG(C,20,1),1)>=REF(ZIGZAG(C,20,1),2) AND REF(ZIGZAG(C,20,1),2)>=REF(ZIGZAG(C,20,1),3);PL40:=ZIGZAG(C,55,1);走强一:=BARSLAST(PL5<REF(PL5,1));走弱一:=BARSLAST(PL5>REF(PL5,1));走强二:=BARSLAST(PL10<REF(PL10,1));走弱二:=BARSLAST(PL10>REF(PL10,1));走强三:=BARSLAST(PL20<REF(PL20,1));走弱三:=BARSLAST(PL20>REF(PL20,1));ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走强二),0);ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走强二),0);DTJZ5:=IF(PL10<REF(PL10,1),COUNT(EN1,走弱二),0);DTJD5:=IF(PL10<REF(PL10,1),COUNT(EX1,走弱二),0);ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走强三),0);ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走强三),0);DTJZ10:=IF(PL20<REF(PL20,1),COUNT(EN2,走弱三),0);DTJD10:=IF(PL20<REF(PL20,1),COUNT(EX2,走弱三),0);DRAWTEXT(EN1 AND DTJZ5=1,LOW*0.97,'(ⅠA多)'),COLORFFFF00;DRAWTEXT(EX1 AND DTJD5=2,HIGH*1.03,'(ⅡB空)'),COLORFFFF00;DRAWTEXT(EN2 AND ZTJZ5=1,LOW*0.97,'(ⅢC全仓)'),COLORFFFF00;DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJD5=1,HIGH*1.02,'⑴空'),COLOR0000FF; DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2,LOW*0.98,'⑵全仓多'),COLOR0000FF; DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJZ5=2,HIGH*1.02,'⑶空'),COLOR0000FF; DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=3,LOW*0.98,'⑷全仓多'),COLOR0000FF; DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,HIGH*1.02,'⑸顶'),COLOR0000FF; DRAWTEXT(EN2 AND DTJZ10=1,LOW*0.94,'【A】多'),COLOR00FF00;DRAWTEXT(EX2 AND DTJD10=2,HIGH*1.05,'【B】空'),COLOR00FF00;DRAWTEXT(EN3 AND ZTJZ10=1,LOW*0.94,'【C】全仓多'),COLOR00FF00;DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,HIGH*1.04,'①空进'),COLOR00FFFF; DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2,LOW*0.96,'②多全仓'),COLOR00FFFF; DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=2 OR (ZTJD10=0 OR ZTJD10=2) AND EX2,HIGH*1.04,'③空'),COLOR00FFFF;DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=3,LOW*0.96,'④多补'),COLOR00FFFF;走势线:ZIGZAG(C,3,1);G:=MA(走势线,2);DRAWTEXT(CROSS(走势线,G),L,'多买'),COLORRED;DRAWTEXT(CROSS(G,走势线),H,'空卖' ),COLORGREEN;支撑位:IF((走势线-REF(走势线,1))/REF(走势线,1)*100>=0,REF(走势线,BARSLAST(CROSS((走势线-REF(走势线,1))/REF(走势线,1)*100,0))+1),NULL),COLORRED,LINETHICK2;阻力位:IF((走势线-REF(走势线,1))/REF(走势线,1)*100<0,REF(走势线,BARSLAST(CROSS(0,(走势线-REF(走势线,1))/REF(走势线,1)*100))+1),NULL),COLORLIGHTBLUE,LINETHICK2;买卖价格位:MA(C,3);头部:=PEAKBARS(C,3,1,1)=0;底部:=TROUGHBARS(C,3,1,1)=0;DRAWTEXT(头部,H,'有阻力'),COLORGREEN;DRAWTEXT(底部,L,'有支撑'),COLORRED;。
文华财经软件-期货界最准确指标公式源码
文华财经软件-期货界最准确指标公式源码概述文华财经软件是一款广泛应用于期货市场的专业分析工具,其包含了丰富的技术指标和公式,以帮助投资者做出更精准的交易决策。
本文档将详细介绍文华财经软件中一些被认为是最准确的指标公式源码,旨在为专业投资者和分析师提供深度的技术分析能力。
指标公式概览以下是一些在文华财经软件中应用广泛的指标公式源码,它们为用户提供了多角度的市场分析。
移动平均线(MA)移动平均线是最常用的技术指标之一,它通过计算一定时间段内的平均价格来展示市场趋势。
常用源码示例def calculate_ma(prices, window_size):return sum(prices[-window_size:]) / window_size使用示例prices = [关闭价格1, 关闭价格2, ..., 关闭价格N]window_size = 10 # 例如,使用10日移动平均线ma = calculate_ma(prices, window_size)相对强弱指数(RSI)相对强弱指数是一个动量指标,用来评估股票或其他资产过度买入或过度卖出的情况。
RSI计算的简化版源码示例def calculate_rsi(price_changes, window_size):计算平均变化avg_gain = sum(change for change in price_changes if change > 0) / window_sizeavg_loss = sum(abs(change) for change in price_changes if change < 0) / window_size计算RSrs = avg_gain / avg_loss if avg_loss != 0 else 0计算RSIrsi = 100 - (100 / (1 + rs))return rsi使用示例price_changes = [价格变化1, 价格变化2, ..., 价格变化N]window_size = 14 # 例如,使用14日RSIrsi_value = calculate_rsi(price_changes, window_size)布林带(Bollinger Bands)布林带是由标准差定义的通道,它围绕移动平均线,可以用来衡量市场的波动性。
准确率最高的期货指标文华财经期货软件指标公式顶底之王指标
CAPITAL:=GETPRICE1('流通股本');AA:=ZIGZAG(C,5,1);DRAWNUMBER(AA=HHV(C,10),H*1.01,H,0,COLORGREEN);DRAWNUMBER(AA=LLV(C,10),L*0.99,L,0,COLOR00EEFF);HH:=REFX1(MA(H,125),125/2);LL:=REFX1(MA(L,125),125/2);金牛:(REFX1(MA(HH,125),125/2)-REFX1(MA(LL,125),125/2))*1+REFX1(MA(HH,125),125/2),DOT,LINET HICK5,COLORYELLOW;金钻趋势:REFX1(MA(LL,125),125/2)-(REFX1(MA(HH,125),125/2)-REFX1(MA(LL,125),125/2))*1,LINETHICK1 ,COLORRED;金牛2:EMA(金钻趋势,25),COLORCYAN,LINETHICK2;FILLRGN(金钻趋势>金牛2,金钻趋势,金牛2,RGB(55,0,0));FILLRGN(金钻趋势<金牛2,金钻趋势,金牛2,RGB(0,91,0));DRAWKLINE1(H,O,L,C);STICKLINE(金钻趋势>LOW AND 金钻趋势<HIGH,金钻趋势,MIN(MIN(OPEN,CLOSE),金钻趋势),2,0),COLORYELLOW;STICKLINE(金钻趋势>MIN(C,O) AND 金钻趋势<MAX(C,O),金钻趋势,MIN(OPEN,CLOSE),2,0),COLORYELLOW;STICKLINE(金钻趋势>HIGH,OPEN,CLOSE,2,0),COLORYELLOW;STICKLINE(金钻趋势>HIGH,HIGH,LOW,0,0),COLORYELLOW;CC1:=REFX1(MA(C-REF(C,1),6),6/2);CC2:=REFX1(MA(ABS(C-REF(C,1)),6),6/2);VAR23:=100*REFX1(MA(CC1,6),6/2)/REFX1(MA(CC2,6),6/2);回调买:=LLV(VAR23,2)=LLV(VAR23,7) AND COUNT(VAR23<0,2) AND CROSS(VAR23,MA(VAR23,2)); XG:=金钻趋势>HIGH AND 回调买AND L<=金钻趋势;DRAWTEXT(XG,L,'▲TTT买入'),COLORRED;JJ:=(HIGH+LOW+CLOSE)/3;QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);QJ1:=IF(CAPITAL=0,QJ0*(JJ-MIN(CLOSE,OPEN)),QJ0*IF(HIGH=LOW,1,(MIN(OPEN,CLOSE)-LOW))); QJ2:=IF(CAPITAL=0,QJ0*(MIN(OPEN,CLOSE)-LOW),QJ0*IF(HIGH=LOW,1,(JJ-MIN(CLOSE,OPEN)))); QJ3:=IF(CAPITAL=0,QJ0*(HIGH-MAX(OPEN,CLOSE)),QJ0*IF(HIGH=LOW,1,(HIGH-MAX(OPEN,CLOSE ))));QJ4:=IF(CAPITAL=0,QJ0*(MAX(CLOSE,OPEN)-JJ),QJ0*IF(HIGH=LOW,1,(MAX(CLOSE,OPEN)-JJ))); DDX:=((QJ1+QJ2)-(QJ3+QJ4))/IF(CAPITAL=0,10000,10000),COLOR00AAAA,LINETHICK1;V2:=SMA(IF(C>=REF(C,1),DDX,-DDX/100),2,1);FROMOPEN:=IF(HOUR<12,60*(HOUR-9)-30+MINUTE,120+60*(HOUR-13)+MINUTE);V5:=SMA(V2*120/FROMOPEN*5,2,1);V10:=SMA(V5,5,1);V20:=SMA(V10,5,1);CURRBARSCOUNT:=DATACOUNT-BARPOS+1;DY:=CURRBARSCOUNT=1 AND C<REF(C,1);DY2:=REF(V2,1)-DY;XG2:=C>O AND DY2<0.02 AND MA(C,5)>MA(C,60) AND C/REF(C,1)>=1.02 AND H<金牛; DRAWTEXT(XG2 AND L<金钻趋势,L,'↖金钻起涨'),COLORMAGENTA;EMA3:EMA(C,3),COLORWHITE,LINETHICK2;EMA13:EMA(C,13),COLORYELLOW;EMA21:EMA(C,21),COLORFF00FF;EMA55:EMA(C,55),COLORGREEN;AR1:=EMA21>EMA13 AND EMA13>EMA3;AR2:=BARSLAST((C-EMA3)/EMA3*100<-6);AR3:=EMA3>=REF(EMA3,2);AR4:=COUNT(CROSS(C,EMA3),AR2)=1;AR5:=AR1 AND AR2 AND AR3 AND AR4;AR6:=AR5 AND FILTER(AR5,10);DRAWTEXT(AR6,L-0.09,'------启动'),COLORYELLOW;BR1:=COUNT(BETWEEN((C-REF(C,1))/REF(C,1)*100,0,5) ,5)=5;BR2:=ABS((EMA3-EMA13)+(EMA13-EMA21))/C<0.2;BR3:=C>EMA21 AND (REF(C,1)<REF(EMA21,1) OR REF(C,2)<REF(EMA21,2) OR REF(C,3)<REF(EMA21,3) OR REF(C,4)<REF(EMA21,4) OR REF(C,5)<REF(EMA21,5));BR4:=BR1 AND BR2 AND BR3;DRAWTEXT(BR4 AND FILTER(BR4,10),L-0.09,'------转强'),COLOR00C5FF;STICKLINE(BR4 AND FILTER(BR4,10),H,L,0.5,1),COLOR00C5FF;CR1:=(C-REF(C,1))/REF(C,1)*100>0.5;CR2:=V>MA(V,5)*0.6;CR3:=COUNT(CROSS(EMA3,EMA21),3)=1;CR4:=ABS(EMA13-EMA21)/EMA21<0.03;CR5:=EMA21<=EMA55 AND EMA21>=REF(EMA21,1);CR6:=FILTER(CR1 AND CR2 AND CR3 AND CR4 AND CR5,2);DRAWTEXT(CR6,L-0.09,'---拉升'),COLORF00FF0;DR1:=EMA3>EMA13 AND EMA13<EMA21;DR2:=BARSLAST(CROSS(C,EMA21) );DR3:=H=HHV(H,DR2);DR4:=BARSLAST(DR3);DR5:=COUNT(O>C AND C<REF(C,1) AND C>EMA21 AND BETWEEN((C-EMA21)/EMA21,0,0.02),DR4)=1;DR6:=C>REF(C,1) ;DR7:= DR1 AND DR5 AND DR6 ;DR8:=DR7 AND FILTER(DR7 ,10);DRAWTEXT(DR8,L-0.09,'------------拉升'),COLORD6BA63;STICKLINE(DR8,O,C,6,1),LINETHICK2,COLORD6BA63;ER:=BARSLAST(REF(CROSS(EMA21,EMA13),1)) AND CROSS(EMA13,EMA21);DRAWTEXT(ER,L-0.09,'------上攻'),COLOR0099FF;FR:=BARSLAST(REF(CROSS(EMA13,EMA3),1)) AND CROSS(EMA3,EMA13);DRAWTEXT(FR,L-0.09,'------中继'),COLORWHITE;STICKLINE(FR,H,L,0.5,1),COLORWHITE;DIFF:=(EMA(CLOSE,12) - EMA(CLOSE,26));DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);X1:=(C+L+H)/3;X2:=EMA(X1,6);X3:=EMA(X2,5);BIAS1 : (CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;BIAS2 : (CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;BIAS3 : (CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;GR1:=BARSLAST(BETWEEN(BIAS2,0,5));GR2:=EMA(X1,13)>EMA(X1,21) AND EMA(X1,21)>EMA(X1,34)AND EMA(X1,13)>REF(EMA(X1,13),1);GR3:=COUNT(BIAS2>10 AND H=HHV(H,GR1),GR1);GR4:=H=HHV(H,GR1);GR5:=MACD<REF(MACD,1);GR6:=GR2 AND GR3 AND GR4;GR7:=GR2 AND GR3 AND GR4 AND GR5;DRAWTEXT(GR6 AND GR7,H+0.3,'逃顶'),COLOR00FF00;STICKLINE(GR6 AND GR7,H,H+0.09,4,0),COLOR00FF00;HR2:=EMA3>=REF(EMA3,3) AND EMA13>=REF(EMA13,1) AND EMA21>=REF(EMA21,1) ANDCROSS(C,EMA3) AND CROSS(C,EMA13) AND CROSS(C,EMA21);DRAWTEXT(HR2 AND FILTER(HR2,10),L-0.09,'进场!'),COLORFFC8FF;MA1:MA(CLOSE,34),COLORBLUE;K1:=(C+H+L)/3;D1:=MA(K1,4);高:=REF(HHV(H,80),3);低:=REF(LLV(L,80),3);顶点:REFX1(高,10000),COLORGREEN,LINETHICK2;低点:REFX1(低,10000),COLORRED,LINETHICK2;AA05:MA(C,5),LINETHICK3,COLOR00CCFF;BB05:=ATAN((AA05/REF(AA05,1)-1)*100)*180/3.1416;IF(BB05>30 AND AA05>REF(AA05,1), AA05,NULL),LINETHICK3,COLORRED;买线:=ZIGZAG(C,10,1);卖线:=MA(买线,3);BU:=CROSS(买线,卖线);SEL:=CROSS(卖线,买线);DRAWTEXT(BU,L*0.99,'买多'),LINETHICK1,COLOR00AAFF;DRAWTEXT(SEL,H*1.01,'卖进'),LINETHICK1,COLOR00FF00;STICKLINE(买线>=卖线,LOW,HIGH,0,1),COLOR0000CC;STICKLINE(买线>=卖线,CLOSE,OPEN,2,1),COLOR0000CC;STICKLINE(买线<卖线,CLOSE,OPEN,2,0),COLORCYAN;STICKLINE(买线<卖线,LOW,HIGH,0,0),COLORCYAN;STICKLINE(CROSS(买线,卖线),OPEN,CLOSE,3,0),COLOR00AAFF;STICKLINE(CROSS(卖线,买线),OPEN,CLOSE,3,0),COLOR00DD00;VAR3:=LLV(HIGH,240);VAR4:=100*(CLOSE-VAR3)/VAR3;VAR5:=(CLOSE-LLV(LOW,528))/(HHV(HIGH,528)-LLV(LOW,528))*100;VAR6:=(CLOSE-LLV(CLOSE,530))/(HHV(CLOSE,530)-LLV(CLOSE,530))*100;VAR7:=0;VAR8:=SMA(MAX(CLOSE-REF(CLOSE,1),0),34,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),7,1)*100;VAR9:=SMA(MAX(CLOSE-REF(CLOSE,1),0),13,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),13,1)*100;VAR10:=IF(TROUGHBARS(C,16,1,1)=0 AND HIGH>LOW+0.04,4,0);VAR11:=ZIGZAG(C,6,1)>REF(ZIGZAG(C,6,1),1) AND REF(ZIGZAG(C,6,1),1)<=REF(ZIGZAG(C,6,1),2) AND REF(ZIGZAG(C,6,1),2)<=REF(ZIGZAG(C,6,1),3);VAR12:=ZIGZAG(C,6,1)<REF(ZIGZAG(C,6,1),1) AND REF(ZIGZAG(C,6,1),1)>=REF(ZIGZAG(C,6,1),2) AND REF(ZIGZAG(C,6,1),2)>=REF(ZIGZAG(C,6,1),3);VAR13:=ZIGZAG(C,22,1)>REF(ZIGZAG(C,22,1),1) AND REF(ZIGZAG(C,22,1),1)<=REF(ZIGZAG(C,22,1),2) AND REF(ZIGZAG(C,22,1),2)<=REF(ZIGZAG(C,22,1),3);VAR14:=ZIGZAG(C,22,1)<REF(ZIGZAG(C,22,1),1) AND REF(ZIGZAG(C,22,1),1)>=REF(ZIGZAG(C,22,1),2) AND REF(ZIGZAG(C,22,1),2)>=REF(ZIGZAG(C,22,1),3);VAR15:=ZIGZAG(C,51,1)>REF(ZIGZAG(C,51,1),1) AND REF(ZIGZAG(C,51,1),1)<=REF(ZIGZAG(C,51,1),2) AND REF(ZIGZAG(C,51,1),2)<=REF(ZIGZAG(C,51,1),3);VAR16:=ZIGZAG(C,51,1)<REF(ZIGZAG(C,51,1),1) AND REF(ZIGZAG(C,51,1),1)>=REF(ZIGZAG(C,51,1),2) AND REF(ZIGZAG(C,51,1),2)>=REF(ZIGZAG(C,51,1),3);VAR17:=ZIGZAG(C,72,1)>REF(ZIGZAG(C,72,1),1) AND REF(ZIGZAG(C,72,1),1)<=REF(ZIGZAG(C,72,1),2) AND REF(ZIGZAG(C,72,1),2)<=REF(ZIGZAG(C,72,1),3);VAR18:=ZIGZAG(C,72,1)<REF(ZIGZAG(C,72,1),1) AND REF(ZIGZAG(C,72,1),1)>=REF(ZIGZAG(C,72,1),2) AND REF(ZIGZAG(C,72,1),2)>=REF(ZIGZAG(C,72,1),3);VAR19:=EMA(CLOSE,2)-EMA(CLOSE,150);买1:=VAR10;买2:=(VAR11+VAR13+VAR15+VAR17);卖1:=(VAR12+VAR14+VAR16+VAR18);B:IF(买1>0 OR 买2>0,LOW*0.99,NULL),CROSSDOT,LINETHICK3,COLORYELLOW; DRAWTEXT(买1>0 OR 买2>0,LOW*0.99,'买'),COLORRED;S:IF(卖1>0,HIGH*1.01,NULL),CROSSDOT,LINETHICK3,COLORGREEN;DRAWTEXT(卖1>0,HIGH*1.02,'卖'),COLORGREEN;DRAWICON((ZIGZAG(C,5,1)>REF(ZIGZAG(C,5,1),1)) AND (REF(ZIGZAG(C,5,1),1)<=REF(ZIGZAG(C,5,1),2)) AND (REF(ZIGZAG(C,5,1),2)<=REF(ZIGZAG(C,5,1),3)),LOW*0.98,1) ;DRAWICON((ZIGZAG(C,5,1)<REF(ZIGZAG(C,5,1),1)) AND (REF(ZIGZAG(C,5,1),1)>=REF(ZIGZAG(C,5,1),2)) AND (REF(ZIGZAG(C,5,1),2)>=REF(ZIGZAG(C,5,1),3)),HIGH*1.01,2);ZB:=EMA(EMA(VAR3,5),5)*3, COLORSTICK;VARA:=IF(VAR9 AND CROSS(MA(CLOSE,3),MA(CLOSE,5)),20,0);K:=EMA(VAR7,5)*2,COLORFF00FF;D:=EMA(K,5),COLORWHITE;J:=K*3-D*2,COLORYELLOW;VARB:=BETWEEN(CLOSE,MA(CLOSE,3),MA(CLOSE,5)) AND J>10;HS:=VOL/CAPITAL*100,COLORGREEN;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);DRAWTEXT(VAR11 AND COUNT(VAR11,30)=1,LOW*0.95,'机构进场'),LINETHICK1,COLORFF00FF; VAR1A:=IF(VARE>0,VARE,0);VAR1B:=IF(VAR14>=200 AND VAR13>=150,15,IF(VAR14<=-200 AND VAR13<=-150,-15,VAR16))+60;VAR1C:=VAR1A>48 AND VAR1B>60 AND VAR19<100;DRAWTEXT(VAR1C AND COUNT(VAR1C,30)=1,LOW*0.95,'大顶(底)'),COLORWHITE;。
期货指标公式文华财经指标真正好用的指标准确率100的技术指标
S1:80,COLOR996699,PRECIS0;B1:20,COLORGREEN,PRECIS0;A:=MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19),COLORRED; B:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));D:=EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4),LINETHICK2; 长期线:A+100,COLOR9900FF;短期线:B+100,COLOR888888;中期线:D+100,COLORYELLOW,LINETHICK2;见顶:(REF(中期线,1)>85 AND REF(短期线,1)>85 AND REF(长期线,1)>65) AND CROSS(长期线,短期线),PRECIS0;顶部区域:(中期线<REF(中期线,1) AND REF(中期线,1)>80) AND (REF(短期线,1)>95 OR REF(短期线,2)>95 ) AND 长期线>60 AND 短期线<83.5 AND 短期线<中期线AND 短期线<长期线+4,PRECIS0;顶部:=FILTER(顶部区域,4);底部区域:(长期线<12 AND 中期线<8 AND (短期线<7.2 OR REF(短期线,1)<5) AND (中期线>REF(中期线,1) OR 短期线>REF(短期线,1))) OR (长期线<8 AND 中期线<7 AND 短期线<15 AND 短期线>REF(短期线,1)) OR (长期线<10 AND 中期线<7 AND 短期线<1),PRECIS0;STICKLINE1(顶部,98,103,20,1),COLORRED;STICKLINE1(底部区域,-4,0,22,0),COLORGREEN;STICKLINE1(底部区域,40,44,22,0),COLORGREEN;低位金叉:长期线<15 AND REF(长期线,1)<15 AND 中期线<18 AND 短期线>REF(短期线,1)AND CROSS(短期线,长期线) AND 短期线>中期线AND (REF(短期线,1)<5 OR REF(短期线,2)<5) AND (中期线>=长期线OR REF(短期线,1)<1),PRECIS0;PARTLINE(中期线>REF(中期线,1),中期线,COLORMAGENTA),LINETHICK2;PARTLINE(长期线<=REF(长期线,1),长期线,COLORFFFF00),LINETHICK1;STICKLINE1(低位金叉,0,4,11,0 ),COLORRED;S0:10,COLORCC6633,LINETHICK2,PRECIS0;B0:90,COLOR9966BB,LINETHICK2,PRECIS0;。