螺纹期货做多做空指标公式

合集下载

期货指标公式文华财经指标真正好用的指标波峰顶底

期货指标公式文华财经指标真正好用的指标波峰顶底

CURRBARSCOUNT:=BARPOS;DA1:=IF(130>BARPOS,BARPOS,130);DA:=IF(CURRBARSCOUNT>DA1,0,DA1);HI:=REFX1(HHV(H,DA),10000);LO:=REFX1(LLV(L,DA),10000);C1001:=IF(CURRBARSCOUNT<=DA,C,NULL);GZ:=EXP(LN(HI/LO)/30);LH1:=SUM(IF(C1001>=(HI/GZ),V,0),DA);LH2:=SUM(IF(C1001>=(HI/POW(GZ,2)) AND C1001<(HI/GZ),V,0),DA);LH3:=SUM(IF(C1001>=(HI/POW(GZ,3)) AND C1001<(HI/POW(GZ,2)),V,0),DA); LH4:=SUM(IF(C1001>=(HI/POW(GZ,4)) AND C1001<(HI/POW(GZ,3)),V,0),DA); LH5:=SUM(IF(C1001>=(HI/POW(GZ,5)) AND C1001<(HI/POW(GZ,4)),V,0),DA); LH6:=SUM(IF(C1001>=(HI/POW(GZ,6)) AND C1001<(HI/POW(GZ,5)),V,0),DA); LH7:=SUM(IF(C1001>=(HI/POW(GZ,7)) AND C1001<(HI/POW(GZ,6)),V,0),DA); LH8:=SUM(IF(C1001>=(HI/POW(GZ,8)) AND C1001<(HI/POW(GZ,7)),V,0),DA); LH9:=SUM(IF(C1001>=(LO*GZ) AND C1001<LO*POW(GZ,2),V,0),DA);LH10:=SUM(IF(C1001>=LO AND C1001<LO*GZ,V,0),DA);L1001:=REFX1(HHV(LH1,DA),10000),NODRAW;L2001:=REFX1(HHV(LH2,DA),10000),NODRAW;L3001:=REFX1(HHV(LH3,DA),10000),NODRAW;L4001:=REFX1(HHV(LH4,DA),10000);L5001:=REFX1(HHV(LH5,DA),10000);L6001:=REFX1(HHV(LH6,DA),10000);L7:=REFX1(HHV(LH7,DA),10000);L8:=REFX1(HHV(LH8,DA),10000);L9:=REFX1(HHV(LH9,DA),10000);L10:=REFX1(HHV(LH10,DA),10000);SSS:=(L1001+L2001+L3001+L4001+L5001+L6001+L7+L8+L9+L10);V AR121:=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),C);V AR141:=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),C);V AR161:=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),C);V AR181:=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),C);卖:=(V AR121+VAR141+V AR161+V AR181),LINETHICK2;STICKLINE1(CEILING(DA*L2001/SSS,1)*3>=CURRBARSCOUNT AND BARSCOUNT(C)>100 ,HI/POW(GZ,1)*99/100,HI/POW(GZ,2),9,0),COLOR7C7C7A,LINETHI CK3;STICKLINE1(CEILING(DA*L3001/SSS,1)*3>=CURRBARSCOUNT AND BARSCOUNT(C)>100 ,HI/POW(GZ,2)*99/100,HI/POW(GZ,3),9,0),COLOR3C3C3A,LINETHI CK3;STICKLINE1(CEILING(DA*L4001/SSS,1)*3>=CURRBARSCOUNT AND BARSCOUNT(C)>100 ,HI/POW(GZ,3)*99/100,HI/POW(GZ,4),9,0),COLOR3C3C3A,LINETHI CK3;STICKLINE1(CEILING(DA*L5001/SSS,1)*3>=CURRBARSCOUNT AND BARSCOUNT(C)>100 ,HI/POW(GZ,4)*99/100,HI/POW(GZ,5),9,0),COLOR3C3C3A,LINETHI CK3;STICKLINE1(CEILING(DA*L6001/SSS,1)*3>=CURRBARSCOUNT AND BARSCOUNT(C)>100 ,HI/POW(GZ,5)*99/100,HI/POW(GZ,6),9,0),COLOR3C3C3A,LINETHI CK3;STICKLINE1(CEILING(DA*L7/SSS,1)*3>=CURRBARSCOUNT AND BARSCOUNT(C)>100 ,HI/POW(GZ,6)*99/100,HI/POW(GZ,7),9,0),COLOR3C3C3A,LINETHI CK3;STICKLINE1(CEILING(DA*L8/SSS,1)*3>=CURRBARSCOUNT AND BARSCOUNT(C)>100 ,LO*POW(GZ,2),LO*POW(GZ,3)*99/100,9,0),COLOR3C3C3A,LINET HICK3;STICKLINE1(CEILING(DA*L9/SSS,1)*3>=CURRBARSCOUNT AND BARSCOUNT(C)>100 ,LO*POW(GZ,1),LO*POW(GZ,2)*99/100,9,0),COLOR3C3C3A,LINET HICK3;STICKLINE1(CEILING(DA*L10/SSS,1)*3>=CURRBARSCOUNT AND BARSCOUNT(C)>100 ,LO,LO*POW(GZ,1)*99/100,9,0),COLOR3C3C3A,LINETHICK3;STICKLINE1(CEILING(DA*L1001/SSS,1)*3>=CURRBARSCOUNT AND BARSCOUNT(C)>100,HI*99/100,HI/GZ,9,0),COLOR3C3C3A,LINETHICK3;//DRAWKLINE1(HIGH,OPEN,LOW,CLOSE);/*上榜:=SIGNALS_USER(300, 0), NODRAW;{上榜金额>1,则表示上榜了,这个是上榜总金额}净买入:=SIGNALS_USER(299, 0), NODRAW;DRAWICON(上榜>=1 AND 净买入>=0 ,L*0.995,38);DRAWICON(上榜>=1 AND 净买入<0 ,L*0.995,39);NAME_299 := '↖龙'OUTTEXT_299:=V ARCAT(V ARCAT(NAME_299, ' '), V AR2STR(净买入, 0)), NODRAW; DRAWTEXT((上榜>=1) ,-LOW*0.01+LOW,OUTTEXT_299),COLORLIRED;*/N:=8;KK:=0;TYP := (HIGH + LOW + CLOSE)/3;CCI1:=(TYP-MA(TYP,6))/(0.015*A VEDEV(TYP,6));CCI2:=(TYP-MA(TYP,10))/(0.015*A VEDEV(TYP,10));CCI3:=(TYP-MA(TYP,20))/(0.015*A VEDEV(TYP,20));CCI4:=(TYP-MA(TYP,30))/(0.015*A VEDEV(TYP,30));CCI5:=(TYP-MA(TYP,60))/(0.015*A VEDEV(TYP,60));CCI:=CCI1+CCI2+CCI3+CCI4+CCI5;AAAB:=(3*C+H+L+O)/6;VV AR1:=(8*AAAB+7*REF(AAAB,1)+6*REF(AAAB,2)+5*REF(AAAB,3)+4*REF(AAAB,4)+ 3*REF(AAAB,5)+2*REF(AAAB,6)+REF(AAAB,8))/36;VV AR6:=(LLV(VV AR1,2)+LLV(VV AR1,4)+LLV(VV AR1,6))/3;短线:IF(KK=0, VV AR1, NULL),COLORWHITE;中线:IF(KK=0,VV AR6, NULL),COLORYELLOW;FILLRGN1(短线>中线,中线,短线),RGB(200,10,10);FILLRGN1(短线<=中线,中线,短线),RGB(200,10,10),RGB(10,200,10);下跌:IF(KK=0 AND VV AR1=VV AR6,VV AR6, NULL),COLORGREEN;中:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;上轨:IF(KK=1,中+3*STD(中,10),NULL),COLOR000088,LINETHICK1;IF(KK=1,2*MA(上轨,12)-MA(C,21),NULL),COLOR666666;N1:=10;N2:=10;DISP:=2;P1:=PEAK(1,1,1,1);P2:=PEAK(1,1,2,1);WP1:=PEAKBARS(1,1,1,1);WP2:=PEAKBARS(1,1,2,1);T1:=TROUGH(2,1,1,1);T2:=TROUGH(2,1,2,1);WT1:=TROUGHBARS(2,1,1,1);WT2:=TROUGHBARS(2,1,2,1);TJ1:=P1>T1 AND P2>T2 ;ZD:=MAX(T1,T2);ZG:=MIN(P1,P2);LL:=MIN(T1,T2);HH:=MAX(P1,P2);TJ2:=FILTER(ZG>ZD,2);TJ3:=ZG=REF(ZG,BARSLAST(TJ2)) OR ZD=REF(ZD,BARSLAST(TJ2));TJ4:=TJ1&&TJ2&&NOT(TJ3);TJ5:=BETWEEN(ZD,REF(ZD,REF(BARSLAST(TJ4),1)),REF(ZG,REF(BARSLAST(TJ4),1))); TJ6:=BETWEEN(ZG,REF(ZD,REF(BARSLAST(TJ4),1)),REF(ZG,REF(BARSLAST(TJ4),1))); TJ7:=ZG>REF(ZG,REF(BARSLAST(TJ4),1))&&ZD<REF(ZD,REF(BARSLAST(TJ4),1));TJ8:=TJ4&&NOT(TJ5 OR TJ6 OR TJ7);ZSD:=IF(TJ8,ZD,NULL);ZSG:=IF(TJ8,ZG,NULL);ZSH:=IF(TJ8,HH,NULL);ZSL:=IF(TJ8,LL,NULL);STICKLINE1(TJ8,ZSH,ZSL,0,-1),COLORMAGENTA;STICKLINE1(TJ8,ZSD,ZSG,0,1),COLORMAGENTA;DRAWTEXT(DISP=2,ZSH,'中枢'),COLORRED;POL YLINE(DISP=2,REF(ZSD,BARSLAST(TJ8)),COLORRED),CROSSDOT;POL YLINE(DISP=2,REF(ZSG,BARSLAST(TJ8)),COLORGREEN),CROSSDOT;POL YLINE(DISP=2,REF(ZSH,BARSLAST(TJ8)),COLORRED),POINTDOT;POL YLINE(DISP=2,REF(ZSL,BARSLAST(TJ8)),COLORGREEN),POINTDOT;POL YLINE(DISP=3,ZIGZAG(H,1,1),COLORBLUE);POL YLINE(DISP=3,ZIGZAG(L,1,1),COLORBLUE);DRAWKLINE1(HIGH,OPEN,LOW,CLOSE);FROMOPEN:=IF(HOUR<12,60*(HOUR-9)-30+MINUTE,120+60*(HOUR-13)+MINUTE);V2:=IF(CURRBARSCOUNT=1,VOL*240/FROMOPEN/REF(VOL,1)-1,VOL/REF(VOL,1)-1); //STICKLINE(V2>=1,O,C,1,0),COLORYELLOW;DRAWCOLORKLINE(C>=O&&V2>=1,COLORRED,0);DRAWCOLORKLINE(C<O&&V2>=1,COLORGREEN,0);DRAWCOLORKLINE(C=O&&V2>=1,COLORWHITE,0);TY:=C;//{收盘价}A1:=REF(TY,10)=HHV(TY,2*10+1);//{10日前收盘价等于21天内最高价}VB1:=FILTER(A1,10);//{当出现A1条件时,过滤10天后连续出现的信号}C1:=BACKSET(VB1,10+1);//{将当前位置到11天前的位置设为1}HD:=FILTER(C1,10);//{将当前位置到10天后的位置设为1}A2:=REF(TY,10)=LLV(TY,2*10+1);//{10天前的收盘价等于21天内最低价}VB2:=FILTER(A2,10);//{过滤10天内连续出现的信号}C2:=BACKSET(VB2,10+1);//{将当前位置到11天前的位置设为1}LD:=FILTER(C2,10);//{当出现C2后,10天后的数据不予记录}A:=REF(C,BARSLAST(HD));//{设值上次高点位置}B:=REF(C,BARSLAST(LD));//{设值上次低点位置}T11:=BARSLAST(HD)<BARSLAST(LD) AND NOT(HD); //{上升波段回调不创新低没新高}T21:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD); //{下降波段反弹不创新高没新低}波峰:IF(T11,A,A),COLORFF00FF,POINTDOT;//符合T1条件,高位线为紫色点状线}STICKLINE(T11,A,A,9,0),COLORFF00FF;//{高位画横线}波谷:IF(T21,B,B),COLOR80FF00,POINTDOT;//{符合T2条件,高位线为绿色点状线}STICKLINE1(T21,B,B,9,0),COLOR80FF00;。

