文华财经指标公式期货软件指标公式缠论、顶底背离、金叉死叉,买卖提示指标3

合集下载

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

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

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

期货最好用的指标公式文华财经指标公式RSI日周月顶底背离

期货最好用的指标公式文华财经指标公式RSI日周月顶底背离

RSV1:=(CLOSE-LLV(LOW,89))/(HHV(HIGH,89)-LLV(LOW,89))*100;//收盘价与N周期最低值做差,N周期最高值与N周期最低值做差,两差之间做比值。

RSV2:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;//收盘价与N周期最低值做差,N周期最高值与N周期最低值做差,两差之间做比值。

RSV3:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;//收盘价与N周期最低值做差,N 周期最高值与N周期最低值做差,两差之间做比值。

RSV5:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;//收盘价与N周期最低值做差,N 周期最高值与N周期最低值做差,两差之间做比值。

K5:SMA(RSV5,3,1);//RSV的移动平均值D5:SMA(K5,3,1);//K的移动平均值月K:SMA(RSV1,3,1);//RSV的移动平均值月D:SMA(月K,3,1);//K的移动平均值周K:SMA(RSV2,3,1);//RSV的移动平均值周D:SMA(月K,3,1);//K的移动平均值日K:SMA(RSV3,3,1);//RSV的移动平均值日D:SMA(月K,3,1);//K的移动平均值日金叉:=CROSS(日K,日D);周金叉:=CROSS(周K,周D);月金叉:=CROSS(月K,月D);X1:=日D>REF(日D,1);DRAWICON(X1,日D*0.98,36);X2:=日D<REF(日D,2);DRAWICON(X2,日D*0.98,37);X3:=周D>REF(周D,1);DRAWICON(X3,周D*0.98,36);X4:=周D<REF(周D,2);DRAWICON(X4,周D*0.98,37);X5:=月D>REF(月D,1);DRAWICON(X5,月D*0.98,36);X6:=月D<REF(月D,2);DRAWICON(X6,月D*0.98,37);DRAWICON(日金叉,日D*0.98,25);DRAWICON(CROSS(周D,日D),周D*0.98,27);DRAWICON(周金叉,周D*0.98,34);DRAWICON(CROSS(月D,周D),月D*0.98,35);DRAWICON(月金叉,月D*0.98,13);DRAWICON(CROSS(月D,日D),月D*0.98,14);二叉共振:=日金叉+周金叉+月金叉=2;三叉共振:=日金叉+周金叉+月金叉=3;STICKLINE(二叉共振,35,65,1,0),COLORRED;STICKLINE(二叉共振,40,60,1,-1),COLORCYAN;STICKLINE(三叉共振,30,70,1,0),COLORRED;STICKLINE(三叉共振,36,64,1,-1),COLORYELLOW;DRAWTEXT(二叉共振,55,'二金叉共振');DRAWTEXT(三叉共振,55,'三金叉共振');CURRBARSCOUNT:=DATACOUNT-BARPOS+1;DRAWTEXT(CURRBARSCOUNT=25,70,'【编辑优化】青稞酒一壶'),COLOR555555;JM:=CROSS(K5,D5);JMCOUNT:=COUNT(JM,BARSLAST(D5>=30));JMTJ:=28*(D5<30 AND COUNT(JMCOUNT=1,21)=1);DRAWTEXT (JMTJ,70,'①'),COLORWHITE;JMTJ2:=28*(D5<30 AND COUNT(JMCOUNT=2,21)=1);DRAWTEXT (JMTJ2,70,'②'),COLORYELLOW;JMTJ3:=28*(D5<30 AND COUNT(JMCOUNT=3,21)=1); DRAWTEXT (JMTJ3,70,'③'),COLORYELLOW;JMTJ4:=28*(D5<30 AND COUNT(JMCOUNT=4,21)=1); DRAWTEXT (JMTJ4,70,'④'),COLORYELLOW;JMTJ5:=28*(D5<30 AND COUNT(JMCOUNT=5,21)=1); DRAWTEXT (JMTJ5,70,'⑤'),COLORYELLOW;DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA); STICKLINE(FILTER(B1>0,5),-20,-10,3,0),COLORGREEN;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);A2:=BARSLAST(REF(CROSS(K,D),1));B2:=REF(C,A2+1)>C AND REF(K,A2+1)<K AND CROSS(K,D); STICKLINE(FILTER(B2>0,5),-20,-10,3,0),COLORYELLOW;LC:=REF(CLOSE,1);RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100; RSI2:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100; A3:=BARSLAST(REF(CROSS(RSI1,RSI2),1));B3:=REF(C,A3+1)>C AND REF(RSI1,A3+1)<RSI1 AND CROSS(RSI1,RSI2); STICKLINE(FILTER(B3>0,5),-20,-10,3,0),COLORWHITE;C1:=BARSLAST(REF(CROSS(DEA,DIFF),1));D1:=REF(C,C1+1)<C AND REF(DIFF,C1+1)>DIFF AND CROSS(DEA,DIFF); STICKLINE(FILTER(D1>0,5),-10,0,3,1),COLOR0066FF;C2:=BARSLAST(REF(CROSS(D,K),1));D2:=REF(C,C2+1)<C AND REF(K,C2+1)>K AND CROSS(D,K); STICKLINE(FILTER(D2>0,5),-10,0,3,1),COLORRED;C3:=BARSLAST(REF(CROSS(RSI2,RSI1),1));D3:=REF(C,C3+1)<C AND REF(RSI1,C3+1)>RSI1 AND CROSS(RSI2,RSI1); STICKLINE(FILTER(D3>0,5),-10,0,3,1),COLORFF00FF;DRAWTEXT(FILTER(D3>0,5),0,'--R顶背离'),COLORFF00FF; DRAWTEXT(FILTER(D2>0,5),-10,'--K顶背离'),COLORRED; DRAWTEXT(FILTER(D1>0,5),-5,'--M顶背离'),COLOR0066FF; DRAWTEXT(FILTER(B3>0,5),-10,'--R底背离'),COLORWHITE; DRAWTEXT(FILTER(B2>0,5),-20,'--K底背离'),COLORYELLOW; DRAWTEXT(FILTER(B1>0,5),-15,'--M底背离'),COLORGREEN;。

文华财经期货软件指标公式源码赢顺云指标逃顶顶底主力

文华财经期货软件指标公式源码赢顺云指标逃顶顶底主力

VAR3:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;VAR4:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;VAR5:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;VAR6:=(VAR3+VAR4+VAR5)/3;VAR7:=EMA(VAR6,5);指标: EMA(EMA(VAR3,5),5)*3, COLORSTICK;VAR8:=IF(VAR6<=-20,10,0);VAR9:=HHV(VAR8,10);STICKLINE1(VAR8=10,20,10,5,0),COLOR6666FF;VARA:=IF(VAR9 AND CROSS(MA(CLOSE,3),MA(CLOSE,5)),20,0);K:EMA(VAR7,5)*2;D:EMA(K,5);J:K*3-D*2;VARB:=BETWEEN(CLOSE,MA(CLOSE,3),MA(CLOSE,5)) AND J>10;CAPITAL:=GETPRICE1('流通股本')*100;换手: VOL/CAPITAL*100,COLORGREEN;DRAWTEXT(VARA=20,15,'底部'),LINETHICK1,COLORWHITE;STICKLINE1((VARA=20),0,10,5,0),COLORWHITE;VARC:=(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));VARD:=(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));STICKLINE1((VARC=1),(-14),0,4,0),COLOR0000FF;DRAWTEXT((VARC=1),(-14),'买'),COLOR0000FF;STICKLINE1((VARD=1),14,0,4,0),COLOR00FF00;DRAWTEXT((VARD=1),18,'卖'),COLOR00FF00;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);VAR10:=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);VAR11:=VARF<REF(VAR10,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);DRAWTEXT(VAR11 AND COUNT(VAR11,30)=1,15,'大资金活动'),LINETHICK1,COLORFF00FF; STICKLINE1(VAR11 AND COUNT(VAR11,30)=1,1,10,5,0),COLORFF00FF;VAR12:=(HIGH+LOW+CLOSE)/3;VAR13:=(VAR12-MA(VAR12,14))/(0.015*AVEDEV(VAR12,14));VAR14:=(VAR12-MA(VAR12,70))/(0.015*AVEDEV(VAR12,70));VAR15:=IF(VAR13>=150 AND VAR13<200 AND VAR14>=150 AND VAR14<200,10,0);VAR16:=IF(VAR13<=-150 AND VAR13>-200 AND VAR14<=-150 ANDVAR14>-200,-10,VAR15);VAR17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;VAR18:=100-ABS(VAR17);VAR19:=IF(VAR18<90,VAR18,100);VAR1A:=IF(VARE>0,VARE,0);VAR1B:=IF(VAR14>=200 AND VAR13>=150,15,IF(VAR14<=-200 ANDVAR13<=-150,-15,VAR16))+60;VAR1C:=VAR1A>48 AND VAR1B>60 AND VAR19<100;DRAWTEXT(VAR1C AND COUNT(VAR1C,30)=1,15,'大笔出货'),LINETHICK1,COLORFFCC66; STICKLINE1(VAR1C AND COUNT(VAR1C,30)=1,0,10,5,0),COLORFFCC66;。

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

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

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

