准确率100的技术指标文华财经指标公式期货软件顶底之王指标

合集下载

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

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

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

文华财经指标公式波段最准确的指标最准的实战指标顶底之王指标公式源码

文华财经指标公式波段最准确的指标最准的实战指标顶底之王指标公式源码

/* VAR1:=1;VAR2:=((((2*CLOSE)+HIGH)+LOW) / 4);低位金叉跟进:20;高位死叉小心:90,COLORFFFF00;VAR4:=LLV(LOW,5);VAR5:=HHV(HIGH,4);C1:(EMA((((VAR2-VAR4)/(VAR5-VAR4))*100),4)*VAR1),COLORFF00FF; C2:(EMA(((0.667*REF(C1,1))+(0.333*C1)),2)*VAR1),COLORFFFFFF; 条件:=CROSS(C1,C2) AND C1<40;条件0:=CROSS(C2,C1) AND C1>90;TJ1:=CROSS(C1,C2);TJ2:=CROSS(C2,C1);(MA(C,9),MA(C,9),DRAWNULL),COLORMAGENTA,LINETHICK2;IF(MA(C,23.5),MA(C,23.5),DRAWNULL),COLORWHITE; DRAWKLINE(HIGH,OPEN,LOW,CLOSE);MA5:=MA(C,5);MA10:=MA(C,10);MA30:=MA(C,30);FA:=BARSLAST(CROSS(MA10,MA5)) AND CROSS(MA5,MA10);FB:=FA AND MA5>MA30 AND MA10>MA30 AND MA10>REF(MA10,1); DRAWTEXT(FB,L-0.58,'★红牛'),COLORRED;V1:=EMA(CLOSE,5);{ M}V2:=EMA(EMA(CLOSE,90)*1.01,10);DRAWTEXT(CROSS(V1,V2),V1+0.05,'牛起步'),COLOR00FF00;VAR1:=LLV(LOW,21);VAR2:=HHV(HIGH,21);AK1:=EMA((((CLOSE - VAR1) / (VAR2 - VAR1)) * 100),5);AK:=EMA((((CLOSE - VAR1) / (VAR2 - VAR1)) * 50),13);AB:=CROSS(AK1,AK);DRAWTEXT((AB = 1),(LOW * 0.99),'○牛窝'),COLORYELLOW;AA1:=AMOUNT/V;BB1:=L<AA1*0.9;CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;DD1:=L<MA(C,5)*0.921;EE1:=V<MA(V,5)*1.5;老鼠仓:=BB1 AND CC1 AND DD1 AND EE1,LINETHICK0,COLOR0099FF;DRAWTEXT(老鼠仓,L*0.99,'老鼠仓'),COLOR0099FF;VAR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0);VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (VAR3AA>0),91,0);DRAWTEXT(FILTER((VAR4AA>90),45),(LOW)*(0.93),'★大胆搏 '),COLOR00FFFF; DRAWTEXT(FILTER((VAR4AA>90),35),(LOW)*(0.99000001),'★加仓'),COLOR00FFFF;A1AA:=9;TJ3:=CROSS(C1,C2) AND REF(C1,1)<20;TJ4:=CROSS(C2,C1) AND REF(C1,1)>80;DRAWTEXT(FILTER((REF(条件,1) AND (REF(LOW,1)>LOW OR TJ2)) OR (REF(条件,2) AND (REF(LOW,2)>LLV(LOW,3) OR TJ2))OR (REF(条件,3) AND (REF(LOW,3)>LLV(LOW,4) OR TJ2)),4),50,'止'),COLORGREEN; DRAWTEXT(FILTER((REF(条件,1) AND (REF(LOW,1)>LOW OR TJ2)) OR (REF(条件,2) AND (REF(LOW,2)>LLV(LOW,3) OR TJ2))OR (REF(条件,3) AND (REF(LOW,3)>LLV(LOW,4) OR TJ2)),4),45,'B'),COLORGREEN; DRAWTEXT(条件,20,'买'),COLORWHITE;DRAWTEXT(条件0,85,'卖'),COLORYELLOW;DRAWTEXT(CROSS(C1,75),70,'危险区'),COLORBLUE;DRAWTEXT(TJ3,65,'安'),COLORRED;DRAWTEXT(TJ3,56,'全'),COLORRED;DRAWTEXT(TJ3,47,'买'),COLORRED;DRAWTEXT(TJ3,38,'点'),COLORRED;DRAWTEXT(TJ4,85,'逃顶'),COLORYELLOW;*/量:V,VOLSTICK;PJJ:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4),0.9);JJ:=REF(EMA(PJJ,3),1);QJJ:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));XVL:=(IF((CLOSE > OPEN),(QJJ * (HIGH - LOW)),IF((CLOSE < OPEN),(QJJ * ((HIGH - OPEN) + (CLOSE - LOW))),(VOL / 2))) + IF((CLOSE > OPEN),(0 - (QJJ * ((HIGH - CLOSE) + (OPEN - LOW)))),IF((CLOSE < OPEN),(0 - (QJJ * (HIGH - LOW))),(0 - (VOL / 2)))));ZLL:=(VOL / GETPRICE1('流通股本')/100);HSL1:=IF((ZLL > 10),10,ZLL);HSL:=((XVL / 20) / 1.15);进攻流量:=(((HSL * 0.55) + (REF(HSL,1) * 0.33)) + (REF(HSL,2) * 0.22));GJJ:=EMA(进攻流量,8);LLJX:=EMA(进攻流量,3);动态天量:=REFX1(IF(V=HHV(V,20),V,REF(V,BARSLAST(V=HHV(V,20)))),10000),COLOR00FF00,POINTDOT; STICKLINE1(((HSL * 0.4) >= 0),动态天量+((HSL * 0.4) +LLJX)*20,动态天量,3,0),COLORYELLOW; STICKLINE1(((HSL * 0.4) < 0),动态天量+((HSL * 0.4) +LLJX)*20,动态天量,3,0),COLOR00FF00;资金流入:=IF((HSL*0.4+LLJX)>0,(HSL*0.4+LLJX),NULL),COLORRED;资金流出:=IF((HSL*0.4+LLJX)<0,(HSL*0.4+LLJX),NULL),COLOR00FF00;资金收支:=(HSL*0.4+LLJX),NODRAW;万元:=AVPRICE*V/10000,COLORFF00FF;资金净收支:IF((HSL*0.4+LLJX)>0,资金流入,资金流出),COLORWHITE,POINTDOT;收支比例%:IF((HSL*0.4+LLJX)>0,资金流入/万元*100,资金流出/万元*100),COLORYELLOW;连红天1:=BARSLASTCOUNT(资金净收支>0),COLORA20FFD,NODRAW;连红天2:=IF(连红天1=0,REF(连红天1,1),连红天1),COLORA20FFD,NODRAW;连红天3:=IF(连红天2=0,REF(连红天1,2),连红天2),COLORA20FFD,NODRAW;连红天4:=IF(连红天3=0,REF(连红天1,3),连红天3),COLORA20FFD,NODRAW;近期连红天:IF(连红天4=0,REF(连红天1,4),连红天4),COLORYELLOW,NODRAW;三日资金:SUM(资金收支,3),COLORWHITE,NODRAW;五日资金:SUM(资金收支,5),COLORFF00FF,NODRAW;十日资金:SUM(资金收支,10),COLOR0000FF,NODRAW;八日资金:SUM(资金收支,8),COLOR0000FF,NODRAW;资金流量:=LLJX,COLOR0000FF;STICKLINE1((资金流量> 0),动态天量+资金流量*20,动态天量,3,0),COLOR0000FF; STICKLINE1((资金流量< 0),动态天量+资金流量*20,动态天量,3,0),COLOR008000;。

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

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

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

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

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

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