期货最好用的指标公式文华财经指标公式多空操盘抄底逃顶

期货最好用的指标公式文华财经指标公式多空操盘抄底逃顶

N:=5;M:=13;上:EMA(C,3),COLORBLUE,LINETHICK1;中:EMA(C,6),COLORWHITE,LINETHICK1;下:EMA(中,6),COLOR00FF00,LINETHICK1;IF(上>中AND 上>REF(上,1), 上,NULL),LINETHICK2,COLORRED;IF(中>下AND 中>REF(中,1), 中,NULL),LINETHICK2,COLORRED;//DRAWBAND(上,RGB(255,255,0),中,RGB(256,200,0));FILLRGN(上>=中,上,中,RGB(255,255,0));FILLRGN(上<中,上,中,RGB(256,200,0));CAPITAL:=GETPRICE1('流通股本');QQ:= C<中;MM:=上>REF(上,1) AND REF(上,1)<REF(上,2) ;超买:MA(C,10)*IF(CAPITAL=0,1.04,1.1),POINTDOT,COLORGREEN,LINETHICK2;超卖:MA(C,10)*IF(CAPITAL=0,0.95,0.9),POINTDOT,COLORRED,LINETHICK2;获利盘%:WINNER(CLOSE)*100,NODRAW,COLORWHITE;趋势线:EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),42),POINTDOT,COLORFF00FF,LINETHICK4; V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);V2:=(1-7/100)*(DMA(CLOSE,V1));V3:=(1+7/100)*(DMA(CLOSE,V1));V5:=MA((LOW+HIGH+CLOSE)/3,5);MA1:=MA(CLOSE,5);MA2:=ATAN((MA1/REF(MA1,1)-1)*100)*180/3.1416;MA3:=IF(MA2>0,MA2,MA2);MA5:=MA(CLOSE,N),COLOR888899;MA13:=MA(CLOSE,M),COLORFF00F0,LINETHICK2;VAR1:=CLOSE=HHV(C,4) AND (REF(C,1)>=REF(C,2) OR REF(C,1)>=REF(C,3))OR REF(C,1)=HHV(C,4) AND CLOSE>=REF(C,2) OR REF(C,2)=HHV(C,4) ANDREF(C,3)=LLV(C,4) AND C>=REF(C,1) OR REF(C,3)=HHV(C,4) ANDC>=REF(C,1) AND C>=REF(C,2);//{收盘价=4日内收盘价的最高值AND 昨收>=2日前的收盘价}VAR2:=CLOSE=HHV(C,4) AND REF(C,1)=LLV(C,4);//{收盘价=4日内收盘价的最高值AND 昨收=4日内收盘价的最低值}VAR3:=CLOSE=LLV(C,4) AND (REF(C,1)<REF(C,2) OR REF(C,1)<REF(C,3)) ORREF(C,1)=LLV(C,4) AND C<REF(C,2) OR REF(C,2)=LLV(C,4) ANDREF(C,1)=HHV(C,4) AND C<REF(C,1) OR REF(C,3)=LLV(C,4) ANDC<REF(C,1) AND C<REF(C,2);//{收盘价=4日内收盘价的最低值AND (昨收<2日前的收盘价}VAR4:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) ANDREF(C,1)<=REF(C,3) AND REF(C,2)<REF(C,4) AND C>=REF(C,1);//{昨收=4日内收盘价的最低值AND 收盘价>=2日前的收盘价}VAR5:=REF(C,1)=HHV(C,4) AND C<REF(C,2) OR (REF(C,2)=HHV(C,4) ANDREF(C,1)>REF(C,3) OR REF(C,3)=HHV(C,4) AND REF(C,1)>REF(C,2)) ANDREF(C,2)>=REF(C,4) AND C<REF(C,1);//{昨收=4日内收盘价的最高值AND 收盘价<2日前的收盘价}VAR6:=V5>REF(V5,1) AND REF(V5,1)<REF(V5,2);//{今日V5向上形成拐点}VAR7:=LOW<HHV(V5,13) AND HIGH>HHV(V5,13) AND CLOSE>REF(C,1) AND CLOSE>OPEN; VAR8:=VAR7 AND COUNT(VAR6,2);VAR9:=100*EMA(EMA(C-REF(C,1),6),6)/EMA(EMA(ABS(C-REF(C,1)),6),6);VAR10:=EMA(MA(C,13),13);VAR11:=FILTER((LLV(VAR9,2)=LLV(VAR9,7) AND COUNT(VAR9<0,2) ANDCROSS(VAR9,MA(VAR9,2)))=1,5);VAR12:=FILTER((HHV(VAR9,2)=HHV(VAR9,7) AND COUNT(VAR9>50,2) ANDCROSS(MA(VAR9,2),VAR9))=1,1);VAR13:=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10;VAR14:=FILTER(((CROSS(VAR13,0) OR CROSS(C,VAR10)) AND VAR11)=1,3);VAR15:=MA(C,18)>=REF(MA(C,18),3) AND CROSS(C,MA(C,18));VAR16:=VAR8 AND NOT(REF(VAR8,1));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;金叉:=CROSS(J,D);死叉:=CROSS(D,J);买1:=(VAR14 OR VAR15) AND VAR11;买2:=(VAR14 OR VAR15) AND VAR4;买3:=(VAR14 OR VAR15) AND VAR2;买4:=(VAR2 AND VAR11) OR (VAR4 AND VAR11);买5:=(金叉AND VAR4) OR (金叉AND VAR2) OR (金叉AND VAR11);//{涨停}STICKLINE(CLOSE>REF(CLOSE,1)*1.0985 AND CLOSE=HIGH,CLOSE,OPEN,4,-1),COLOR00FFFF; //{跌停}STICKLINE(CLOSE<REF(CLOSE,1)*0.9015 AND CLOSE=LOW,CLOSE,OPEN,4,-1),COLORGREEN; //{蓝}STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,3.3,0),COLORFF6600;STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,2.4,0),COLORFF8800;STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,1.3,0),COLORFFAA00;STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,0.6,0),COLORFFCC00;//{红}STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3.3,0),COLOR000066;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.4,0),COLOR000099;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1.3,0),COLOR0000DD;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0.5,0),COLORCC66FF;//{绿}STICKLINE(VAR3,OPEN,(OPEN+CLOSE)/2,3.3,0),COLOR009900;STICKLINE(VAR3,OPEN,(OPEN+CLOSE)/2,2.4,0),COLOR00BB00;STICKLINE(VAR3,OPEN,(OPEN+CLOSE)/2,1.3,0),COLOR00DD00;STICKLINE(VAR3,OPEN,(OPEN+CLOSE)/2,0.5,0),COLOR00FF00;//{灰}STICKLINE(VAR4 AND MM,OPEN,(OPEN+CLOSE)/2,3.3,0),COLOR999999;STICKLINE(VAR4 AND MM,OPEN,(OPEN+CLOSE)/2,2.2,0),COLORBBBBBB;STICKLINE(VAR4 AND MM,OPEN,(OPEN+CLOSE)/2,1.3,0),COLORDDDDDD;STICKLINE(VAR4 AND MM,OPEN,(OPEN+CLOSE)/2,0.5,0),COLORFFFFFF;STICKLINE(金叉,OPEN,CLOSE,0.5,0),COLORYELLOW;STICKLINE(死叉,OPEN,CLOSE,0.5,0),COLOR000066;DRAWICON(VAR16,LOW-0.02,1);DRAWICON(买1 OR 买2 OR 买3 OR 买4 OR 买5 AND MM,LOW-0.05,1); DRAWICON(死叉OR CROSS(50,VAR9) AND QQ AND K>50,HIGH+0.01,2);X1:=(C+L+H)/3;BB5:=ATAN(EMA(X1,7)-REF(EMA(X1,7),1))*3.1416*10;EMA3:=EMA(C,3);DRAWTEXT(FILTER(BB5>1 AND EMA(X1,7)>REF(EMA(X1,7),1),10),LOW*0.99,'★∠45'),COLORFFFFFF;VAR81:=1;VAR82:=((((2*CLOSE)+HIGH)+LOW) / 4);低金叉进:=20,COLORYELLOW,LINETHICK2;高死叉出:=90,COLORGREEN,LINETHICK3;VAR84:=LLV(LOW,5);VAR85:=HHV(HIGH,4);C1:=(EMA((((VAR82-VAR84)/(VAR85-VAR84))*100),4)*VAR81),COLORFF00FF,LINETHICK2;C2:=(EMA(((0.667*REF(C1,1))+(0.333*C1)),2)*VAR81),COLORFFFFFF,LINETHICK2;条件:=CROSS(C1,C2) AND C1<40;条件0:=CROSS(C2,C1) AND C1>90;TJ1:=CROSS(C1,C2);TJ2:=CROSS(C2,C1);TJ3:=CROSS(C1,C2) AND REF(C1,1)<20;TJ4:=CROSS(C2,C1) AND REF(C1,1)>80;DRAWTEXT(条件0,H*1.02,'S'),COLORBLUE;DRAWTEXT(TJ3 AND MM,L*0.98,'底'),COLORFF00FF;DRAWTEXT(TJ4 AND QQ,H*1.02,' 逃跑'),COLORGREEN;DRAWTEXT(TJ4,H*1.02,'逃'),COLORGREEN;水平面:=EMA(CLOSE,89),COLOR3399FF;AAA:=(3*C+H+L+O)/6;短趋:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(A AA,6)+REF(AAA,8))/36;中趋:=(LLV(短趋,2)+LLV(短趋,4)+LLV(短趋,6))/3;TTJ1:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>短趋;立桩量:=FILTER(TTJ1,5);TTJ2:=IF(BARSLAST(立桩量)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(HIGH,3),1,0)));突破:=TTJ2=1;TTJ3:=IF(BARSLAST(立桩量)=1 AND CLOSE>REF(LOW,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(LOW,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(LOW,3),1,0)));三天法则:=TTJ3=1;成立:=三天法则AND 突破;条件成立:=FILTER(成立,3);DRAWTEXT(条件成立,L*0.93,'立桩量'),COLOR00FFFF;VAR90:=((((HHV((((EMA(CLOSE,12)-EMA(CLOSE,26))-(EMA((EMA(CLOSE,12)-EMA(CLOSE,26)),9)))*2),4)<0) AND ((((EMA(CLOSE,12)-EMA(CLOSE,26))-(EMA((EMA(CLOSE,12)-EMA(CLOSE,26)),9)))*2)>REF((((EMA(CLOSE,12)-EMA(CLOSE,26))-(EMA((EMA(CLOSE,12)-EMA(CLOSE,26)),9)))*2),1)))AND (REF((((EMA(CLOSE,12)-EMA(CLOSE,26))-(EMA((EMA(CLOSE,12)-EMA(CLOSE,26)),9)))*2),1)<REF((((EMA(CLOSE,12)-EMA(CLOSE,26))-(EMA((EMA(CLOSE,12)-EMA(CLOSE,26)),9)))*2),2))) AND (REF((((EMA(CLOSE,12)-EMA(CLOSE,26))-(EMA((EMA(CLOSE,12)-EMA(CLOSE,26)),9)))*2),2)<REF((((EMA(CLOSE,12)-EMA(CLOSE,26))-(EMA((EMA(CLOSE,12)-EMA(CLOSE,26)),9)))*2),3))); DRAWTEXT(VAR90 AND MM,L*0.98,'买'),COLORRED;DRAWTEXT(VAR90,L*0.98,'←短买'),COLORRED;DRAWTEXT(CROSS(MA(C,3),MA(C,9)) AND C>=REF(C,1) AND C>O,L*0.98,'追'),COLORMAGENTA; DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);DEA := EMA(DIFF,9);MACD:=2*(DIFF-DEA),COLORSTICK;LC := REF(CLOSE,1);RSI1:=SMA(MAX(CLOSE-LC,0),7,1)/SMA(ABS(CLOSE-LC),7,1)*100;RSI2:=SMA(MAX(CLOSE-LC,0),14,1)/SMA(ABS(CLOSE-LC),14,1)*100;DRAWTEXT(REF(C,BARSLAST(REF(CROSS(DIFF,DEA),1))+1)>C ANDREF(DIFF,BARSLAST(REF(CROSS(DIFF,DEA),1))+1)<DIFF AND CROSS(DIFF,DEA)>0,L-0.02,'★M'),COLORFF00FF;//{MACD底背离}DRAWTEXT(REF(C,BARSLAST(REF(CROSS(K,D),1))+1)>C ANDREF(K,BARSLAST(REF(CROSS(K,D),1))+1)<K ANDCROSS(K,D),L-0.10,'◎K'),COLORFF00FF;//{KDJ底背离}DRAWTEXT(REF(C,BARSLAST(REF(CROSS(RSI1,RSI2),1))+1)>C ANDREF(RSI1,BARSLAST(REF(CROSS(RSI1,RSI2),1))+1)<RSI1 AND CROSS(RSI1,RSI2)>0,L-0.18,'◆R'),COLORFF00FF;//{RSI底背离};DRAWTEXT(REF(C,BARSLAST(REF(CROSS(DEA,DIFF),1))+1)<CAND REF(DIFF,BARSLAST(REF(CROSS(DEA,DIFF),1))+1)>DIFF AND CROSS(DEA,DIFF)>0,H+0.16,'★M'),COLORGREEN;//{MACD顶背离};DRAWTEXT(REF(C,BARSLAST(REF(CROSS(D,K),1))+1)<CAND REF(K,BARSLAST(REF(CROSS(D,K),1))+1)>K AND CROSS(D,K)>0,H+0.08,'◎K'),COLORGREEN;//{KDJ顶背离}DRAWTEXT(REF(C,BARSLAST(REF(CROSS(RSI2,RSI1),1))+1)<C ANDREF(RSI1,BARSLAST(REF(CROSS(RSI2,RSI1),1))+1)>RSI1 AND CROSS(RSI2,RSI1)>0,H+0.04,'◆R'),COLORGREEN;//{RSI顶背离};AA05:=MA(C,5);AA30:=MA(C,30);MA05:=MA(C,5);MA10:=MA(C,13);MA30:=MA(C,34);BB05:=ATAN((MA05/REF(MA05,1)-1)*100)*180/3.1416;BB10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;BB30:=ATAN((MA30/REF(MA30,1)-1)*100)*180/3.1416;速度5:=SMA(EMA((MA05-REF(MA05,1))/REF(MA05,1),3)*100,3,1);加速度5:=EMA((速度5-REF(速度5,1)),3);五日乖离率:=(C-AA05)/AA05*100;三拾日乖离率:=(C-MA30)/MA30*100;MR:=COUNT(CROSS(五日乖离率,0),3)>=1 AND 三拾日乖离率>REF(三拾日乖离率,1) AND AA05>REF(AA05,1) AND (C/REF(C,1)-1)*100>5 AND REF(C,1)<AA30;买入:=FILTER(MR,10);DRAWTEXT(买入,LOW*0.98,'←买入'),COLORRED;加仓:=FILTER(COUNT(CROSS(BB05,30),5)>=1 AND MA05>REF(MA05,1) AND 三拾日乖离率>REF(三拾日乖离率,1) AND MA10>REF(MA10,1) AND 加速度5>REF(加速度5,1) AND 速度5>REF(速度5,1),10);DRAWTEXT(加仓,LOW*0.98,'←加仓'),COLORRED;。