文华财经软件指标源码公式最准不漂移指标公式源码

文华财经软件指标源码公式最准不漂移指标公式源码

/*N=9,M1=3,M2=3}RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;K:=SMA(RSV,M1,1),LINETHICK2,COLORWHITE;D:=SMA(K,M2,1),COLORYELLOW;量能:=3*K-2*D,LINETHICK2;RSIE:=EMA(量能,3);DIFF : EMA(RSIE,12) - EMA(RSIE,26);BBDIFF:=DIFF-REF(DIFF,1);DEA : EMA(DIFF,9);BBDEA:=DEA-REF(DEA,1);MACD : 2*(DIFF-DEA), COLORSTICK;STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,2,0),COLORFFFF00; STICKLINE(MACD<REF(MACD,1)AND MACD<0,0,MACD,2,0),COLOR00FF00; STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,2,0),COLOR0099FF; STICKLINE(MACD>REF(MACD,1)AND MACD>0,0,MACD,2,0),COLORRED; 0,COLORFF8855,LINETHICK2;IF(DIFF>DEA,DIFF,DRAWNULL),COLORRED,LINETHICK2;IF(DEA>REF(DEA,1),DEA,DRAWNULL),COLORMAGENTA;DRAWICON(CROSS(DIFF,DEA),DEA,1);DRAWICON(CROSS(DEA,DIFF),DEA,2);DRAWBAND(DIFF,RGB(255,105,180),DEA,RGB(34,139,34));低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;STICKLINE(低位金叉,0,-1.5,2,0),COLORFFFF00;DRAWTEXT(低位金叉,-1.5,' 低位金叉'),COLORFFFF00;JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1; STICKLINE(二次金叉,0,-1,5,0),COLORFF00FF;DRAWICON(二次金叉,DEA*1.2,11) ;VAR3:=(2*CLOSE+HIGH+LOW)/4;VAR4:=LLV(LOW,34);VAR5:=HHV(HIGH,34);QYYJ:=EMA((VAR3-VAR4)/(VAR5-VAR4)*100,13);RQQ:=EMA(0.667*REF(QYYJ,1)+0.333*QYYJ,2);DRAWTEXT(CROSS(QYYJ,RQQ) AND QYYJ<10,L-0.2,'低吸'),COLORCYAN;AR26R:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;VAR28R:=SMA(VAR26R,3,1);TTWWW:= SMA(VAR28R,3,1);KUIO:= SMA(TTWWW,3,1);DRAWTEXT(TTWWW<7 AND KUIO<7 AND TTWWW>REF(TTWWW,1),L-1,'底买'),COLORGREEN;VARU:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,2 4)*100+(CLOSE-MA(CLOSE,32))/MACLOSE,32)*100)/3;DRAWTEXT(VARU<-22 AND VARU> REF(VARU,1),L,'大底'),COLORYELLOW;VAR2TX:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;VAR3TX:=SMA(VAR2TX,4,1);VAR4TX:=SMA(VAR3TX,2,1);VAR5TX:=SMA(VAR4TX,2,1);DRAWTEXT(CROSS(VAR4TX,VAR5TX) AND VAR4TX<25 AND REF(C<O,1),L-0.1,'短波'),COLORWHITE;VAR01F:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;VAR02F:=SMA(VAR01F,3,1);VAR03F:=SMA(VAR02F,3,1);VAR04F:=SMA(VAR03F,3,1);VAR06F:=CROSS(VAR03F,VAR04F) AND VAR03F<25;VAR07F:=VAR06F AND VOL>REF(VOL,1)*2 AND VOL>REF(MA(VOL,5),1)*2; DRAWTEXT(VAR07F,L-0.2,'波段短线'),COLORYELLOW;DRAWTEXT(二次金叉,-1,' 二次金叉'),COLORFF00FF;A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);STICKLINE(底背离,0,1.5,3,0),COLOR00FF00;DRAWLINE(A1=0,DEA,底背离,DEA,0),COLORRED,LINETHICK2; DRAWTEXT(底背离,2,' 底背离'),COLOR00FF00;A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF);STICKLINE(顶背离,0,2,3,0),COLORFF8855;DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORFF8855,*/DIF1:=EMA(CLOSE,12) - EMA(CLOSE,26);DEA1:=EMA(DIF1,9);MACD1:=2*(DIF1-DEA1),STICK;MACD2:=EMA(MACD1,3);STICKLINE1(MACD1>MACD2 AND MACD1>0,0,MACD1,1,0),COLORRED;STICKLINE1(MACD1>MACD2 AND MACD1<0,0,MACD1,1,0),COLORGREEN;STICKLINE1(MACD1<MACD2,0,MACD1,1,0),COLORCBCBC0;STICKLINE1(MACD1>=0 OR MACD1<=0,0,0,50,1),COLORWHITE;DIF:DIF1,COLOR33FF33;DEA:DEA1,COLORYELLOW;MACD:MACD1,NODRAW,COLORMAGENTA;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1),COLORWHITE;D:=SMA(K,3,1),COLORYELLOW;J:=3*K-2*D,COLORFF00FF;MM:=IF(MACD< 0,MACD,0);JJ:=MM> REF(MM,1);ZZ:=REF(JJ,1)=1;准备:=(JJ AND ZZ)*DEA;JH:=HHV(MAX(K,MAX(D,J)),250);DH:=HHV(MAX(DIF,DEA),250);SH:=INTPART(JH/DH)/2;DIFF50:=SH*DIF+50,COLORFFFF00;DEA50:=SH*DEA+50,COLORBLUE;缩头:=IF(1.5*(DIFF50-DEA50)>0 AND REF(1.5*(DIFF50-DEA50),1)>REF(1.5*(DIFF50-DEA50),2) AND 1.5*(DIFF50-DEA50)< REF(1.5*(DIFF50-DEA50),1),1,0);缩脚:=IF(1.5*(DIFF50-DEA50)<0 AND REF(1.5*(DIFF50-DEA50),1)< REF(1.5*(DIFF50-DEA50),2) AND 1.5*(DIFF50-DEA50)>REF(1.5*(DIFF50-DEA50),1),1,0);杀多:=IF(1.5*(DIFF50-DEA50)<0 AND REF(1.5*(DIFF50-DEA50),1)> REF(1.5*(DIFF50-DEA50),2) AND 1.5*(DIFF50-DEA50)<REF(1.5*(DIFF50-DEA50),1),1,0);诱空:=IF(1.5*(DIFF50-DEA50)>0 AND REF(1.5*(DIFF50-DEA50),1)< REF(1.5*(DIFF50-DEA50),2) AND 1.5*(DIFF50-DEA50)>REF(1.5*(DIFF50-DEA50),1),1,0);阻力:=IF(CROSS(C,MA(C,20)) OR CROSS(C,MA(C,60)),10,0);DRAWTEXT(FILTER(杀多,3) AND 杀多,MACD+0.1,'杀多'),COLORFF00FF;DRAWTEXT(FILTER(缩头,3) AND 缩头,MACD+0.1,'卖'),COLORFF00FF;DRAWTEXT(FILTER(诱空,3) AND 诱空,MACD+0.1,'?洗'),COLOR00FF00;DRAWTEXT(FILTER(缩脚,3) AND 缩脚,MACD-0.1,'买'),COLOR00FF00;IF(MACD>=REF(MACD,1),DIF1,NULL),COLORRED,LINETHICK2;。

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

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

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;//近两日最高价与现价差。