文华财经指标公式源码期货软件指标公式 顶底主力散户机构

文华财经指标公式源码期货软件指标公式 顶底主力散户机构

量价:=(VOL/CLOSE)/3;A2:=SUM((IF(((量价>0.20) AND (CLOSE>(REF(CLOSE,1)))),量价,0)),0);A3:=SUM((IF(((量价>0.20) AND (CLOSE<(REF(CLOSE,1)))),量价,0)),0);A6:=A2+A3;DD1:=1;比:=A2/A3;AMOUNT:=AVPRICE*V;DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);DEA:=EMA(DIFF,9);DRAWTEXT(比>2&&ISLASTBAR,H,'涨停板'),COLORRED;DRAWTEXT(ISLASTBAR,H,'买= '),COLORRED,ALIGN2;DRAWTEXT(ISLASTBAR,L,'卖= '),COLORRED,VALIGN0,ALIGN2;DRAWTEXT(ISLASTBAR,C,'差= '),COLORRED,ALIGN2;DRAWNUMBER1(ISLASTBAR,H,(100*A2)/A6,0),COLORRED,ALIGN0;DRAWNUMBER1(ISLASTBAR,L,(100*A3)/A6,0),COLORRED,VALIGN0,ALIGN0; DRAWNUMBER1(ISLASTBAR,C,(100*(A2-A3))/A6,0),COLORRED,ALIGN0;中期线:=EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4)+100; DRAWTEXT(比<1.1,(GETPRICE('HIGH')+GETPRICE('LOW'))/2,'○'),COLORGREEN;DRAWTEXT(比>1.5,(GETPRICE('HIGH')+GETPRICE('LOW'))/2,'○'),COLORCYAN;DRAWTEXT(比>2,(GETPRICE('HIGH')+GETPRICE('LOW'))/2,'○'),COLORMAGENTA; DRAWTEXT(比>2.5,(GETPRICE('HIGH')+GETPRICE('LOW'))/2,'○'),COLORRED;DRAWTEXT((比>1.1 AND 中期线<5),(GETPRICE('HIGH')+GETPRICE('LOW'))/2,'●'),COLORWHITE; DRAWTEXT((比<1.1 AND 中期线>98.0),(GETPRICE('HIGH')+GETPRICE('LOW'))/2,'●'),COLORWHITE;DRAWTEXT((比>1.1 AND 中期线<5),C,'--机会'),COLORYELLOW;DRAWTEXT((比<1.1 AND 中期线>98.0),C,'--风险'),COLORYELLOW;H1:=MAX(GETPRICE('YCLOSE'),GETPRICE('HIGH'));L1:=MIN(GETPRICE('YCLOSE'),GETPRICE('LOW'));P1:=H1-L1;阻力:=L1+P1*7/8,COLORGREEN;支撑:=L1+P1*0.5/8,COLORMAGENTA;DRAWTEXT(LONGCROSS(支撑,C,2),C,'--买入'),COLORFF00FF; DRAWTEXT(LONGCROSS(C,阻力,2),C,'--出货'),COLOR70DB93;LC:=REF(CLOSE,1);WRSI:=SMA(MAX(CLOSE-LC,0),9,1)/SMA(ABS(CLOSE-LC),9,1)*100; DRAWICON(CROSS(20,WRSI),C,1);DRAWICON(CROSS(WRSI,80),C,2);均价:=SUM(C*V,240)/SUM(V,240),COLORYELLOW,LINETHICK1;TT:=BARSCOUNT(C);均:=MA(C,TT);上均线:=均+2*STD(C,3);下均线:=均-2*STD(C,3);时长:=TIME>93000;涨幅:=C/REF(C,1)>1.02;跌幅:=C/REF(C,1)<0.98;横盘:=((HHV(C,TT)-LLV(C,TT))/C)<0.05;YY:=SMA(VOL,30,1);放量:=(YY-LLV(LLV(YY,1),30))/(HHV(HHV(YY,1),30)-LLV(LLV(YY,1),30))>0.95;涨跌幅:=涨幅OR 跌幅;横涨1:=涨跌幅=0 AND 横盘AND 放量AND CROSS(均价,均); DRAWTEXT(FILTER(横涨1,10),C,'突'),COLORYELLOW;DRAWICON(FILTER(横涨1,10),均价,1);IF(DEA<0,C,NULL),COLORYELLOW ,LINETHICK2;XX:=SUM(AMOUNT,BARSCOUNT(CLOSE))/SUM(V*100,BARSCOUNT(CLOSE)); 主力:=EMA(CLOSE/XX,20);大户:=EMA(CLOSE/XX,60);散户:=EMA(CLOSE/XX,120);底:=1;1.02,NODRAW;高:=1.03;AA:=主力>大户AND 主力>1.003 AND 大户>散户AND C>EMA(C,20) AND EMA(C,10)>EMA(C,20) AND EMA(C,20)>EMA(C,60);DRAWICON(主力>大户AND 大户>散户AND C>EMA(C,20) AND EMA(C,10)>EMA(C,20) AND EMA(C,20)>EMA(C,60) AND 主力=HHV(主力,30) AND CROSS(主力,1.003),C,38); DRAWTEXT(主力>大户AND 大户>散户AND C>EMA(C,20) AND EMA(C,10)>EMA(C,20) AND EMA(C,20)>EMA(C,60) AND 主力=HHV(主力,30) AND CROSS(主力,1.003),C*0.999,'-主力'),COLORYELLOW;DRAWTEXT(CROSS(主力,1.02),C*0.999,'--拉升'),COLORCYAN;DRAWTEXT(CROSS(主力,1.04),C*0.999,'--冲涨停'),COLORMAGENTA;DRAWTEXT(CROSS(散户,主力),C*0.9995,'--小心'),COLORGREEN;DRAWTEXT(CROSS(散户,大户),C*0.9995,'--走弱'),COLORGREEN;。

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

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