多空短线高手指标公式

多空短线高手指标公式

多空短线高手指标公式
多空短线高手指标公式包括以下步骤:
1. 计算MID值:MID赋值=(3×收盘价+最低价+开盘价+最高价)÷6。

2. 计算多空线:多空线=(20×MID+19×昨日MID+18×2日前的
MID+17×3日前的MID+16×4日前的MID+15×5日前的MID+14×6日前的MID+13×7日前的MID+12×8日前的MID+11×9日前的
MID+10×10日前的MID+9×11日前的MID+8×12日前的MID+7×13日前的MID+6×14日前的MID+5×15日前的MID+4×16日前的
MID+3×17日前的MID+2×18日前的MID+20日前的MID)÷210。

3. 计算均线MADKX:均线MADKX=DKX的M日简单移动平均,参数M 一般设置为10。

4. 判断多空线指标的短线买入信号:当多空线在超卖区上穿其均线时为买入信号。

请注意,这些指标仅供参考,不构成任何保证或投资建议。

市场有风险,投资需谨慎。

如果您有任何投资问题,建议您咨询专业人士或寻求其他可靠的建议。

期货最好用的指标公式文华财经指标公式 精准抄底逃顶

期货最好用的指标公式文华财经指标公式 精准抄底逃顶

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

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

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

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