文华财经期货软件指标公式源码突破买卖点指标公式源码

文华财经期货软件指标公式源码突破买卖点指标公式源码

/*VAR1:=EMA(EMA(EMA(C,5),8),13);VAR2:=((VAR1-REF(VAR1,1))/REF(VAR1,1))*618;VAR3:=MA(VAR2,8);VAR4:=VAR2-VAR3;VAR5:=SMA(VAR4,3,1);短:WMA(EXPMA(((3*C)+(2*O)+H+L)/7,3),3),COLORFFFFFF; 道:IF(1,SMA(短,8,1),DRAWNULL),COLORCC99AA,LINETHICK2; IF(VAR2>=VAR3,道,DRAWNULL),COLOR6600CC,LINETHICK2; VARC:=BARSLAST(VAR4>=REF(VAR4,1));VARD:=BARSLAST(VAR4<=REF(VAR4,1));神10:MA(C,10);神30:=MA(C,30);神60:MA(C,60);神120:MA(C,120);神250:MA(C,250);STICKLINE(VARC=0 AND C>MA(C,250) AND C>MA(C,20) AND C>MA(C,60) AND C>MA(C,160) ANDC<O,H,L,0,0),COLORFFCC00;{好}STICKLINE(VARC=0 AND C>MA(C,250) AND C>MA(C,20) AND C>MA(C,60) AND C>MA(C,160) AND C>O,H,L,0,0),COLOR0000FF; STICKLINE(VARC=0 AND C>MA(C,250) AND C>MA(C,20) AND C>MA(C,60) AND C>MA(C,160),C,O,4 ,0 ),COLOR0000AA; STICKLINE(VARC=0 AND C>MA(C,250) AND C>MA(C,20) AND C>MA(C,60) AND C>MA(C,160),C,O,3.3 ,0 ),COLOR0011BB; STICKLINE(VARC=0 AND C>MA(C,250) AND C>MA(C,20) AND C>MA(C,60) AND C>MA(C,160),C,O,2.2,0 ),COLOR0022CC; STICKLINE(VARC=0 AND C>MA(C,250) AND C>MA(C,20) AND C>MA(C,60) AND C>MA(C,160),C,O,1.65 ,0 ),COLOR0033DD; STICKLINE(VARC=0 AND C>MA(C,250) AND C>MA(C,20) AND C>MA(C,60) AND C>MA(C,160),C,O,1.1 ,0 ),COLOR0044EE; STICKLINE(VARC=0 AND C>MA(C,250) AND C>MA(C,20) AND C>MA(C,60) AND C>MA(C,160),C,O,0.55 ,0 ),COLOR0055FF; STICKLINE(VARC=0 AND C<MA(C,250) ANDC>O ,H,L,0,0),COLOR0000FF;STICKLINE(VARC=0 AND C<MA(C,250) ANDC<O ,H,L,0,0),COLORFFCC00;STICKLINE(VARC=0 AND C<MA(C,250),C,O,0,0),COLORFF9900; STICKLINE(VARC=0 ANDC<MA(C,250),CLOSE,OPEN,3,0),COLORFF5500;STICKLINE(VARC=0 ANDC<MA(C,250),CLOSE,OPEN,2.8,0),COLORFF6600; STICKLINE(VARC=0 ANDC<MA(C,250),CLOSE,OPEN,2.5,0),COLORFF7700; STICKLINE(VARC=0 ANDC<MA(C,250),CLOSE,OPEN,2.2,0),COLORFF8800; STICKLINE(VARC=0 ANDC<MA(C,250),CLOSE,OPEN,1.7,0),COLORFF9900; STICKLINE(VARC=0 ANDC<MA(C,250),CLOSE,OPEN,1.2,0),COLORFFAA00; STICKLINE(VARC=0 ANDC<MA(C,250),CLOSE,OPEN,0.7,0),COLORFFCC00; STICKLINE(VARC=0 ANDC<MA(C,250),CLOSE,OPEN,0.2,0),COLORFFFF00; STICKLINE(VARC=0 AND C<MA(C,20) ANDC>O ,H,L,0,0),COLOR0000FF;STICKLINE(VARC=0 AND C<MA(C,20) ANDC<O ,H,L,0,0),COLORFFCC00;STICKLINE(VARC=0 AND C<MA(C,20),C,O,0,0),COLORFF9900; STICKLINE(VARC=0 ANDC<MA(C,20),CLOSE,OPEN,3,0),COLORFF5500;STICKLINE(VARC=0 ANDC<MA(C,20),CLOSE,OPEN,2.8,0),COLORFF6600; STICKLINE(VARC=0 ANDC<MA(C,20),CLOSE,OPEN,2.5,0),COLORFF7700; STICKLINE(VARC=0 ANDC<MA(C,20),CLOSE,OPEN,2.2,0),COLORFF8800; STICKLINE(VARC=0 ANDC<MA(C,20),CLOSE,OPEN,1.7,0),COLORFF9900; STICKLINE(VARC=0 ANDC<MA(C,20),CLOSE,OPEN,1.2,0),COLORFFAA00; STICKLINE(VARC=0 ANDC<MA(C,20),CLOSE,OPEN,0.7,0),COLORFFCC00; STICKLINE(VARC=0 ANDC<MA(C,20),CLOSE,OPEN,0.2,0),COLORFFFF00; STICKLINE(VARC=0 AND C<MA(C,60) ANDC>O ,H,L,0,0),COLOR0000FF;STICKLINE(VARC=0 AND C<MA(C,60) ANDC<O,H,L,0,0),COLORFFCC00;STICKLINE(VARC=0 AND C<MA(C,60),C,O,0,0),COLORFF9900;STICKLINE(VARC=0 ANDC<MA(C,60),CLOSE,OPEN,3,0),COLORFF5500;STICKLINE(VARC=0 ANDC<MA(C,60),CLOSE,OPEN,2.8,0),COLORFF6600;STICKLINE(VARC=0 ANDC<MA(C,60),CLOSE,OPEN,2.5,0),COLORFF7700;STICKLINE(VARC=0 ANDC<MA(C,60),CLOSE,OPEN,2.2,0),COLORFF8800;STICKLINE(VARC=0 ANDC<MA(C,60),CLOSE,OPEN,1.7,0),COLORFF9900;STICKLINE(VARC=0 ANDC<MA(C,60),CLOSE,OPEN,1.2,0),COLORFFAA00;STICKLINE(VARC=0 ANDC<MA(C,60),CLOSE,OPEN,0.7,0),COLORFFCC00;STICKLINE(VARC=0 ANDC<MA(C,60),CLOSE,OPEN,0.2,0),COLORFFFF00;STICKLINE(VARC=0 AND C<MA(C,160) ANDC>O,H,L,0,0),COLOR0000FF;STICKLINE(VARC=0 AND C<MA(C,160) ANDC<O,H,L,0,0),COLORFFCC00;STICKLINE(VARC=0 AND C<MA(C,160) ,C,O,0,0),COLORFF9900; STICKLINE(VARC=0 ANDC<MA(C,160) ,CLOSE,OPEN,3,0),COLORFF5500; STICKLINE(VARC=0 ANDC<MA(C,160) ,CLOSE,OPEN,2.8,0),COLORFF6600; STICKLINE(VARC=0 ANDC<MA(C,160) ,CLOSE,OPEN,2.5,0),COLORFF7700; STICKLINE(VARC=0 ANDC<MA(C,160) ,CLOSE,OPEN,2.2,0),COLORFF8800; STICKLINE(VARC=0 ANDC<MA(C,160) ,CLOSE,OPEN,1.7,0),COLORFF9900; STICKLINE(VARC=0 ANDC<MA(C,160) ,CLOSE,OPEN,1.2,0),COLORFFAA00; STICKLINE(VARC=0 ANDC<MA(C,160) ,CLOSE,OPEN,0.7,0),COLORFFCC00; STICKLINE(VARC=0 ANDC<MA(C,160) ,CLOSE,OPEN,0.2,0),COLORFFFF00; STICKLINE(VARD=0 AND C>O,H,L,0,0),COLOR0000FF; STICKLINE(VARD=0 AND C<O,H,L,0,0),COLORFFCC00; STICKLINE(VARD=0,C,O,0,0),COLORFF9900; STICKLINE(VARD=0,CLOSE,OPEN,3,0),COLORFF5500; STICKLINE(VARD=0,CLOSE,OPEN,2.8,0),COLORFF6600; STICKLINE(VARD=0,CLOSE,OPEN,2.5,0),COLORFF7700; STICKLINE(VARD=0,CLOSE,OPEN,2.2,0),COLORFF8800;STICKLINE(VARD=0,CLOSE,OPEN,1.7,0),COLORFF9900; STICKLINE(VARD=0,CLOSE,OPEN,1.2,0),COLORFFAA00; STICKLINE(VARD=0,CLOSE,OPEN,0.7,0),COLORFFCC00; STICKLINE(VARD=0,CLOSE,OPEN,0.2,0),COLORFFFF00;STICKLINE(VARD=0 AND H>MA(C,5) AND C>MA(C,250) AND C>MA(C,60) AND C>MA(C,160) AND MA(C,5)>MA(C,20) AND C>O,H,L,0,0),COLOR0000FF;STICKLINE(VARD=0 AND H>MA(C,5) AND C>MA(C,250) AND C>MA(C,60) AND C>MA(C,160) AND MA(C,5)>MA(C,20) AND C<O,H,L,0,0),COLORFFCC00;STICKLINE(VARD=0 AND H>MA(C,5) AND C>MA(C,250) AND C>MA(C,60) AND C>MA(C,160) ANDMA(C,5)>MA(C,20),C,O,0,0),COLOR0088EE;{好} STICKLINE(VARD=0 AND H>MA(C,5) AND C>MA(C,250) AND C>MA(C,60) AND C>MA(C,160) ANDMA(C,5)>MA(C,20),C,O,4 ,0 ),COLOR0000AA;STICKLINE(VARD=0 AND H>MA(C,5) AND C>MA(C,250) AND C>MA(C,60) AND C>MA(C,160) ANDMA(C,5)>MA(C,20),C,O,3.3 ,0 ),COLOR0011BB; STICKLINE(VARD=0 AND H>MA(C,5) AND C>MA(C,250) AND C>MA(C,60) AND C>MA(C,160) ANDMA(C,5)>MA(C,20),C,O,2.2,0 ),COLOR0022CC;STICKLINE(VARD=0 AND H>MA(C,5) AND C>MA(C,250) AND C>MA(C,60) AND C>MA(C,160) ANDMA(C,5)>MA(C,20),C,O,1.65 ,0 ),COLOR0033DD;STICKLINE(VARD=0 AND H>MA(C,5) AND C>MA(C,250) AND C>MA(C,60) AND C>MA(C,160) ANDMA(C,5)>MA(C,20),C,O,1.1 ,0 ),COLOR0044EE;STICKLINE(VARD=0 AND H>MA(C,5) AND C>MA(C,250) AND C>MA(C,60) AND C>MA(C,160) ANDMA(C,5)>MA(C,20),C,O,0.55 ,0 ),COLOR0055FF;情3:=VARC=0 AND C>MA(C,20) AND (BARSCOUNT(C)+1)<365 ; STICKLINE(情3 AND C>O,H,L,0,0),COLOR0000FF; STICKLINE(情3 AND C<O,H,L,0,0),COLORFFCC00; STICKLINE(情3,C,O,-1,0),COLOR001235;STICKLINE(情3 AND C<O,H,L,0,0),COLORFFCC00; STICKLINE(情3 AND C>O,H,L,0,0),COLOR0000FF; STICKLINE(情3,C,O,4 ,0 ),COLOR0000AA;STICKLINE(情3,C,O,3.3 ,0 ),COLOR0011BB;STICKLINE(情3,C,O,2.2,0 ),COLOR0022CC;STICKLINE(情3,C,O,1.65 ,0 ),COLOR0033DD;STICKLINE(情3,C,O,1.1 ,0 ),COLOR0044EE;STICKLINE(情3,C,O,0.55 ,0 ),COLOR0055FF;神线1:=MA(C,20)-MA(C,250);神线2:=MA(C,60)-MA(C,250);神功1:=MA(神线1,1)*4;神功2:=EMA(神线2,1)*4,COLORFFFF80;YS1:=(HIGH+LOW+CLOSE*2)/4;RK3:=EMA(YS1,10);RK4:=STD(YS1,10);RK5:=(YS1-RK3)*100/RK4;RK6:=EMA(RK5,5);RK7:=EMA(RK6,10);涨:=EMA(RK6,10)+100/2-5,COLORRED;股灾2:=NOT(REF(C<O,1) AND C<REF(H,1) );股灾3:=NOT(C<REF(H,1) AND C<REF(H,2) OR C<REF(H,3) ORC<REF(H,4) OR C<REF(H,5));股灾4:=NOT(COUNT(C<O,7) >=5 ANDSUM(C/REF(C,1)<0.96,7)>=1);股灾5:=NOT( 道<MA(C,60) AND MA(C,60)<REF(MA(C,60),1) AND C<MA(C,60) );股灾6:=NOT(道<REF(道,1) AND C<道);股灾7:=SUM(SUM(C/REF(C,1)>1.099,7)>=5 ANDC>MA(C,250),60)<1;股灾8:=SUM(HHVBARS(HIGH,90)>LLVBARS(HIGH,90) AND(HHV( HIGH,90)-LLV( LOW,90))/LLV( LOW,90)*100>50 ANDC>MA(C,250) ,90) <1;股灾9:=NOT(MA(C,5)<MA(C,10) AND MA(C,10)<MA(C,20) ANDMA(C,20)<MA(C,30) AND MA(C,20)<MA(C,120) ANDMA(C,120)<MA(C,90) AND MA(C,20)<REF(MA(C,20),1) ANDMA(C,30)<REF(MA(C,30),1) AND MA(C,60)<REF(MA(C,60),1) ) ;股灾12:=SUM((C/REF(C,1)<0.91 AND L=C),30)<1;股灾13:=SUM((C/REF(C,1))<0.93,10)<1;股灾15:=NOT( MA(C,10)<MA(C,20) AND MA(C,20)<MA(C,30) AND MA(C,30)<MA(C,60) AND MA(C,10)<REF(MA(C,10),1) ANDMA(C,20)<REF(MA(C,20),1) AND MA(C,30)<REF(MA(C,30),1) AND MA(C,120)>MA(C,250) AND MA(C,90)>MA(C,120) AND O<MA(C,120) AND C<MA(C,20) ) ;股灾总:=股灾2 AND 股灾3 AND 股灾4 AND 股灾5 AND 股灾6 AND 股灾7 AND 股灾8 AND 股灾9 AND 股灾12 AND 股灾13 AND 股灾15;P1:=涨>REF(涨,1) AND REF(涨,1)<REF(涨,2) AND H>MA(C,250) AND MA(C,10)>MA(C,250) AND MA(C,20)>MA(C,250) ANDMA(C,250)>REF(MA(C,250),1) AND LLV(C,15)<MA(C,250) AND 股灾13 AND C>O;P2:=涨>REF(涨,1) AND REF(涨,1)<REF(涨,2) ANDMA(C,10)>MA(C,250) AND MA(C,20)>MA(C,250) ANDMA(C,250)>REF(MA(C,250),1) AND MA(C,120)>REF(MA(C,120),1) AND LLV(C,15)<MA(C,120) AND C>O AND C>MA(C,120) AND 股灾12 AND 股灾15 AND 股灾9;P3:=涨>REF(涨,1) AND REF(涨,1)<REF(涨,2) AND H>MA(C,60) AND MA(C,10)>MA(C,250) AND MA(C,20)>MA(C,250) ANDMA(C,250)>REF(MA(C,250),1) AND MA(C,20)>REF(MA(C,20),1) AND MA(C,90)>REF(MA(C,90),1) AND C>MA(C,20) AND C>O ANDC/REF(C,1)<1.099 AND LLV(C,5)<MA(C,120);P4:=涨>REF(涨,1) AND REF(涨,1)<REF(涨,2) AND H>MA(C,20) AND MA(C,20)>MA(C,60) AND MA(C,60)>MA(C,120) ANDMA(C,120)>MA(C,250) AND MA(C,250)>REF(MA(C,250),1) ANDMA(C,20)>REF(MA(C,20),1) AND MA(C,60)>REF(MA(C,60),1) AND C>MA(C,20) AND C>O AND NOT(REF(C,1)/REF(C,2)<0.97) AND LLV(C,5)<MA(C,20) AND REF(C,1)/REF(C,2)<1.099 ANDSUM(C<=O,7)<5 AND C>神功2 AND 神功2>REF(神功2,1)+0.01 AND ABS(MA(C,10)-MA(C,20))>ABS(MA(C,10)-MA(C,30));P5:=涨>REF(涨,1) AND REF(涨,1)<REF(涨,2) ANDMA(C,10)>MA(C,250) AND MA(C,20)>MA(C,250) ANDMA(C,250)>REF(MA(C,250),1) AND MA(C,120)>REF(MA(C,120),1) AND LLV(C,15)<MA(C,120) AND C>O AND C>MA(C,250) ANDC<MA(C,120) AND 股灾12 AND 股灾15 AND 股灾9;停牌:=NOT(NAMELIKE('ST') AND NAMELIKE('*ST') OR NAMELIKE('S')) AND (BARSCOUNT(C)+1)>30 AND DYNAINFO(10)>100;{好}选:=P1 OR P2 OR P3 OR P4 OR P5 AND 停牌 AND 股灾总;STICKLINE(选 AND SUM(选,10)<2,L,L-0.01,3,0) ,COLORYELLOW; DRAWTEXT( 选 AND SUM(选,10)<2,L-0.02,'↖买'),COLOR00FFFF;*/CS:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;通达信:(EMA(CS,3)-50)*2,COLORRED,LINETHICK3;买入点:IF(通达信<-80,35,0),LINETHICK1,COLORWHITE;极弱:-80,COLORFF00FF;超买:73,COLORCY AN,LINETHICK3;弱势:-60,COLORFFFF00;STICKLINE1(通达信<REF(通达信,1) AND 通达信>0,0,通达信,4,0),COLOR00AAFF; STICKLINE1(通达信<REF(通达信,1) AND 通达信>0,0,通达信,4.4,0),COLOR00CCFF; STICKLINE1(通达信>=REF(通达信,1) AND 通达信>0,0,通达信,4,0),COLOR0000AA; STICKLINE1(通达信>=REF(通达信,1) AND 通达信>0,0,通达信,4.4,0),COLOR0022CC; STICKLINE1(通达信>REF(通达信,1) AND 通达信<0,0,通达信,4,0),COLORAA00BB; STICKLINE1(通达信>REF(通达信,1) AND 通达信<0,0,通达信,4.4,0),COLORCC22BB; STICKLINE1(通达信<=REF(通达信,1) AND 通达信<0,0,通达信,4,0),COLORFF7700; STICKLINE1(通达信<=REF(通达信,1) AND 通达信<0,0,通达信,4.4,0),COLORFFAA22;V AR18:=(HIGH+LOW+CLOSE)/3;V AR19:=(V AR18-MA(V AR18,14))/(0.015*A VEDEV(V AR18,14));V AR1A:=(V AR18-MA(V AR18,70))/(0.015*A VEDEV(V AR18,70));V AR1B:=IF(VAR19>=150 AND V AR19<200 AND V AR1A>=150 AND V AR1A<200,-10,0);V AR1C:=IF(VAR19<=-150 AND V AR19>-200 AND V AR1A<=-150 AND V AR1A>-200,10,0);V AR1D:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;V AR1E:=100-ABS(V AR1D);买入:IF(BARSCOUNT(CLOSE)<70,-80,IF(V AR1A<=-200 AND V AR19<=-150,15,V AR1C)-80),COLORYELLOW,LINETHICK2;DRAWICON(CROSS(通达信,超买) ,通达信,'ICO1');。

