文华赢顺指标公式多空决策适用于股指期货现货黄金白银原油外汇

合集下载

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

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

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

文华赢顺云交易软件(wh6)指标公式 金融统计函数

文华赢顺云交易软件(wh6)指标公式   金融统计函数

文华赢顺云交易软件(wh6)指标公式金融统计函数文华赢顺云交易软件(wh6)指标公式-金融统计函数文华盈顺云交易软件(wh6)指数公式文华赢顺云交易软件(wh6)指标公式――金融统计函数(一) Barscount(cond):从第一个有效循环到当前循环的循环数。

注:1、返回值为cond从第一个有效周期开始计算,到现在为止的周期数。

2、条件第一次成立的当根k线上barscount(cond)的返回值为0。

例:巴斯康特(ma(c,4));//计算ma(c,4)第一次有返回值到当前的周期数。

(二) Barslastcount(cond):计算从当前循环开始持续满足条件的循环数。

注:1、返回值为从当前周期计算cond连续不为0的周期数。

2.当该条件第一次保持时,根K行上barslastcount(cond)的返回值为1。

例子:barslastcount(close>open);//计算K线连续为正线时的循环次数。

(三)barssince(cond):第一个条件成立到当前的周期数。

注:1.返回值是从第一次建立cond到当前cond的循环数2、条件第一次成立的当根k线上barssince(cond)的返回值为0。

例子:barssince(close>open);//计算从第一次满足正直线条件的K线到现在的循环次数。

(四)barssincen(cond,n):统计n周期内第一次条件成立到当前的周期数注:1.N包含当前的K线。

2、当n为有效值,但当前的k线数不足n根,按照实际的根数计算;3、若n为0返回无效值;4、n可以为变量。

例:n:=barslast(日期<>ref(日期,1))+1;//分钟周期,一天的K线数。

文华盈顺云交易软件(wh6)指数公式barssincen(isup,n);//统计n周期内第一次满足阳线到当前的周期数。

(五) Barslast(cond):从上一个条件cond到当前条件cond的循环数。

文华财经期货软件指标公式源码赢顺云指标画线压力支撑多空指标

文华财经期货软件指标公式源码赢顺云指标画线压力支撑多空指标