期货指标公式文华财经指标真正好用的指标强弱线顶底线

期货指标公式文华财经指标真正好用的指标强弱线顶底线

期货指标公式文华财经指标真正好用的指标强弱线顶底线期货指标是投资者在期货市场中用来分析和预测价格走势的工具。

这些指标可以根据市场行情提供有用的交易信号和分析数据。

在本文中,我们将介绍一些常用的期货指标,并解释其使用方法和公式。

一、强弱线指标(Force Index)强弱线指标是由亚历山大·艾尔德(Alexander Elder)开发的一种指标,用于衡量市场力量和趋势变化。

该指标通过计算当前价格与前一期价格的变化来衡量市场的力量。

公式如下:Fi = (Close - Close_n) * Volume其中,Fi代表强弱线指标值,Close代表当天的收盘价,Close_n代表前一期的收盘价,Volume代表成交量。

强弱线指标的使用方法是观察指标的变化趋势,当强弱线突破其平均线时,产生交易信号。

如果强弱线从下方突破平均线,表明市场处于上升趋势,可以考虑买入;相反,如果强弱线从上方突破平均线,表明市场处于下降趋势,可以考虑卖出。

二、顶底线指标(Top-Bottom Indicator)顶底线指标是一种用于判断价格走势的超买和超卖条件的指标。