VAR1:=(CLOSE+HIGH+LOW+OPEN)/4;CAPITAL:=GETPRICE1('流通股本');VAR2:=SUMBARS(VOL,CAPITAL);VAR3:=HHV(VAR1,VAR2);VAR4:=LLV(VAR1,VAR2);VAR5:=(2*VAR1-VAR4-REF(VAR4,1))/(VAR3-VAR4);VAR6:=(VAR1-VAR4)/(VAR3-VAR4);VAR7:=IF(VAR1<=VAR4,VAR5*60,VAR6*60);VAR8:=600*(EMA(CLOSE,3)-EMA(LOW,30))/EMA(LOW,30);VAR9:=EMA(VAR8,7);VARA:=(WINNER(120*CLOSE/100)-WINNER(100*CLOSE/100))*100;VARB:=(-100)*(WINNER(120*CLOSE/100)-WINNER(100*CLOSE/100))+5;波段买入:= IF(VARA+VARB<7 AND CROSS(VAR8,VAR9) AND VAR9<-18 AND VAR9<VARB,60,50),COLORYELLOW;//DRAWICON(波段买入=60,70,1),COLORRED;VARC:=HHV(HIGH,9)-LLV(LOW,9);VARD:=HHV(HIGH,9)-CLOSE;VARE:=CLOSE-LLV(LOW,9);VARF:=VARD/VARC*100-70;VAR10:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;VAR11:=(2*CLOSE+HIGH+LOW)/4;VAR12:=SMA(VARE/VARC*100,3,1);VAR13:=LLV(LOW,34);VAR14:=SMA(VAR12,3,1)-SMA(VARF,9,1);VAR15:=IF(VAR14>100,VAR14-100,0);VAR16:=HHV(HIGH,34);VAR17:=EMA((VAR11-VAR13)/(VAR16-VAR13)*100,8);巫修全制:= VAR17,COLORYELLOW ;VAR18:=EMA(VAR17,5);//STICKLINE1(VAR17>0 AND VAR17-VAR18>=0,79,80,6,0),COLORRED ;//STICKLINE1(VAR17>0 AND VAR17-VAR18<0,79,80,6,1),COLOR00FF00 ;//STICKLINE1(VAR17>0 AND VAR17-VAR18>=0,19,20,6,0),COLORRED;//STICKLINE1(VAR17>0 AND VAR17-VAR18<0,19,20,6,1),COLOR00FF00 ;STICKLINE1(VAR17-VAR18>0,VAR17,VAR18,8,1),COLORRED ;STICKLINE1(VAR17-VAR18<0,VAR17,VAR18,8,1),COLOR00FF00 ;VAR22:=REF(LOW,1);VAR23:=SMA(ABS(LOW-VAR22),3,1)/SMA(MAX(LOW-VAR22,0),3,1)*100;VAR24:=EMA(IF(CLOSE*1.3,VAR23*10,VAR23/10),3);VAR25:=LLV(LOW,30);VAR26:=HHV(VAR24,30);VAR27:=IF(MA(CLOSE,58),1,0);VAR28:=EMA(IF(LOW<=VAR25,(VAR24+VAR26*2)/2,0),3)/618*VAR27;VAR29:=IF(VAR28>100,100,VAR28);STICKLINE1(VAR29>-150,0,VAR29,3,0),COLORFF00FF;底部吸筹指标:= (CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100, COLOR00FF00;STICKLINE1(CROSS(底部吸筹指标,-24),100,0,6,0),COLORFFFFFF;先知:= (CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100,COLORFF00FF;可能放量拉升:= IF(CROSS(底部吸筹指标,-24),1,0),COLORFFFFFF;VARK1:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;VARK2:=REVERSE(VARK1);VARK3:=SMA(VARK1,3,1);波段王:=SMA(VARK3,3,1),COLORRED,LINETHICK2;波段鬼:=SMA(波段王,2.5,1),COLORYELLOW,LINETHICK2;趋势线:= 3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LO W,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),COLORFF6666,LINETHICK2;卖:=IF((CROSS(波段鬼,波段王) OR CROSS(波段鬼,趋势线) OR CROSS(波段王,趋势线) ) AND 波段鬼>65,90,0),STICK,COLORFFFF00 ,LINETHICK3;RSV9:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K1:=SMA(RSV9,3,1);DK1:=K1-REF(K1,1),COLORSTICK;出手就赢:=IF(DK1>7 AND REF(DK1,1)<0 AND (DK1-REF(DK1,1))>9,50,0),STICK,COLORYELLOW;//DRAWICON(出手就赢>0,50 ,1);买点准备:=IF(趋势线<=10,0,10), COLORFF9933,LINETHICK3;STICKLINE1(CROSS(趋势线,10),0,73,6,0),COLOR3366FF;DRAWTEXT(IF(CROSS(趋势线,10),100,0),68,'抄底'),COLORWHITE ;//DRAWTEXT(IF(CROSS(10,趋势线),1,0), 10,'$备钱'),COLOR33FFCC;//{目前位置:对当前股票所处的技术位置进行评价,可对是否介入作出辅助判断} RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;DRAWTEXT(REF(J,1)<0 AND J>0,50,'考虑'),COLORRED ;//STICKLINE1(REF(J,1)<0 AND J>0,60,0,2,0),COLOR0000FF;目前位置:=K;技术低位:20;技术中位:50,POINTDOT;技术高位:80;AAA:=(3*C+H+L+O)/6;VAR1X:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)+4*REF(AAA,4)+3*REF(AAA,5)+2*RE F(AAA,6)+REF(AAA,8))/36,LINETHICK2,COLORRED;VAR2X:=(HHV(VAR1X,2)+HHV(VAR1X,4)+HHV(VAR1X,8))/3;VAR3X:=(LLV(VAR1X,2)+LLV(VAR1X,4)+LLV(VAR1X,8))/3;VAR4X:=(HHV(VAR2X,2)+HHV(VAR2X,4)+HHV(VAR2X,8))/3;VAR5X:=(LLV(VAR3X,2)+LLV(VAR3X,4)+LLV(VAR3X,8))/3,COLORRED;VAR6X:=(LLV(VAR1X,2)+LLV(VAR1X,4)+LLV(VAR1X,8))/3;DRAWICON(REF(VAR5X,1)=REF(VAR1X,1) AND VAR5X<VAR1X,VAR17,'ICO1'),COLORRED; DRAWICON(REF(VAR4X,1)=REF(VAR1X,1) AND VAR4X>VAR1X,VAR17,'ICO2'),COLORGREEN;。