文华财经指标公式源码MACD顶背离底背离

文华财经指标公式源码MACD顶背离底背离

DIFF:EMA(CLOSE,12) - EMA(CLOSE,26);DEA:EMA(DIFF,9),COLORYELLOW;MACD:=2*(DIFF-DEA),NODRAW;JC:=CROSS(DIFF,DEA);SC:=CROSSDOWN(DIFF,DEA);N1:=BARSLAST(JC)+1;N2:=BARSLAST(SC)+1;HH:=V ALUEWHEN(CROSSDOWN(DIFF,DEA),HHV(H,N1));//上次MACD红柱期间合约最大值HH2:=V ALUEWHEN(CROSSDOWN(DIFF,DEA),REF(HH,1));//上上次MACD红柱期间合约最大值MHD:=V ALUEWHEN(CROSSDOWN(DIFF,DEA),HHV(MACD,N1));//上次MACD红柱期间MACD最大值MHD2:=V ALUEWHEN(CROSSDOWN(DIFF,DEA),REF(MHD,1));//上上次MACD红柱期间MACD最大值LL:=VALUEWHEN(CROSS(DIFF,DEA),LLV(L,N2));LL2:=V ALUEWHEN(CROSS(DIFF,DEA),REF(LL,1));MLD:=V ALUEWHEN(CROSS(DIFF,DEA),LLV(MACD,N2));MLD2:=V ALUEWHEN(CROSS(DIFF,DEA),REF(MLD,1));A:MACD<0&&HH>HH2&&MHD<MHD2;//顶背离B:MACD>0&&LL<LL2&&MLD>MLD2;A1:=BACKSET(CROSS(A,0.5),REF(HHVBARS(MACD,N1),1)+1+1);A2:=BACKSET(CROSS(A,0.5),REF(HHVBARS(MACD,N1),SUMBARS(SC,2))+SUMBARS( SC,2)+1);B1:=BACKSET(CROSS(B,0.5),REF(LLVBARS(MACD,N2),1)+1+1);B2:=BACKSET(CROSS(B,0.5),REF(LLVBARS(MACD,N2),SUMBARS(JC,2))+SUMBARS(JC ,2)+1);//DRAWLINE1(CROSS(A2,0.5),MACD,CROSS(A1,0.5),MACD,0),COLORRED,LINETHICK2 ;//DRAWLINE1(CROSS(B2,0.5),MACD,CROSS(B1,0.5),MACD,0),COLORGREEN,LINETHIC K2;//STICKLINE1(MACD>REF(MACD,1),0,MACD,0,0),COLORRED;//STICKLINE1(MACD<REF(MACD,1),0,MACD,0,0),COLORGREEN;//DRAWCOLORLINE(DIFF>REF(DIFF,1),DIFF,COLORWHITE,COLORMAGENTA);//DRAWICON(CROSS(DIFF,0),0,147),V ALIGN0;//DRAWICON(CROSSDOWN(DIFF,0),0,146),V ALIGN2;。