文华财经期货软件指标公式源码赢顺云指标画线压力支撑多空指标N:=5;WY:EMA(C,12),LINETHICK2,COLORYELLOW;VAR1:=REF(CLOSE,1);VAR2:=SMA(MAX(CLOSE-VAR1,0),7,1)/SMA(ABS(CLOSE-VAR1),7,1)*100;VAR3:=CROSS(69,VAR2);VARA:=FILTER(VAR3,4);DRAWICON(VARA,HIGH*1.035,2);DRAWTEXT(VARA,HIGH*1.04,'卖出'),COLORGREEN;缩量:=V<ref(v,1);< p="">新高:=C=HHV(C,20);下跌:=LLV(C,3)*1.04<hhv(c,10);< p="">回调:=BARSLASTCOUNT(缩量)>3 ANDEXIST(新高,8) AND 下跌AND C>MA(C,60) AND O<ma(c,20);< p="">DRAWTEXT(回调,LOW*1.04,'补仓'),COLORYELLOW;VAR4:=REF(CLOSE,1);VAR5:=SMA(MAX(CLOSE-VAR4,0),6,1)/SMA(ABS(CLOSE-VAR4),6,1)*100;ROC:=(CLOSE-REF(CLOSE,12))/REF(CLOSE,12)*100;DRAWTEXT(VAR5>REF(VAR5,1) AND VAR5>80 AND ROC<ref(roc,1),high*1.04,'风险'),colorblue;< p="">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;G1:=C<ref(c,3));<="" and="" p="">MA45:=MA((2*CLOSE+1.2*OPEN+HIGH+LOW)/5.2,4);J5:=MA((2*CLOSE+1.2*OPEN+HIGH+LOW)/5.2,5);MA4:=MA((MA45+J5)/2,1);SSV:=(CLOSE-LLV(LOW,6))/(HHV(HIGH,6)-LLV(LOW,6))*100;KKK:=SMA(SSV,3,1);H1:=EMA(EMA(LLV(J5,15),2),2);YY4:=LLV(C,5)*1.15<hhv(c,15)< p="">AND LOWAND VOL/MA(V,10)<1.4AND CLOSE/REF(CLOSE,1)>1.02AND COUNT(G1,6)>=1AND CLOSE>OPEN;CAPITAL:=GETPRICE1('流通股本');大盘股:=SUM(REF(V,1),8)/CAPITAL<15/100;中盘股:=SUM(REF(V,1),8)/CAPITAL<25/100;小盘股:=SUM(REF(V,1),8)/CAPITAL<30/100;大盘股1:=SUM(REF(V,1),5)/CAPITAL<10/100;中盘股1:=SUM(REF(V,1),5)/CAPITAL<14/100;小盘股1:=SUM(REF(V,1),5)/CAPITAL<15/100;DP:=CAPITAL>2500000;ZP:=CAPITAL>600000 AND CAPITAL<2500000;XP:=CAPITAL<600000;综合:=IF(DP=1,大盘股,IF(ZP=1,中盘股,小盘股));综合1:=IF(DP=1,大盘股1 ,IF(ZP=1,中盘股1,小盘股1));振幅:=(REF(HHV(C,5),1)-REF(LLV(C,5),1))/REF(LLV(C,5),1)<5.3/100;涨幅:=CLOSE/REF(C,1)>=1.048;JX3:=V/MA(V,10);YY3:=振幅AND ( 涨幅) AND C=HHV(C,5) AND 综合 1 AND 综合AND JX3<1.8 AND HHV(H,20)/C>1.04 ;买入:=YY4 OR YY3 ;DRAWTEXT(买入,LOW*1.01,'买入'),COLORRED;BB:=C/HHV(C,5)<1.15;下:=C<ref(c,1);< p="">YF:=LAST(下,4,1) AND COUNT(C=2AND (C>REF(C,1) OR C/O>1.035 OR (O/L>0.03 AND C>O)) AND BB AND (C-L)/C>0.02 AND J<0 AND (H-C)<(C-O); YF1:=COUNT(下,5)>=3 AND COUNT(C=3AND C*1.15REF(C,1)AND C>O AND J<2;A44:=VA55:=((C-L)/C>0.02 OR C>REF(C,1)*1.01) AND A44;A6:=FILTER(A55,1);YF2:=A6 AND BB AND H>REF(L,1);二档:=YF OR YF1 OR YF2;DRAWTEXT(二档,LOW*1.01,'二档'),COLORMAGENTA; INDEXC:="999300$C";TQ1:=(INDEXC-MA(INDEXC,58))/MA(INDEXC,58)<-0.152; TQ2:=(C-EMA(C,58))/EMA(C,58)<-0.19;买1:=TQ2 AND TQ1;T4:=(C-MA(C,2))/MA(C,2)*100;T5:=INDEXC;T6:=MA(T5,13);T7:=T6>1.050*T5;T8:=(C-REF(C,26))/REF(C,26)*10;T9:=T7;T10:=T8<-2.30 ;T11:=T4<-2.7 ;T12:=T9 AND T10 AND T11 ;T13:=CROSS(0.5,T12);T14:=CROSS(T13,0.5);T15:=BARSLAST(T14=1);T16:=T15<=5 AND C<="" p="">买2:=T13 OR T16;T17:= (C-MA(C,2))/MA(C,2)*100;T18:=INDEXC;T19:=MA(T18,56);T20:=T18/T19<0.94;T21:=(C-REF(C,26))/REF(C,26)*10;T22:=T20;T23:=T21<-2.55;T24:=T17<-2.7;T25:=T22 AND T23 AND T24;T26:=CROSS(0.5,T25);T27:=CROSS(T26,0.5);T28:=BARSLAST(T27=1);T29:=T28<=5 AND C<1.02*REF(C,T28); 底4:=T26 OR T29;T30:= (C-MA(C,2))/MA(C,2)*100;T31:=INDEXC;T32:=MA(T31,13);T33:=T32>1.050*T31;T34:=(C-REF(C,26))/REF(C,26)*10;T35:=T33;T36:=T34<-2.69;T37:=T30<-3.09;T38:=T35 AND T36 AND T37;T39:=CROSS(0.5,T38);T40:=CROSS(T39,0.5);T41:=BARSLAST(T40=1);T42:=T41<=5 AND C<ref(c,t41);< p="">买3:=COUNT(T39 OR T42,4)=4;T43:=EMA(((C*1.1-LLV(LOW,630))/(HHV(HIGH,630)-LLV(LOW,630))-(C*0.9-LLV(LOW,630))/(HHV(HI GH,630)-LLV(LOW,630)))*80,5);T44:=INDEXC;T45:=MA(T44,5);T46:=MA(T44,20);T47:=MA(T44,30);T48:=T45>T44*1.03 AND T46>T44*1.13;T49:=T48;目标:=COUNT(T43<6 AND T49,3)>=3;新目标:=买3 OR 目标;WYY:=((COUNT(买1 AND 底4,6)=6 OR COUNT(买1 AND 买2,4)=4 OR COUNT(买2 AND 底4,5)=5) OR 新目标)AND C<="" and="" o三档:=WYY;DRAWTEXT(三档,LOW*1.01,'三档'),COLORMAGENTA; AMOUNT:=AVPRICE*V;VARQ1:=AMOUNT/VOL/14;VARQ2:=(3*HIGH+LOW+OPEN+2*CLOSE)/14;VARQ3:=SUM(AMOUNT,N)/VARQ1/14;VARQ4:=DMA(VARQ2,VOL/VARQ3);抄底:=(CLOSE-VARQ4)/VARQ4*100;AAQ:=O>MA(C,5) OR O<ma(c,3);< p="">BBQ:=(H-O)<(O-C)/2;CCQ:=(O-C)/O>7/100;WY7:=CROSS(-1.65,抄底) AND AAQ AND BBQ AND CCQ; 四档:=WY7;DRAWTEXT(四档,LOW*1.01,'四档'),COLORMAGENTA;</ma(c,3);<></ref(c,t41);<></ref(c,1);<></hhv(c,15)<></ref(roc,1),high*1.04,'风险'),colorblue;<></ma(c,20);<></hhv(c,10);<></ref(v,1);<>。

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

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

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

文华赢顺云交易软件(wh6)指标公式――引用数据函数

文华赢顺云交易软件(wh6)指标公式――引用数据函数

文华赢顺云交易软件(wh6)指标公式――引用数据函数文华赢顺云交易软件(wh6)指标公式文华盈顺云交易软件(wh6)指数公式-参考数据函数(一)avprice:取得k线图的均价。

注:1.表示一条K线内的平均价格;2、日线周期上收盘后与settle函数一样取得当日的结算价。

例1:a:avprice;//定义变量a为均价线;例2:ma5:ma(avprice,5);//定义五个周期均价的平均值;例3:c>ma(avprice,5);//价格大于五个周期均价的平均值则返回1,否则返回0。

(二)收盘:获取K线图的收盘价。

注:1.K线未完成时,获取最新价格。

2.可以缩写为C。

例1:a:结束;//将变量a定义为收盘价(当K线未完成时,a是最新价格)。

例2:ma5:=ma(c,5);//定义收盘价的5周期均线(c为close简写)。

例3:a:=ref(c,1);//获取上一个K线的收盘价。

(三)dualvolume:多空量函数。

此功能可通过两种方式使用:1、dualvolume('m'):括号中填写m,则函数返回一定周期内的(主动买量-主动卖量)的平均数值。

2.Dualvolume('n'):如果括号中填充了n,则该函数返回K线图上的活跃购买量和活跃销售量之差。

注:1、用法1:“一定周期”由参数p的数值决定,如果不定义p,默认为5周期。

p不能直接定义,需要在参数列表中定义。

2.主动买入量与主动卖出量的比例相等,或一侧为100%,不画栏。

3、在日、周、月周期上考虑交割信息(即交割后,重新挂牌,要重新计算)。

1/7文华赢顺云交易软件(wh6)指标公式4.在日线下,以1分钟和3分钟等周期计算(即从新交易日的第一个根开始重新计算)。

5.指数没有主动买入和主动卖出的概念,因此该功能在指数合约日周期中的比例是根据指数的所有合约计算的;在指数合约日线以下的时段不支持此功能。

例1:m:=双卷('m');//5个周期的平均值(主动购买-主动出售)。

文华财经期货软件指标公式源码赢顺云指标画线压力支撑多空指标

文华财经期货软件指标公式源码赢顺云指标画线压力支撑多空指标

N:=5;WY:EMA(C,12),LINETHICK2,COLORYELLOW;VAR1:=REF(CLOSE,1);VAR2:=SMA(MAX(CLOSE-VAR1,0),7,1)/SMA(ABS(CLOSE-VAR1),7,1)*100;VAR3:=CROSS(69,VAR2);VARA:=FILTER(VAR3,4);DRAWICON(VARA,HIGH*1.035,2);DRAWTEXT(VARA,HIGH*1.04,'卖出'),COLORGREEN;缩量:=V<REF(V,1);新高:=C=HHV(C,20);下跌:=LLV(C,3)*1.04<HHV(C,10);回调:=BARSLASTCOUNT(缩量)>3 ANDEXIST(新高,8) AND 下跌AND C>MA(C,60) AND O<MA(C,20);DRAWTEXT(回调,LOW*1.04,'补仓'),COLORYELLOW;VAR4:=REF(CLOSE,1);VAR5:=SMA(MAX(CLOSE-VAR4,0),6,1)/SMA(ABS(CLOSE-VAR4),6,1)*100;ROC:=(CLOSE-REF(CLOSE,12))/REF(CLOSE,12)*100;DRAWTEXT(VAR5>REF(VAR5,1) AND VAR5>80 AND ROC<REF(ROC,1),HIGH*1.04,'风险'),COLORBLUE;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;G1:=C<REF(C,1) AND (REF(C,1)<REF(C,2)) AND (REF(C,2)<REF(C,3));MA45:=MA((2*CLOSE+1.2*OPEN+HIGH+LOW)/5.2,4);J5:=MA((2*CLOSE+1.2*OPEN+HIGH+LOW)/5.2,5);MA4:=MA((MA45+J5)/2,1);SSV:=(CLOSE-LLV(LOW,6))/(HHV(HIGH,6)-LLV(LOW,6))*100;KKK:=SMA(SSV,3,1);H1:=EMA(EMA(LLV(J5,15),2),2);YY4:=LLV(C,5)*1.15<HHV(C,15)AND LOW<H1 AND KKK<20AND VOL/MA(V,10)<1.4AND CLOSE/REF(CLOSE,1)>1.02AND COUNT(G1,6)>=1AND CLOSE>OPEN;CAPITAL:=GETPRICE1('流通股本');大盘股:=SUM(REF(V,1),8)/CAPITAL<15/100;中盘股:=SUM(REF(V,1),8)/CAPITAL<25/100;小盘股:=SUM(REF(V,1),8)/CAPITAL<30/100;大盘股1:=SUM(REF(V,1),5)/CAPITAL<10/100;中盘股1:=SUM(REF(V,1),5)/CAPITAL<14/100;小盘股1:=SUM(REF(V,1),5)/CAPITAL<15/100;DP:=CAPITAL>2500000;ZP:=CAPITAL>600000 AND CAPITAL<2500000;XP:=CAPITAL<600000;综合:=IF(DP=1,大盘股,IF(ZP=1,中盘股,小盘股));综合1:=IF(DP=1,大盘股1 ,IF(ZP=1,中盘股1,小盘股1));振幅:=(REF(HHV(C,5),1)-REF(LLV(C,5),1))/REF(LLV(C,5),1)<5.3/100;涨幅:=CLOSE/REF(C,1)>=1.048;JX3:=V/MA(V,10);YY3:=振幅AND ( 涨幅) AND C=HHV(C,5) AND 综合 1 AND 综合AND JX3<1.8 AND HHV(H,20)/C>1.04 ;买入:=YY4 OR YY3 ;DRAWTEXT(买入,LOW*1.01,'买入'),COLORRED;BB:=C/HHV(C,5)<1.15;下:=C<REF(C,1);YF:=LAST(下,4,1) AND COUNT(C<REF(C,1)*0.95,5)>=2AND (C>REF(C,1) OR C/O>1.035 OR (O/L>0.03 AND C>O))AND BB AND (C-L)/C>0.02 AND J<0 AND (H-C)<(C-O);YF1:=COUNT(下,5)>=3 AND COUNT(C<REF(C,1)*0.95,6)>=3AND C*1.15<HHV(C,5) AND C>REF(C,1)AND C>O AND J<2;A44:=V<REF(V,1)*2.8 AND COUNT(C<O*0.95,2)=2;A55:=((C-L)/C>0.02 OR C>REF(C,1)*1.01) AND A44;A6:=FILTER(A55,1);YF2:=A6 AND BB AND H>REF(L,1);二档:=YF OR YF1 OR YF2;DRAWTEXT(二档,LOW*1.01,'二档'),COLORMAGENTA; INDEXC:="999300$C";TQ1:=(INDEXC-MA(INDEXC,58))/MA(INDEXC,58)<-0.152; TQ2:=(C-EMA(C,58))/EMA(C,58)<-0.19;买1:=TQ2 AND TQ1;T4:=(C-MA(C,2))/MA(C,2)*100;T5:=INDEXC;T6:=MA(T5,13);T7:=T6>1.050*T5;T8:=(C-REF(C,26))/REF(C,26)*10;T9:=T7;T10:=T8<-2.30 ;T11:=T4<-2.7 ;T12:=T9 AND T10 AND T11 ;T13:=CROSS(0.5,T12);T14:=CROSS(T13,0.5);T15:=BARSLAST(T14=1);T16:=T15<=5 AND C<REF(C,T15) ;买2:=T13 OR T16;T17:= (C-MA(C,2))/MA(C,2)*100;T18:=INDEXC;T19:=MA(T18,56);T20:=T18/T19<0.94;T21:=(C-REF(C,26))/REF(C,26)*10;T22:=T20;T23:=T21<-2.55;T24:=T17<-2.7;T25:=T22 AND T23 AND T24;T26:=CROSS(0.5,T25);T27:=CROSS(T26,0.5);T28:=BARSLAST(T27=1);T29:=T28<=5 AND C<1.02*REF(C,T28);底4:=T26 OR T29;T30:= (C-MA(C,2))/MA(C,2)*100;T31:=INDEXC;T32:=MA(T31,13);T33:=T32>1.050*T31;T34:=(C-REF(C,26))/REF(C,26)*10;T35:=T33;T36:=T34<-2.69;T37:=T30<-3.09;T38:=T35 AND T36 AND T37;T39:=CROSS(0.5,T38);T40:=CROSS(T39,0.5);T41:=BARSLAST(T40=1);T42:=T41<=5 AND C<REF(C,T41);买3:=COUNT(T39 OR T42,4)=4;T43:=EMA(((C*1.1-LLV(LOW,630))/(HHV(HIGH,630)-LLV(LOW,630))-(C*0.9-LLV(LOW,630))/(HHV(HI GH,630)-LLV(LOW,630)))*80,5);T44:=INDEXC;T45:=MA(T44,5);T46:=MA(T44,20);T47:=MA(T44,30);T48:=T45>T44*1.03 AND T46>T44*1.13;T49:=T48;目标:=COUNT(T43<6 AND T49,3)>=3;新目标:=买3 OR 目标;WYY:=((COUNT(买1 AND 底4,6)=6 OR COUNT(买1 AND 买2,4)=4 OR COUNT(买2 AND 底4,5)=5) OR 新目标)AND C<MA(C,3) AND O<MA(C,3) ;三档:=WYY;DRAWTEXT(三档,LOW*1.01,'三档'),COLORMAGENTA;AMOUNT:=AVPRICE*V;VARQ1:=AMOUNT/VOL/14;VARQ2:=(3*HIGH+LOW+OPEN+2*CLOSE)/14;VARQ3:=SUM(AMOUNT,N)/VARQ1/14;VARQ4:=DMA(VARQ2,VOL/VARQ3);抄底:=(CLOSE-VARQ4)/VARQ4*100;AAQ:=O>MA(C,5) OR O<MA(C,3);BBQ:=(H-O)<(O-C)/2;CCQ:=(O-C)/O>7/100;WY7:=CROSS(-1.65,抄底) AND AAQ AND BBQ AND CCQ;四档:=WY7;DRAWTEXT(四档,LOW*1.01,'四档'),COLORMAGENTA;。

文华财经指标公式期货软件指标公式赢顺云指标画线指标高低点

文华财经指标公式期货软件指标公式赢顺云指标画线指标高低点

A1:=REF(HIGH,3)=HHV(HIGH,2*3+1);B1:=FILTER(A1,3);C1:=BACKSET(B1,3+1);D1:=FILTER(C1,3);//{高点}A2:=REF(LOW,3)=LLV(LOW,2*3+1);B2:=FILTER(A2,3);C2:=BACKSET(B2,3+1);D2:=FILTER(C2,3);//{低点}E1:=(REF(LLV(LOW,2*3),1)+REF(HHV(HIGH,2*3),1))/2;E2:=(HIGH+LOW)/2;//{高低点出现在同一K线上时可作取舍}H1:=(D1 AND NOT(D2 AND E1>=E2)) OR BARSTATUS=2 OR BARSCOUNT(CLOSE)=1; H2:=D1 AND NOT(D2 AND E1>=E2);L1:=D2 AND NOT(D1 AND E1=E2);X1:=REF(BARSLAST(H1),1)+1;F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,LOW,1000000),X1)+1);G1:=F1>REF(F1,1);I1:=BACKSET(G1,1);LD:=I1>REF(I1,1);//{过滤后低点}L2:=LD OR BARSTATUS=2 OR BARSCOUNT(CLOSE)=1;X2:=REF(BARSLAST(L2),1)+1;F2:=BACKSET(L2 AND COUNT(H2,X2)>0,HHVBARS(IF(H2,HIGH,0),X2)+1);G2:=F2>REF(F2,1);I2:=BACKSET(G2,1);HD:=I2>REF(I2,1);//{过滤后高点}DRAWLINE1(LD,L,HD,H,0),COLORWHITE,LINETHICK1,POINTDOT;DRAWLINE1(HD,H,LD,L,0),COLORWHITE,LINETHICK1,POINTDOT;J1:=BACKSET(BARSTATUS=2,MIN(BARSLAST(HD),BARSLAST(LD))+1);J2:=J1>REF(J1,1);DRAWLINE1(J2,IF(HD,H,L),BARSTATUS=2,IF(BARSLAST(HD)>BARSLAST(LD),H,L),0),COLORWHITE,LI NETHICK1,POINTDOT;A3:=H;B3:=REF(H,REF(BARSLAST(HD),1)+1)>REF(H,REF(BARSLAST(HD),1)+2+REF(BARSLAST(HD),REF(BAR SLAST(HD),1)+2));D3:=A3 AND B3 AND HD;E3:=BACKSET(D3,REF(BARSLAST(HD),1)+2);HH:=E3>REF(E3,1);//{找出全部长期高点}A4:=L>REF(L,REF(BARSLAST(LD),1)+1);B4:=REF(L,REF(BARSLAST(LD),1)+1);D4:=A4 AND B4 AND LD;E4:=BACKSET(D4,REF(BARSLAST(LD),1)+2);LL:=E4>REF(E4,1);//{找出全部长期低点}DRAWICON(HH,H+1.02,8),ALIGN1;DRAWICON(LL,L-0.98,7),ALIGN1;H3:=HH OR BARSTATUS=2 OR BARSCOUNT(C)=1;//{后面进行过滤,方法同前。

文华财经期货软件指标赢顺云指标公式华安期货

文华财经期货软件指标赢顺云指标公式华安期货
STICKLINE(VAR5<REF(VAR5,1),0,VAR5,0.3,0),COLORFFAAAA;
VAR21:=SMA(ABS(HIGH-VAR1),13,1)/SMA(MIN(HIGH-VAR1,0),10,1);
VAR31:=EMA(VAR21,10);
VAR41:=HHV(HIGH,33);
VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),10,1);
VAR3:=EMA(VAR2,10);
VAR4:=LLV(LOW,33);
VAR5:=EMA(IF(LOW<=VAR4,VAR3,0),3);
主力进场:IF(VAR5>REF(VAR5,1),VAR5,0),COLORRED,NODRAW;
STICKLINE(VAR51<REF(VAR51,1),0,VAR51,0.3,0),COLORFFFF55;
出货:IF(VAR51>REF(VAR51,1),VAR51,0),COLORCYAN,NODRAW;
STICKLINE(VAR51>REF(VAR51,1),0,VAR51,3,0 ),COLORCYAN;
STICKLINE(VAR5>REF(VAR5,1),0,VAR5,1.5,0 ),COLORBB0000;
STICKLINE(VAR5>REF(VAR5,1),0,VAR5,0.9,0 ),COLORDD0000;
STICKLINE(VAR5>REF(VAR5,1),0,VAR5,0.3,0 ),COLORFF0000;
VAR51:=EMA(IF(HIGH>=VAR41,VAR31,0),3);
主力拉高:IF(VAR51<REF(VAR51,1),VAR51,0),COLORYELLOW,NODRAW;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