超级准的顶底指标文华财经指标公式源码期货软件指标

超级准的顶底指标文华财经指标公式源码期货软件指标

N1:=10;MA3:MA(CLOSE,3),COLORWHITE;//不新高破此线短逃/}操作:=MA(C,5);不高破线:HHV(操作,13),LINETHICK1,DOT;//短线趋势线}M5:MA(C,5),COLORYELLOW,LINETHICK2;IF(M5>REF(M5,1),M5,NULL),COLORRED,LINETHICK2;⒑日涨跌%:(C-REF(CLOSE,10))/REF(CLOSE,10)*100,COLORGREEN,NODRAW;短期压力:HHV(H,20),COLORRED,NODRAW;短期支撑:LLV(L,20),COLORYELLOW,NODRAW;//周均线显示}WC:=VALUEWHEN(WEEKDAY<REF(WEEKDAY,1),REF(C,1)),NODRAW;周3:=EMA(WC,3),COLORGRAY;周10:=EMA(WC,10),COLORCYAN;BT1:=MA(WC,1);BT2:=SMA(SMA(SMA(BT1,2,1),2,1),2,1),COLORGREEN,LINETHICK1;SMA2:=MA(BT2,3);周持股:=IF(BT2>SMA2,BT2,NULL),COLORRED,LINETHICK1;周持币:=IF(BT2<SMA2,BT2,NULL),COLORGREEN,LINETHICK1;周EM3:=IF(周3>REF(周3,1),BT2,NULL),COLORRED,LINETHICK1;DRAWICON(CROSS(BT2,周3),H*1.01,2);//买卖全息精选}//RSI周日同显/RSI周叉N1 6 N2 12 N3 24}N3:=12;LC:= REF(CLOSE,1);/*周R1:=MA("RSI.RSI1#WEEK"(6,12,N3),3),COLORYELLOW;周R2:=MA("RSI.RSI1#WEEK"(6,12,N3),5)COLORFF00FF;周R3:=MA("RSI.RSI2#WEEK"(6,12,N3),7),COLORGREEN;*/RSI:=SMA(MAX(C-REF(C,1),0),6,1)/SMA(ABS(C-REF(C,1)),6,1)*100,LINETHICK2,COLORWHITE;R角度:=SMA(MAX(C-REF(C,1),0),21,1)/SMA(ABS(C-REF(C,1)),21,1)*100,COLORYELLOW; //转强区:=IF((周R2>REF(周R2,1) ),30,0),COLOR0000FF,NODRAW;//辅助限定信号}N1:=9;N2:=5;MTM:=C-REF(C,1);多:=100*EMA(EMA(MTM,N1),N1)/EMA(EMA(ABS(MTM),N1),N1),COLORWHITE;空:=MA(多,N2),COLORYELLOW;XD主力进:=多>REF(多,1) ;限定卖:=多<REF(多,1);//辅助限定信号}//逃顶指标}VAR9T:=EMA(CLOSE,2)-EMA(CLOSE,55);VAR10T:=EMA(VAR9T,13);VAR11T:=2*(VAR9T-VAR10T);主力资金:=(POW(VAR11T,3)*0.1+POW(VAR11T,1))/4,COLORWHITE,LINETHICK1,DOT;主升区:=多>空OR 主力资金>REF(主力资金,1) ;XD主升:=主升区=1 ;//X:=转强区=30 AND CROSS(周3,BT2);//买入信号综合}//DRAWICON(FILTER(X=1,2),L*0.99,1);//自动计算止赢损}买天:=BARSLAST(X);//买价:=REF(C,买天),NODRAW;手续费:=0.003;/*盈亏%:=100*((C-买价)/买价-手续费),NODRAW,COLORE66878;止赢5%:=买价*(1+0.03+手续费),NODRAW,COLOR000999;止损2%:=买价*(1-0.02+手续费),COLORGREEN,NODRAW;回调止赢:=HHV(H,X+1)*(1-0.03+手续费),COLORMAGENTA,NODRAW;//比近两日最高价下跌3%,进行回调止赢};//实战冠军}止赢条件:=H>止赢5%;止赢天数:=BARSLAST(止赢条件);止损条件:=C<止损2%;止损天数:=BARSLAST(止损条件);止赢:=买天> 止赢天数AND 止赢天数<止损天数;止赢天数2:=BARSLAST(止赢条件AND 止赢AND COUNT(REF(止赢,1),1)=0);止损:=买天>止损天数AND 止赢天数>止损天数;止损天数2:=BARSLAST(止损AND COUNT(REF(止损,1),1)=0);DRAWICON(止赢AND COUNT(REF(止赢,1),1)=0 AND 买天<止损天数2,H,11); DRAWICON(止损AND COUNT(REF(止损,1),1)=0 AND 买天<止赢天数2,L,12);手续费1:=0.003;//实盘指定买价A.止盈损}A买价:=指定买价A,NODRAW;A盈亏%:=100*((C-A买价)/A买价-手续费),COLORE66878,NODRAW;A止赢5%:=A买价*(1+0.05+手续费),COLOR000999,NODRAW;//从买进到当天股价上涨5%止赢,可以自定设置}A止损2%:=A买价*(1-0.02+手续费),COLORGREEN,NODRAW;//从买进到当天股价下跌2%止损,可以自定设置};//实盘指定买价B.止盈损}B买价:=指定买价B,NODRAW;B盈亏%:=100*((C-B买价)/B买价-手续费),COLORE66878,NODRAW;B止赢5%:=B买价*(1+0.05+手续费),COLOR000999,NODRAW;//从买进到当天股价上涨5%止赢,可以自定设置}B止损2%:=B买价*(1-0.02+手续费),COLORGREEN,NODRAW;//从买进到当天股价下跌2%止损,可以自定设置};//渐进止赢点}ZL止赢价差:=(C-REF(H,1))/C*100,NODRAW;//近两日最高价与现价差。