文华财经指标公式期货软件指标公式缠论、顶底背离、金叉死叉,买卖提示指标3

文华财经指标公式期货软件指标公式缠论、顶底背离、金叉死叉,买卖提示指标3

缠论、顶底背离、金叉死叉,买卖提示指标3:DIFF :EMA(CLOSE,12) - EMA(CLOSE,26);DEA :EMA(DIFF,9);MACD :2*(DIFF-DEA);ZERO :0;落差:=DIFF-REF(DIFF,1);斜率:=落差/REF(落差,1);STICKLINE(MACD>0 AND MACD>=REF(MACD,1),0,MACD,8,0),COLOR0000FF; STICKLINE(MACD>0 AND MACD<REF(MACD,1),0,MACD,8,0),COLORFF0000; STICKLINE(MACD<0 AND MACD>=REF(MACD,1),0,MACD,8,0),COLORFF00FF; STICKLINE(MACD<0 AND MACD<REF(MACD,1),0,MACD,8,0),COLOR00FF00;GJ:=MAX(C,O);L4:=LLV(GJ,4);GT:=DEA>REF(DEA,1) AND REF(DEA,1)<REF(DEA,2);A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA); STICKLINE(底背离,DEA*1.09,DEA*0.86,6,0),COLOR00FF00;DRAWLINE(A1=0,DEA,底背离,DEA,0),COLORRED,LINETHICK2;DRAWTEXT(底背离,DEA*1.09,'底背离'),COLOR6600FF;STICKLINE(底背离,DEA*1.09,DEA*0.86,8,0),COLORYELLOW;H4:=HHV(GJ,4);GT2:=DEA<REF(DEA,1) AND REF(DEA,1)>REF(DEA,2);A2:=BARSLAST(REF(GT2,1));顶背离:= REF(H4,A2+1)<H4 AND DIFF<REF(DIFF,A2+1) AND GT2;DRAWLINE(A2=0 ,DEA,顶背离,REF(DEA,GT2),0),COLORGREEN,LINETHICK2; DRAWTEXT(顶背离,REF(DEA,GT2)*1.07,'顶背离'),COLORGREEN;低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;STICKLINE(低位金叉,DEA*0.86,DEA*0.66,6,0),COLORYELLOW;DRAWTEXT(低位金叉,DEA*0.86,' 低位金叉'),COLORYELLOW;突破零轴:=CROSS(DIFF,0) AND DEA <DIFF;STICKLINE(突破零轴,DIFF*0.86,DIFF*0.66,6,0),COLORYELLOW;DRAWTEXT(突破零轴,DEA*0.86,' 突破零轴'),COLORWHITE;跌破零轴:=CROSS(0,DIFF) AND DEA >DIFF;STICKLINE(跌破零轴,DIFF*0.86,DIFF*0.66,6,0),COLORRED;DRAWTEXT(跌破零轴,DEA*2.86,' 跌破零轴'),COLORRED;。