该指标通过计算当前价格与最高价和最低价的比例来判断市场是否过度拉升或下跌。

公式如下:TB = (Close - Low) / (High - Low)其中,TB代表顶底线指标值,Close代表当天的收盘价,Low代表当天的最低价,High代表当天的最高价。

顶底线指标的使用方法是观察指标的数值。

当指标超过一定阈值,比如大于0.8,表明市场处于超买状态,可能会有回调或下跌的机会;相反,如果指标低于一定阈值,比如小于0.2,表明市场处于超卖状态,可能会有反弹或上涨的机会。

三、文华财经指标文华财经是一家提供金融数据和交易软件的公司,他们开发了一些专门用于期货交易的指标。

1.文华财经强弱指标(WRC)文华财经强弱指标是一种衡量市场强弱的指标,可以帮助投资者判断价格走势的力量和趋势。

期货指标附图弦外之音

期货指标附图弦外之音

期货指标附图弦外之音QW1:=(HIGH+LOW+CLOSE*2)/4;QW3:=EMA(QW1,10);QW4:=STD(QW1,10);QW5:=(QW1-QW3)*100/QW4;QW6:=EMA(QW5,5);RK7:=EMA(QW6,10);弦1:EMA(QW6,10)+100/2-5,LINETHICK1,COLOR00FFFF;弦2:EMA(弦1,4),LINETHICK1,COLOR0099FF;多线:=IFF(CROSS(弦1,弦2) AND 弦2<-10,30,0),LINETHICK1,COLORFF00FF;空线:=IFF(CROSS(弦2,90),90,120),COLOR0099FF,LINETHICK1;弦3:EMA(弦2,4),COLOR0044FF;弦4:EMA(弦3,4),COLOR0000FF;买弦3:=EMA(弦4,4);买弦4:=EMA(买弦3,4);STICKLINE(弦1<REF(弦1,1),弦1,MA(弦1,3),6,0 ),COLOR00EE00;STICKLINE(弦1<REF(弦1,1),弦1,MA(弦1,3),2,0 ),COLOR00FF00;STICKLINE(弦1> REF(弦1,1),弦1,EMA(弦1,3),6,0) ,COLOR0099FF;STICKLINE(弦1> REF(弦1,1),弦1,EMA(弦1,3),4,0) ,COLOR00AAFF;STICKLINE(弦1> REF(弦1,1),弦1,EMA(弦1,3),2,0) ,COLOR00BBFF;默认显示:副图适用周期:全周期推荐周期:5-30分钟使用说明:《弦外之音》是一款信号灵敏的短线T+0操盘指标,通过平滑的四弦指标线,有效过滤掉不必要的交易毛躁杂音,让短线趋势更加稳定和顺畅更。