文华财经:期货行业最准确的指标公式源码

文华财经:期货行业最准确的指标公式源码

文华财经:期货行业最准确的指标公式源码引言本文档旨在介绍文华财经所提供的期货行业最准确的指标公式源码。

这些指标公式可以帮助投资者更好地分析期货市场,做出明智的投资决策。

指标公式源码以下是文华财经提供的期货行业最准确的指标公式源码:1. 移动平均线(Moving Average):MA(n) = sum(close, n) / n其中,`close`代表收盘价,`n`代表计算的周期。

2. 相对强弱指标(Relative Strength Index,简称RSI):RSI(n) = 100 - (100 / (1 + RS))RS = avg(upward_close, n) / avg(downward_close, n)其中,`upward_close`代表收盘价上涨的部分,`downward_close`代表收盘价下跌的部分,`n`代表计算的周期。

3. 随机指标(Stochastic Oscillator):%K(n) = (close - min(low, n)) / (max(high, n) - min(low, n)) * 100 %D(n) = MA(%K, m)其中,`low`代表最低价,`high`代表最高价,`n`代表计算%K 的周期,`m`代表计算%D的周期。

4. 平均真实范围(Average True Range,简称ATR):TR(n) = max(high - low, abs(high - close_prev), abs(low -close_prev))ATR(n) = MA(TR, n)其中,`close_prev`代表前一日的收盘价,`n`代表计算的周期。

5. 动量指标(Momentum):MOM(n) = close - close_prev其中,`close_prev`代表前一日的收盘价,`n`代表计算的周期。

结论以上是文华财经所提供的期货行业最准确的指标公式源码。

准确率最高的期货指标文华财经期货软件指标公式期货指标大全汇总

准确率最高的期货指标文华财经期货软件指标公式期货指标大全汇总

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

准确率最高的期货指标文华财经期货软件指标公式顶底之王指标

准确率最高的期货指标文华财经期货软件指标公式顶底之王指标