文华财经期货软件指标公式源码赢顺云指标macd kdj rsi cci boll dmi ddx ddy ddz

文华财经期货软件指标公式源码赢顺云指标macd kdj rsi cci boll dmi ddx ddy ddz

AF1:=REF(O,1);AF2:=ABS((REF(C,1)-AF1)/AF1);AF3:=ABS((REF(H,1)-AF1)/AF1);AF4:=ABS((REF(L,1)-AF1)/AF1);BF1:=ABS((AF2+AF3+AF4)/3);BF2:=O*BF1;预测低一:=O-BF2;预测高一:=O+BF2;今日保护价:=(REF(C,2)+REF(C,1)+O)/3 ,COLOR4080FF,NODRAW; 开盘价1:=OPEN;开盘价2:=REF(OPEN,1);最高价1:=HIGH;最高价2:=REF(HIGH,1);最低价1:=LOW;最低价2:=REF(LOW,1);收盘价1:=CLOSE;收盘价2:=REF(CLOSE,1);AAF:=最高价2;BBF:=最低价2;CCF:=开盘价2;DDF:=收盘价2;EEF:=(AAF+BBF+CCF+2*DDF)/5;AAAF:=EEF+(AAF-BBF);BBBF:=2*EEF-BBF;CCCF:=2*EEF-AAF;DDDF:=EEF-(AAF-BBF);上升突破价:=AAAF;上升阻力价:=BBBF;下跌支撑价:=CCCF;下跌反转价:=DDDF;E:=(HIGH+LOW+OPEN+2*CLOSE)/5;阻力:=E+(HIGH-LOW);支撑:=E-(HIGH-LOW);EEE:=(EEF+上升突破价+上升阻力价+下跌支撑价+下跌反转价)/5;心理价:=EEE;FFF:=(EEE+开盘价1)/2;GGG:=(预测低一+FFF)/2;预测低二:MIN(GGG,支撑),NODRAW;预测高二:MAX(MA(REF(HIGH,1)/REF(CLOSE,2),27)*REF(CLOSE,1),阻力),NODRAW;DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);//短周期与长周期的收盘价的指数平滑移动平均值做差。

期货软件指标文华财经指标公式源码期货精准分析点指标公式

期货软件指标文华财经指标公式源码期货精准分析点指标公式

期货软件指标文华财经指标公式源码期货精准分析点指标公式---1. KDJ指标1.1 简介KDJ指标采用最高价、最低价和收盘价来计算市场的超买和超卖情况。

它由三条线组成:K线、D线和J线。

K线反映了最高价与最低价之间的相对位置,D线是K线的简单移动平均,J线即K 线与D线之差。

KDJ指标的公式如下:rsv=(close-minL)/(maxH-minL)*100K=2/3*prevK+1/3*rsvD=2/3*prevD+1/3*KJ=3*K-2*D其中,`rsv`表示未成熟随机值,`minL`和`maxH`分别表示最低价和最高价,`K`、`D`和`J`表示K线、D线和J线。

1.2 使用方法KDJ指标的运用主要体现在以下几个方面:- 超买超卖区域:当K线和D线都在80以上时,表示市场处于超买区域,此时投资者宜保持谨慎。

当K线和D线都在20以下时,表示市场处于超卖区域,可能会有买入机会。

- 金叉死叉:当K线从下方穿过D线时,称为金叉;当K线从上方穿过D线时,称为死叉。

金叉是买入信号,死叉是卖出信号。

2. MACD指标2.1 简介MACD指标是一种趋势跟踪指标,通过比较长期EMA (Exponential Moving Average,指数移动平均线)和短期EMA之间的差异来确定买入和卖出时机。

MACD主要由DIF、DEA和MACD柱状图组成。

其公式如下:DIF = EMA(close,12) - EMA(close,26)DEA = EMA(DIF,9)MACD = 2 * (DIF - DEA)其中,`DIF`表示DIF线,`DEA`表示DEA线,`MACD`表示MACD柱状图。

2.2 使用方法MACD指标的运用主要涉及以下几个方面:- 金叉死叉:当DIF从下方穿过DEA时,称之为金叉;当DIF 从上方穿过DEA时,称之为死叉。

金叉是买入信号,死叉是卖出信号。

- 柱状图分析:MACD柱状图表示DIF与DEA之间的差异,当柱状图位于零轴之上时,表示上涨趋势强劲;当柱状图位于零轴之下时,表示下跌趋势强劲。

缠论指标公式源码文华财经公式源码期货软件指标赢顺云指标

缠论指标公式源码文华财经公式源码期货软件指标赢顺云指标
LL1:=IF(L>REF(L,1)&&REF(L,1)>REF(L,2),REF(L,2),0);
HH2:=VALUEWHEN(HH1>0,HH1);
LL2:=VALUEWHEN(LL1>0,LL1);
K1:=IF(CLOSE>HH2,-3,IF(CLOSE<LL2,1,0));
K2:=VALUEWHEN(K1<>0,K1);
M8:=EMA(CLOSE,8),C0FF;
M62:EMA(M8,65),COLORBLUE,LINETHICK3;
M81:EMA(M62,81),COLOR0000FF,LINETHICK2;
HH1:=IF(H<REF(H,1)&&REF(H,1)<REF(H,2),REF(H,2),0);
缠论指标公式源码文华财经公式源码期货软件指标赢顺云指标
INDEXC:="999001$C";
大盘:=EMA(INDEXC,500)/EMA(C,500);
大盘线:=INDEXC/大盘,LINETHICK1,COLORBLUE;
二号线:EMA(C,25),COLORWHITE,LINETHICK2;
六号线:EMA(C,610),LINETHICK2,COLORYELLOW;
G:=IF(K2=1,HH2,LL2);
G1:=VALUEWHEN(ISLASTBAR,G);
W2:=OPEN-CLOSE;
HT:=IF(OPEN>CLOSE,OPEN,CLOSE);
LT:=IF(OPEN<CLOSE,OPEN,CLOSE);
STICKLINE1(K2>0,OPEN,CLOSE,1.5,0),COLORFFFF00;