多空波段精品一目了然文华财经指标公式源码

多空波段精品一目了然文华财经指标公式源码

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,COLORRED;中线:=(支撑+阻力)/2,COLORWHITE,POINTDOT;V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55) -LLV(L,55))*100,5,1),3,1);趋势线:EMA(V11,3),LINETHICK2,COLORMAGENTA;V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;STICKLINE(趋势线<11,趋势线,11,5,0),COLORYELLOW;AA:=(趋势线<11) AND FILTER((趋势线<=11),15) AND C<中线;BB0:=REF(趋势线,1)<11 AND CROSS(趋势线,11) AND C<中线;BB1:=REF(趋势线,1)<11 AND REF(趋势线,1)>6 AND CROSS(趋势线,11);BB2:=REF(趋势线,1)<6 AND REF(趋势线,1)>3 AND CROSS(趋势线,6);BB3:=REF(趋势线,1)<3 AND REF(趋势线,1)>1 AND CROSS(趋势线,3);BB4:=REF(趋势线,1)<1 AND REF(趋势线,1)>0 AND CROSS(趋势线,1);BB5:=REF(趋势线,1)<0 AND CROSS(趋势线,0);BB:=BB1=1 OR BB2=1 OR BB3=1 OR BB4=1 OR BB5=1;STICKLINE(BB=1 AND C<中线,11,50,3,0),COLORRED;DRAWICON(BB=1 AND C<中线,55,1);DRAWTEXT(BB0,60,'★买多'),COLORRED;DRAWTEXT(AA,16,'等待底分型'),COLORYELLOW;STICKLINE(趋势线>89,趋势线,89,5,0),COLORWHITE;CC:=(趋势线>89) AND FILTER((趋势线>89),15) AND C>中线;DD0:=REF(趋势线,1)>89 AND CROSS(89,趋势线) AND C>中线;DD1:=REF(趋势线,1)>89 AND REF(趋势线,1)<94 AND CROSS(89,趋势线);DD2:=REF(趋势线,1)>94 AND REF(趋势线,1)<97 AND CROSS(94,趋势线);DD3:=REF(趋势线,1)>97 AND REF(趋势线,1)>99 AND CROSS(97,趋势线);DD4:=REF(趋势线,1)>99 AND REF(趋势线,1)<100 AND CROSS(99,趋势线);DD5:=REF(趋势线,1)>100 AND CROSS(100,趋势线);DD:=DD1=1 OR DD2=1 OR DD3=1 OR DD4=1 OR DD5=1;STICKLINE(DD=1 AND C>中线,89,50,3,0),COLORGREEN;DRAWICON(DD=1 AND C>中线,45,2);DRAWTEXT(DD0,40,'★沽空'),COLORGREEN;DRAWTEXT (CC,84,'等待顶分型'),COLORWHITE;顶:89,COLORGREEN;底:11,COLORRED;中:50,POINTDOT,COLORWHITE;DRAWTEXT(ISLASTBAR,顶,'空'),COLORGREEN;DRAWTEXT(ISLASTBAR,底,'多'),COLORRED;DRAWTEXT(ISLASTBAR,中,'中'),COLORWHITE;VA1:=HHV(HIGH,9)-LLV(LOW,9);VA2:=HHV(HIGH,9)-CLOSE;VA3:=CLOSE-LLV(LOW,9);VA4:=VA2/VA1*100-70;VA5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;VA6:=(2*CLOSE+HIGH+LOW)/4;VA7:=SMA(VA3/VA1*100,3,1);VA8:=LLV(LOW,34);VA9:=SMA(VA7,3,1)-SMA(VA4,9,1);VARA:=IF(VA9>100,VA9-100,0);VARB:=HHV(HIGH,34);VARC:=EMA((VA6-VA8)/(VARB-VA8)*100,13);VARD:=EMA(0.667*REF(VARC,1)+0.333*VARC,2);INDEXL:="999001$L";INDEXC:="999001$C";INDEXH:="999001$H";VARE:=SMA(MAX(CLOSE-REF(CLOSE,1),0)/CLOSE,8,1)/SMA(ABS(INDEXC-REF(INDEXC,1))/INDEXC,8 ,1)*100-25;VARF:=MA(VARE,3);生命线:EMA(VARD,1), COLORFF00FF;VAR1:=HHV(HIGH,9)-LLV(LOW,9);VAR2:=HHV(HIGH,9)-CLOSE;VAR3:=CLOSE-LLV(LOW,9);VAR4:=((VAR2)/(VAR1))*(100)-70;VAR5:=((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60)))*(100);VAR6:=((2)*(CLOSE)+HIGH+LOW)/(4);VAR7:=SMA(((VAR3)/(VAR1))*(100),3,1);VAR8:=LLV(LOW,34);VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1);VAR10:=IF((VAR9>100),VAR9-100,0);VAR11:=HHV(HIGH,34);B1:=EMA(((VAR6-VAR8)/(VAR11-VAR8))*(100),8);B2:EMA(B1,5),COLORFF7000;STICKLINE(B1-B2>0,B1,B2,2,0),COLORRED;STICKLINE(B1-B2<0,B1,B2,2,0),COLOR00FF00;V1:=MA(C,5)=HHV(MA(C,5),20);V2:=MA(C,5)>MA(C,10);V3:=MA(V,5)>MA(V,40)*1.01;V4:=COUNT(MA(C,1)>REF(C,1),2)=2;VV:=V1 AND V2 AND V3 AND V4;STICKLINE(V1 AND V2 AND V3 AND V4,100,110,2,0),COLORRED;A1:=EMA(CLOSE,8);A2:=EMA(A1,20);A3:=CROSS(A1,A2);A4:=A1<EMA(CLOSE,120);STICKLINE(A3 AND A4,100,110,2,0),COLOR00FF00;A5:=3*SMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100,21,1)-2*SMA(SMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100,20,1),8,1);安全位:=20;低位转强:IF(CROSS(A5,安全位),50,0),COLORRED,STICK,LINETHICK4;开始拉升:IF(CROSS(VARC,生命线) AND VARC>VARD AND VARC<55 AND C>O,50,0),COLORFF00FF,STICK,LINETHICK4;A6:=LLV(C,500)=LLV(C,5) AND C/REF(C,1)>(1+9.8/100);极低涨:IF(A6,50,0),COLORYELLOW,STICK,LINETHICK4;。

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

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

