文华财经指标公式 红多蓝空指标 精准买卖点 黄金白银原油恒指

合集下载

期货最好用的指标公式文华财经指标公式通道线精准买

期货最好用的指标公式文华财经指标公式通道线精准买

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;。

最准确的指标期货指标公式文华财经指标主力买卖指标

最准确的指标期货指标公式文华财经指标主力买卖指标

A:=(3*C+L+O+H)/6;//3倍收盘价与最高价、最低价、开盘价之和的均值。

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,COLORMAGENTA,LINET HICK2;//对A值做加权均值计算。

D:MA(B,10),LINETHICK4,COLORRED;//对B值做10周期平均计算。

DRAWTEXT(CROSS(B,D),B,'主力★买'),COLORRED,FONTSIZE20;DRAWTEXT(CROSSDOWN(B,D),B,'游资★卖'),COLORGREEN,FONTSIZE20;DRAWGBK(1,RGB(0,0,0),RGB(0,0,0),0);范围高A:=REFX1(HHV(H,120),10000)*1.05;范围低A:=REFX1(LLV(L,120),10000)*0.95;MA5:=MA(C,5),COLORCYAN,LINETHICK2;MA24:=MA(C,24),COLORGREEN,LINETHICK2;MA72:=MA(C,72),COLORRED,LINETHICK2;MA200:=IF((MA(C,200)<=范围高 A AND MA(C,200)>=范围低A) OR C>=MA(C,200),MA(C,200),NULL),COLORBLUE,LINETHICK2;显示仪表盘1:=1;主升浪:=ISLASTBAR AND MA5>MA24 AND MA24>MA72 AND MA72>IF(MA200=NULL,0,MA200); 主浪回调:=ISLASTBAR AND MA24>MA5 AND MA5>MA72 AND MA72>IF(MA200=NULL,0,MA200);主浪深调:=ISLASTBAR AND MA24>MA72 AND MA72>MA5 AND MA5>IF(MA200=NULL,0,MA200);初升浪:=ISLASTBAR AND IF(MA200=NULL,300,MA200)>MAX(MA24,MA72) AND MA5>MA24 AND MA24>MA72;底部反弹:=ISLASTBAR AND IF(MA200=NULL,300,MA200)>MA72 AND MA72>MA24 AND MA5>MA24;探底阶段:=ISLASTBAR AND IF(MA200=NULL,300,MA200)>MA72 AND MA72>MA24 AND MA24>MA5;观望:=ISLASTBAR AND IF(MA200=NULL,MA24>MA72 AND C<MA72,MA72>MA200 AND C<MA200);有牛:=ISLASTBAR AND IF(MA200=NULL,MA24<MA72 AND C>=MA72,MA72<MA200 AND C>=MA200);放弃:=ISLASTBAR AND IF(MA200=NULL,MA24<MA72 AND C<MA72,MA72<MA200 AND C<MA200);引差:=REF(C,1)-LOW,LINETHICK1,NODRAW;引跌幅:IF((REF(C,1)-LOW)/REF(C,1)*100>0,(REF(C,1)-LOW)/REF(C,1)*100,0),LINETHICK1,NODRAW;三日均跌:MA(引跌幅,3),COLORWHITE,NODRAW;N:=120;CURRBARSCOUNT:=DATACOUNT-BARPOS+1;K:=BARSLAST(CURRBARSCOUNT=N);GD:=REFX1(IF(ISLASTBAR=1,HHV(H,K),0),10000),NODRAW;{高点}DD:=REFX1(IF(ISLASTBAR=1,LLV(L,K),0),10000),NODRAW;{低点}KJ:=GD-DD;{高低点差值=分区高度}GD4:=IF(CURRBARSCOUNT<=N/2,GD,NULL);高区:IF(CURRBARSCOUNT<=N,GD,NULL),COLORRED,LINETHICK2,NODRAW;低区:IF(CURRBARSCOUNT<=N,DD,NULL),COLOR00FF00,LINETHICK2,NODRAW;平衡:=IF(CURRBARSCOUNT<=N,DD+KJ/2,NULL),COLOR00FFFF,NODRAW;低:IF(CURRBARSCOUNT<=N/2,DD,NULL),COLORFFFF00;高:IF(CURRBARSCOUNT<=N/2,GD,NULL),COLOR00FFFF;支撑:IF(CURRBARSCOUNT<=N/2,DD+KJ*0.191,NULL),COLOR00FFFF;强势: IF(CURRBARSCOUNT<=N/2,DD+KJ*0.382,NULL),COLORFF00FF;突破:IF(CURRBARSCOUNT<=N/2,DD+KJ/2,NULL),COLOR0000FF;警示:IF(CURRBARSCOUNT<=N/2,DD+KJ*0.618,NULL),COLOR00FFFF;压力:IF(CURRBARSCOUNT<=N/2,DD+KJ*0.809,NULL),COLOR00FF00;低涨:IF(CURRBARSCOUNT<=N/2,(C/LLV(LOW,K)-1)*100,NULL),COLOR0000FF,NODRAW;天数:BARSLAST(L=DD),COLORCYAN,NODRAW;顶点:IF(CURRBARSCOUNT<=N/2, REFX1(IF(ISLASTBAR=1,HHV(H, BARSLAST(CURRBARSCOUNT=60)),1),10000),NULL),COLORRED,CROSSDOT,NODRAW;低点:IF(CURRBARSCOUNT<=N/2, REFX1(IF(ISLASTBAR=1,LLV(L, BARSLAST(CURRBARSCOUNT=60)),1),10000),NULL),COLORMAGENTA,CROSSDOT,NODRAW; TYP:=(CLOSE+HIGH+LOW)/3;CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));STICKLINE1(CCI>=200 AND H>=顶点,O,C,2,0),COLORBLUE;STICKLINE1(CCI<=100 AND L<=低点,O,C,2,0),COLORYELLOW;STICKLINE1(CURRBARSCOUNT=N/2,GD,DD,0,0),COLOR408080,NODRAW;STICKLINE1(CURRBARSCOUNT<=N/2,支撑,支撑,2,0),COLOR1E1E1E;STICKLINE1(CURRBARSCOUNT<=N/2,强势,强势,2,0),COLOR1E1E1E;STICKLINE1(CURRBARSCOUNT<=N/2,突破,突破,2,0),COLOR1E1E1E;STICKLINE1(CURRBARSCOUNT<=N/2,警示,警示,2,0),COLOR1E1E1E;STICKLINE1(CURRBARSCOUNT<=N/2,压力,压力,2,0),COLOR1E1E1E;DRAWTEXT(CURRBARSCOUNT=10,压力,'压力-0.809'),COLOR00FFFF,NODRAW;DRAWTEXT(CURRBARSCOUNT=10,警示,'警示-0.618'),COLOR00FFFF,NODRAW;DRAWTEXT(CURRBARSCOUNT=10,突破,'突破-0.500'),COLOR00FFFF,NODRAW;DRAWTEXT(CURRBARSCOUNT=10,强势,'强势-0.382'),COLOR00FFFF,NODRAW;DRAWTEXT(CURRBARSCOUNT=10,支撑,'支撑-0.191'),COLOR00FFFF,NODRAW;DRAWTEXT(CURRBARSCOUNT=N/4+5,GD-KJ*0.09,'【风险区】--高抛避险'),COLORFFFFFF; DRAWTEXT(CURRBARSCOUNT=N/4+5,GD-KJ*0.3,'【警示区】--逢高减仓'),COLORFFFFFF; DRAWTEXT(CURRBARSCOUNT=N/4+5,GD-KJ*0.45,'【突破区】--主力拉升'),COLORFFFFFF; DRAWTEXT(CURRBARSCOUNT=N/4+5,GD-KJ*0.55,'【拉升区】--强势畜锐'),COLORFFFFFF; DRAWTEXT(CURRBARSCOUNT=N/4+5,DD+KJ/3,'【关注区】--逢低买入'),COLORFFFFFF; DRAWTEXT(CURRBARSCOUNT=N/4+5,DD+KJ/10,'【低吸区】--大胆买入'),COLORFFFFFF;第一防线:REFX1(低,10000),DOT,COLORYELLOW,NODRAW;第二防线:REFX1(支撑,10000),DOT,COLORWHITE,NODRAW;DRAWKLINE1(H,O,L,C);AHC1:=CLOSE*VOL;AHC22:=EMA((EMA(AHC1,27)/EMA(VOL,27)+EMA(AHC1,54)/EMA(VOL,54)+EMA(AHC1,108)/EMA (VOL,108)+EMA(AHC1,316)/EMA(VOL,316))/4,34);上轨:=1.06*AHC22,COLOR40FF00,LINETHICK1;下轨:=AHC22*0.94;ZT:=REF(C,1)*1.1-C<0.01 AND H=C;启爆:=CROSS(C,上轨) OR CROSS(C,下轨) AND ZT;DRAWTEXT(启爆,L,'启爆'),COLORCYAN;STICKLINE1(启爆,C,O,3,1),COLORWHITE;STICKLINE1(启爆,C,O,1,0),COLORGREEN;STICKLINE1(C>=O ,HIGH,LOW,0,1 ),COLORRED;STICKLINE1(C>=O ,OPEN,CLOSE,3.1,0 ),COLOR000033;STICKLINE1(C>=O,OPEN,CLOSE,2.7,0 ),COLOR000066;STICKLINE1(C>=O ,OPEN,CLOSE,2.1,0 ),COLOR000099;STICKLINE1(C>=O ,OPEN,CLOSE,1.5,0 ),COLOR0000CC;STICKLINE1(C>=O ,OPEN,CLOSE,0.9,0 ),COLOR0000FF;STICKLINE1(C>=O ,OPEN,CLOSE,0.3,0 ),COLORCC66FF;STICKLINE1(C<O ,HIGH,LOW,0,1 ),COLORCYAN;STICKLINE1(C<O ,OPEN,CLOSE,3.1,0 ),COLOR990000;STICKLINE1(CLOSE<O ,OPEN,CLOSE,2.7,0 ),COLORCC0000;STICKLINE1(CLOSE<O ,OPEN,CLOSE,2.1,0 ),COLORFF4400;STICKLINE1(CLOSE<O ,OPEN,CLOSE,1.5,0 ),COLORFF8800;STICKLINE1(CLOSE<O ,OPEN,CLOSE,0.9,0 ),COLORFFCC00;STICKLINE1(CLOSE<O ,OPEN,CLOSE,0.3,0 ),COLORCYAN;CC:IF(CURRBARSCOUNT<18,REFX1(REF(C,1),10000),NULL),COLOR000000,NODRAW;止赢:1.05*CC,COLORMAGENTA,LINETHICK1;DRAWTEXT(ISLASTBAR,止赢,'止赢'),LINETHICK1;止损:0.97*CC,COLORYELLOW,LINETHICK1;DRAWTEXT(ISLASTBAR,止损,'止损'),LINETHICK1;DRAWNUMBER(ISLASTBAR,C,C,0,COLORWHITE);AAA:=REFX1(HHV(H,50),10000);PL5:=HHV(H,45);F:=100*(C-REF(C,1))/REF(C,1);博尔:=IF(C<REF(O,1) AND F<0,1,0);P1:=博尔;量化:=IF(C<REF(O,2) AND F<0,1,0);P2:=量化;STICKLINE(P1=0 AND REF(P1,1)=1 AND P2=0 AND REF(P2,1)=1,OPEN,CLOSE,3,0),COLOR0055FF; 操作30日均线:EMA(C,30),COLORYELLOW,LINETHICK4;红升:IF(操作30日均线>REF(操作30日均线,1),操作30日均线,NULL),COLORRED,LINETHICK4; 绿降:IF(操作30日均线<REF(操作30日均线,1),操作30日均线,NULL),COLOR009300,LINETHICK4;趋势55日线:EMA(C,55),COLORYELLOW,LINETHICK1,NODRAW;红升4:IF(趋势55日线>REF(趋势55日线,1),趋势55日线,NULL),COLOR0080FF,LINETHICK1;绿降4:IF(趋势55日线<REF(趋势55日线,1),趋势55日线,NULL),COLORFFFF00,DOT,LINETHICK1; 年线:EMA(C,250),COLORYELLOW,LINETHICK1,NODRAW;年红升:IF(年线>REF(年线,1),年线,NULL),COLOR8000FF,LINETHICK1;年绿降:IF(年线<REF(年线,1),年线,NULL),COLORFFFF00,DOT,LINETHICK1;。

