文华财经指标公式 双龙波段指标 精准买卖点 黄金白银原油恒指
期货最好用的指标公式文华财经指标公式通道线精准买
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;。
技术指标买卖点大全文华软件指标文华财经指标公式源码股票指标
技术指标买卖点大全文华软件指标文华财经指标公式源码股票指标1. 引言本文旨在介绍文华软件的技术点大全,包含文华财经指标公式源码以及股票指标的应用。
通过详细的介绍和示例,读者将能够了解如何使用文华软件的技术指标来进行股票买卖点分析。
2. 文华软件指标介绍文华软件提供了丰富而强大的技术指标,用于帮助投资者分析和预测股票价格的未来走势。
以下是一些常见的文华软件技术指标:- 移动平均线(MA)- 相对强弱指标(RSI)- 随机震荡指标(KDJ)- 威廉指标(W%R)- 乖离率(BIAS)- 成交量指标(VOL)3. 文华财经指标公式源码对于对指标计算的理解和深入研究,文华财经还提供了指标公式源码供使用者参考和修改。
使用者可以根据自己的需求对指标公式进行修改和优化,以适应自己的投资策略和市场观察。
以下是一个示例代码片段,显示了如何使用文华财经提供的指标公式源码:def calculate_rsi(data):计算RSI指标...return rsidata = [10, 15, 13, 12, 8, 20, 18, 22]rsi = calculate_rsi(data)print("RSI指标: ", rsi)4. 股票指标应用示例为了帮助读者更好地理解文华软件指标的应用,以下是一个股票指标的应用示例:假设某支股票的收盘价数据如下:日期收盘价2020-01-01 102020-01-02 122020-01-03 152020-01-04 132020-01-05 112020-01-06 92020-01-07 13我们可以使用文华软件提供的技术指标来进行买卖点分析。
如下图所示,我们可以绘制出该支股票的移动平均线和相对强弱指标(RSI)的曲线图,并通过分析曲线图来确定买卖点。
![股票指标应用示例](股票指标图表.png)在图中,移动平均线(MA)在收盘价上方形成了一个交叉区域,同时RSI指标也显示了超买的信号。
文华财经指标公式源码资金买入卖出公式源码
/*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;J1:=REVERSE(J);AA8:=REF(MA(C,1),10)>REF(MA(C,60),10);买点:CROSS(J,J1) AND AA8;STICKLINE(买点,0,30,6,0),COLORBLUE;STICKLINE(买点,30,60,4,0),COLORWHITE;STICKLINE(买点,60,80,2,0),COLORYELLOW;DRAWTEXT(买点,70,'庄家出现'),COLORRED;VAR1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),10,1); VAR3:=EMA(VAR2,10);VAR4:=LLV(LOW,33);VAR5:=EMA(IF(LOW<=VAR4,VAR3,0),3);主力进场:IF(VAR5>REF(VAR5,1),VAR5,0),COLORRED,NODRAW; STICKLINE(VAR5>REF(VAR5,1),0,VAR5,3,0 ),COLORRED; STICKLINE(VAR5>REF(VAR5,1),0,VAR5,3,0 ),COLOR000055; STICKLINE(VAR5>REF(VAR5,1),0,VAR5,2.6,0 ),COLOR000077; STICKLINE(VAR5>REF(VAR5,1),0,VAR5,2.1,0 ),COLOR000099; STICKLINE(VAR5>REF(VAR5,1),0,VAR5,1.5,0 ),COLOR0000BB; STICKLINE(VAR5>REF(VAR5,1),0,VAR5,0.9,0 ),COLOR0000DD; STICKLINE(VAR5>REF(VAR5,1),0,VAR5,0.3,0 ),COLOR0000FF;洗盘:IF(VAR5<REF(VAR5,1),VAR5,0),COLORGREEN,NODRAW; STICKLINE(VAR5<REF(VAR5,1),0,VAR5,3,0),COLORGREEN; STICKLINE(VAR5<REF(VAR5,1),0,VAR5,3,0),COLOR005500; STICKLINE(VAR5<REF(VAR5,1),0,VAR5,2.6,0),COLOR007700; STICKLINE(VAR5<REF(VAR5,1),0,VAR5,2.1,0),COLOR009900; STICKLINE(VAR5<REF(VAR5,1),0,VAR5,1.5,0),COLOR00BB00; STICKLINE(VAR5<REF(VAR5,1),0,VAR5,0.9,0),COLOR00DD00; STICKLINE(VAR5<REF(VAR5,1),0,VAR5,0.3,0),COLOR00FF00;VAR12:=SMA(ABS(VAR1-H),13,1)/SMA(MAX(VAR1-H,0),10,1); VAR13:=EMA(VAR12,10);VAR14:=HHV(H,33);VAR15:=EMA(IF(H>=VAR14,VAR13,0),3);冲顶:IF(VAR15>REF(VAR15,1),VAR15,0),COLORFF00FF,NODRAW; STICKLINE(VAR15>REF(VAR15,1),0,VAR15,3,0),COLORFF00FF; STICKLINE(VAR15>REF(VAR15,1),0,VAR15,3,0 ),COLOR550055; STICKLINE(VAR15>REF(VAR15,1),0,VAR15,2.6,0 ),COLOR770077; STICKLINE(VAR15>REF(VAR15,1),0,VAR15,2.1,0 ),COLOR990099; STICKLINE(VAR15>REF(VAR15,1),0,VAR15,1.5,0 ),COLORBB00BB; STICKLINE(VAR15>REF(VAR15,1),0,VAR15,0.9,0 ),COLORDD00DD; STICKLINE(VAR15>REF(VAR15,1),0,VAR15,0.3,0 ),COLORFF00FF; 主力出场:IF(VAR15<REF(VAR15,1),VAR15,0),COLORYELLOW,NODRAW; STICKLINE(VAR15<REF(VAR15,1),0,VAR15,3,0 ),COLORYELLOW; STICKLINE(VAR15<REF(VAR15,1),0,VAR15,3,0),COLOR005555; STICKLINE(VAR15<REF(VAR15,1),0,VAR15,2.6,0),COLOR007777; STICKLINE(VAR15<REF(VAR5,1),0,VAR15,2.1,0),COLOR009999; STICKLINE(VAR15<REF(VAR15,1),0,VAR15,1.5,0),COLOR00BBBB; STICKLINE(VAR15<REF(VAR15,1),0,VAR15,0.9,0),COLOR00DDDD; STICKLINE(VAR15<REF(VAR15,1),0,VAR15,0.3,0),COLOR00FFFF; A1:=REF(CLOSE,2);A2:=SMA(MAX(CLOSE-A1,0),7,1)/SMA(ABS(CLOSE-A1),7,1)*100;波段介入点:IF(A2<19,19,0)COLORWHITE;20,POINTDOT;80,POINTDOT;VAR18:=(2*C+H+L)/4;VAR28:=LLV(LOW,34);VAR38:=HHV(HIGH,34);AA:EMA((VAR18-VAR28)/(VAR38-VAR28)*100,5),COLORRED; BB:EMA(AA,5)COLOR00FFFF;DRAWBAND(AA,RGB(200,0,0),BB,RGB(0,200,200)); DRAWICON(CROSS(AA,BB),BB-5,1);DRAWICON(CROSS(BB,AA),AA+5,2);STICKLINE(AA<20,2,7,1,1),COLORFF00FF;STICKLINE(AA>80,92,97,1,1),COLOR00FFFF;IF(AA>=BB,100,108);IF(AA<BB,0,-8);DRAWICON(AA>=BB,105,1);DRAWICON(BB>AA,-8,2);STICKLINE( CROSS(AA,BB),-8,15,1,0),COLORRED,LINETHICK2; STICKLINE( CROSS(AA,BB),1,6,1,0),COLOR00FFFF,LINETHICK2; DRAWICON(CROSS(AA,BB),13,13);STICKLINE( CROSS(BB,AA),108,85,1,0),COLOR00FF00,LINETHICK2;STICKLINE( CROSS(BB,AA),94,99,1,0),COLORFF00FF,LINETHICK2; DRAWICON(CROSS(BB,AA),85,14);*/V AR3:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;V AR4:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;V AR5:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;V AR6:=(V AR3+V AR4+V AR5)/3;V AR7:=EMA(VAR6,5);指标: EMA(EMA(V AR3,5),5)*3, COLORSTICK;V AR8:=IF(VAR6<=-20,10,0);V AR9:=HHV(V AR8,10);STICKLINE(V AR8=10,20,10,5,0),COLOR6666FF;V ARA:=IF(VAR9 AND CROSS(MA(CLOSE,3),MA(CLOSE,5)),20,0);DRAWTEXT(V ARA=20,15,'底部'),LINETHICK1,COLORWHITE;STICKLINE((V ARA=20),0,10,5,0),COLORWHITE;V ARC:=(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));V ARD:=(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));STICKLINE((V ARC=1),(-14),0,4,0),COLOR0000FF;DRAWTEXT((V ARC=1),(-14),'买入'),COLOR0000FF;STICKLINE((V ARD=1),14,0,4,0),COLOR00FF00;DRAWTEXT((V ARD=1),18,'卖出'),COLOR00FF00;V ARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;V ARF:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*S MA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);V AR10:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*S MA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);V AR11:=VARF<REF(V AR10,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1); DRAWTEXT(V AR11 AND COUNT(V AR11,30)=1,15,'大资金活动'),LINETHICK1,COLORFF00FF;STICKLINE(V AR11 AND COUNT(V AR11,30)=1,1,10,5,0),COLORFF00FF;V AR12:=(HIGH+LOW+CLOSE)/3;V AR13:=(V AR12-MA(V AR12,14))/(0.015*A VEDEV(V AR12,14));V AR14:=(V AR12-MA(V AR12,70))/(0.015*A VEDEV(V AR12,70));V AR15:=IF(VAR13>=150 AND V AR13<200 AND V AR14>=150 AND VAR14<200,10,0);V AR16:=IF(VAR13<=-150 AND V AR13>-200 AND V AR14<=-150 AND V AR14>-200,-10,V AR15);V AR17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;V AR18:=100-ABS(V AR17);V AR19:=IF(VAR18<90,V AR18,100);。
文华财经指标公式 混沌理论指标 精准买卖点指标 黄金白银原油
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 );。
文华财经指标公式 战龙主图指标 精准买卖点 黄金白银原油恒指
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,'▼');。
文华财经指标公式源码最神奇的主图买卖指标公式源码
/* AMV0:=VOL*(O+C)/2;CG:MA(C,3),COLORFFCC66,LINETHICK2;FL:=HHV(CG,2);黄金线:HHV(CG,2),COLOR00FF00;FS:CG-(FL-CG),COLORRED,LINETHICK2;十:MA(C,13),COLOR00FFFF,LINETHICK2;涨:IF(MA(CLOSE,13)>REF(MA(CLOSE,13),1),MA(CLOSE,13),DRAWN ULL),COLORRED,LINETHICK2;平:IF(MA(CLOSE,13)=REF(MA(CLOSE,13),1),MA(CLOSE,13),DRAWN ULL),COLOR00FFFF,LINETHICK3;跌:IF(MA(CLOSE,13)<REF(MA(CLOSE,13),1),MA(CLOSE,13),DRAWN ULL),COLORGREEN,LINETHICK2;DRAWTEXT(平=十,十*0.998-0.01,'关注'),COLORCYAN;TY:=C;A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10);C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10);A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10);C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10);A:=REF(C,BARSLAST(HD)); B:=REF(C,BARSLAST(LD));T1:=BARSLAST(HD)<BARSLAST(LD) AND NOT(HD) ;T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);波峰:IF(T1,A,A),COLORFF00FF,POINTDOT;STICKLINE(T1,A,A,9,0),COLORFF00FF;波谷:IF(T2,B,B),COLOR80FF00,POINTDOT;STICKLINE(T2,B,B,9,0),COLOR80FF00;VAR3:=LLV(HIGH,240); VAR4:=100*(CLOSE-VAR3)/VAR3;VAR5:=(CLOSE-LLV(LOW,528))/(HHV(HIGH,528)-LLV(LOW,528))*10 0;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-R EF(CLOSE,1)),7,1)*100;VAR9:=SMA(MAX(CLOSE-REF(CLOSE,1),0),13,1)/SMA(ABS(CLOSE-R EF(CLOSE,1)),13,1)*100;VAR10:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0); VAR11:=ZIG(3,6)>REF(ZIG(3,6),1) ANDREF(ZIG(3,6),1)<=REF(ZIG(3,6),2) ANDREF(ZIG(3,6),2)<=REF(ZIG(3,6),3);VAR12:=ZIG(3,6)<REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)>=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);VAR13:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)<=REF(ZIG(3,22),3); VAR14:=ZIG(3,22)<REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)>=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)>=REF(ZIG(3,22),3); VAR15:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)<=REF(ZIG(3,51),3); VAR16:=ZIG(3,51)<REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)>=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)>=REF(ZIG(3,51),3); VAR17:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)<=REF(ZIG(3,72),3); VAR18:=ZIG(3,72)<REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)>=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3); VAR19:=EMA(CLOSE,2)-EMA(CLOSE,150);买1:=VAR10;买2:=(VAR11+VAR13+VAR15+VAR17);卖1:=(VAR12+VAR14+VAR16+VAR18);DRAWTEXT(买1>0 OR 买2>0,LOW*0.99,'买'),COLORRED;S:IF(卖1>0,HIGH*1.01,DRAWNULL),CROSSDOT,LINETHICK3,COLORGREE N;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));X1:=(C+L+H)/3;X2:=EMA(X1,6);X3:=EMA(X2,5);GR1:=BARSLAST(BETWEEN("BIAS.BIAS2"(6,13,24),0,5));GR3:=COUNT("BIAS.BIAS2"(6,13,24)>10 AND H=HHV(H,GR1),GR1); GR4:=H=HHV(H,GR1);GR5:="MACD.MACD"(9,17,8)<REF("MACD.MACD"(9,17,8),1);STICKLINE(CLOSE> REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORRED; STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,3,0 ),COLOR000055; STICKLINE(CLOSE>REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLOR000077;STICKLINE(CLOSE>REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLOR000099;STICKLINE(CLOSE>REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLOR0000BB;STICKLINE(CLOSE>REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLOR0000DD;STICKLINE(CLOSE>REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLOR0000FF;STICKLINE(CLOSE= REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORWHITE; STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,3,0 ),COLOR555555; STICKLINE(CLOSE=REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLOR777777;STICKLINE(CLOSE=REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLOR999999;STICKLINE(CLOSE=REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLORBBBBBB;STICKLINE(CLOSE=REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLORDDDDDD;*/趋势5:MA(CLOSE,5);CURRBARSCOUNT:=DATACOUNT - BARPOS;拐头卖10:MA(CLOSE,10);方向15:MA(CLOSE,15);中心线:(MA(C,30)+MA(C,72))/2,COLORGRAY,DOT;脱离价格1:中心线*1.2,COLORGRAY,DOT;脱离价格2:中心线*0.8,COLORGRAY,DOT;地心引力线:(MA(C,30)+MA(C,72))/2,COLORGRAY,DOT;地心引力区1:地心引力线*1.1,COLORGRAY,DOT;地心引力区2:地心引力线*0.9,COLORGRAY,DOT;DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);平空开多:=CROSS(MACD,0);平多开空:=CROSS(0,MACD);//BUYSHORT_BUY(平空开多,LOW);//SELL_SELLSHORT(平多开空,HIGH);//AUTOFILTER;N:=10;T1:=REFX1(HHVBARS(V,N),10000);T0:IF(CURRBARSCOUNT<=N+3,REFX1(IF(T1=0,C,REF(C,T1)),10000),NULL),COLORYELLOW,DOT; IF(CURRBARSCOUNT=T1+1,T0,NULL),CIRCLEDOT,COLORFF00FF;涨跌:=REF(C,1);涨停:=IF((C-涨跌)*100/涨跌>=(10-0.01*100/涨跌),1,0);STICKLINE1(涨停,OPEN,CLOSE,2,0),COLORMAGENTA;STICKLINE1(涨停,H,L,0,0),COLORMAGENTA;ZT:=C/REF(C,1)>1.0945 AND C=H;AA:=BACKSET(ZT AND CURRBARSCOUNT<60,0);AC:=REF(C,BARSLAST(AA));STICKLINE1(C,AC,AC,5,0),COLORMAGENTA;VAR4:=PEAKBARS(C,15,1,1)<10;VAR5:=IF(VAR4=1,2,0);顶:= IF(VAR5=2,2,0);中线卖出:=IF(顶>REF(顶,1),1,0);止损价:IF(中线卖出=1, C*0.9,0), POINTDOT,COLOR00FF00,LINETHICK5;STICKLINE1(止损价,C*0.9,C*0.9,200,1),COLORRED,COLORGREEN;MA5:=MA(C,5);角度: ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416,NODRAW;。
绝对精准波段指标文华财经指标公式源码期货软件指标
VAR1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);VAR2:=REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR3:=REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR4:=REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR5:=REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR6:=REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR7:=REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR8:=REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR9:=REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VARA:=REF(VAR9,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); STICKLINE(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,CLOSE,REF(CLOSE,1),3,1),COLORRED; 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);VAR10:=REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR11:=REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR12:=REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR13:=REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR14:=REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR15:=REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR16:=REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR17:=REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR18:=REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); STICKLINE(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 ORVAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,CLOSE,REF(CLOSE,1),3,0),COLORFFCC66; VAR19:=REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 ORVAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1) AND VAR1;STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),4,1),COLORYELLOW;VAR1A:=REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 ORVAR8 OR VAR9 OR VARA OR VARB OR VARC,1) AND VARD;STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),5,2),COLOR00FF00{98FD};STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),3,0),COLOR00C8FF;STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),2,0),COLOR10ECFF;STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),2,0),COLOR10FFFF;STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),3,0),COLOR00D900;STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),3,0),COLORBLUE;STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),0,0),COLOR090FF2;PMA:MA(C,5),COLORWHITE,LINETHICK2;IF(PMA>REF(PMA,1),PMA,NULL),COLORRED,LINETHICK2;IF(PMA<REF(PMA,1),PMA,NULL),COLORGREEN,LINETHICK2;X:=(3*C+L+O+H)/6;多空线:(20*X+19*REF(X,1)+18*REF(X,2)+17*REF(X,3)+16*REF(X,4)+15*REF(X,5)+14*REF(X,6) +13*REF(X,7)+12*REF(X,8)+11*REF(X,9)+10*REF(X,10)+9*REF(X,11)+8*REF(X,12)+7*REF(X,13)+6*REF(X,14)+5*REF(X,15)+4*REF(X,16)+3*REF(X,17)+2*REF(X,18)+REF(X,20))/210,COLORFF00FF,LINETHICK2;DD:=多空线<REF(多空线,1);IF(DD,多空线,NULL),COLOR00FFFF,LINETHICK2;A:=(PMA>多空线);IF(A,多空线,NULL),COLOR33FF33,POINTDOT,LINETHICK4;M4:EMA(C,55),LINETHICK2;M3:EMA(C,34),COLORBLUE,LINETHICK2;。
文华财经指标公式波段最准确的指标最准的实战指标顶底之王指标公式源码
文华财经指标公式波段最准确的指标最准的实战指标顶
底之王指标公式源码
一、KDJ指标
KDJ指标快速向下的时候,一般为股价接近底部的迹象,K下穿D或者J下穿K,应当注意把握好买点;而KDJ指标快速向上的时候,为股价接近顶部的迹象,K上穿D或者J上穿K,也应当注意把握好卖出机会。
KDJ的取值范围为0-100,默认情况下,K值大于80时,股价易于达到超买状态,K值小于20时,股价易于达到超卖状态;通常情况下,当K值低于D值时,股价反转可能性较大,当K线穿越D线时,可能会有较大反转走势,反之当K线与D线交叉时,前期走势继续发展的可能性较大。
KDJ指标的公式如下:
RSV=(C-L9)÷(H9-L9)×100
K=2÷3×前一日K值+1÷3×RSV
D=2÷3×前一日D值+1÷3×K
J=3×K-2×D
其中,9指的是一个计算周期,每次计算时都会使用这九个期间的K 值、D值和RSV值,而计算后K值、D值和J值也都是这九个期间的平均值而已。
二、RSI指标
RSI指标是相对强弱指标(Relative Strength Index),简称RSI,是通过比较一段时间内的平均收盘涨数和平均收盘跌数来分析市场买沽盘
的意愿和实力,从而作出未来市场的走势,RSI指标是一种量化的技术分析工具。
最准确的指标期货指标公式文华财经指标无未来函数金波段指标
最准确的指标期货指标公式文华财经指标无未来函数金
波段指标
最准确的期货指标应该是根据市场数据和技术指标计算得出的结果,能够反映出市场的趋势和变化。
以下是一些常见的准确期货指标及其计算公式。
1.RSI指标:相对强弱指数(RSI)是一种用于衡量价格上涨和下跌动能的指标。
它通过比较一段时间内的平均收盘价上涨和下跌的幅度来计算。
RSI的计算公式为:
RSI=100-(100/(1+RS))
其中,RS代表平均上涨(Average Gain)和平均下跌(Average Loss)之比。
2.MACD指标:移动平均线收敛/发散指标(MACD)是一种用于衡量价格趋势和动能的指标。
它通过计算两个移动平均线的差异来测量价格的加速和减速。
MACD的计算公式为:
MACD=快线EMA-慢线EMA
其中,快线EMA为较短周期的移动平均线,慢线EMA为较长周期的移动平均线。
3.KDJ指标:随机指标(KDJ)是一种用于衡量市场超买和超卖情况的指标。
它通过计算最高价和最低价之间的动量来确定价格的强弱。
KDJ 的计算公式为:
Rsv = (Cn - L9) / (H9 - L9) * 100
K=2/3*前一日K值+1/3*当日RSV值
D=2/3*前一日D值+1/3*当日K值
J=3*当日K值-2*当日D值
这些指标都是广泛应用于期货市场的常见指标,能够提供关于市场趋势和价格动能的信息。
然而,要注意的是,这些指标只是参考工具,不能单独依靠指标来进行交易决策,还需要结合其他市场数据和基本面因素进行综合分析。