/*MA1:MA(CLOSE,M1);MA2:MA(CLOSE,M2);MA3:MA(CLOSE,M3);MA4:MA(CLOSE,M4);BM:=EMA(C,2);SM:=EMA(SLOPE(C,21)*22+C,42);BU:=CROSS(BM,SM);SEL:=CROSS(SM,BM);STICKLINE(BM>=SM,LOW,HIGH,0,1),COLORRED;STICKLINE(BM>=SM,CLOSE,OPEN,2,1),COLORRED;STICKLINE(BM<SM,LOW,HIGH,0,1),COLORCYAN;STICKLINE(BM<SM,CLOSE,OPEN,2,1),COLORCYAN;STICKLINE(C/REF(C,1)>=1.096 AND H=C,O,C,1,0),COLORYELLOW;TT:=240/FROMOPEN;比:=TT;J12:=(HIGH-((HIGH-LOW)/3));J23:=(LOW+((HIGH-LOW)/3));T1{早晨之星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2)<0.95 AND REF(OPEN,1)< REF(CLOSE,2) AND ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.03 AND CLOSE/OPEN>1.05 AND CLOSE>REF(CLOSE,2)),1,0));T2{黄昏之星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2)>1.03 AND REF(OPEN,1)> REF(CLOSE,2) AND ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.02AND CLOSE/OPEN<0.97 AND CLOSE<REF(CLOSE,2)),1,0));T3{长十字}:=CONST(IF((CLOSE=OPEN AND HIGH/LOW >1.03),1,0));T4{垂死十字}:=CONST(IF((CLOSE=OPEN AND CLOSE=LOW AND CLOSE!=HIGH),1,0)); T5{早晨十字星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2)<0.95 AND REF(OPEN,1)< REF(CLOSE,2) AND REF(OPEN,1)=REF(CLOSE,1) ANDCLOSE/OPEN>1.05 AND CLOSE>REF(CLOSE,2)),1,0));T6{黄昏十字星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2)>1.05 AND REF(OPEN,1)> REF(CLOSE,2) AND REF(OPEN,1)=REF(CLOSE,1) ANDCLOSE/OPEN<0.95 AND CLOSE<REF(CLOSE,2)),1,0));T7{射击之星}:=CONST(IF((MIN(OPEN,CLOSE)=LOW AND HIGH-LOW >3*(MAX(OPEN,CLOSE)-LOW) AND CLOSE > MA(CLOSE,5)),1,0));T8{倒转锤头}:=CONST(IF((MIN(OPEN,CLOSE)=LOW AND HIGH-LOW >3*(MAX(OPEN,CLOSE)-LOW) AND CLOSE < MA(CLOSE,5)),1,0));T9{锤头}:=CONST(IF((HIGH = MAX(OPEN,CLOSE) AND HIGH-LOW >3*(HIGH-MIN(OPEN,CLOSE)) AND CLOSE < MA(CLOSE,5)),1,0));T10{吊颈}:=CONST(IF((HIGH = MAX(OPEN,CLOSE) AND HIGH-LOW >3*(HIGH-MIN(OPEN,CLOSE)) AND CLOSE>MA(CLOSE,5)),1,0));T11{穿头破脚}:=CONST(IF(((REF(CLOSE,1)/REF(OPEN,1)>1.03 AND CLOSE/OPEN<0.96 AND CLOSE<REF(OPEN,1)AND OPEN>REF(CLOSE,1))OR (REF(CLOSE,1)/REF(OPEN,1)<0.97 AND CLOSE/OPEN>1.04AND CLOSE>REF(OPEN,1) AND OPEN<REF(CLOSE,1))),1,0));T12{乌云盖顶}:=CONST(IF((REF(CLOSE,1)/REF(OPEN,1)>1.03 AND CLOSE/OPEN<0.97 AND OPEN>REF(CLOSE,1) AND CLOSE<REF(CLOSE,1)),1,0));T13{曙光初现}:=CONST(IF((REF(CLOSE,1)/REF(OPEN,1)<0.97 AND CLOSE/OPEN>1.03 AND OPEN<REF(CLOSE,1) AND CLOSE>REF(CLOSE,1)),1,0));T14{身怀六甲}:=CONST(IF((ABS(REF(CLOSE,1)-REF(OPEN,1))/REF(CLOSE,1)>0.04 AND ABS(CLOSE-OPEN)/CLOSE<0.005 ANDMAX(CLOSE,OPEN) < MAX(REF(CLOSE,1),REF(OPEN,1)) AND MIN(CLOSE,OPEN)> MIN(REF(CLOSE,1),REF(OPEN,1))),1,0));T15{十字胎}:=CONST(IF((ABS(REF(CLOSE,1)-REF(OPEN,1))/REF(CLOSE,1)>0.04 AND CLOSE=OPEN ANDCLOSE < MAX(REF(CLOSE,1),REF(OPEN,1)) AND CLOSE > MIN(REF(CLOSE,1),REF(OPEN,1))),1,0));T16{平顶}:=CONST(IF((ABS(HIGH-REF(HIGH,1))/HIGH<0.001),1,0));T17{平底}:=CONST(IF(((ABS(LOW-REF(LOW,1))/LOW<0.001 AND ABS(REF(LOW,1)-REF(LOW,2))/REF(LOW,1)<=0.001)),1,0));T18{大阳烛}:=CONST(IF((CLOSE/OPEN>1.05 AND HIGH/LOW < CLOSE/OPEN+0.018),1,0));T19{三个白武士}:=CONST(IF((REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)>REF(OPEN,1) AND CLOSE>OPENAND REF(CLOSE,1)>REF(CLOSE,2) AND CLOSE>REF(CLOSE,1)),1,0));T20{双飞乌鸦}:=CONST(IF((REF(CLOSE,1)<REF(OPEN,1) AND CLOSE<OPEN AND CLOSE/OPEN<0.98),1,0));T21{孕育线}:=CONST(IF((REF(CLOSE,2)>REF(OPEN,2) AND (REF(CLOSE,2)-REF(OPEN,2))/REF(OPEN,2)>=2/100 AND REF(OPEN,1)>=REF(CLOSE,1)AND (REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<=2/100 AND REF(OPEN,1)<=REF(CLOSE,2) AND REF(CLOSE,1)>=REF(OPEN,2) AND C>=OPENAND (CLOSE-OPEN)/OPEN>=2/100 AND CLOSE>=REF(OPEN,1) AND OPEN<=REF(CLOSE,1)AND(MAX(CLOSE,REF(C,2))-MIN(CLOSE,REF(CLOSE,2)))/MIN(CLOSE,REF(CLOSE,2))<=1/100 ),1,0));T22{多方炮}:=CONST(IF((REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)<REF(OPEN,1) AND CLOSE>OPEN),1,0));T23{出水芙蓉}:=CONST(IF(((OPEN<EMA(C,20) OR OPEN<EMA(C,40) OR OPEN<EMA(C,60)) AND (C>MAX(EMA(C,20),MAX(EMA(C,40),EMA(C,60))))AND (V/MA(V,30)>1.2 AND C/REF(C,1)>1.049)),1,0));T24{上升三部曲}:=CONST(IF((REF(CLOSE,4)/REF(OPEN,4)>1.03 AND REF(CLOSE,3)<REF(OPEN,3) AND REF(CLOSE,2)<REF(OPEN,2) AND REF(CLOSE,1)<REF(OPEN,1) AND REF(LOW,4)<REF(LOW,3) AND REF(LOW,4)<REF(LOW,2) AND REF(LOW,4)<REF(LOW,1) AND REF(HIGH,4)>REF(HIGH,3) AND REF(HIGH,4)>REF(HIGH,2)AND REF(HIGH,4)>REF(HIGH,1) AND CLOSE/OPEN>1.03 AND CLOSE>REF(CLOSE,4)),1,0));T25{下跌三部曲}:=CONST(IF(( REF(CLOSE,4)/REF(OPEN,4)<0.97 AND REF(CLOSE,3)>REF(OPEN,3) AND REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)>REF(OPEN,1) AND REF(LOW,4)<REF(LOW,3) AND REF(LOW,4)<REF(LOW,2) AND REF(LOW,4)<REF(LOW,1) AND REF(HIGH,4)>REF(HIGH,3) AND REF(HIGH,4)>REF(HIGH,2) AND REF(HIGH,4)>REF(HIGH,1)AND CLOSE/OPEN<0.97 AND CLOSE<REF(CLOSE,4)),1,0));T26{跳空缺口}:=CONST(IF(HIGH<REF(LOW,1) OR LOW>REF(HIGH,1),1,0));T27{三只乌鸦}:=CONST(IF((REF(CLOSE,2)<REF(OPEN,2) AND REF(CLOSE,1)<REF(OPEN,1) AND CLOSE<OPEN AND REF(CLOSE,1)<REF(CLOSE,2)AND CLOSE<REF(CLOSE,1)),1,0));T28{光脚阴线}:=CONST(IF((LOW=CLOSE AND HIGH!=LOW),1,0));T29{光头阳线}:=CONST(IF((HIGH=CLOSE AND HIGH!=LOW),1,0));T30{分离}:=CONST(IF((OPEN=REF(OPEN,1) AND (CLOSE-OPEN)*(REF(CLOSE,1)-REF(OPEN,1))<0),1,0));T31{长下影}:=CONST(IF(((MIN(CLOSE,OPEN)-LOW)/(HIGH-LOW)>0.667),1,0));T32{长上影}:=CONST(IF(((HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)>0.667),1,0));T33{十字星}:=CONST(IF((CLOSE=OPEN AND HIGH!=LOW),1,0));T34{大阴烛}:=CONST(IF((OPEN/CLOSE>1.05 AND HIGH/LOW<OPEN/CLOSE+0.018),1,0));T35{好友反攻}:=CONST(IF(((REF(CLOSE,1)<REF(OPEN,1) AND CLOSE>OPENAND ABS(CLOSE-REF(CLOSE,1))/CLOSE<0.002) OR (REF(CLOSE,1)>REF(OPEN,1)AND CLOSE<OPEN AND ABS(CLOSE-REF(CLOSE,1))/CLOSE<0.002)),1,0));T36{倾盆大雨}:=CONST(IF((REF(C,1)/REF(O,1)>=1.03 AND O<REF(C,1) AND O>REF(O,1) AND C<REF(O,1)),1,0));T37:=CONST(V*比>REF(V,1) AND MA(V,5)>REF(MA(V,5),1));T38:=CONST(V*比<REF(V,1) AND MA(V,5)>REF(MA(V,5),1)); */VAR2:=(3*CLOSE+LOW+OPEN+HIGH)/6;VAR3:=(20*VAR2+19*REF(VAR2,1)+18*REF(VAR2,2)+17*REF(VAR2,3)+16*REF(VAR2,4)+15*REF(V AR2,5)+14*REF(VAR2,6)+13*REF(VAR2,7)+12*REF(VAR2,8)+11*REF(VAR2,9)+10*REF(VAR2,10)+9*REF(VAR2,11)+8*REF(VAR2,12)+7*REF(VA R2,13)+6*REF(VAR2,14)+5*REF(VAR2,15)+4*REF(VAR2,16)+3*REF(VAR2,17)+2*REF(VAR2,18)+REF(VAR2,20))/210;VAR4:=MA(VAR3,13);VAR5:=EMA(MA(CLOSE,3),34);VAR6:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;VAR7:=MA(VAR6,5);VAR8:=MA(VAR6,10);STICKLINE1(IF(VAR3<VAR5,VAR3<=1.015*VAR4,VAR3<=1.005*VAR4),VAR3,VAR4,10,1),COLOR0066 00 ;STICKLINE1(VAR3>1.005*VAR4,VAR3,VAR4,10,1),COLORFF00FF;DRAWTEXT(FILTER(MA(VAR6,10)<VAR7,1),VAR8,'↑'),COLORRED;DRAWTEXT(FILTER(MA(VAR6,10)>=VAR6,1),VAR8,'↓'),COLOR00FF00;多空安全线: VAR5,COLORWHITE;DRAWCOLORLINE(多空安全线>REF(多空安全线,1),多空安全线,COLORRED,COLORGREEN); STICKLINE1(COUNT(VAR3>1.005*VAR4 AND VAR3<=REF(VAR3,1),2)=2 ORCOUNT(IF(VAR3<VAR5,VAR3<=1.015*VAR4,VAR3<=1.005*VAR4) AND VAR3>=REF(VAR3,1),2)=2,VAR3,VAR4,10,0),COLORYELLOW;DRAWTEXT(REF(CROSS(VAR3,VAR4),2) AND VAR3>1.005*VAR4,VAR4,'★买入点'),COLORWHITE; DRAWTEXT(CROSS(VAR6,VAR7) AND VAR7<VAR8,VAR3-10*MINPRICE,'▲多空争夺'),VALIGN0,COLORYELLOW;VAR9:=1/WINNER(CLOSE);VARA:=MA(CLOSE,13);VARB:=100-ABS((CLOSE-VARA)/VARA*100);VARC:=LLV(LOW,75);VARD:=HHV(HIGH,75);VARE:=(VARD-VARC)/100;VARF:=SMA((CLOSE-VARC)/VARE,20,1);VAR10:=SMA((OPEN-VARC)/VARE,20,1);VAR11:=3*VARF-2*SMA(VARF,15,1);VAR12:=3*VAR10-2*SMA(VAR10,15,1);VAR13:=100-VAR12;VAR14:=100-VAR11;VAR15:=MA(WINNER(CLOSE*0.95)*100,3);VAR16:=100-IF(VAR9>5,IF(VAR9<100,VAR9,VARB-10),0);VAR17:=VAR15>VARB;VAR18:=REF(LOW,1)*0.9;VAR19:=LOW*0.9;VAR1C:=CLOSE-REF(CLOSE,1);VAR1D:=MAX(VAR1C,0);VAR1E:=ABS(VAR1C);VAR1F:=SMA(VAR1D,7,1)/SMA(VAR1E,7,1)*100;VAR20:=SMA(VAR1D,13,1)/SMA(VAR1E,13,1)*100;VAR21:=BARSCOUNT(CLOSE);VAR22:=SMA(MAX(VAR1C,0),6,1)/SMA(ABS(VAR1C),6,1)*100;VAR23:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;VAR24:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;VAR25:=SMA((SMA(VAR24,4,1)-50)*2,3,1);VAR29:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;DRAWTEXT(CROSS(VAR17,0.5) AND COUNT(VAR17=1,10)=1,VAR3,'激烈交锋'),COLORWHITE; VAR326:=IF(CLOSE>REF(CLOSE, 1),88,0);VAR327:=CLOSE/REF(CLOSE, 1)>1.050 AND HIGH/CLOSE<1.010 AND VAR326>0; STICKLINE1(VAR327>90,L*0.99,L*0.95,4,0),COLORYELLOW;DRAWTEXT(VAR327>90,LOW-10*MINPRICE,'追涨'),COLORYELLOW,VALIGN0;。

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