文华期货软件公式指标最神奇的主图买卖指标文华财经指标公式源码公式源码

文华期货软件公式指标最神奇的主图买卖指标文华财经指标公式源码公式源码

/*A1:=REF(HIGH,3)=HHV(HIGH,2*3+1); B1:=FILTER(A1,3);C1:=BACKSET(B1,3+1); D1:=FILTER(C1,3);{高点}A2:=REF(LOW,3)=LLV(LOW,2*3+1); B2:=FILTER(A2,3);C2:=BACKSET(B2,3+1); D2:=FILTER(C2,3);{低点}E1:=(REF(LLV(LOW,2*3),1)+REF(HHV(HIGH,2*3),1))/2;E2:=(HIGH+LOW)/2;{高低点出现在同一K线上时可作取舍}H1:=(D1 AND NOT(D2 AND E1>=E2)) OR ISLASTBAR OR BARSCOUNT(CLOSE)=1;L1:=(D2 AND NOT(D1 AND E1<E2)); H2:=D1 AND NOT(D2 AND E1>=E2);X1:=REF(BARSLAST(H1),1)+1; F1:=BACKSET(H1 ANDCOUNT(L1,X1)>0,LLVBARS(IF(L1,LOW,10000),X1));G1:=F1>REF(F1,1); I1:=BACKSET(G1,2); LD:=I1>REF(I1,1);{过滤后低点}L2:=LD OR ISLASTBAR OR BARSCOUNT(CLOSE)=1;X2:=REF(BARSLAST(L2),1)+1; F2:=BACKSET(L2 ANDCOUNT(H2,X2)>0,HHVBARS(IF(H2,HIGH,0),X2));G2:=F2>REF(F2,1); I2:=BACKSET(G2,2); HD:=I2>REF(I2,1);{过滤后高点}DRAWLINE(LD,L,HD,H,0),COLORWHITE,LINETHICK1,POINTDOT; DRAWLINE(HD,H,LD,L,0),COLORWHITE,LINETHICK1,POINTDOT;J1:=BACKSET(ISLASTBAR,MIN(BARSLAST(HD),BARSLAST(LD))+1); J2:=J1>REF(J1,1);DRAWLINE(J2,IF(HD,H,L),ISLASTBAR,IF(BARSLAST(HD)>BARSLAST( LD),H,L),0),COLORWHITE,LINETHICK1,POINTDOT;{以上语句为新结构波浪}A3:=H<REF(H,REF(BARSLAST(HD),1)+1);B3:=REF(H,REF(BARSLAST(HD),1)+1)>REF(H,REF(BARSLAST(HD),1 )+2+REF(BARSLAST(HD),REF(BARSLAST(HD),1)+2));D3:=A3 AND B3 AND HD;E3:=BACKSET(D3,REF(BARSLAST(HD),1)+2);HH:=E3>REF(E3,1);{找出全部长期高点}A4:=L>REF(L,REF(BARSLAST(LD),1)+1);B4:=REF(L,REF(BARSLAST(LD),1)+1)<REF(L,REF(BARSLAST(LD),1) +2+REF(BARSLAST(LD),REF(BARSLAST(LD),1)+2));D4:=A4 AND B4 AND LD;E4:=BACKSET(D4,REF(BARSLAST(LD),1)+2); LL:=E4>REF(E4,1);{找出全部长期低点}DRAWICON(HH,H,10),ALIGN2; DRAWICON(LL,L,12),ALIGN1;H3:=HH OR ISLASTBAR OR BARSCOUNT(C)=1; {后面进行过滤,方法同前。

文华财经指标公式精确买卖点MACD公式指标软件波段多空买卖点

文华财经指标公式精确买卖点MACD公式指标软件波段多空买卖点

文华财经指标公式精确买卖点MACD公式指标软件波段多空买卖点波段多空买卖点是指通过分析市场的波动趋势,确定买入或卖出的时机。

其中一个常用的指标是MACD(Moving Average Convergence Divergence),它是一种技术分析中常用的买卖点指标。

下面将详细介绍MACD指标和使用MACD公式指标软件进行精确买卖点的方法。

MACD指标是由三个不同指数移动平均线构成的,通常包括一个快速的指数移动平均线(称为MACD线)、一个慢速的指数移动平均线(称为信号线)和一个表示差异的柱状线(称为差距线)。

MACD公式的计算方法如下:MACD线=快速指数移动平均线-慢速指数移动平均线信号线=MACD线的s日移动平均线差距线=MACD线-信号线MACD指标的计算使用的是指数移动平均线(EMA),而不是简单移动平均线(SMA)。

指数移动平均线对于近期数据具有更大的权重,而简单移动平均线对所有数据给予相同的权重。

这就意味着MACD指标能够更好地反映近期市场的变化情况。

MACD指标的一个常见用法是通过MACD线穿越信号线进行买卖决策。

当MACD线从下方穿越信号线时,视为买入信号;当MACD线从上方穿越信号线时,视为卖出信号。

这种方法可以帮助投资者捕捉市场趋势的变化,并在适当的时机买入或卖出。

为了更加精确地确定买卖点,可以结合其他技术指标和价格走势进行分析。

例如,当MACD线穿越信号线时,可以结合K线图形成的顶部或底部形态来确认买卖点。

此外,还可以与其他指标如相对强弱指标(RSI)、移动平均线等一起使用,进行多重确认。

为了便于使用MACD指标进行分析,一些金融软件提供了MACD指标的计算和显示功能。

这些软件通常包括股票和期货行情软件,可以根据用户的需求进行自定义设置,比如选择不同的指数移动平均线周期、调整MACD线的颜色、线宽等。

使用这些软件可以更加方便地进行技术分析和买卖点的确定。

总结来说,MACD指标是一种常用的买卖点指标,通过分析MACD线和信号线的交叉情况,可以帮助投资者确定买卖时机。

期货趋势多空交易指标公式文华财经指标公式期货软件指标公式赢顺云指标

期货趋势多空交易指标公式文华财经指标公式期货软件指标公式赢顺云指标

JRH:=HHV(C,2);JRL:=LLV(C,2);VAR01:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2));VAR02:=(REF(VAR01,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR03:=(REF(VAR02,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR04:=(REF(VAR03,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR05:=(REF(VAR04,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR06:=(REF(VAR05,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR07:=(REF(VAR06,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR08:=(REF(VAR07,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR09:=(REF(VAR08,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VARA:=(REF(VAR09,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VARB:=(REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VARC:=(REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VARD:=(CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2));VARE:=(REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VARF:=(REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR010:=(REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR011:=(REF(VAR010,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR012:=(REF(VAR011,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR013:=(REF(VAR012,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR014:=(REF(VAR013,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR015:=(REF(VAR014,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR016:=(REF(VAR015,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR017:=(REF(VAR016,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR018:=(REF(VAR017,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR019:=((REF(VARD OR VARE OR VARF OR VAR010 OR VAR011 OR VAR012 OR VAR013 OR VAR014 OR VAR015 OR VAR016 OR VAR017 OR VAR018,1)) AND VAR01);VAR1A:=((REF(VAR01 OR VAR02 OR VAR03 OR VAR04 OR VAR05 OR VAR06 OR VAR07 OR VAR08 OR VAR09 OR VARA OR VARB OR VARC,1)) AND VARD);红色持股:=VAR01 OR VAR02 OR VAR03 OR VAR04 OR VAR05 OR VAR06 OR VAR07 OR VAR08 OR VAR09 OR VARA OR VARB OR VARC,COLOR0000FF,NODRAW;离场:=IF(红色持股,JRL,NULL);明离场价:=离场,COLORFF99FF,NODRAW;青色观望:=VARD OR VARE OR VARF OR VAR010 OR VAR011 OR VAR012 OR VAR013 OR VAR014 OR VAR015 OR VAR016 OR VAR017 OR VAR018,COLORFFFF00,NODRAW;进:=IF(青色观望,JRH,NULL);今离场价:REF(离场,1),COLOR0000FF,NODRAW;明进场价:=进,COLOR33AACC,NODRAW;今进场价:REF(明进场价,1),COLORGREEN,NODRAW;//上涨家数:INDEXADV,COLOR0080FF,NODRAW;//下跌家数:INDEXDEC,COLORGREEN,NODRAW;E:=(HIGH+LOW+OPEN+2*CLOSE)/5;明日阻力:2*E-LOW,NODRAW;明日支撑:2*E-HIGH,NODRAW;明日突破:E+(HIGH-LOW),NODRAW;明日反转:E-(HIGH-LOW),NODRAW;今日阻力:REF(明日阻力, 1),NODRAW;今日支撑:REF(明日支撑, 1),NODRAW;买线:=ZIGZAG(C,10,1);卖线:=MA(买线,3);支撑:MA(REF(LLV(C,30),1),2),COLORABFF46;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.98),'--游资进'),COLORBLUE;STICKLINE1(游资,(支撑*0.96),支撑,9,0),COLORBLUE;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));波段买点:=CROSS((ZIGZAG(C,10,1)),(MA((ZIGZAG(C,10,1)),3)));DRAWTEXT(波段买点,(支撑*0.77),'--波段买'),COLOR00AAFF;STICKLINE1(波段买点,(支撑*0.95),支撑,9,0),COLORRED;STICKLINE1(CROSS(买线,卖线),O,C,9,0),COLOR00AAFF;STICKLINE1(买线<卖线,H,L,0,0),COLORGREEN;STICKLINE1(买线<卖线,C,O,4,0),COLOR00C600;STICKLINE1(买线<卖线,C,O,3,0),COLOR00D500;STICKLINE1(买线<卖线,C,O,2,0),COLOR00E600;STICKLINE1(买线>=卖线,H,L,0,0),COLOR0000FF;STICKLINE1(买线>=卖线,C,O,4,0),COLOR0000CD;STICKLINE1(买线>=卖线,C,O,3,0),COLOR0000E9;STICKLINE1(买线>=卖线,C,O,2,0),COLOR0000EA;STICKLINE1(买线>=卖线,C,O,1,0),COLOR0000FF;黑马现:=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);DRAWTEXT(黑马现,(支撑*0.94),'--发现黑马'),COLORFF6600;STICKLINE1(黑马现,(支撑*0.9),(支撑*0.95),9,0),COLORFF6600;机构:=((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))=1) AND (CROSS(ZIGZAG(C,8,1),REF(ZIGZAG(C,8,1),1))) AND (CROSS(ZIGZAG(C,13,1),REF(ZIGZAG(C,13,1),1)));DRAWTEXT(机构,(L*0.67),'--机构进'),COLORYELLOW;STICKLINE1(机构,(L*0.92),(L*0.98),9,0),COLORYELLOW;DRAWTEXT((VARDD=1),(H*1.1),'-卖'),COLORWHITE;STICKLINE1((VARDD=1),(H*1.01),(H*1.05),9,0),COLORWHITE;奔牛:=(CROSS((3*(SMA(SMA(((C-LLV(L,20))/(HHV(H,20)-LLV(L,20))*100),3,1),3,1)/28.57)-2*(EMA((S MA(SMA(((C-LLV(L,20))/(HHV(H,20)-LLV(L,20))*100),3,1),3,1)/28.57),5))),(SMA(SMA(((C-LLV(L,20)) /(HHV(H,20)-LLV(L,20))*100),3,1),3,1)/28.57)) AND (SMA(SMA(((C-LLV(L,20))/(HHV(H,20)-LLV(L,20))*100),3,1),3,1)/28.57)<2.1 AND 买线>=卖线); DRAWTEXT(奔牛,(支撑*0.99),'--奔牛'),COLORFF00FF;STICKLINE1(奔牛,(支撑*0.96),(支撑),9,0),COLORFF00FF;XOPEN:=(REF(O,1)+REF(C,1))/2;XCLOSE:=CLOSE;XHIGH:=MAX(HIGH,XOPEN);XLOW:=MIN(LOW,XOPEN);VOLALITY:=MA(XHIGH-XLOW,8);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),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),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),2) ANDREF(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),2) AND REF(ZIGZAG(C,72,1),2)>=REF(ZIGZAG(C,72,1),3);VAR19:=EMA(CLOSE,2)-EMA(CLOSE,150);VAR1AX:=EMA(VAR19,100);VAR1B:=2*(VAR19-VAR1AX);VAR1C:=POW(VAR1B,3)*0.1+POW(VAR1B,1);VAR1D:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE));VAR1E:=EMA(VAR1D*0.97,3);VAR1F:=(HIGH+LOW+CLOSE)/3;买点1:=VAR10;买点2:=(VAR11+VAR13+VAR15+VAR17);VAR1X:=MA(CLOSE,13);VAR2X:=MA(CLOSE,34);VAR3X:=MA(CLOSE,89);VAR4X:=MA(CLOSE,160);VAR5X:=EMA(COST(160),7);VAR6X:=EMA(COST(89),7);VAR7X:=SUM(CLOSE*VOL*100,4)/SUM(VOL*100,4);VARX:=INTPART(VAR7X*100)/100;VAR9X:=SUM(CLOSE*VOL*100,7)/SUM(VOL*100,7);VARAX:=INTPART(VAR9X*100)/100;VARBX:=SUM(CLOSE*VOL*100,28)/SUM(VOL*100,28);VARCX:=INTPART(VAR1X*100)/100;VARDX:=EMA(CLOSE,5)-EMA(CLOSE,10);VAREX:=EMA(VARDX,9);VAR13X:=REF(VAREX,1);VAR14X:=VAREX;VAR15X:=VAR14X-VAR13X;VAR16X:=REF(VARDX,1);VAR19X:=OPEN;买点3:=IF(VAR19X<=VAR1X AND VAR19X<=VAR2X AND VAR19X<=VAR3X AND VAR1AX>=VAR1X AND VAR1AX>=VARCX AND VAR15X>0 AND VAR18>0,0.5,0);VERTLINE1(买点3>0 OR 买点1>0 OR 买点2>0),COLOR0000FF;重心:=(C+0.618*REF(C,1)+0.382*REF(C,2)+0.236*REF(C,3)+0.146*REF(C,4))/2.382;公司成本价:EMA(((SLOPE(C,22)*20)+C),55),COLORYELLOW,LINETHICK2;红升:IF(重心>=公司成本价,公司成本价,NULL),COLORRED,LINETHICK2;蓝降:IF(重心<公司成本价,公司成本价,NULL),COLORBLUE,LINETHICK2;操盘线:EMA(C,160),COLORYELLOW,LINETHICK3;升:IF(操盘线>REF(操盘线,1),操盘线,NULL),COLORRED,LINETHICK3;降:IF(操盘线<REF(操盘线,1),操盘线,NULL),COLOR009300,LINETHICK3;ZF0:=MAX(HIGH,REF(HIGH,1))-MIN(LOW,REF(LOW,1));ZF:=MA(ZF0,3)*0.8;QSK:=ABS(CLOSE-REF(OPEN,1))/ZF0>0.50;SZ1:=HIGH>REF(HIGH,2) AND CLOSE>REF(OPEN,1) AND QSK;XD1:=LOW<REF(LOW,2) AND CLOSE<REF(OPEN,1) AND QSK;SZT:=BARSLAST(SZ1);XDT:=BARSLAST(XD1);DT:=SZT<XDT;KT:=XDT<SZT;STICKLINE(DT,OPEN,CLOSE,3,0),COLORRED;STICKLINE(KT,OPEN,CLOSE,3,0),COLORGREEN;N:=120;CURRBARSCOUNT:=REFX1(BARPOS,10000)-BARPOS+1;K:=BARSLAST(CURRBARSCOUNT=N);GD:=REFX1(IF(ISLASTBAR=1,HHV(H,K),0),10000),NODRAW;DD:=REFX1(IF(ISLASTBAR=1,LLV(L,K),0),10000),NODRAW;KJ:=GD-DD;GD4:=IF(CURRBARSCOUNT<=N/2,GD,NULL);高区:IF(CURRBARSCOUNT<=N,GD,NULL),COLORRED,LINETHICK2,NODRAW;低区:IF(CURRBARSCOUNT<=N,DD,NULL),COLOR00FF00,LINETHICK2,NODRAW;平衡:=IF(CURRBARSCOUNT<=N,DD+KJ/2,NULL),COLOR00FFFF,NODRAW;低:IF(CURRBARSCOUNT<=N/2,DD,NULL),COLORFFFF00;高:IF(CURRBARSCOUNT<=N/2,GD,NULL),COLOR00FFFF;强势: IF(CURRBARSCOUNT<=N/2,DD+KJ*0.382,NULL),COLORFF00FF;突破:IF(CURRBARSCOUNT<=N/2,DD+KJ/2,NULL),COLOR0000FF;警示:IF(CURRBARSCOUNT<=N/2,DD+KJ*0.618,NULL),COLOR00FFFF;压力:IF(CURRBARSCOUNT<=N/2,DD+KJ*0.809,NULL),COLOR00FF00;STICKLINE(CURRBARSCOUNT<=N/2,支撑,支撑,2,0),COLOR1E1E1E;STICKLINE(CURRBARSCOUNT<=N/2,强势,强势,2,0),COLOR1E1E1E;STICKLINE(CURRBARSCOUNT<=N/2,突破,突破,2,0),COLOR1E1E1E;STICKLINE(CURRBARSCOUNT<=N/2,警示,警示,2,0),COLOR1E1E1E;STICKLINE(CURRBARSCOUNT<=N/2,压力,压力,2,0),COLOR1E1E1E;DRAWTEXT(CURRBARSCOUNT=N/4+5,GD-KJ*0.09,'【风险区】--高抛避险'),COLORFFFFFF; DRAWTEXT(CURRBARSCOUNT=N/4+5,GD-KJ*0.3,'【警示区】--逢高减仓'),COLORFFFFFF; DRAWTEXT(CURRBARSCOUNT=N/4+5,GD-KJ*0.45,'【突破区】--主力拉升'),COLORFFFFFF; DRAWTEXT(CURRBARSCOUNT=N/4+5,GD-KJ*0.55,'【拉升区】--强势畜锐'),COLORFFFFFF; DRAWTEXT(CURRBARSCOUNT=N/4+5,DD+KJ/3,'【关注区】--逢低买入'),COLORFFFFFF; DRAWTEXT(CURRBARSCOUNT=N/4+5,DD+KJ/10,'【低吸区】--大胆买入'),COLORFFFFFF; 警示价:EMA(C,1600),COLORYELLOW,LINETHICK1,NODRAW;红:IF(警示价>REF(警示价,1),警示价,NULL),COLOR8000FF,LINETHICK1;绿:IF(警示价<REF(警示价,1),警示价,NULL),COLORFFFF00,LINETHICK1;。

文华财经指标公式 混沌理论指标 精准买卖点指标 黄金白银原油

文华财经指标公式 混沌理论指标 精准买卖点指标 黄金白银原油

Y:=(HIGH+LOW)/2;AO:=MA(Y ,5 )-MA(Y ,34 );AO1:=REF(AO,1);AC:=AO-MA( AO,5);AC1:=REF(AC,1);E:REF(SMA(Y,13,1),8);CHI:REF(SMA(Y,8,1),5),COLORRED;CHUN:REF(SMA(Y,5,1),3),COLORYELLOW;STICKLINE(AO1>AO && AC1>AC && CLOSE<OPEN ,OPEN ,CLOSE ,COLORYELLOW ,0 );DRAWLINE(AO1>AO && AC1>AC && CLOSE<OPEN ,HIGH ,AO1>AO && AC1>AC && CLOSE<OPEN ,LOW ,COLORYELLOW);STICKLINE(AO1>AO && AC1>AC && CLOSE=OPEN ,OPEN ,CLOSE ,COLORYELLOW ,0 );DRAWLINE(AO1>AO && AC1>AC && CLOSE=OPEN ,HIGH ,AO1>AO && AC1>AC && CLOSE=OPEN ,LOW ,COLORYELLOW);STICKLINE(AO1>AO && AC1>AC && CLOSE>OPEN ,OPEN ,CLOSE ,COLORYELLOW ,1);DRAWLINE(AO1>AO && AC1>AC && CLOSE>OPEN,HIGH ,AO1>AO && AC1>AC && CLOSE>OPEN,CLOSE,COLORYELLOW );DRAWLINE(AO1>AO && AC1>AC && CLOSE>OPEN,LOW ,AO1>AO && AC1>AC && CLOSE>OPEN,OPEN ,COLORYELLOW );STICKLINE(AO1<AO && AC1<AC && CLOSE<OPEN,OPEN ,CLOSE ,COLORRED ,0 ); DRAWLINE(AO1<AO && AC1<AC && CLOSE<OPEN,HIGH,AO1<AO && AC1<AC && CLOSE<OPEN,LOW ,COLORRED );STICKLINE(AO1<AO && AC1<AC && CLOSE=OPEN ,OPEN ,CLOSE ,COLORRED ,0 ); DRAWLINE(AO1<AO && AC1<AC && CLOSE=OPEN ,HIGH ,AO1<AO && AC1<AC && CLOSE=OPEN,LOW ,COLORRED);STICKLINE(AO1<AO && AC1<AC && CLOSE>OPEN,OPEN ,CLOSE ,COLORRED,1); DRAWLINE(AO1<AO && AC1<AC && CLOSE>OPEN,HIGH ,AO1<AO && AC1<AC && CLOSE>OPEN,CLOSE,COLORRED);DRAWLINE(AO1<AO && AC1<AC && CLOSE>OPEN,LOW ,AO1<AO && AC1<AC && CLOSE>OPEN,OPEN ,COLORRED);STICKLINE(AO1>AO && AC1<AC && CLOSE<OPEN ,OPEN ,CLOSE ,COLORCY AN ,0 ); DRAWLINE(AO1>AO && AC1<AC && CLOSE<OPEN,HIGH ,AO1>AO && AC1<AC && CLOSE<OPEN,LOW ,COLORCYAN );STICKLINE(AO1>AO && AC1<AC && CLOSE=OPEN,OPEN ,CLOSE ,COLORCY AN ,0 ); DRAWLINE(AO1>AO && AC1<AC && CLOSE=OPEN,HIGH ,AO1>AO && AC1>AC && CLOSE=OPEN,LOW ,COLORCYAN );STICKLINE(AO1>AO && AC1<AC && CLOSE>OPEN,OPEN ,CLOSE ,COLORCY AN ,1 ); DRAWLINE(AO1>AO && AC1<AC && CLOSE>OPEN ,HIGH ,AO1>AO && AC1<AC && CLOSE>OPEN,CLOSE ,COLORCY AN );DRAWLINE(AO1>AO && AC1<AC && CLOSE>OPEN,LOW ,AO1>AO && AC1<AC && CLOSE>OPEN,OPEN ,COLORCYAN );STICKLINE(AO1<AO && AC1>AC && CLOSE<OPEN,OPEN ,CLOSE ,COLORCY AN ,0 ); DRAWLINE(AO1<AO && AC1>AC && CLOSE<OPEN,HIGH ,AO1<AO && AC1>AC && CLOSE<OPEN,LOW ,COLORCYAN );STICKLINE(AO1<AO && AC1>AC && CLOSE=OPEN,OPEN ,CLOSE ,COLORCY AN ,0 ); DRAWLINE(AO1<AO && AC1>AC && CLOSE=OPEN,HIGH,AO1<AO && AC1>AC && CLOSE=OPEN,LOW ,COLORCYAN );STICKLINE(AO1<AO && AC1>AC && CLOSE>OPEN,OPEN ,CLOSE ,COLORCYAN ,1 ); DRAWLINE(AO1<AO && AC1>AC && CLOSE>OPEN,HIGH ,AO1<AO && AC1>AC && CLOSE>OPEN,CLOSE ,COLORCY AN );DRAWLINE(AO1<AO && AC1>AC && CLOSE>OPEN,LOW ,AO1<AO && AC1>AC && CLOSE>OPEN,OPEN ,COLORCYAN );。

文华财经指标文华财经期货软件指标多空线指标公式源码

文华财经指标文华财经期货软件指标多空线指标公式源码

/*DIFF1:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA1:=EMA(DIFF1,9);DRAWBAND(DEA1,DRAWNULL,DIFF1,RGB(250,0,0));DIFF:EMA(CLOSE,12)-EMA(CLOSE,26),COLORYELLOW;DEA:EMA(DIFF,9),COLORCYAN;MACD:2*(DIFF-DEA),COLORSTICK;TR1:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))), 14);HD:=HIGH-REF(HIGH,1);LD:=REF(LOW,1)-LOW;PDM:=SUM(IF(HD>0 AND HD>LD,HD,0),14);MDM:=SUM(IF(LD>0 AND LD>HD,LD,0),14);PDI:=PDM*100/TR;MDI:=MDM*100/TR;A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA);A2:=BARSLAST(REF(CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)),1));B2:=REF(C,A2+1)>C AND REF("KDJ.K"(9,3,3),A2+1)<"KDJ.K"(9,3,3) ANDCROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));A3:=BARSLAST(REF(CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1));B3:=REF(C,A3+1)>C AND REF("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));C1:=BARSLAST(REF(CROSS(DEA,DIFF),1));D1:=REF(C,C1+1)<C AND REF(DIFF,C1+1)>DIFF AND CROSS(DEA,DIFF);C2:=BARSLAST(REF(CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3)),1));D2:=REF(C,C2+1)<C AND REF("KDJ.K"(9,3,3),C2+1)>"KDJ.K"(9,3,3) ANDCROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3));C3:=BARSLAST(REF(CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24)),1));D3:=REF(C,C3+1)<C AND REF("RSI.RSI1"(6,12,24),C3+1)>"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24));C4:=BARSLAST(REF(CROSS(MDI,PDI),1));D4:=REF(C,C+1)<C AND REF(MDI,C4+1)>MDI AND CROSS(MDI,PDI);A4:=BARSLAST(REF(CROSS(PDI,MDI),1));B4:=REF(C,A4+1)>C AND REF(PDI,A4+1)<PDI AND CROSS(PDI,MDI);MACD底背:IF(B1>0,1,0),COLORRED,NODRAW;KDJ底背:IF(B2>0,1,0),COLORFF00FF,NODRAW;RSI底背:IF(B3>0,1,0),COLORYELLOW,NODRAW;DMI底背:IF(B4>0,1,0),COLORBROWN,NODRAW;MACD顶背:IF(D1>0,1,0),COLOR00FF00,NODRAW;KDJ顶背:IF(D2>0,1,0),COLORFFCC66,NODRAW;RSI顶背:IF(D3>0,1,0),COLORWHITE,NODRAW;DMI顶背:IF(D4>0,1,0),COLORLIRED,NODRAW;{DRAWLINE(A1=0,DEA,MACD底背,DEA,0),COLORRED,LINETHICK2;DRAWLINE(A2=0,DEA,MACD顶背,DEA,0),COLOR00FF00,LINETHICK2;}STICKLINE(B1>0,-0.1,0,2,0),COLORRED;STICKLINE(B2>0,-0.1,-0.2,2,0),COLORFF00FF;STICKLINE(B3>0,-0.1,0,2,0),COLORYELLOW;STICKLINE(B4>0,-0.1,-0.2,2,0),COLORBROWN;STICKLINE(D1>0,0.1,0,2,0),COLOR00FF00;STICKLINE(D2>0,0.1,0.2,2,0),COLORFFCC66;STICKLINE(D3>0,0.1,0,2,0),COLORWHITE;STICKLINE(D4>0,0.1,0.2,2,0),COLORLIRED;SQX:=(C-MA(CLOSE,13))*100;DIF:EMA(MA(SQX,7),1),LINETHICK1;DEA:EMA(DIF,7),LINETHICK1;MACD: (DIF-DEA)*2,COLORSTICK;红柱持股:IF(MACD>REF(MACD,1),MACD,DRAWNULL),STICK,COLORRED,LINETHICK3;绿柱持币:IF(MACD<REF(MACD,1),MACD,DRAWNULL),STICK,COLORGREEN,LINETHICK3; 低位金叉:IF(CROSS(DIF,DEA) AND DIF<-0.1,0.3,0),COLORYELLOW,POINTDOT; STICKLINE(低位金叉,0,10,8,1),COLORYELLOW;DRAWICON(低位金叉,0.3,1);JCCOUNT:=COUNT(CROSS(DIF,DEA),BARSLAST(DEA>=0));二次金叉:IF(CROSS(DIF,DEA) AND DEA<0 ANDCOUNT(JCCOUNT=2,21)=1,0.2,0),COLORFF00FF,POINTDOT;STICKLINE(二次金叉,25,15,8,1),COLORFF00FF;A1:=BARSLAST(REF(CROSS(DIF,DEA),1));底背离:IF(REF(CLOSE,A1+1)>CLOSE AND DIF>REF(DIF,A1+1) ANDCROSS(DIF,DEA),0.1,0),COLORRED,POINTDOT;STICKLINE(底背离,40,30,8,1),COLORMAGENTA;DRAWLINE(A1=0,DEA,底背离,DEA,0),COLORMAGENTA,LINETHICK3;A2:=BARSLAST(REF(CROSS(DEA,DIF),1));顶背离:REF(CLOSE,A2+1)<CLOSE AND REF(DIF,A2+1)>DIF ANDCROSS(DEA,DIF),COLORGREEN;DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORBLUE,LINETHICK3;A3:=CROSS(DIF,DEA) AND DEA<0;零下二次金叉:IF(FILTER(COUNT(A3,21)=2,10),0.05,0),COLORWHITE,POINTDOT; STICKLINE(零下二次金叉,45,55,8,1),COLORWHITE;金叉:DRAWICON(CROSS(DIF,DEA),DIF,1);死叉:DRAWICON(CROSS(DEA,DIF),DIF,2);{MACD底背离选股公式}DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9),;A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));XG:REF(C,A1+1)>C AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA);*/N:=120;CURRBARSCOUNT:=DATACOUNT-BARPOS+1;K:=BARSLAST(CURRBARSCOUNT=N);GD:=REFX1(IF(ISLASTBAR=1,HHV(H,K),0),10000),NODRAW;{高点}DD:=REFX1(IF(ISLASTBAR=1,LLV(L,K),0),10000),NODRAW;{低点}KJ:=GD-DD;//{高低点差值=分区高度}GD4:=IF(CURRBARSCOUNT<=N/2,GD,NULL);高区:IF(CURRBARSCOUNT<=N,GD,NULL),COLORRED,LINETHICK2,NODRAW;低区:IF(CURRBARSCOUNT<=N,DD,NULL),COLOR00FF00,LINETHICK2,NODRAW;平衡:=IF(CURRBARSCOUNT<=N,DD+KJ/2,NULL),COLOR00FFFF,NODRAW;低:IF(CURRBARSCOUNT<=N/2,DD,NULL),COLORFFFF00;高:IF(CURRBARSCOUNT<=N/2,GD,NULL),COLOR00FFFF;支撑:IF(CURRBARSCOUNT<=N/2,DD+KJ*0.191,NULL),COLOR00FFFF;第一防线:REFX1(低,10000),DOT,COLORYELLOW,NODRAW;第二防线:REFX1(支撑,10000),DOT,COLORWHITE,NODRAW;今日保护价:(REF(C,2)+REF(C,1)+O)/3 ,COLORCC3299;CC:IF(CURRBARSCOUNT<18,REFX1(REF(C,1),10000),NULL),COLOR000000,NODRAW;止赢:1.05*CC,COLORMAGENTA,LINETHICK2;DRAWTEXT(ISLASTBAR,止赢,'止赢'),LINETHICK2;止损:0.97*CC,COLORYELLOW,LINETHICK2;DRAWTEXT(ISLASTBAR,止损,'止损'),LINETHICK2;DRAWNUMBER1(ISLASTBAR ,C,C,2),COLORWHITE;MAA10:=MA(C,10);MAA30:MA(C,30),COLORRED;KS:IF(MAA10>MAA30,MAA10,MAA30),COLORBLUE;A3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;A4:=SMA(A3,3,1);A5:=SMA(A4,3,1);A6:=3*A4-2*A5;A7:=C-REF(C,1);A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);买:=LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2)); DRAWTEXT(FILTER(买=1,5),LOW-0.05,'跟庄买进'),COLORYELLOW; STICKLINE1(买,OPEN,CLOSE,2,0),COLORYELLOW;。