文华财经期货软件指标公式源码大顶大底预测

文华财经期货软件指标公式源码大顶大底预测

11,COLOR996699;20,COLOR996699;JY0:=(2*C+H+L)/4;至尊:=GETPRICE1('流通股本');流通盘:=IF(C<300,至尊,1200000000); JZ0:=V/流通盘*100;JA1:=HHVBARS(H,55);JA2:=SUM(JY0,JA1);JA3:=SUM(JY0,2*JA1);顶A1:=(JA2-JA3)/C;JA4:=HHVBARS(H,55);JA5:=SUM(JZ0,JA4);JA6:=SUM(JZ0,2*JA4);顶A2:=(JA5-JA6);顶A3:= (顶A1+顶A2)/2;顶A4:= MA(顶A3,1)+25;JB1:=HHVBARS(H,120);JB2:=SUM(JY0,JB1);JB3:=SUM(JY0,2*JB1);顶B1:=(JB2-JB3)/C;JB4:=HHVBARS(H,120);JB5:=SUM(JZ0,JB4);JB6:=SUM(JZ0,2*JB4);顶B2:=(JB5-JB6);顶B3:= (顶B1+顶B2)/2;顶B4:= MA(顶B3,5)+25;DA1:=LLVBARS(L,65);DA2:=SUM(JY0,DA1);DA3:=SUM(JY0,2*DA1);底A1:=(DA3-DA2)/C;DA4:=LLVBARS(L,65);DA5:=SUM(JZ0,DA4);DA6:=SUM(JZ0,2*DA4);底A2:=(DA6-DA5);底A3:= (底A1+底A2)/2;底A4:= MA(底A3,1)-3;DB1:=LLVBARS(L,850);DB2:=SUM(JY0,DB1);DB3:=SUM(JY0,2*DB1);底B1:=(DB3-DB2)/C;DB4:=LLVBARS(L,850);DB5:=SUM(JZ0,DB4);DB6:=SUM(JZ0,2*DB4);底B2:=(DB6-DB5);底B3:= (底B1+底B2)/2;底B4:= MA(底B3,5)-3;STICKLINE1(顶B4>22,13,22,10,0),COLOR5555AA;STICKLINE1(顶A4>22,15,22,10,0),COLOR885588;STICKLINE1(底B4<0,7,0,10,0),COLOR883333;STICKLINE1(底A4<0,5,0,10,0),COLOR557733;小顶:=IF(顶A4>-3,顶A4,-3),COLORMAGENTA;大顶: IF(顶B4>22,顶B4,22),COLORRED,LINETHICK2;IF(顶A4>22,顶A4,22),COLORMAGENTA;小底:= IF(底A4<25,底A4,25);IF(底A4<0,底A4,0),COLORCY AN;大底: IF(底B4<0,底B4,0),COLORGREEN,LINETHICK2;顶底:=(小顶+小底)/2;顶底线1:= EMA(顶底,3);顶底线2: EMA(顶底,21);顶底线3:= EMA(顶底线2,34);STICKLINE1(顶底线1>顶底线2,顶底线1,顶底线2,0,0),COLORRED;STICKLINE1(顶底线1<顶底线2,顶底线1,顶底线2,0,0),COLORBLUE;PARTLINE1(顶底线1>=REF(顶底线1,1),顶底线1),COLORRED;PARTLINE1(顶底线1<REF(顶底线1,1),顶底线1),COLORCY AN;PARTLINE1(顶底线2>=REF(顶底线2,1),顶底线2),COLORYELLOW;PARTLINE1(顶底线2<REF(顶底线2,1),顶底线2),COLORBBBBBB;PARTLINE1(顶底线3>=REF(顶底线3,1),顶底线3),COLORMAGENTA,LINETHICK3; PARTLINE1(顶底线3<REF(顶底线3,1),顶底线3),COLORBLUE,LINETHICK3; DRAWTEXT(FILTER(顶A4>22,10),18,'小顶'),COLORCY AN;DRAWTEXT(FILTER(顶B4>22,10),20,'大顶'),COLORYELLOW; DRAWTEXT(FILTER(底A4<0,12),4,'小底'),COLORWHITE; DRAWTEXT(FILTER(底B4<0,12),6,'大底'),COLORGREEN;。

文华财经指标公式源码文华财经指标多指标顶底背离

文华财经指标公式源码文华财经指标多指标顶底背离

/*一号线:EMA(CLOSE,144);工作线:EMA(CLOSE,14),COLORRED;二号线:EMA(CLOSE,25);三号线:EMA(CLOSE,318);生命线:EMA(CLOSE,453),COLORRED,LINETHICK2;五号线:EMA(CLOSE,550);六号线:EMA(CLOSE,610);七号线:EMA(CLOSE,730);八号线:EMA(CLOSE,888);九号线:EMA(CLOSE,99),COLORGREEN;DIFF:=( EMA(CLOSE,7) - EMA(CLOSE,19));DEA:=EMA(DIFF,9);MACD:=0.90*(DIFF-DEA);TJ:=(DIFF>=DEA);TJ1:=(DIFF>=0);STICKLINE(TJ,H,L,0.5,0),COLORYELLOW;STICKLINE(TJ,O,C,4,0),COLORYELLOW;STICKLINE(TJ1 AND TJ,H,L,0.5,0),COLORF00FF0;STICKLINE(TJ1 AND TJ,O,C,4,1),COLORF00FF0;STICKLINE(DIFF<DEA,H,L,0.5,0),COLORF0F000;STICKLINE(DIFF<DEA,O,C,4,0),COLORF0F000;VAR1:=(CLOSE*2+HIGH+LOW)/4;SK:= EMA(VAR1,13)-EMA(VAR1,73);SD:= EMA(SK,2);DRAWTEXT((CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03) OR (CROSS(SK,SD) AND SK<=-0.14 )OR (CROSS(SK,SD) AND SK<=0.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035)) ,L*0.99,'短线'),COLORGREEN;STICKLINE((CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03) OR (CROSS(SK,SD) AND SK<=-0.14 )OR (CROSS(SK,SD) AND SK<=0.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035)),H,L,0.5,0),COLORRED;STICKLINE((CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03) OR (CROSS(SK,SD) AND SK<=-0.14 )OR (CROSS(SK,SD) AND SK<=0.05 AN */DIFF :=EMA(CLOSE,12) - EMA(CLOSE,26);DEA :=EMA(DIFF,9);MACD :=(DIFF-DEA)*2;TR := SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),14); HD := HIGH-REF(HIGH,1);LD := REF(LOW,1)-LOW;PDM:= SUM(IF(HD>0 AND HD>LD,HD,0),14);MDM:= SUM(IF(LD>0 AND LD>HD,LD,0),14);PDI:= PDM*100/TR;MDI:= MDM*100/TR;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;LC :=REF(CLOSE,6);//前一周期收盘价RSI1:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;//当根K线收盘价与前一周期收盘价做差,在该差值与0之间取最大值,做N1周期移动平均。

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

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

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

文华财经期货软件指标公式源码MACD顶底背离线背离

文华财经期货软件指标公式源码MACD顶底背离线背离