CAPITAL:=GETPRICE1('流通股本');AA:=ZIGZAG(C,5,1);DRAWNUMBER(AA=HHV(C,10),H*1.01,H,0,COLORGREEN);DRAWNUMBER(AA=LLV(C,10),L*0.99,L,0,COLOR00EEFF);HH:=REFX1(MA(H,125),125/2);LL:=REFX1(MA(L,125),125/2);金牛:(REFX1(MA(HH,125),125/2)-REFX1(MA(LL,125),125/2))*1+REFX1(MA(HH,125),125/2),DOT,LINET HICK5,COLORYELLOW;金钻趋势:REFX1(MA(LL,125),125/2)-(REFX1(MA(HH,125),125/2)-REFX1(MA(LL,125),125/2))*1,LINETHICK1 ,COLORRED;金牛2:EMA(金钻趋势,25),COLORCYAN,LINETHICK2;FILLRGN(金钻趋势>金牛2,金钻趋势,金牛2,RGB(55,0,0));FILLRGN(金钻趋势<金牛2,金钻趋势,金牛2,RGB(0,91,0));DRAWKLINE1(H,O,L,C);STICKLINE(金钻趋势>LOW AND 金钻趋势<HIGH,金钻趋势,MIN(MIN(OPEN,CLOSE),金钻趋势),2,0),COLORYELLOW;STICKLINE(金钻趋势>MIN(C,O) AND 金钻趋势<MAX(C,O),金钻趋势,MIN(OPEN,CLOSE),2,0),COLORYELLOW;STICKLINE(金钻趋势>HIGH,OPEN,CLOSE,2,0),COLORYELLOW;STICKLINE(金钻趋势>HIGH,HIGH,LOW,0,0),COLORYELLOW;CC1:=REFX1(MA(C-REF(C,1),6),6/2);CC2:=REFX1(MA(ABS(C-REF(C,1)),6),6/2);VAR23:=100*REFX1(MA(CC1,6),6/2)/REFX1(MA(CC2,6),6/2);回调买:=LLV(VAR23,2)=LLV(VAR23,7) AND COUNT(VAR23<0,2) AND CROSS(VAR23,MA(VAR23,2)); XG:=金钻趋势>HIGH AND 回调买AND L<=金钻趋势;DRAWTEXT(XG,L,'▲TTT买入'),COLORRED;JJ:=(HIGH+LOW+CLOSE)/3;QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);QJ1:=IF(CAPITAL=0,QJ0*(JJ-MIN(CLOSE,OPEN)),QJ0*IF(HIGH=LOW,1,(MIN(OPEN,CLOSE)-LOW))); QJ2:=IF(CAPITAL=0,QJ0*(MIN(OPEN,CLOSE)-LOW),QJ0*IF(HIGH=LOW,1,(JJ-MIN(CLOSE,OPEN)))); QJ3:=IF(CAPITAL=0,QJ0*(HIGH-MAX(OPEN,CLOSE)),QJ0*IF(HIGH=LOW,1,(HIGH-MAX(OPEN,CLOSE ))));QJ4:=IF(CAPITAL=0,QJ0*(MAX(CLOSE,OPEN)-JJ),QJ0*IF(HIGH=LOW,1,(MAX(CLOSE,OPEN)-JJ))); DDX:=((QJ1+QJ2)-(QJ3+QJ4))/IF(CAPITAL=0,10000,10000),COLOR00AAAA,LINETHICK1;V2:=SMA(IF(C>=REF(C,1),DDX,-DDX/100),2,1);FROMOPEN:=IF(HOUR<12,60*(HOUR-9)-30+MINUTE,120+60*(HOUR-13)+MINUTE);V5:=SMA(V2*120/FROMOPEN*5,2,1);V10:=SMA(V5,5,1);V20:=SMA(V10,5,1);CURRBARSCOUNT:=DATACOUNT-BARPOS+1;DY:=CURRBARSCOUNT=1 AND C<REF(C,1);DY2:=REF(V2,1)-DY;XG2:=C>O AND DY2<0.02 AND MA(C,5)>MA(C,60) AND C/REF(C,1)>=1.02 AND H<金牛; DRAWTEXT(XG2 AND L<金钻趋势,L,'↖金钻起涨'),COLORMAGENTA;EMA3:EMA(C,3),COLORWHITE,LINETHICK2;EMA13:EMA(C,13),COLORYELLOW;EMA21:EMA(C,21),COLORFF00FF;EMA55:EMA(C,55),COLORGREEN;AR1:=EMA21>EMA13 AND EMA13>EMA3;AR2:=BARSLAST((C-EMA3)/EMA3*100<-6);AR3:=EMA3>=REF(EMA3,2);AR4:=COUNT(CROSS(C,EMA3),AR2)=1;AR5:=AR1 AND AR2 AND AR3 AND AR4;AR6:=AR5 AND FILTER(AR5,10);DRAWTEXT(AR6,L-0.09,'------启动'),COLORYELLOW;BR1:=COUNT(BETWEEN((C-REF(C,1))/REF(C,1)*100,0,5) ,5)=5;BR2:=ABS((EMA3-EMA13)+(EMA13-EMA21))/C<0.2;BR3:=C>EMA21 AND (REF(C,1)<REF(EMA21,1) OR REF(C,2)<REF(EMA21,2) OR REF(C,3)<REF(EMA21,3) OR REF(C,4)<REF(EMA21,4) OR REF(C,5)<REF(EMA21,5));BR4:=BR1 AND BR2 AND BR3;DRAWTEXT(BR4 AND FILTER(BR4,10),L-0.09,'------转强'),COLOR00C5FF;STICKLINE(BR4 AND FILTER(BR4,10),H,L,0.5,1),COLOR00C5FF;CR1:=(C-REF(C,1))/REF(C,1)*100>0.5;CR2:=V>MA(V,5)*0.6;CR3:=COUNT(CROSS(EMA3,EMA21),3)=1;CR4:=ABS(EMA13-EMA21)/EMA21<0.03;CR5:=EMA21<=EMA55 AND EMA21>=REF(EMA21,1);CR6:=FILTER(CR1 AND CR2 AND CR3 AND CR4 AND CR5,2);DRAWTEXT(CR6,L-0.09,'---拉升'),COLORF00FF0;DR1:=EMA3>EMA13 AND EMA13<EMA21;DR2:=BARSLAST(CROSS(C,EMA21) );DR3:=H=HHV(H,DR2);DR4:=BARSLAST(DR3);DR5:=COUNT(O>C AND C<REF(C,1) AND C>EMA21 AND BETWEEN((C-EMA21)/EMA21,0,0.02),DR4)=1;DR6:=C>REF(C,1) ;DR7:= DR1 AND DR5 AND DR6 ;DR8:=DR7 AND FILTER(DR7 ,10);DRAWTEXT(DR8,L-0.09,'------------拉升'),COLORD6BA63;STICKLINE(DR8,O,C,6,1),LINETHICK2,COLORD6BA63;ER:=BARSLAST(REF(CROSS(EMA21,EMA13),1)) AND CROSS(EMA13,EMA21);DRAWTEXT(ER,L-0.09,'------上攻'),COLOR0099FF;FR:=BARSLAST(REF(CROSS(EMA13,EMA3),1)) AND CROSS(EMA3,EMA13);DRAWTEXT(FR,L-0.09,'------中继'),COLORWHITE;STICKLINE(FR,H,L,0.5,1),COLORWHITE;DIFF:=(EMA(CLOSE,12) - EMA(CLOSE,26));DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);X1:=(C+L+H)/3;X2:=EMA(X1,6);X3:=EMA(X2,5);BIAS1 : (CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;BIAS2 : (CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;BIAS3 : (CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;GR1:=BARSLAST(BETWEEN(BIAS2,0,5));GR2:=EMA(X1,13)>EMA(X1,21) AND EMA(X1,21)>EMA(X1,34)AND EMA(X1,13)>REF(EMA(X1,13),1);GR3:=COUNT(BIAS2>10 AND H=HHV(H,GR1),GR1);GR4:=H=HHV(H,GR1);GR5:=MACD<REF(MACD,1);GR6:=GR2 AND GR3 AND GR4;GR7:=GR2 AND GR3 AND GR4 AND GR5;DRAWTEXT(GR6 AND GR7,H+0.3,'逃顶'),COLOR00FF00;STICKLINE(GR6 AND GR7,H,H+0.09,4,0),COLOR00FF00;HR2:=EMA3>=REF(EMA3,3) AND EMA13>=REF(EMA13,1) AND EMA21>=REF(EMA21,1) ANDCROSS(C,EMA3) AND CROSS(C,EMA13) AND CROSS(C,EMA21);DRAWTEXT(HR2 AND FILTER(HR2,10),L-0.09,'进场!'),COLORFFC8FF;MA1:MA(CLOSE,34),COLORBLUE;K1:=(C+H+L)/3;D1:=MA(K1,4);高:=REF(HHV(H,80),3);低:=REF(LLV(L,80),3);顶点:REFX1(高,10000),COLORGREEN,LINETHICK2;低点:REFX1(低,10000),COLORRED,LINETHICK2;AA05:MA(C,5),LINETHICK3,COLOR00CCFF;BB05:=ATAN((AA05/REF(AA05,1)-1)*100)*180/3.1416;IF(BB05>30 AND AA05>REF(AA05,1), AA05,NULL),LINETHICK3,COLORRED;买线:=ZIGZAG(C,10,1);卖线:=MA(买线,3);BU:=CROSS(买线,卖线);SEL:=CROSS(卖线,买线);DRAWTEXT(BU,L*0.99,'买多'),LINETHICK1,COLOR00AAFF;DRAWTEXT(SEL,H*1.01,'卖进'),LINETHICK1,COLOR00FF00;STICKLINE(买线>=卖线,LOW,HIGH,0,1),COLOR0000CC;STICKLINE(买线>=卖线,CLOSE,OPEN,2,1),COLOR0000CC;STICKLINE(买线<卖线,CLOSE,OPEN,2,0),COLORCYAN;STICKLINE(买线<卖线,LOW,HIGH,0,0),COLORCYAN;STICKLINE(CROSS(买线,卖线),OPEN,CLOSE,3,0),COLOR00AAFF;STICKLINE(CROSS(卖线,买线),OPEN,CLOSE,3,0),COLOR00DD00;VAR3:=LLV(HIGH,240);VAR4:=100*(CLOSE-VAR3)/VAR3;VAR5:=(CLOSE-LLV(LOW,528))/(HHV(HIGH,528)-LLV(LOW,528))*100;VAR6:=(CLOSE-LLV(CLOSE,530))/(HHV(CLOSE,530)-LLV(CLOSE,530))*100;VAR7:=0;VAR8:=SMA(MAX(CLOSE-REF(CLOSE,1),0),34,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),7,1)*100;VAR9:=SMA(MAX(CLOSE-REF(CLOSE,1),0),13,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),13,1)*100;VAR10:=IF(TROUGHBARS(C,16,1,1)=0 AND HIGH>LOW+0.04,4,0);VAR11:=ZIGZAG(C,6,1)>REF(ZIGZAG(C,6,1),1) AND REF(ZIGZAG(C,6,1),1)<=REF(ZIGZAG(C,6,1),2) AND REF(ZIGZAG(C,6,1),2)<=REF(ZIGZAG(C,6,1),3);VAR12:=ZIGZAG(C,6,1)<REF(ZIGZAG(C,6,1),1) AND REF(ZIGZAG(C,6,1),1)>=REF(ZIGZAG(C,6,1),2) AND REF(ZIGZAG(C,6,1),2)>=REF(ZIGZAG(C,6,1),3);VAR13:=ZIGZAG(C,22,1)>REF(ZIGZAG(C,22,1),1) AND REF(ZIGZAG(C,22,1),1)<=REF(ZIGZAG(C,22,1),2) AND REF(ZIGZAG(C,22,1),2)<=REF(ZIGZAG(C,22,1),3);VAR14:=ZIGZAG(C,22,1)<REF(ZIGZAG(C,22,1),1) AND REF(ZIGZAG(C,22,1),1)>=REF(ZIGZAG(C,22,1),2) AND REF(ZIGZAG(C,22,1),2)>=REF(ZIGZAG(C,22,1),3);VAR15:=ZIGZAG(C,51,1)>REF(ZIGZAG(C,51,1),1) AND REF(ZIGZAG(C,51,1),1)<=REF(ZIGZAG(C,51,1),2) AND REF(ZIGZAG(C,51,1),2)<=REF(ZIGZAG(C,51,1),3);VAR16:=ZIGZAG(C,51,1)<REF(ZIGZAG(C,51,1),1) AND REF(ZIGZAG(C,51,1),1)>=REF(ZIGZAG(C,51,1),2) AND REF(ZIGZAG(C,51,1),2)>=REF(ZIGZAG(C,51,1),3);VAR17:=ZIGZAG(C,72,1)>REF(ZIGZAG(C,72,1),1) AND REF(ZIGZAG(C,72,1),1)<=REF(ZIGZAG(C,72,1),2) AND REF(ZIGZAG(C,72,1),2)<=REF(ZIGZAG(C,72,1),3);VAR18:=ZIGZAG(C,72,1)<REF(ZIGZAG(C,72,1),1) AND REF(ZIGZAG(C,72,1),1)>=REF(ZIGZAG(C,72,1),2) AND REF(ZIGZAG(C,72,1),2)>=REF(ZIGZAG(C,72,1),3);VAR19:=EMA(CLOSE,2)-EMA(CLOSE,150);买1:=VAR10;买2:=(VAR11+VAR13+VAR15+VAR17);卖1:=(VAR12+VAR14+VAR16+VAR18);B:IF(买1>0 OR 买2>0,LOW*0.99,NULL),CROSSDOT,LINETHICK3,COLORYELLOW; DRAWTEXT(买1>0 OR 买2>0,LOW*0.99,'买'),COLORRED;S:IF(卖1>0,HIGH*1.01,NULL),CROSSDOT,LINETHICK3,COLORGREEN;DRAWTEXT(卖1>0,HIGH*1.02,'卖'),COLORGREEN;DRAWICON((ZIGZAG(C,5,1)>REF(ZIGZAG(C,5,1),1)) AND (REF(ZIGZAG(C,5,1),1)<=REF(ZIGZAG(C,5,1),2)) AND (REF(ZIGZAG(C,5,1),2)<=REF(ZIGZAG(C,5,1),3)),LOW*0.98,1) ;DRAWICON((ZIGZAG(C,5,1)<REF(ZIGZAG(C,5,1),1)) AND (REF(ZIGZAG(C,5,1),1)>=REF(ZIGZAG(C,5,1),2)) AND (REF(ZIGZAG(C,5,1),2)>=REF(ZIGZAG(C,5,1),3)),HIGH*1.01,2);ZB:=EMA(EMA(VAR3,5),5)*3, COLORSTICK;VARA:=IF(VAR9 AND CROSS(MA(CLOSE,3),MA(CLOSE,5)),20,0);K:=EMA(VAR7,5)*2,COLORFF00FF;D:=EMA(K,5),COLORWHITE;J:=K*3-D*2,COLORYELLOW;VARB:=BETWEEN(CLOSE,MA(CLOSE,3),MA(CLOSE,5)) AND J>10;HS:=VOL/CAPITAL*100,COLORGREEN;VARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;VARF:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA(( CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);DRAWTEXT(VAR11 AND COUNT(VAR11,30)=1,LOW*0.95,'机构进场'),LINETHICK1,COLORFF00FF; VAR1A:=IF(VARE>0,VARE,0);VAR1B:=IF(VAR14>=200 AND VAR13>=150,15,IF(VAR14<=-200 AND VAR13<=-150,-15,VAR16))+60;VAR1C:=VAR1A>48 AND VAR1B>60 AND VAR19<100;DRAWTEXT(VAR1C AND COUNT(VAR1C,30)=1,LOW*0.95,'大顶(底)'),COLORWHITE;。

期货指标公式文华财经指标真正好用的指标准确率100的技术指标

期货指标公式文华财经指标真正好用的指标准确率100的技术指标

S1:80,COLOR996699,PRECIS0;B1:20,COLORGREEN,PRECIS0;A:=MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19),COLORRED; B:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));D:=EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4),LINETHICK2; 长期线:A+100,COLOR9900FF;短期线:B+100,COLOR888888;中期线:D+100,COLORYELLOW,LINETHICK2;见顶:(REF(中期线,1)>85 AND REF(短期线,1)>85 AND REF(长期线,1)>65) AND CROSS(长期线,短期线),PRECIS0;顶部区域:(中期线<REF(中期线,1) AND REF(中期线,1)>80) AND (REF(短期线,1)>95 OR REF(短期线,2)>95 ) AND 长期线>60 AND 短期线<83.5 AND 短期线<中期线AND 短期线<长期线+4,PRECIS0;顶部:=FILTER(顶部区域,4);底部区域:(长期线<12 AND 中期线<8 AND (短期线<7.2 OR REF(短期线,1)<5) AND (中期线>REF(中期线,1) OR 短期线>REF(短期线,1))) OR (长期线<8 AND 中期线<7 AND 短期线<15 AND 短期线>REF(短期线,1)) OR (长期线<10 AND 中期线<7 AND 短期线<1),PRECIS0;STICKLINE1(顶部,98,103,20,1),COLORRED;STICKLINE1(底部区域,-4,0,22,0),COLORGREEN;STICKLINE1(底部区域,40,44,22,0),COLORGREEN;低位金叉:长期线<15 AND REF(长期线,1)<15 AND 中期线<18 AND 短期线>REF(短期线,1)AND CROSS(短期线,长期线) AND 短期线>中期线AND (REF(短期线,1)<5 OR REF(短期线,2)<5) AND (中期线>=长期线OR REF(短期线,1)<1),PRECIS0;PARTLINE(中期线>REF(中期线,1),中期线,COLORMAGENTA),LINETHICK2;PARTLINE(长期线<=REF(长期线,1),长期线,COLORFFFF00),LINETHICK1;STICKLINE1(低位金叉,0,4,11,0 ),COLORRED;S0:10,COLORCC6633,LINETHICK2,PRECIS0;B0:90,COLOR9966BB,LINETHICK2,PRECIS0;。