使用方法:1.绿柱变黄试探做多,四弦多头大胆做多;2.黄柱变绿试探做空,四弦空头大胆做空;。

文华财经期货软件指标公式源码准确率最高的期货指标 螺纹钢期货指标公式

文华财经期货软件指标公式源码准确率最高的期货指标 螺纹钢期货指标公式

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

准确率100的技术指标文华财经指标公式期货软件螺纹铁矿恒指买卖点

准确率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;。

螺纹期货成本计算公式

螺纹期货成本计算公式

螺纹期货成本计算公式螺纹期货是指以螺纹钢为标的物的期货交易。

螺纹钢是一种常见的建筑材料,广泛应用于建筑、桥梁、公路、铁路等领域。

螺纹期货的交易活动对于市场参与者来说具有重要的意义,因此了解螺纹期货的成本计算公式是非常重要的。

螺纹期货成本计算公式可以帮助投资者更好地理解螺纹期货交易的成本结构,从而更好地制定交易策略和风险管理策略。

下面我们将介绍螺纹期货成本计算公式的具体内容。

螺纹期货成本计算公式主要包括两个部分,分别是持仓成本和交易成本。

1. 持仓成本。

螺纹期货持仓成本是指投资者在持有螺纹期货合约期间所需要支付的成本。

持仓成本主要包括两个方面的费用,分别是保证金和持仓费用。