文华财经指标公式多空生命线指标精准买卖点黄金白银原油恒指

文华财经指标公式多空生命线指标精准买卖点黄金白银原油恒指

文华财经指标公式多空生命线指标精准买卖点黄金白银
原油恒指
多空生命线指标的计算公式如下:
1.计算多空比率(DP):
多空比率=(多方力量值/空方力量值)*100
2.计算多空生命线(DR):
如果多立场力量值>空立场力量值,则DR=100-100/(1+多空比率)
如果多立场力量值<空立场力量值,则DR=100/(1+(1/多空比率))
如果多立场力量值=空立场力量值,则DR=100
3.计算买卖点:
当多空生命线上穿50时,为买入信号
当多空生命线下穿50时
多空生命线指标主要是通过比较市场中多方力量和空方力量的大小来
判断市场走势。

当多方力量大于空方力量时,多空生命线指示市场上涨趋势;相反,当空方力量大于多方力量时,多空生命线指示市场下跌趋势。

买卖点的产生是通过多空生命线穿越50这一信号线来判断的,可以用来
指导投资者的买卖决策。

多空生命线指标适用于各种金融市场,如黄金、白银、原油和恒指等。

投资者可以根据该指标的信号来进行交易,但需要注意的是,技术指标只
是辅助决策工具,还需要结合其他因素进行综合分析,以降低风险。