笔参数:=10;段参数:=2;DIF:EMA(CLOSE,12)-EMA(CLOSE,26),COLORRED,LINETHICK2;DEA:EMA(DIF,9);IF(DIF<DEA,DIF,NULL),COLORWHITE,LINETHICK2;MACD:(DIF-DEA)*2,COLORSTICK;//V AR1:=TDXDLL5(1,H,L,C);笔低A:=LOW<=LLV(LOW,笔参数),NODRAW;笔高A:=HIGH>=HHV(HIGH,笔参数),NODRAW;笔低:=笔低A AND 笔高A=0,NODRAW;笔高:=笔高A AND 笔低A=0,NODRAW;上笔:=TRENDLINES(笔低,LOW,笔高,HIGH),COLOR0000FF;下笔:=TRENDLINES(笔高,HIGH,笔低,LOW),COLOR00FF00;拐下:=上笔>REF(上笔,1) AND 下笔>REFX(下笔,1),NODRAW;拐上:=下笔<REF(下笔,1) AND 上笔<REFX(上笔,1),NODRAW;段低A:=LOW<=LLV(LOW,段参数*笔参数),NODRAW;段高A:=HIGH>=HHV(HIGH,段参数*笔参数),NODRAW;段低:=段低A AND 段高A=0,NODRAW;段高:=段高A AND 段低A=0,NODRAW;上段:=TRENDLINES(段低,LOW,段高,HIGH),LINETHICK2,COLORMAGENTA;下段:=TRENDLINES(段高,HIGH,段低,LOW),LINETHICK2,COLORFF8000;特殊底:=下段=上段AND 段低AND MACD<0,NODRAW;TTT:=REF(BARSLAST(特殊底),1)+1;底背离1:=特殊底AND LOW<REF(LOW,TTT) AND DIF>REF(DIF,TTT) AND LLV(DIF,BARSLASTCOUNT(MACD<0))>REF(DIF,TTT),NODRAW;底背左点1:=BACKSET(底背离1,TTT+1) AND REF(BACKSET(底背离1,TTT+1),1)=0 AND 特殊底;DRAWLINE(底背左点1,DIF,底背离1,DIF,0),COLORFF00FF,LINETHICK2;底背离2:=特殊底AND LOW<REF(LOW,TTT) AND MACD>REF(MACD,TTT) AND LLV(MACD,BARSLASTCOUNT(MACD<0))>REF(MACD,TTT),NODRAW;底背左点2:=BACKSET(底背离2,TTT+1) AND REF(BACKSET(底背离2,TTT+1),1)=0 AND 特殊底;DRAWLINE(底背左点2,MACD,底背离2,MACD,0),COLORFF00FF,LINETHICK1;特殊顶:=下段=上段AND 段高AND MACD>0,NODRAW;TTTG:=REF(BARSLAST(特殊顶),1)+1;顶背离1:=特殊顶AND HIGH>REF(HIGH,TTTG) AND DIF<REF(DIF,TTTG) AND HHV(DIF,BARSLASTCOUNT(MACD>0))<REF(DIF,TTTG),NODRAW;顶背左点1:=BACKSET(顶背离1,TTTG+1) AND REF(BACKSET(顶背离1,TTTG+1),1)=0 AND 特殊顶;DRAWLINE(顶背左点1,DIF,顶背离1,DIF,0),COLORGREEN,LINETHICK2;顶背离2:=特殊顶AND HIGH>REF(HIGH,TTTG) AND MACD<REF(MACD,TTTG) AND HHV(MACD,BARSLASTCOUNT(MACD>0))<REF(MACD,TTTG),NODRAW;顶背左点2:=BACKSET(顶背离2,TTTG+1) AND REF(BACKSET(顶背离2,TTTG+1),1)=0 AND 特殊顶;DRAWLINE(顶背左点2,MACD,顶背离2,MACD,0),COLORGREEN,LINETHICK1;DRAWTEXT(底背离2=1,MACD,' 柱背离'),COLORFF00FF;DRAWTEXT(底背离1=1,DIF,' 线背离'),COLORFF00FF;DRAWTEXT(顶背离2=1,MACD,' 柱背离'),COLORGREEN;DRAWTEXT(顶背离1=1,DIF,' 线背离'),COLORGREEN;DRAWICON(REF(DIF,1)>REF(DIF,2) AND DIF<REF(DIF,1) AND DIF>0 AND DIF>DEA,DIF*1.1,2),COLORGREEN;DRAWICON(REF(DIF,1)<REF(DIF,2) AND DIF>REF(DIF,1) AND DIF<0 AND DIF<DEA,DIF*1.1,1),COLORRED;XA_2:=BARSLAST(REF(MACD,1)<0 AND MACD>0);XA_3:=LLVBARS(MACD,XA_2+20);XA_4:=IF(XA_3>XA_2,REF(MACD,XA_3),0);XA_5:=MACD<0 AND MACD>XA_4 AND LOW=LLV(LOW,XA_2+20) AND XA_4<0;柱背离1:=(REF(XA_5,1)=1 AND MACD>REF(MACD,1) AND REF(DIF,XA_3)<0 AND MACD<0),NODRAW;DRAWLINE(XA_4=XA_3,MACD,柱背离1,MACD,0),COLORRED,LINETHICK1; DRAWICON(柱背离1,0,26);柱背离A:BARSLAST(柱背离1>0)+1,COLORYELLOW,NODRAW;柱背离:BARSLAST(底背离2>0)+1,COLORMAGENTA,NODRAW;线背离:BARSLAST(底背离1>0)+1,COLORWHITE,NODRAW;。

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

缠论、顶底背离、金叉死叉,买卖提示指标3:
DIFF :EMA(CLOSE,12) - EMA(CLOSE,26);
DEA :EMA(DIFF,9);
MACD :2*(DIFF-DEA);
ZERO :0;
落差:=DIFF-REF(DIFF,1);
斜率:=落差/REF(落差,1);
STICKLINE(MACD>0 AND MACD>=REF(MACD,1),0,MACD,8,0),COLOR0000FF; STICKLINE(MACD>0 AND MACD<REF(MACD,1),0,MACD,8,0),COLORFF0000; STICKLINE(MACD<0 AND MACD>=REF(MACD,1),0,MACD,8,0),COLORFF00FF; STICKLINE(MACD<0 AND MACD<REF(MACD,1),0,MACD,8,0),COLOR00FF00;
GJ:=MAX(C,O);
L4:=LLV(GJ,4);
GT:=DEA>REF(DEA,1) AND REF(DEA,1)<REF(DEA,2);
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA); STICKLINE(底背离,DEA*1.09,DEA*0.86,6,0),COLOR00FF00;
DRAWLINE(A1=0,DEA,底背离,DEA,0),COLORRED,LINETHICK2;
DRAWTEXT(底背离,DEA*1.09,'底背离'),COLOR6600FF;
STICKLINE(底背离,DEA*1.09,DEA*0.86,8,0),COLORYELLOW;
H4:=HHV(GJ,4);
GT2:=DEA<REF(DEA,1) AND REF(DEA,1)>REF(DEA,2);
A2:=BARSLAST(REF(GT2,1));
顶背离:= REF(H4,A2+1)<H4 AND DIFF<REF(DIFF,A2+1) AND GT2;
DRAWLINE(A2=0 ,DEA,顶背离,REF(DEA,GT2),0),COLORGREEN,LINETHICK2; DRAWTEXT(顶背离,REF(DEA,GT2)*1.07,'顶背离'),COLORGREEN;
低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;
STICKLINE(低位金叉,DEA*0.86,DEA*0.66,6,0),COLORYELLOW;
DRAWTEXT(低位金叉,DEA*0.86,' 低位金叉'),COLORYELLOW;
突破零轴:=CROSS(DIFF,0) AND DEA <DIFF;
STICKLINE(突破零轴,DIFF*0.86,DIFF*0.66,6,0),COLORYELLOW;
DRAWTEXT(突破零轴,DEA*0.86,' 突破零轴'),COLORWHITE;
跌破零轴:=CROSS(0,DIFF) AND DEA >DIFF;
STICKLINE(跌破零轴,DIFF*0.86,DIFF*0.66,6,0),COLORRED;
DRAWTEXT(跌破零轴,DEA*2.86,' 跌破零轴'),COLORRED;。

相关文档
最新文档