保证金是投资者在交易螺纹期货时需要缴纳的保证金,用于覆盖潜在的亏损。

保证金的计算公式为,保证金=合约价值×保证金比例。

其中,合约价值是指螺纹期货合约的价值,保证金比例是由交易所规定的,一般为5%-10%。

持仓费用是指投资者在持有螺纹期货合约期间需要支付的利息和存储费用。

持仓费用的计算公式为,持仓费用=合约价值×持仓天数×持仓费率。

其中,合约价值是指螺纹期货合约的价值,持仓天数是指投资者持有螺纹期货合约的天数,持仓费率是由交易所规定的,一般为年化利率。

2. 交易成本。

螺纹期货交易成本是指投资者在进行螺纹期货交易时需要支付的各种费用。

交易成本主要包括手续费和滑点成本。

手续费是指投资者在进行螺纹期货交易时需要支付给期货公司的手续费。

手续费的计算公式为,手续费=成交金额×手续费率。

其中,成交金额是指投资者进行螺纹期货交易的金额,手续费率是由期货公司规定的,一般为千分之几。

滑点成本是指投资者在进行螺纹期货交易时由于市场价格波动而产生的成本。

滑点成本的计算公式为,滑点成本=滑点点数×合约乘数。

其中,滑点点数是指市场价格波动的点数,合约乘数是由交易所规定的,一般为10元/点。