总之,多空生命线指标是文华财经指标的一种,通过比较多方力量和空方力量的大小,并给出买卖点的建议,帮助投资者进行决策。

不过,投资者在使用技术指标时,还需要综合考虑其他因素,做出更准确的决策。

文华财经指标公式 战龙主图指标 精准买卖点 黄金白银原油恒指

文华财经指标公式 战龙主图指标 精准买卖点 黄金白银原油恒指

HH1:=IFELSE(HIGH <REF(HIGH,2)&&REF(HIGH,1)<REF(HIGH,2),REF(HIGH,2),0);LL1:=IFELSE(LOW >REF(LOW,2)&&REF(LOW,1)>REF(LOW,2),REF(LOW,2),0);HH2:=V ALUEWHEN(HH1>0,HH1);LL2:=V ALUEWHEN(LL1>0,LL1);K1:=IFELSE(CLOSE>HH2,-3,IFELSE(CLOSE<LL2,1,0));K2:=V ALUEWHEN(K1<>0,K1);G:=IFELSE(K2=1,HH2,LL2);G1:=V ALUEWHEN(ISLASTBAR,G);DRAWNUMBER(L>0,G1,G1,0,COLORCYAN);W1:=K2;W2:=OPEN-CLOSE;HT:=IFELSE(OPEN>CLOSE,OPEN,CLOSE);LT:=IFELSE(OPEN<CLOSE,OPEN,CLOSE);DRAWLINE(W1=1,HIGH,W1=1,HT,COLORCY AN);DRAWLINE(W1=1,LOW,W1=1,LT,COLORCY AN);DRAWLINE(W1=-3,HIGH,W1=-3,HT,COLORRED);DRAWLINE(W1=-3,LOW,W1=-3,LT,COLORRED);STICKLINE(W1>0,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,COLORCY AN,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),COLORYELLO W);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 <REF(LOW,1)&& LOW <REF(LOW,2)&& LOW <REF(LOW,3)&&L<REF(LOW,4), HIGH -(HIGH- LOW)*0.333, HIGH);LL:=IFELSE (HIGH>REF(HIGH,1)&& HIGH>REF(HIGH,2)&& HIGH >REF(HIGH,3)&& HIGH >REF(HIGH,4)&& LOW <REF(LOW,1)&&L<REF(LOW,2)&& LOW <REF(LOW,3)&&L<REF(LOW,4),( HIGH - LOW)*0.333+ 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 <REFX(LOW,1)&& LOW <REFX(LOW,2)&& LOW <REFX(LOW,3)&& LOW <REFX(LOW,4),LL,0);H2:=BARSLAST(H1);L2:=BARSLAST(L1);H3:=REFX(REF(H1,H2),2);L3:=REFX(REF(L1,L2),2);H4:=ZIGZAG(H3,0,0);L4:=ZIGZAG(L3,0,0);H5:=V ALUEWHEN(H4<REF(H4,1)&&REF(H4,1)>REF(H4,2),HH);L5:=V ALUEWHEN(L4>REF(L4,1)&&REF(L4,1)<REF(L4,2),LL);POL YLINE(H5>0,H5,COLORWHITE);POL YLINE(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:=V ALUEWHEN(ISLASTBAR,H5);E:=V ALUEWHEN(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,'▼');。

期货指标公式文华财经指标真正好用的指标买卖点

期货指标公式文华财经指标真正好用的指标买卖点

期货指标公式文华财经指标真正好用的指标买卖点期货交易是一种非常复杂的投资形式,需要熟悉各种指标和技术分析工具来指导交易决策。

在期货交易中,选择合适的指标是非常重要的,好用的指标能够提高交易的准确性和盈利能力。

在众多的指标中,有几个指标被广泛认为是比较好用的指标,下面介绍一些常用的期货指标公式和其应用。

1.移动平均线:移动平均线是一种基本的技术分析工具,用于平滑价格数据并识别趋势。

常见的移动平均线包括简单移动平均线(SMA)和指数移动平均线(EMA)。

移动平均线的计算公式如下:- SMA: MA = sum(Close, N) / N- EMA: EMA = (Close * (2/(N+1))) + (PreviousEMA * (1 -(2/(N+1))))其中,Close代表收盘价,N代表计算周期,MA代表简单移动平均线,EMA代表指数移动平均线,PreviousEMA代表前一天的指数移动平均线的值。

移动平均线主要用于辅助判断价格的长期趋势,当价格位于移动平均线上方时,认为趋势是上涨的,可以考虑买入;当价格位于移动平均线下方时,认为趋势是下跌的,可以考虑卖出。

2.相对强弱指标(RSI):RSI是一种衡量市场超买和超卖程度的指标。

它的计算公式如下:-RSI=100-(100/(1+RS))- RS = avg(gain, N) / avg(loss, N)其中,gain代表收盘价上涨的天数总和,loss代表收盘价下跌的天数总和,N代表计算周期。

RSI的取值范围在0到100之间,当RSI超过70时,认为市场超买,可能会发生价格调整或下跌,可以考虑卖出;当RSI低于30时,认为市场超卖,可能会出现价格反弹或上涨,可以考虑买入。

3.随机指标(KDJ):KDJ是一种经典的震荡指标,用于识别价格的超买和超卖区域。

KDJ的计算公式如下:- RSV = (Close - LowestLow(N)) / (HighestHigh(N) -LowestLow(N)) * 100- K = (2/3) * PreviousK + (1/3) * RSV- D = (2/3) * PreviousD + (1/3) * K-J=3*K-2*D其中,Close代表收盘价,LowestLow(N)代表最近N天的最低价,HighestHigh(N)代表最近N天的最高价,K、D、J分别代表计算得到的KDJ值。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

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);。

相关文档
最新文档