准确率100的技术指标文华财经指标公式期货软件无未来函数逃顶抄底指标

准确率100的技术指标文华财经指标公式期货软件无未来函数逃顶抄底指标

二分位:(H+L)/2 ,LINETHICK3,COLORYELLOW,POINTDOT;MID1 : MA(CLOSE,18),POINTDOT,LINETHICK3,COLORWHITE;UPPER1: MID1 + 2*STD(CLOSE,14),LINETHICK2,COLORYELLOW;LOWER1: MID1 - 2*STD(CLOSE,14),LINETHICK2,COLORYELLOW;VAR1:=UPPER1;FF1:=VAR1>REF(VAR1,1);PARTLINE(FF1,VAR1,RGB(255,0,0)),LINETHICK4;PARTLINE(FF1=0,VAR1,RGB(0,255,0)),LINETHICK4;VAR2:=LOWER1;FF2:=VAR2>REF(VAR2,1);PARTLINE(FF2,VAR2,RGB(255,0,0)),LINETHICK4;PARTLINE(FF2=0,VAR2,RGB(0,255,0)),LINETHICK4;VAR3:=MA(CLOSE,18);FF3:=VAR3>REF(VAR3,1);PARTLINE(FF3,VAR3,RGB(255,0,0)),LINETHICK4;PARTLINE(FF3=0,VAR3,RGB(3,3,255)),LINETHICK4;VAR4:=MA(CLOSE,4);FF4:=VAR4>REF(VAR4,1);PARTLINE(FF4,VAR4,RGB(235,1,1)),LINETHICK3;PARTLINE(FF4=0,VAR4,RGB(3,3,255)),LINETHICK3;RSV:=(CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100;K:=SMA(RSV,5,1);D:=SMA(K,5,1);J:=3*K-2*D;X:=REF(J,1)<10 AND H>REF(H,1) AND C>REF(C,1) AND C>REF(O,1) AND L>REF(L,1); STICKLINE1(X,L ,L,20,0),COLOR008888;STICKLINE1(X,L ,H,0,0),COLORFF00FF;STICKLINE1(X,C ,O,5,0),COLORFF00FF;WR:-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));DRAWICON(FILTER(CROSS(WR,(0 - 81)),10),L,4);//威廉买点↑↓DRAWICON(FILTER(CROSS((0 -19),WR),10),H,5);//威廉卖点DRAWTEXT(FILTER(CROSS(WR,(0 - 81)),21),L,'威廉买'),ALIGN0,COLORRED;//威廉买点DRAWTEXT(FILTER(CROSS(0 -19,WR),21),H,'威廉卖'),ALIGN2,COLORGREEN;//威廉卖点AA:=CLOSE > REF(CLOSE, 1) AND REF(CLOSE, 1) > REF(CLOSE, 2) AND REF(CLOSE, 1) < REF(CLOSE, 3) AND IF(REF(CLOSE, 3) < REF(CLOSE, 4), 1, IF(REF(CLOSE, 4) < REF(CLOSE, 5),REF(CLOSE, 1) < REF(CLOSE, 4) OR ( REF(CLOSE, 2) < REF(CLOSE, 4) AND REF(CLOSE, 3) >= REF(CLOSE, 5) ),IF(REF(CLOSE, 5) < REF(CLOSE, 6), 1,REF(CLOSE, 6) < REF(CLOSE, 7))));BB:=CLOSE < REF(CLOSE, 1) AND REF(CLOSE, 1) < REF(CLOSE, 2) AND REF(CLOSE, 1) > REF(CLOSE, 3) AND IF(REF(CLOSE, 3) > REF(CLOSE, 4), 1, IF(REF(CLOSE, 4) > REF(CLOSE, 5),REF(CLOSE, 1) > REF(CLOSE, 4) OR ( REF(CLOSE, 2) > REF(CLOSE, 4) AND REF(CLOSE, 3) <= REF(CLOSE, 5) ),IF(REF(CLOSE, 5) > REF(CLOSE, 6), 1,REF(CLOSE, 6) > REF(CLOSE, 7))));DRAWTEXT(AA AND CLOSE>REF(OPEN,2),LOW,'三平底'),COLORFF00FF;DRAWTEXT(BB AND CLOSE<REF(CLOSE,2),HIGH,'三平顶'),COLORRED;S下:=HHV(MA(HIGH,2),2),COLORGREEN,LINETHICK1;S上:=LLV(MA(HIGH,2),1),COLORRED,LINETHICK1;SPPP:=-(S上-S下)/REF(C,1)*100;SPTEM1:=(MIN(O,C)-L)/(H-L)*100;SPTEM2:=(H-MAX(O,C))/(H-L)*100;SPTEM3:=(C-O)/(H-L)*100;SKJ1:=(SPTEM3>49 AND SPTEM1>0.3*SPTEM2) OR SPTEM3>80;SKJ2:=(SPTEM3<=49 AND SPTEM3>20 AND SPTEM1>SPTEM2);SKJ3:=(SPTEM3<=20 AND SPTEM3>-20 AND SPTEM1>1.2*SPTEM2);SKJ4:=(SPTEM3<-20 AND SPTEM3>-40 AND SPTEM1>2*SPTEM2);SKJ:=(SKJ1 OR SKJ2 OR SKJ3 OR SKJ4) AND (SPPP>2 OR REF(SPPP,1)>2 );短买:=IF(SUM(SPPP>0,5)=5 AND SUM(SKJ>0,5)=0,5*(SKJ1 OR SKJ2 OR SKJ3 OR SKJ4),5*SKJ),COLORRED;DRAWTEXT(短买,L,'↖短买'),COLORWHITE;。

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