综上所述,螺纹期货成本计算公式包括持仓成本和交易成本两部分。

主力资金多空线指标公式

主力资金多空线指标公式

主力资金多空线指标公式成交量能=当日成交量/N日平均成交量其中,N代表时间周期。

根据不同的投资者需求和市场情况,可以选择不同的时间周期。

接下来,计算每日的多空资金净流入。

多空资金净流入是指多方(买方)和空方(卖方)的资金流入与流出之差。

多空资金净流入=多方资金流入-空方资金流入多方资金流入是指多方的资金流入量,它等于当日成交量乘以当日价格上涨的概率。

空方资金流入是指空方的资金流入量,它等于当日成交量乘以当日价格下跌的概率。

然后,计算每日的多空线指标。

多空线可以分为多线和空线两条线。

多线是当多方资金净流入大于空方资金净流入时的资金线。

空线是当空方资金净流入大于多方资金净流入时的资金线。

多空线指标=多线-空线最后,根据多空线的数值来判断市场的多空情绪和资金的流动方向。

当多空线大于0时,表示多方占据优势,市场情绪偏多,资金正在流入市场。

当多空线小于0时,表示空方占据优势,市场情绪偏空,资金正在流出市场。

同时,还可以根据多空线的变化趋势来判断市场的走势。

如果多空线持续上升,说明多方力量逐渐增强,市场有望上涨;如果多空线持续下降,说明空方力量逐渐增强,市场可能下跌。

需要注意的是,主力资金多空线指标并不能完全预测市场的涨跌,它只是一种参考工具。

投资者在使用这个指标时,还需要考虑其他因素,如技术分析指标、基本面分析等,综合判断市场的走势。

总结起来,主力资金多空线指标是通过计算成交量和多空资金净流入来判断市场的多空情绪和资金的流动方向。

它可以作为投资者判断市场走势的参考工具,但不能完全预测市场的涨跌。

投资者在使用这个指标时,需要综合考虑其他因素,做出科学的投资决策。

期货趋势追踪指标分享

期货趋势追踪指标分享

期货趋势追踪指标分享1、均线变色指标(P1,1,200,10):均线变红做多,变绿做空,适合做长期趋势单用。

MAP1:MA(C,P1),COLOR00FF00,LINETHICK4;PARTLINE(MAP1>REF(MAP1,1),MAP1),COLORRED,LINETHICK4;PARTLINE(MAP1<ref(map1,1),map1),color008800,linethick4; < p="">2、ZIG顶底点笑脸指标(P11,20,5):带有未来函数,不能作为入场依据,但是能提示可能会出现转折点,所以可以作为离场信号,如能和多空线、均线等其他趋势指标发生共振,则可以据此入场。

DRAWICON(CROSS(ZIG(3,P1),REF(ZIG(3,P1),1)),LOW*0.98,1);DRAWICON(CROSS(REF(ZIG(3,P1),1),ZIG(3,P1)),HIGH*1.02,2);3、开空开多指标(N,0,1000,20):趋势追踪指标,用于做长期趋势,根据信号提示进出场即可,若遇到盘整行情,可能会连续止损。

HH:=HHV(HIGH,N);LL:=LLV(LOW,N);HH1:=BARSLAST((HH>REF(HH,1)));LL1:=BARSLAST((LL<ref(ll,1)));< p="">A:=IF((HH1LL1),-1,0));AA:IF(A>=0,LL,HH),COLORYELLOW;STICKLINE(HH1<=LL1,O,C,4,1),COLORRED;STICKLINE(HH1<=LL1,C,H,0.1,0),COLORRED;STICKLINE(HH1<=LL1,L,O,0.1,0),COLORRED;STICKLINE(HH1>LL1,O,C,4,0),COLORCYAN;STICKLINE(HH1>LL1,C,H,0.1,1),COLORCYAN;STICKLINE(HH1>LL1,L,O,0.1,1),COLORCYAN;DRAWTEXT(CROSS(HH1,LL1),HH,'开空');DRAWTEXT(CROSS(LL1,HH1),LL,'开多');4、红线多绿空指标:趋势追踪指标,滞后性比较强。

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

螺纹期货做多做空指标公式
螺纹期货一般我们都是做短线,在这里有一个趋势共振方法,就是60分钟、30分钟和15分钟共振方法。

先看60分钟如果是做多就是上涨趋势做多单,之后在30分钟和15分钟下单。

30分钟提示做空不操作,因为在60分钟是做多提示,那么我们在30分钟等待做空提示出现之后开始操作多单。

做完单之后看15分钟如果提示做空就要除掉这个单子,这样基本上都能获利,不过前提一定要记住不要做逆势单子,这个已经验证很多次了,只要按照这个要求来操作基本上都能赚。

螺纹期货做多做空指标公式及使用方法
VAR1:=((CLOSE - LLV(LOW,15))/(HHV(HIGH,15) - LLV(LOW,15)))*(100); VAR2:=REVERSE(VAR1);
VAR3:=SMA(VAR1,5,1);
K:SMA(VAR3,3,1);
D:SMA(K,3,1);
DRAWTEXT(CROSS(K,D) AND MA(CLOSE,5)<CLOSE,D,'做多'),COLORRED;。

相关文档
最新文档