通达信指标公式源码135战法所有公式全编写主图
通达信综合箱体(主图 源码 附图)
通达信综合箱体(主图源码附图){综合箱体主图}N:=(3.00,30.00,10.00);ST:=(CLOSE/OPEN-1)*100;ZF:=(C/REF(C,1)-1)*100;SX1:=ST>3 AND ST=HHV(ST,6);SX2:=ZF>3 AND ZF=HHV(ZF,6);SX3:=ZF>=9 AND CLOSE=HIGH;烧香:IF(SX1 OR SX2 OR SX3,1,0),COLOR0000FF,NODRAW;DYSJ:=BARSLAST(烧香);跟踪:IF(DYSJ<=13 ANDCOUNT(C>REF(L,DYSJ),DYSJ)>=DYSJ-1,DYSJ,0),COLOR00FFFF,NODRAW;关注:IF(DYSJ>=4 ANDCOUNT(C>REF(C,DYSJ),3)>=3,REF(C,DYSJ),REF(L,DYSJ)),COLORFFFFFF,NODRAW; ②:IF(关注=REF(L,DYSJ),REF(C,DYSJ),REF(L,DYSJ)),COLOR00FFFF,NODRAW; STICKLINE(跟踪,②,②,3,0),COLOR00FFFF;BF1:=LOW<关注*1.01 AND COUNT(LOW<关注*1.01,跟踪)=1;BF2:=LOW<关注AND COUNT(LOW<关注,跟踪)=1;拜佛:IF(BF1 OR BF2,1,0),COLOR00FF00,NODRAW;{以下设置主图显示方式}STICKLINE(C>0,关注,关注,5,-1),COLORFFFFFF;支撑:STICKLINE(跟踪,关注,关注,3,0),COLORFF00FF;HHJSJDA:=(2.97*CLOSE+OPEN+LOW+HIGH)/6;HHJSJDB:(20*HHJSJDA+19*REF(HHJSJDA,1)+18*REF(HHJSJDA,2)+17*REF(HHJSJDA,3) +16*REF(HHJSJDA,4)+15*REF(HHJSJDA,5)+14*REF(HHJSJDA,6)+13*REF(HHJSJDA,7)+12*REF(HHJSJDA,8)+11*REF(HHJSJDA,9)+10*REF(HHJSJDA,10) +9*REF(HHJSJDA,11)+8*REF(HHJSJDA,12)+7*REF(HHJSJDA,13)+6*REF(HHJSJDA,14)+5*REF(HHJSJDA,15)+4*REF(HHJSJDA,16)+ 3*REF(HHJSJDA,17)+2*REF(HHJSJDA,18)+REF(HHJSJDA,20))/210,COLORYELLOW;HHJSJDC:MA(HHJSJDB,5),COLORRED;【箱顶】:PEAK(CLOSE,N,1)*0.98;【箱底】:TROUGH(CLOSE,N,1)*1.02;【箱高】:100*(【箱顶】-【箱底】)/【箱底】,NODRAW;{135均线战法}YY1:=C>MA(C,11) AND OPEN<MA(C,11);{一阳三线}YY3:=C>MA(C,33) AND OPEN<MA(C,33);YY5:=C>MA(C,55) AND OPEN<MA(C,55);DRAWTEXT(YY1 AND YY5 AND YY3,LOW-0.1,'一阳三线'),COLORRED;A3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;A4:=SMA(A3,3,1);A5:=SMA(A4,3,1);A6:=3*A4-2*A5;A7:=C-REF(C,1);A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);买:=LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2)); DRAWTEXT(FILTER(买=1,5),LOW-0.05,'进'),COLORYELLOW; STICKLINE(买,OPEN,CLOSE,2,0),COLORYELLOW;。
通达信公式倍量成交拐点+成交量(源码)5、35、135均线指标及其说明
通达信公式:倍量成交拐点+成交量(源码)5、35、135均线指标及其说明在股市当中,成交是金,以奉为经典,可是怎样才能发现成交拐点,享受庄家拉升的快感。
下面的公式其实很简单,就是当天的成交是昨日成交的2倍和3倍,这样只要庄家在低位一放量成陪,结合各经典指标,半仓以上扑进,成功率98%以上。
参数:M1(2、500、5)M2(2、500、35)M3(2、500、135)〖量〗:VOL,NODRAW,VOLSTICK;STICKLINE(V>=3*REF(V,1),V/3,V/3,3.9,0),COLORWHITE;STICKLINE(V>=2*REF(V,1),V/2,V/2,3.9,0),COLORYELLOW;流通〖亿〗:CAPITAL/1000000,LINETHICK0;内外比:DYNAINFO(51),COLORYELLOW,NODRAW;单日量比:V/REF(V,1),COLORWHITE,NODRAW;五日量比:V/(REF(MA(V,5),1)/240*FROMOPEN),COLORYELLOW,NODRAW;5换:SUM(100*V/CAPITAL,5),LINETHICK0;10换:SUM(100*V/CAPITAL,10),LINETHICK0;20换:SUM(100*V/CAPITAL,20),LINETHICK0;VVOL:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,VVOL,0,-1,-1),COLOR00C0C0; VOLUME:VOL,VOLSTICK;MAVOL1:MA(VOLUME,M1);MAVOL2:MA(VOLUME,M2);MAVOL3:MA(VOLUME,M3);大部分投资者都知道看成交量,可是达到什么标准才是放量?可是达到什么标准才是缩量?本人总结数万次和实战看盘发现:1 135日均量线是资金异动线。
通达信指标公式源码高抛低吸主图,组合看盘副图
主图1:高抛低吸五日线:MA(CLOSE,5);月线:MA(CLOSE,30);半年线:MA(CLOSE,120);年线:MA(CLOSE,250);VAR1:=(2*CLOSE+HIGH+LOW)/4;VAR2:=IF(YEAR>=2099 AND MONTH>2,0,1);VAR3:=LLV(LOW,5);VAR4:=HHV(HIGH,4);散户:=EMA((VAR1-VAR3)/(VAR4-VAR3)*100,4)*VAR2;庄家:=EMA(0.667*REF(散户,1)+0.333*散户,2)*VAR2;DRAWTEXT(CROSS(散户,庄家) AND 散户<47,L-0.05,'←低吸'),COLORLIRED; DRAWTEXT(CROSS(庄家,散户) AND 散户>60,H+0.05,'←高抛'),COLOR80FF00;DRAWICON(CROSS(散户,庄家) AND 散户<47,L-0.05,1);DRAWICON(CROSS(庄家,散户) AND 散户>60,H+0.05,2);市场成本:DMA(AMOUNT/V/100,V/CAPITAL),NODRAW;操盘成本:(MA(C,30)+MA(C,72))/2,COLORRED;市盈率:DYNAINFO(39),COLORFF00FF,NODRAW;TJ:=VOL>=REF(V,1)*1.91 AND C>REF(C,1)*1.01;STICKLINE(TJ,OPEN,CLOSE,1.5,0),COLORFF00FF;量_价:=1;CTKG:=1;W:=量_价;EPSL:=0.0001;ZZ:=(C+H+L)/3;TJA:=ZZ>=MAX(C,O) AND CTKG=1;{倒锤头};TJB:=ZZ<=MIN(C,O) AND CTKG=1;{正锤头};ZF:=IF(TJA,1,IF(TJB,-1,0));{正负数};TJ0:=TJA OR TJB;TJ1:=H=L AND C>REF(C,1);{一字涨停};TJ2:=H=L AND C<REF(C,1);{一字跌停};TJ3:=H=L AND C=REF(C,1);{连续一字涨、跌停};量_价:=IF(W=1,VOL,AMOUNT),STICK,COLOREEFFEE;{平盘量,白色}EE:=IF(TJ1,EPSL,IF(TJ2,-EPSL,0));ZL:=2*(H-L)+ABS(C-O)+3*IF(TJ3,EPSL,ABS(EE));JGL_DX:=(IF(TJ0,2/3*(2*C-H-L)+ZF*ABS(C-O),(C-O))+EE)/ZL;差:=(JGL_DX*量_价)/20000,COLOR13AADD,NODRAW;DX:=JGL_DX*100,NODRAW;买:=量_价*(1+JGL_DX)/20000,COLOR1133AA,NODRAW;卖:=量_价*(1-JGL_DX)/20000,COLORFFFF00,NODRAW;量差:=买-卖,NODRAW,COLORYELLOW;STICKLINE(量差<=0,CLOSE,OPEN,3,0),COLOR009900;STICKLINE(量差<=0,CLOSE,OPEN,2.2,0),COLOR00BB00;STICKLINE(量差<=0,CLOSE,OPEN,1.5,0),COLOR00DD00;STICKLINE(量差<=0,CLOSE,OPEN,0.5,0),COLOR00FF00;STICKLINE(量差>=0,CLOSE,OPEN,3,0),COLOR000099;STICKLINE(量差>=0,CLOSE,OPEN,2.2,0),COLOR0000CC;STICKLINE(量差>=0,CLOSE,OPEN,1.5,0),COLOR0000FF;STICKLINE(量差>=0,CLOSE,OPEN,0.5,0),COLORCC66FF;V2V:=V/REF(V,1)>=1.9 AND C>REF(C,1);STICKLINE(V2V,OPEN,CLOSE,0.5,0),COLORYELLOW;ZT:=C/REF(C,1)>1.097;STICKLINE(ZT,OPEN,CLOSE,0.5,0),COLORYELLOW;V3V:=V/REF(V,1)>=1.9 AND C<REF(C,1);STICKLINE(V3V,OPEN,CLOSE,0.5,0),COLORBLUE;D:=MA(CLOSE,80)-MA(CLOSE,10)/3;DRAWTEXT(IF(CLOSE<D AND VOL/240>MA(VOL,5)/240 ANDCLOSE>REF(CLOSE,1)*1.08 AND CLOSE<MA(CLOSE,13)*1.3,1,0),LOW,'↖抄底'),COLORRED;N1:=5;N2:=7;N3:=11;EM1:EMA(C,N1),COLORWHITE;EM2:EMA(C,N2),COLORRED;EM3:EMA(C,N3),COLORGREEN;TJ11:=BETWEEN(EM2,EM1,EM3);DRAWICON(TJ11=0,L,14);Z:=MA(C,120);VAR31:=(MA(C,5)-Z)/Z;VAR41:=MA((CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100,3);VAR5:=(MA(AMOUNT,5)/MA(VOL,5)/100-MA(AMOUNT,120)/MA(VOL,120)/10 0)/(MA(AMOUNT,5)/MA(VOL,5)/100);D1:DRAWTEXT(CLOSE>Z AND REF(VAR41,1)<30 AND VAR41>REF(VAR41,1) AND REF(VAR41,1)<REF(VAR41,2) ,LOW ,'★B'),COLORRED;D2:DRAWTEXT(REF(VAR5,1)<5 AND VAR5>REF(VAR5,1) ANDREF(VAR5,1)<REF(VAR5,2) AND VAR31<-0.3,LOW ,'★B'),COLORGREEN;D3:DRAWTEXT(CROSS(VAR41,5) AND VAR31<-0.4,LOW ,'★B'),COLORBLUE; 组合看盘:STICKLINE(C>0,0,100,15,0),COLORAA9988;VAR21:=REF(LOW,1);VAR31:=SMA(ABS(LOW-VAR21),3,1)/SMA(MAX(LOW-VAR21,0),3,1)*100; VAR41:=EMA(IF(CLOSE*1.3,VAR31*10,VAR31/10),3);VAR51:=LLV(LOW,30);VAR61:=HHV(VAR41,30);VAR71:=IF(MA(CLOSE,58),1,0);VAR81:=EMA(IF(LOW<=VAR51,(VAR41+VAR61*2)/2,0),3)/618*VAR71; VAR91:=IF(VAR81>100,100,VAR81);吸筹:STICKLINE(VAR91>-120,0,VAR91,0.8,0),COLOR00FFFF;LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),4.1,1)/SMA(ABS(CLOSE-LC),4.1,1)*100,COLORY ELLOW,LINETHICK1;黄买:FILTER((REF(CLOSE,2)<CLOSE AND RSI<25),7),COLORYELLOW; STICKLINE(黄买,0,18,10,1),COLORYELLOW;兰卖:=FILTER((REF(CLOSE,2)>CLOSE AND RSI>80),7);STICKLINE(兰卖,100,82,10,1),COLORFFFF00;红买:FILTER(CROSS(RSI,11),7),COLORRED;STICKLINE(红买,0,12,6,1),COLORRED;蓝卖:=FILTER(CROSS(89,RSI),7);STICKLINE(蓝卖,100,93,6,0),COLORFF0000;粉买:FILTER(CROSS(RSI,20),7),COLORFF00FF;STICKLINE(粉买,0,6,6,0),COLORFF00FF;绿卖:=FILTER(CROSS(88,RSI),7);STICKLINE(绿卖,100,88,6,0),COLOR00FF00;{★遵守纪律★:100,COLORRED;★交易之魂★:100,COLORRED;}ZLC:= EMA((WINNER(CLOSE) * 70),3);SHC:= EMA(((WINNER((CLOSE * 1.1)) - WINNER((CLOSE * 0.9))) * 80),3); 主力控盘: ((ZLC / (ZLC+ SHC)) * 100),COLORFF00FF,LINETHICK2;上限: HHV(主力控盘,20),COLORGREEN,LINETHICK2;下限: LLV(主力控盘,20),COLORRED,LINETHICK2;中线:(上限+ 下限)/2,COLORYELLOW,POINTDOT,LINETHICK1;60,LINETHICK1,POINTDOT,COLORYELLOW;10,LINETHICK1,POINTDOT,COLORFF00FF;VAR2001:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;VAR3001:=SMA(SMA(VAR2001,3,1),3,1)/28.57;VAR4001:=EMA(VAR3001,5);操盘1:=3*VAR3001-2*VAR4001;A11:=CROSS(操盘1,VAR3001) AND VAR3001<2.1 AND C>O; STICKLINE(A11,20,0,4,0),COLOR0000FF;DRAWTEXT(A11,23,'满仓'),COLORRED;VAR2:=(((CLOSE - REF(CLOSE,1)) / REF(CLOSE,1)) * 100);VAR3:=(((CLOSE - LLV(LOW,18)) / (HHV(HIGH,18) - LLV(LOW,18))) * 100); VAR4:=SMA(VAR3,9,1);VAR5:=SMA(VAR4,3,1);红线在上持股:((3 * VAR4) - (2 * VAR5)), LINETHICK2 , COLORRED;VAR6:=(红线在上持股> (1 * REF(红线在上持股,1)));VAR7:=LLVBARS(LOW,50);VAR8:=SUM(VOL,VAR7);VAR9:=HHVBARS(HIGH,50);VAR10:=SUM(VOL,VAR9);VAR11:=(((CLOSE - REF(OPEN,VAR9)) / REF(OPEN,VAR9)) * 100);VAR12:=((VAR10 / CAPITAL) * 100);VAR13:=(((CLOSE - REF(OPEN,VAR7)) / REF(OPEN,VAR7)) * 100);VAR14:=((VAR8 / CAPITAL) * 100);VAR15:=(MA(WINNER(CLOSE),3) * 100);VAR16:=EMA(VAR4,3);回档不破洗盘:EMA(VAR4,3),COLORFFFFFF,LINETHICK2;红线下穿减仓:EMA(回档不破洗盘,3),COLORFFCC66;无量阴跌空仓:EMA(红线下穿减仓,3),COLORCC9966;仅供参考:EMA(无量阴跌空仓,3),COLORCC6666;A6:EMA(仅供参考,3),COLORCC3366;A7:EMA(A6,3),LINETHICK2,COLORCC3366;VAR17:=EMA(A7,3);VAR18:=EMA(VAR17,3);VAR19:=EMA(VAR18,3);AA:EMA(仅供参考,6),COLORFF0000;DRAWICON(CROSS(红线在上持股,A7),(红线在上持股- 0.01),23); DRAWICON(CROSS(红线下穿减仓,红线在上持股),红线下穿减仓,19);VAR200:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;VAR300:=SMA(SMA(VAR200,3,1),3,1)/28.57;VAR400:=EMA(VAR300,5);操盘:=3*VAR300-2*VAR400;A1:=CROSS(操盘,VAR300) AND VAR300<2.1 AND C>O;STICKLINE(A1,30,0,4,0),COLOR770077;STICKLINE(A1,30,0,3,0),COLOR990099;STICKLINE(A1,30,0,2,0),COLORBB00BB;STICKLINE(A1,30,0,1,0),COLORDD00DD;STICKLINE(A1,30,0,0.3,0),COLORFF00FF;DRAWTEXT(A1,36,'全仓'),COLORRED;DRAWTEXT(REF("KDJ.J",1)<0 AND "KDJ.J">0,20,'短'),COLORRED ; STICKLINE(REF("KDJ.J",1)<0 AND "KDJ.J">0,20,0,3,0),COLORRED;A8A:=(C+O+L+H)/4;B8B:=REF(CLOSE,A8A);处女线:=SMA(MAX(CLOSE-B8B,0),2,1)/SMA(ABS(CLOSE-B8B),2,1)*100; DZ1:=处女线>REF(处女线,1) AND 处女线>89;TYP:=(HIGH+LOW+CLOSE)/3;CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));CCI修正1:=EMA(EMA(EMA(CCI,2),2),2);CCI修正2:=EMA(EMA(EMA(CCI,3),2),2);DZ2:=CCI修正1>100;T:=CLOSE*1.0+LOW*0.0+HIGH*0.0;SL:=(T/REF(T,1)-1)*1000;快:=XMA(XMA(XMA(SL,3),3),3);慢:=XMA(XMA(XMA(SL,5),5),5);X:=快-慢;增速1:=X;WWW:=REF(增速1,1)<0;DZ4:=增速1>3 AND WWW;DZ:=DZ1 AND DZ2 AND DZ4;STICKLINE(DZ,0,10,4,0),COLOR00FFFF;DRAWTEXT(DZ,10,'天牛'),COLOR00FFFF;ZLCM:=EMA(WINNER(CLOSE)*70,3);SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3); ZZLKP:=ZLCM/(ZLCM+SHCM)*100;ZZLJJ:=EMA(ZZLKP,55);选股:(ZZLJJ>REF(ZZLJJ,1) AND REF(ZZLJJ,1)<REF(ZZLJJ,2))*25; STICKLINE(ZZLJJ>REF(ZZLJJ,1),ZZLKP,ZZLJJ,2,0),COLORRED;。
最新通达信135战法主图指标(经实战检验)通达信指标公式源码
最新通达信135战法主图指标(经实战检验)MA13:MA(C,13),COLORYELLOW;MA21:MA(C,21),POINTDOT,COLORGREEN;MA34:MA(C,34),COLORWHITE;MA55:MA(C,55),COLORFF00FF;MA89:MA(C,89),COLORFFCC66;EMA13:=EMA(C,13);EMA34:=EMA(C,34);EMA55:=EMA(C,55);AA1:=EMA55>EMA34 AND EMA34>MA13;AA2:=MA13>O;AA3:=EMA13>=REF(EMA13,1);AA4:=CROSS(C,MA13);红杏:=AA1 AND AA2 AND AA3 AND AA4;DRAWTEXT(红杏,L*0.98,'红杏'),COLORGREEN;BA1:=MA13>MA55; BA2:=COUNT(C>=O,5)=5;BA3:=COUNT((C-REF(C,1))/REF(C,1)*100<5,5)=5;BA4:=COUNT(BETWEEN((O-REF(C,1))/REF(C,1)*100,-2,2),5)=5;BA5:=COUNT(((H-C)/(C-O)*100<2 OR (H-C)/C*100<3),5)=5;BA6:=COUNT(((O-L)/(C-O)*100<2 OR (O-L)/O*100<3),5)=5; BA7:=(V>REF(V,1) AND REF(V,1)>REF(V,2)) OR (REF(V,1)>REF(V,2) AND REF(V,3)) OR (REF(V,2)>REF(V,3) AND REF(V,3)>REF(V,4)) OR (REF(V,3)>REF(V,4) AND REF(V,4)>REF(V,5));BA8:= (C-MA13)/MA13*100<12; BA:=BA1 AND BA2 AND BA3 AND BA4 AND BA5 AND BA6 AND BA7 AND BA8 AND REF(C,5)-REF(O,5)<0; BB1:=MA13<MA55 AND MA34<MA55 AND C>MA55; BB2:=COUNT(C>=O,5)=5;BB3:=COUNT((C-REF(C,1))/REF(C,1)*100<5,5)=5;BB4:=COUNT(BETWEEN((O-REF(C,1))/REF(C,1)*100,-2,2),5)=5;BB5:=COUNT(((H-C)/(C-O)*100<2 OR (H-C)/C*100<3),5)=5;BB6:=COUNT(((O-L)/(C-O)*100<2 OR (O-L)/O*100<3),5)=5; BB7:=(V>REF(V,1) AND REF(V,1)>REF(V,2)) OR (REF(V,1)>REF(V,2) AND REF(V,3)) OR (REF(V,2)>REF(V,3) AND REF(V,3)>REF(V,4)) OR (REF(V,3)>REF(V,4) AND REF(V,4)>REF(V,5)); BB:=BB1 AND BB2 AND BB3 AND BB4 AND BB5 AND BB6 AND BB7 AND REF(C,5)-REF(O,5)<0; 蚂蚁:=BA OR BB;DRAWTEXT(蚂蚁,H*1.06,'蚂蚁'),COLORYELLOW;CA1:=O<MA13 AND O<MA34 AND O<MA55;CA2:=C>MA13 AND C>MA34 AND C>MA55;CA3:=(C-REF(CLOSE,1))/REF(CLOSE,1)*100 > 5;一阳穿:=CA1 AND CA2 AND CA3;DRAWTEXT(一阳穿,H*1.03,'一阳穿'),COLORYELLOW;DA1:=MA13>MA55;DA2:=C>MA13;DA3:=(O<=REF(C,1) AND (C-REF(C,1))/REF(C,1)*100>6) OR (O>REF(C,1) AND(C-O)/O*100>6);DA4:=(C-MA13)/MA13*100 < 12;DA5:=(O-MA13)/MA13*100 < 3;DA6:=(O-MA13)/MA13*100 > -3;DA7:=(O-MA55)/MA55*100 < 12;DA8:=(MA13-MA55)/MA55*100 < 12;DA:=DA1 AND DA2 AND DA3 AND DA4 AND DA5 AND DA6 AND DA7 AND DA8;DB1:=MA13<MA55 AND MA34<MA55;DB2:=O>MA13 AND O>MA34 AND C>MA55;DB3:=(O<=REF(C,1) AND (C-REF(C,1))/REF(C,1)*100>6) OR (O>REF(C,1) AND(C-O)/O*100>6);DB4:=(O-MA55)/MA55*100 < 3;DB5:=(O-MA55)/MA55*100 > -3;DB:=DB1 AND DB2 AND DB3 AND DB4 AND DB5;揭竿起:=DA OR DB;DRAWTEXT(揭竿起,H*1.03,'揭竿起'),COLORYELLOW;FA1:=MA34<MA55 AND C>MA13 AND C>MA55;FA2:=CROSS(MA13,MA55) AND C>O;FA3:=(O-MA13)/MA13*100<5;FA4:=(H-C)/(C-O)*100<2 OR (H-C)/C*100<3;FA5:=(O-L)/(C-O)*100<2 OR (O-L)/O*100<3;FA6:=V>REF(V,1) OR V>MA(V,5) OR (MA(V,5)>MA(V,10) AND V>MA(V,10));FA:=FA1 AND FA2 AND FA3 AND FA4 AND FA5 AND FA6;FB1:=MA34<MA55 AND C>MA13 AND C>MA55;FB2:=CROSS(MA13,MA55) AND C<=O;FB3:=(C-MA13)/MA13*100<5;FB4:=(H-O)/(O-C)*100<2 OR (H-O)/C*100<3;FB5:=(C-L)/(O-C)*100<2 OR (C-L)/O*100<3;FB6:=V<REF(V,1) OR V<MA(V,5) OR (MA(V,5)>MA(V,10) AND V<MA(V,10));FB:=FB1 AND FB2 AND FB3 AND FB4 AND FB5 AND FB6;红黑客:=FA OR FB;DRAWTEXT(红黑客,H*1.02,'红黑客'),COLORFF00FF;GA1:=MA13>MA55 AND MA34>MA55; GA2:=CROSS(MA13,MA34); GA3:=C>MA13 AND C>MA34; GA4:=(C-MA13)/MA13*100<12; GA5:=MA(V,5)>MA(V,21); 梅二开:=GA1 AND GA2 AND GA3 AND GA4 AND GA5;DRAWTEXT(梅二开,MA34*0.98,'梅二开'),COLORWHITE;GB1:=MA13>MA34 AND MA13>MA55 AND C>MA55;GB2:=CROSS(MA34,MA55);GB3:=(C-MA13)/MA13*100<12 AND (MA13-MA55)/MA55*100<10;GB:=GB1 AND GB2 AND GB3;DRAWTEXT(GB,MA55*0.95,'均线互换'),COLORWHITE;GR1:=BARSLAST(BETWEEN("BIAS.BIAS2"(6,13,24),0,5) );GR2:=EMA13>EMA34 AND EMA34>EMA55 AND EMA13>REF(EMA13,1);GR3:=COUNT("BIAS.BIAS2"(6,13,24)>10 AND H=HHV(H,GR1),GR1);GR4:=H=HHV(H,GR1);GR5:="MACD.MACD"(12,26,9)<REF("MACD.MACD"(12,26,9),1);GR6:=GR2 AND GR3 AND GR4;GR7:=GR2 AND GR3 AND GR4 AND GR5;DRAWTEXT(GR6 AND GR7,H+0.13,'见好收'),COLOR00FF00;。
通达信极品公式三合一主图源码
通达信极品公式三合一主图源码通达信极品公式三合一主图源码享一高人的极品公式。
用法:柱状线:出现灰色柱子代表即将调整。
底部柱状线出现浅紫色代表可以进场。
MACD:这个macd比传统的超前,MACD分为红蓝两色。
庄家抬轿柱子:简单的说出现高度控盘是我们可以放心持股。
这三个指标融合在一起最主要的还是看柱状线,柱状线原理是量价关系,柱状线出现灰色最好减仓。
觉得好用的给我点果果吧{公式在线提供:}C/C++ Code复制内容到剪贴板1.JH:=VOL*CLOSE;2.JHO:=SUM(JH,2)/SUM(VOL,2);3.JH0:=EMA(JHO,10);4.AAA:=(JHO-JH0)*20/JHO;5.超:=STICKLINE(AAA>0 AND AAA>=REF(AAA,1),0,AAA,3,0 ),COLORLIRED;6.级:=STICKLINE(AAA>0 AND AAA<REF(AAA,1),0,AAA,3,1), COLORLIRED;7.好:=STICKLINE(AAA<0 AND AAA>=REF(AAA,1),0,AAA,3,1 ),COLORGREEN;8.的:=STICKLINE(AAA<0 AND AAA<REF(AAA,1),0,AAA,3,0), COLORGREEN;9.公:=EMA(IF(AAA>0 AND AAA<REF(AAA,1),0,AAA),3);10.式:=CROSS(REF(公,1),公) AND 公>0;11.谢:=EMA(IF(AAA<0 AND AAA<REF(AAA,1),0,AAA),3);12.了:=CROSS(REF(谢,1),谢) AND 谢<0;13.必买:=CROSS(C,DRAWLINE(HIGH>=HHV(HIGH,30),HIGH,LOW<=L LV(LOW,10),HHV(HIGH,6),1));14.WY1001:=(2*CLOSE+HIGH+LOW)/4;15.WY1002:=EMA(WY1001,4);16.WY1003:=EMA(WY1002,4);17.WY1004:=EMA(WY1003,4);18.X:=(WY1004-REF(WY1004,1))/REF(WY1004,1)*2000;19.X1:=IF(X<REF(X,1),X,DRAWNULL),COLORWHITE,LINET HICK2;20.XO:=MA(X,2),COLOR9932CD;21.SI:=REF(X,1);22.STICKLINE(X>SI,X,SI,2.3,0),COLOR0000FF;23.STICKLINE(X>SI,X,SI,0.3,0),COLORCC66FF;24.STICKLINE(X<SI,X,SI,2.3,0),COLOR00BB00;25.STICKLINE(X<SI,X,SI,0.3,0),COLOR00FF00;26.STICKLINE(式,X,SI,2.15,0),COLOR545454;27.STICKLINE(了,X,SI,2.15,0),COLORDB7093;28.29.VAR1:=EMA(EMA(CLOSE,9),9);30.控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;31.STICKLINE(控盘<0,控盘,0,3,0),COLORWHITE;32.AA1:=CROSS(控盘,0);33.无庄控盘:IF(控盘<0,控盘,0),COLORWHITE,NODRAW;34.轻度控盘:STICKLINE(控盘<0 AND 0.9*控盘>REF(控盘,1),控盘,0,3,0),COLORYELLOW;35.轻度出货:STICKLINE(控盘<0 AND 1.1*控盘<REF(控盘,1),控盘,0,3,0),COLORFFFF79;36.开始控盘:=IF(AA1,5,0),LINETHICK1,COLORYELLOW;37.38.有庄控盘:IF(控盘>REF(控盘,1) AND 控盘>0,控盘,0),COLORRED,NODRAW;39.STICKLINE(控盘>REF(控盘,1) AND 控盘>0,控盘,0,3,0),COLORRED;40.41.VAR2:=100*WINNER(CLOSE*0.95);42.高度控盘:IF(VAR2>50 AND COST(85)<CLOSE AND 控盘>0,控盘,0),COLORFF00FF,NODRAW;43.STICKLINE(VAR2>50 AND COST(85)<CLOSE AND 控盘>0,控盘,0,3,0),COLORFF00FF;44.主力出货:IF(控盘<REF(控盘,1) AND 控盘>0,控盘,0),COLOR00FF00,NODRAW;45.STICKLINE(控盘<1.2*REF(控盘,1) AND 控盘>0,控盘,0,3,0),COLOR00FF00;46.DIF1:=EMA(DCLOSE,12)-EMA(DCLOSE,26);47.DEA1:=EMA(DIF1,9);48.{柱状线}49.MACD1:=(DIF1-DEA1)*2*60;50.MACD上:IF(MACD1>REF(MACD1,1),MACD1,DRAWNULL),51.STICK,COLORRED,LINETHICK1;52.MACD下:IF(MACD1<REF(MACD1,1),MACD1,DRAWNULL),53.STICK,COLORFF9900,LINETHICK1;54.{买点提示}55.A1:=BARSLAST(REF(CROSS(DIF1,DEA1),1));56.BL:=REF(CLOSE,A1+1)>CLOSE AND DIF1>REF(DIF1,A1 +1) AND CROSS(DIF1,DEA1);57.{STICKLINE(BL,0,1,2,0),COLOR00FF00;}58.买点:DRAWICON(BL,DEA1,23);59.A2:=BARSLAST(REF(CROSS(DEA1,DIF1),1));60.DBL:=REF(CLOSE,A2+1)<CLOSE AND REF(DIF1,A2+1) >DIF1 AND CROSS(DEA1,DIF1);61.买点1:DRAWICON(DBL,DEA1,12);62.低位金叉:=CROSS(DIF1,DEA1) AND DIF1<-0.1;63.DRAWTEXT(低位金叉,-0.36,' 低位金叉');64.JCCOUNT:=COUNT(CROSS(DIF1,DEA1),BARSLAST(DEA 1>=0));65.二次金叉:=CROSS(DIF1,DEA1) AND DEA1<0 AND COUNT(JCCOUNT=2 ,21)=1;66.DRAWICON(二次金叉,DEA1*1.04,13) ;67.DRAWTEXT(二次金叉,-0.22,' 二次金叉'),COLORFF00FF;68.A10:=BARSLAST(REF(CROSS(DIF1,DEA1),1));69.底背离:=REF(CLOSE,A10+1)>CLOSE AND DIF1>REF(DIF1,A10+1) AND CROSS(DIF1,DEA1);70.DRAWLINE(A10=0,DEA1,底背离,DEA1,0),COLORRED,LINETHICK2;71.DRAWTEXT(底背离,-0.50,' 底背离'),COLOR00FF00;72.A20:=BARSLAST(REF(CROSS(DEA1,DIF1),1));73.顶背离:=REF(CLOSE,A20+1)<CLOSE AND REF(DIF1,A20+1)>DIF1 AND CROSS(DEA1,DIF1);74.DRAWLINE(A20=0,DEA1,顶背离,DEA1,0),COLORWHITE,LINETHICK2;75.{STICKLINE(底背离,X,SI,1,0),COLORYELLOW;}76.STICKLINE(低位金叉,X,SI,1,0),COLORWHITE;77.STICKLINE(必买,X,(X+SI)/2,2.3,0),COLORFF9900;78.STICKLINE(必买,X,(X+SI)/2,0.1,0),COLORWHITE;79.STICKLINE(低位金叉 AND 底背离,X,(X+SI)/2,2.3,0),COLORYELLOW;80.STICKLINE(低位金叉 AND 底背离,X,(X+SI)/2,0.1,0),COLORCC66FF;81.STICKLINE(二次金叉,X,SI,2.0,0),COLORYELLOW;82.{主力进场}83.VAR12:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);84.VAR13:=SMA(ABS(LOW-VAR12),13,1)/SMA(MAX(LOW-VAR12,0),10,1);85.VAR14:=EMA(VAR13,10);86.VAR15:=LLV(LOW,33);87.VAR16:=EMA(IF(LOW<=VAR15,VAR14,0),3);88.主力进场:=IF(VAR16>REF(VAR16,1),VAR16,0),COLORRED,NODRAW;89.STICKLINE(主力进场,X,SI,0.1,0),COLORRED;90.RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;91.K:=SMA(RSV,3,1),COLORWHITE;92.D:=SMA(K,3,1),COLORYELLOW;93.J:=3*K-2*D,COLORFF00FF;94.X3:=LLV(J,2)=LLV(J,8);95.A:=250;96.JH1:=HHV(MAX(K,MAX(D,J)),A);97.DH:=HHV(MAX(DIF1,DEA1),A);98.SH:=INTPART(JH1/DH)/2;99.DIFF50:=SH*DIF1+50,COLORFFFF00;100.DEA50:=SH*DEA1+50,COLORBLUE;101.诱空:=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);102.低位:=CROSS(J,REF(J+0.01,1)) AND X3 AND J<19;103.MTM:=C-REF(C,1);104.DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);105.值:=LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND C ROSS(DX,MA(DX,2));106.DRAWTEXT(FILTER(诱空,3) AND 诱空,X,'洗盘'),COLOR00FF00;。
通达信指标公式源码(MA均线)主图指标
(MA均线)主图指标M5:MA(C,5),COLORWHITE;M10:MA(C,10),COLORYELLOW;M20:MA(C,20),COLORCYAN;M60:MA(C,60),COLORGREEN,LINETHICK2;M120:MA(C,120),COLORRED,LINETHICK2;TY:=C;A1:=REF(TY,10)=HHV(TY,2*10+1);B1:=FILTER(A1,10);C1:=BACKSET(B1,10+1);HD:=FILTER(C1,10);A2:=REF(TY,10)=LLV(TY,2*10+1);B2:=FILTER(A2,10);C2:=BACKSET(B2,10+1);LD:=FILTER(C2,10);前期高位:REF(C,BARSLAST(HD)),COLOR8000FF,POINTDOT;STICKLINE(C,前期高位,前期高位,8,0),COLOR8000FF;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 VAR013OR 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,DRAWNULL);明离场价:=离场,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,DRAWNULL);今离场价:REF(离场,1),COLOR0000FF,NODRAW;明进场价:=进,COLOR33AACC,NODRAW;今进场价:REF(明进场价,1),COLORGREEN,NODRAW;上涨家数:INDEXADV,COLOR0080FF,NODRAW;下跌家数:INDEXDEC,COLORGREEN,NODRAW;DRAWTEXT_FIX(1,0.00,0,0,'所属行业:')COLOR00FFFF;DRAWTEXT_FIX(1,0.07,0,0,HYBLOCK)COLOR00FFFF;DRAWTEXT_FIX(1,0.14,0,0,'所属地区:')COLOR00FFFF;DRAWTEXT_FIX(1,0.21,0,0,DYBLOCK)COLOR00FFFF;超B:=L2_AMO(0,2)/10000.0;大B:=L2_AMO(1,2)/10000.0;中B:=L2_AMO(2,2)/10000.0;小B:=L2_AMO(3,2)/10000.0;超S:=L2_AMO(0,3)/10000.0;大S:=L2_AMO(1,3)/10000.0;中S:=L2_AMO(2,3)/10000.0;小S:=L2_AMO(3,3)/10000.0;TESTSKIP(NOT(超B OR 大B OR 中B OR 小B OR 超S OR 大S OR 中S OR 小S)!=0); 主力进:=(超B)+(大B),NODRAW;主力出:=(超S)+(大S),NODRAW;小散进:=(中B)+(小B),NODRAW;小散出:=(中S)+(小S),NODRAW;DAZHIV:=CONST(MAX(ABS(主力进),MAX(ABS(主力出),MAX(ABS(小散进),ABS(小散出))))),NODRAW;DRAWRECTREL(0,CONST(940-(ABS(主力进)*250/DAZHIV)),30,960,IF(CONST(主力进>0),RGB(255,0,0),RGB(23,125,255)));DRAWRECTREL(32,CONST(940-(ABS(主力出)*250/DAZHIV)),62,960,IF(CONST(主力出>0),RGB(23,125,255),RGB(255,0,0)));DRAWRECTREL(70,CONST(940-(ABS(小散进)*250/DAZHIV)),100,960,IF(CONST(小散进>0),RGB(255,0,0),RGB(23,125,255)));DRAWRECTREL(102,CONST(940-(ABS(小散出)*250/DAZHIV)),132,960,IF(CONST(小散出>0),RGB(23,125,255),RGB(255,0,0)));DRAWTEXT_FIX(CURRBARSCOUNT=1,0.0001,0.9,0,STRCAT('',CON2STR(主力进/10,0))),COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.033,0.9,0,STRCAT('',CON2STR(主力出/10,0))),COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.07,0.9,0,STRCAT('',CON2STR(小散进/10,0))),COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.101,0.9,0,STRCAT('',CON2STR(小散出/10,0))),COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.03,1,0,'(X10万元)'),COLOR00FFFF; DRAWTEXT_FIX(CURRBARSCOUNT=1,0,1,0,'主进出'),COLORCYAN;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.09,1,0,'散进出'),COLORCYAN;主力买力度:=LARGEINTRDVOL*1000/VOL;主力卖力度:=LARGEOUTTRDVOL*1000/VOL;AAD:=CONST(MAX(ABS(主力买力度),ABS(主力卖力度)))*4,NODRAW; DRAWRECTREL(0,515,CONST(ABS(主力买力度)*500/AAD),568,IF(CONST(主力买力度)>0,RGB(255,0,0),RGB(0,50,0)));DRAWRECTREL(0,570,CONST(ABS(主力卖力度)*500/AAD),623,IF(CONST(主力卖力度)>0,RGB(0,50,0),RGB(255,0,0)));DRAWTEXT_FIX(1,0,0.524,0,STRCAT('主买力度:',CON2STR(主力买力度,0))),COLORYELLOW;DRAWTEXT_FIX(1,0,0.576,0,STRCAT('主卖力度:',CON2STR(主力卖力度,0))),COLORYELLOW;VAR111:=ZIG(3,13);STICKLINE((REF(VAR111,2) < REF(VAR111,1)) AND (VAR111 <REF(VAR111,1)),CLOSE,OPEN,3,0),COLOR66FF00;DRAWTEXT_FIX(STICKLINE((REF(VAR111,2) < REF(VAR111,1)) AND (VAR111 < REF(VAR111,1)),CLOSE,OPEN,5,0),0.00,0.11,0,''),COLOR00FF00,LINETHICK1;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));F:IF(CROSS(VAR200,MA(VAR300,5)),LOW *0.98,DRAWNULL),CROSSDOT,LINETHICK3,COLOREE00EE;年:MA(CLOSE,22),LINETHICK2,COLORWHITE;MAA5:MA(C,5),COLORFF00FF,LINETHICK2;MAA10:=MA(C,10);MAA30:MA(C,30),COLORRED;KS:IF(MAA10>MAA30,MAA10,MAA30),COLORBLUE;A3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;A4:=SMA(A3,3,1);A5:=SMA(A4,3,1);A6:=3*A4-2*A5;A7:=C-REF(C,1);A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);买:=LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2));DRAWTEXT(FILTER(买=1,5),LOW-0.05,'↖跟党走'),COLORYELLOW; STICKLINE(买,OPEN,CLOSE,2,0),COLORYELLOW;STICKLINE(ISLASTBAR,HHV(C,5)*0.95-0.01,HHV(C,5)*0.95,100,0),COLORWHITE; DRAWNUMBER(ISLASTBAR,HHV(C,5)*0.95-0.01,HHV(C,5)*0.95);。
通达信指标公式源码通达信信号主图
通达信信号主图{N=10,N1=5}LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;低吸:=CROSS(RSI,11);{DRAWTEXT(低吸,L,'★'),COLORWHITE;}DRAWTEXT(低吸,L-0.12,'低吸'),COLORWHITE;VAR7:=EMA(AMOUNT/VOL/100,3);VAR8:=EMA(VAR7,88);VAR9:=EMA(VAR7,88)*0.85;VARA:=VAR9*0.87;VARB:=LOW<VARA AND CLOSE>REF(CLOSE,1)*1.02;DRAWTEXT(FILTER(VARB,6),L-0.14,'坚决买进'),COLORFF00FF;{DRAWTEXT(FILTER(VARB,6),L,'★'),COLORFF00FF;}VARF:=(2*CLOSE+HIGH+LOW)/4;VA4:=LLV(LOW,34);VA5:=HHV(HIGH,34);VA6:=EMA((VARF-VA4)/(VA5-VA4)*100,6);VA7:=EMA(0.667*REF(VA6,1)+0.333*VA6,4);{DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),8)/8>0.3 AND COUNT(VA6>VA7,3) AND REF(LOW,1)=LLV(LOW,120) ANDCLOSE>OPEN,1,0),L,'★'),COLORYELLOW;}DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),8)/8>0.3 AND COUNT(VA6>VA7,3) AND REF(LOW,1)=LLV(LOW,120) ANDCLOSE>OPEN,1,0),L-0.14,'出击'),COLORYELLOW;A:=(3*CLOSE+LOW+OPEN+HIGH)/6;D1:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+14*R EF(A,6)+13*REF(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))/211;D2:=EMA(D1,2);D3:=EMA(D2,2);K1:=EMA(D3,2);DRAWTEXT(CROSS(D1,K1),L-0.14,'波段买入'),COLOR0099FF;{DRAWTEXT(CROSS(D1,K1),L,'★'),COLOR0099FF;}多方趋势:=7*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1)-3*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1)-SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1),2,1);天线:=78.89;STICKLINE(CROSS(天线,多方趋势),H*1.02,H*1.00,6,0),COLOR00FF00;DRAWTEXT(CROSS(天线,多方趋势),H*1.04,'逃'),COLOR00FF00;A1:=REF(H,N)=HHV(H,2*N+1);B:=FILTER(A1,N);D:=BACKSET(B,N+1);HD:=FILTER(D,N);A2:=REF(L,N)=LLV(L,2*N+1);B2:=FILTER(A2,N);DD2:=BACKSET(B2,N+1);LD:=FILTER(DD2,N);STICKLINE(REF(HD,1),REF(H,1),REF(H,1),18,0),COLOR00FF00,LINETHICK3; STICKLINE(REF(LD,1),REF(L,1),REF(L,1),18,0),COLOR0000FF,LINETHICK3; DRAWTEXT(REF(LD,1),REF(L,1)-0.01,'●进'),COLOR0000FF;DRAWTEXT(REF(HD,1),REF(H,1)+0.05,'▲跑'),COLOR00FF00;短期:= MA(AMOUNT/VOL/100,22.5);中期:= MA(AMOUNT/VOL/100,44);长期:= MA(AMOUNT/VOL/100,118);VAR2:=EMA(EMA(AMOUNT/VOL/100,N1)*1.062,N1)*1.062;VAR3:=EMA(EMA(AMOUNT/VOL/100,N1)*0.938,N1)*0.938; {DRAWTEXT(CLOSE>VAR2,CLOSE,'●短卖'),COLOR00FF00;} {DRAWTEXT(CLOSE<VAR3,CLOSE,'●短买'),COLORRED;}STICKLINE(CLOSE>短期,短期,短期,2,0),COLOR00FF00;STICKLINE(短期>CLOSE,短期,短期,2,0),COLORFFCCCC;STICKLINE(短期>CLOSE AND 中期>CLOSE,短期,短期,2,0),COLOR0099FF; VAR4:=CLOSE>短期AND ABS(短期-长期<=1) AND CROSS(短期,中期); DRAWTEXT(VAR4,LOW,'●变盘'),COLORYELLOW;BRSV:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;BK:=SMA(BRSV,3,1);BD:=SMA(BK,3,1);BJ:=3*BK-2*BD;X1:=REF(H,1)-REF(H,2)>=REF(H,1)*1.03;X2:=CLOSE/OPEN>1.05 AND C-REF(C,1)>=X1;X3:=X2+REF(C,1);DRAWTEXT(X2 AND X3 AND BJ>80,H+0.15,'顶'),COLOR00FF00; {DRAWTEXT(X2 AND X3 AND BJ>80,H+0.09,'●'),COLORGRE EN;};。
通达信指标公式源码高抛低吸主图,组合看盘副图
主图1:高抛低吸五日线:MA(CLOSE,5);月线:MA(CLOSE,30);半年线:MA(CLOSE,120);年线:MA(CLOSE,250);VAR1:=(2*CLOSE+HIGH+LOW)/4;VAR2:=IF(YEAR>=2099 AND MONTH>2,0,1);VAR3:=LLV(LOW,5);VAR4:=HHV(HIGH,4);散户:=EMA((VAR1-VAR3)/(VAR4-VAR3)*100,4)*VAR2;庄家:=EMA(0.667*REF(散户,1)+0.333*散户,2)*VAR2;DRAWTEXT(CROSS(散户,庄家) AND 散户<47,L-0.05,'←低吸'),COLORLIRED; DRAWTEXT(CROSS(庄家,散户) AND 散户>60,H+0.05,'←高抛'),COLOR80FF00;DRAWICON(CROSS(散户,庄家) AND 散户<47,L-0.05,1);DRAWICON(CROSS(庄家,散户) AND 散户>60,H+0.05,2);市场成本:DMA(AMOUNT/V/100,V/CAPITAL),NODRAW;操盘成本:(MA(C,30)+MA(C,72))/2,COLORRED;市盈率:DYNAINFO(39),COLORFF00FF,NODRAW;TJ:=VOL>=REF(V,1)*1.91 AND C>REF(C,1)*1.01;STICKLINE(TJ,OPEN,CLOSE,1.5,0),COLORFF00FF;量_价:=1;CTKG:=1;W:=量_价;EPSL:=0.0001;ZZ:=(C+H+L)/3;TJA:=ZZ>=MAX(C,O) AND CTKG=1;{倒锤头};TJB:=ZZ<=MIN(C,O) AND CTKG=1;{正锤头};ZF:=IF(TJA,1,IF(TJB,-1,0));{正负数};TJ0:=TJA OR TJB;TJ1:=H=L AND C>REF(C,1);{一字涨停};TJ2:=H=L AND C<REF(C,1);{一字跌停};TJ3:=H=L AND C=REF(C,1);{连续一字涨、跌停};量_价:=IF(W=1,VOL,AMOUNT),STICK,COLOREEFFEE;{平盘量,白色}EE:=IF(TJ1,EPSL,IF(TJ2,-EPSL,0));ZL:=2*(H-L)+ABS(C-O)+3*IF(TJ3,EPSL,ABS(EE));JGL_DX:=(IF(TJ0,2/3*(2*C-H-L)+ZF*ABS(C-O),(C-O))+EE)/ZL;差:=(JGL_DX*量_价)/20000,COLOR13AADD,NODRAW;DX:=JGL_DX*100,NODRAW;买:=量_价*(1+JGL_DX)/20000,COLOR1133AA,NODRAW;卖:=量_价*(1-JGL_DX)/20000,COLORFFFF00,NODRAW;量差:=买-卖,NODRAW,COLORYELLOW;STICKLINE(量差<=0,CLOSE,OPEN,3,0),COLOR009900;STICKLINE(量差<=0,CLOSE,OPEN,2.2,0),COLOR00BB00;STICKLINE(量差<=0,CLOSE,OPEN,1.5,0),COLOR00DD00;STICKLINE(量差<=0,CLOSE,OPEN,0.5,0),COLOR00FF00;STICKLINE(量差>=0,CLOSE,OPEN,3,0),COLOR000099;STICKLINE(量差>=0,CLOSE,OPEN,2.2,0),COLOR0000CC;STICKLINE(量差>=0,CLOSE,OPEN,1.5,0),COLOR0000FF;STICKLINE(量差>=0,CLOSE,OPEN,0.5,0),COLORCC66FF;V2V:=V/REF(V,1)>=1.9 AND C>REF(C,1);STICKLINE(V2V,OPEN,CLOSE,0.5,0),COLORYELLOW;ZT:=C/REF(C,1)>1.097;STICKLINE(ZT,OPEN,CLOSE,0.5,0),COLORYELLOW;V3V:=V/REF(V,1)>=1.9 AND C<REF(C,1);STICKLINE(V3V,OPEN,CLOSE,0.5,0),COLORBLUE;D:=MA(CLOSE,80)-MA(CLOSE,10)/3;DRAWTEXT(IF(CLOSE<D AND VOL/240>MA(VOL,5)/240 ANDCLOSE>REF(CLOSE,1)*1.08 AND CLOSE<MA(CLOSE,13)*1.3,1,0),LOW,'↖抄底'),COLORRED;N1:=5;N2:=7;N3:=11;EM1:EMA(C,N1),COLORWHITE;EM2:EMA(C,N2),COLORRED;EM3:EMA(C,N3),COLORGREEN;TJ11:=BETWEEN(EM2,EM1,EM3);DRAWICON(TJ11=0,L,14);Z:=MA(C,120);VAR31:=(MA(C,5)-Z)/Z;VAR41:=MA((CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100,3);VAR5:=(MA(AMOUNT,5)/MA(VOL,5)/100-MA(AMOUNT,120)/MA(VOL,120)/10 0)/(MA(AMOUNT,5)/MA(VOL,5)/100);D1:DRAWTEXT(CLOSE>Z AND REF(VAR41,1)<30 AND VAR41>REF(VAR41,1) AND REF(VAR41,1)<REF(VAR41,2) ,LOW ,'★B'),COLORRED;D2:DRAWTEXT(REF(VAR5,1)<5 AND VAR5>REF(VAR5,1) ANDREF(VAR5,1)<REF(VAR5,2) AND VAR31<-0.3,LOW ,'★B'),COLORGREEN;D3:DRAWTEXT(CROSS(VAR41,5) AND VAR31<-0.4,LOW ,'★B'),COLORBLUE; 组合看盘:STICKLINE(C>0,0,100,15,0),COLORAA9988;VAR21:=REF(LOW,1);VAR31:=SMA(ABS(LOW-VAR21),3,1)/SMA(MAX(LOW-VAR21,0),3,1)*100; VAR41:=EMA(IF(CLOSE*1.3,VAR31*10,VAR31/10),3);VAR51:=LLV(LOW,30);VAR61:=HHV(VAR41,30);VAR71:=IF(MA(CLOSE,58),1,0);VAR81:=EMA(IF(LOW<=VAR51,(VAR41+VAR61*2)/2,0),3)/618*VAR71; VAR91:=IF(VAR81>100,100,VAR81);吸筹:STICKLINE(VAR91>-120,0,VAR91,0.8,0),COLOR00FFFF;LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),4.1,1)/SMA(ABS(CLOSE-LC),4.1,1)*100,COLORY ELLOW,LINETHICK1;黄买:FILTER((REF(CLOSE,2)<CLOSE AND RSI<25),7),COLORYELLOW; STICKLINE(黄买,0,18,10,1),COLORYELLOW;兰卖:=FILTER((REF(CLOSE,2)>CLOSE AND RSI>80),7);STICKLINE(兰卖,100,82,10,1),COLORFFFF00;红买:FILTER(CROSS(RSI,11),7),COLORRED;STICKLINE(红买,0,12,6,1),COLORRED;蓝卖:=FILTER(CROSS(89,RSI),7);STICKLINE(蓝卖,100,93,6,0),COLORFF0000;粉买:FILTER(CROSS(RSI,20),7),COLORFF00FF;STICKLINE(粉买,0,6,6,0),COLORFF00FF;绿卖:=FILTER(CROSS(88,RSI),7);STICKLINE(绿卖,100,88,6,0),COLOR00FF00;{★遵守纪律★:100,COLORRED;★交易之魂★:100,COLORRED;}ZLC:= EMA((WINNER(CLOSE) * 70),3);SHC:= EMA(((WINNER((CLOSE * 1.1)) - WINNER((CLOSE * 0.9))) * 80),3); 主力控盘: ((ZLC / (ZLC+ SHC)) * 100),COLORFF00FF,LINETHICK2;上限: HHV(主力控盘,20),COLORGREEN,LINETHICK2;下限: LLV(主力控盘,20),COLORRED,LINETHICK2;中线:(上限+ 下限)/2,COLORYELLOW,POINTDOT,LINETHICK1;60,LINETHICK1,POINTDOT,COLORYELLOW;10,LINETHICK1,POINTDOT,COLORFF00FF;VAR2001:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;VAR3001:=SMA(SMA(VAR2001,3,1),3,1)/28.57;VAR4001:=EMA(VAR3001,5);操盘1:=3*VAR3001-2*VAR4001;A11:=CROSS(操盘1,VAR3001) AND VAR3001<2.1 AND C>O; STICKLINE(A11,20,0,4,0),COLOR0000FF;DRAWTEXT(A11,23,'满仓'),COLORRED;VAR2:=(((CLOSE - REF(CLOSE,1)) / REF(CLOSE,1)) * 100);VAR3:=(((CLOSE - LLV(LOW,18)) / (HHV(HIGH,18) - LLV(LOW,18))) * 100); VAR4:=SMA(VAR3,9,1);VAR5:=SMA(VAR4,3,1);红线在上持股:((3 * VAR4) - (2 * VAR5)), LINETHICK2 , COLORRED;VAR6:=(红线在上持股> (1 * REF(红线在上持股,1)));VAR7:=LLVBARS(LOW,50);VAR8:=SUM(VOL,VAR7);VAR9:=HHVBARS(HIGH,50);VAR10:=SUM(VOL,VAR9);VAR11:=(((CLOSE - REF(OPEN,VAR9)) / REF(OPEN,VAR9)) * 100);VAR12:=((VAR10 / CAPITAL) * 100);VAR13:=(((CLOSE - REF(OPEN,VAR7)) / REF(OPEN,VAR7)) * 100);VAR14:=((VAR8 / CAPITAL) * 100);VAR15:=(MA(WINNER(CLOSE),3) * 100);VAR16:=EMA(VAR4,3);回档不破洗盘:EMA(VAR4,3),COLORFFFFFF,LINETHICK2;红线下穿减仓:EMA(回档不破洗盘,3),COLORFFCC66;无量阴跌空仓:EMA(红线下穿减仓,3),COLORCC9966;仅供参考:EMA(无量阴跌空仓,3),COLORCC6666;A6:EMA(仅供参考,3),COLORCC3366;A7:EMA(A6,3),LINETHICK2,COLORCC3366;VAR17:=EMA(A7,3);VAR18:=EMA(VAR17,3);VAR19:=EMA(VAR18,3);AA:EMA(仅供参考,6),COLORFF0000;DRAWICON(CROSS(红线在上持股,A7),(红线在上持股- 0.01),23); DRAWICON(CROSS(红线下穿减仓,红线在上持股),红线下穿减仓,19);VAR200:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;VAR300:=SMA(SMA(VAR200,3,1),3,1)/28.57;VAR400:=EMA(VAR300,5);操盘:=3*VAR300-2*VAR400;A1:=CROSS(操盘,VAR300) AND VAR300<2.1 AND C>O;STICKLINE(A1,30,0,4,0),COLOR770077;STICKLINE(A1,30,0,3,0),COLOR990099;STICKLINE(A1,30,0,2,0),COLORBB00BB;STICKLINE(A1,30,0,1,0),COLORDD00DD;STICKLINE(A1,30,0,0.3,0),COLORFF00FF;DRAWTEXT(A1,36,'全仓'),COLORRED;DRAWTEXT(REF("KDJ.J",1)<0 AND "KDJ.J">0,20,'短'),COLORRED ; STICKLINE(REF("KDJ.J",1)<0 AND "KDJ.J">0,20,0,3,0),COLORRED;A8A:=(C+O+L+H)/4;B8B:=REF(CLOSE,A8A);处女线:=SMA(MAX(CLOSE-B8B,0),2,1)/SMA(ABS(CLOSE-B8B),2,1)*100; DZ1:=处女线>REF(处女线,1) AND 处女线>89;TYP:=(HIGH+LOW+CLOSE)/3;CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));CCI修正1:=EMA(EMA(EMA(CCI,2),2),2);CCI修正2:=EMA(EMA(EMA(CCI,3),2),2);DZ2:=CCI修正1>100;T:=CLOSE*1.0+LOW*0.0+HIGH*0.0;SL:=(T/REF(T,1)-1)*1000;快:=XMA(XMA(XMA(SL,3),3),3);慢:=XMA(XMA(XMA(SL,5),5),5);X:=快-慢;增速1:=X;WWW:=REF(增速1,1)<0;DZ4:=增速1>3 AND WWW;DZ:=DZ1 AND DZ2 AND DZ4;STICKLINE(DZ,0,10,4,0),COLOR00FFFF;DRAWTEXT(DZ,10,'天牛'),COLOR00FFFF;ZLCM:=EMA(WINNER(CLOSE)*70,3);SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3); ZZLKP:=ZLCM/(ZLCM+SHCM)*100;ZZLJJ:=EMA(ZZLKP,55);选股:(ZZLJJ>REF(ZZLJJ,1) AND REF(ZZLJJ,1)<REF(ZZLJJ,2))*25; STICKLINE(ZZLJJ>REF(ZZLJJ,1),ZZLKP,ZZLJJ,2,0),COLORRED;。
通达信最全指标公式源码,给大家分享实用的技术指标
通达信最全指标公式源码,给⼤家分享实⽤的技术指标源码:MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;主⼒:(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF (MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF( MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,COLORRED;IF(主⼒>=REF(主⼒,1),主⼒,DRAWNULL),COLORRED,LINETHICK2;拉升提⽰主图+⼀⼿遮天副图+主⼒追踪副图。
超⽜龙头主图主图源码:展开全⽂TY:=C;TY:=C;AA1:=REF(TY,10)=HHV(TY,2*10+1); BB1:=FILTER(AA1,10); CC1:=BACKSET(BB1,10+1); HD:=FILTER(C1,10); AA2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(AA2,10); CC2:=BACKSET(B2,10+1); LD:=FILTER(CC2,10);JJ:=(3*C+H+L+O)/6;VAR1:=(8*JJ+7*REF(JJ,1)+6*REF(JJ,2)+5*REF(JJ,3)+4*REF(JJ,4)+3*REF(JJ,5)+2*REF(JJ,6)+REF(JJ,8))/36;TJ1:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>VAR1 AND C>REF(C,1);LJL:=FILTER(TJ1,5) AND C>O AND (C-O)/REF(C,1)>0.06;TJ2:=IF(BARSLAST(LJL)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(LJL)=2 ANDCLOSE>REF(HIGH,2),1,IF(BARSLAST(LJL)=3 AND CLOSE>REF(HIGH,3),1,0)));TP:=TJ2=1;参考重点关注主⼒追踪副图股票实盘分析和技术分享,,坚持每⼀天给⼤家分享实盘经验,教⼤家如何在个股起爆前把握主升浪个股,让所有粉丝朋友逐步建⽴出属于⾃⼰的⼀套交易系统。
通达信 指标公式源码大全
【通达信】魔鬼操盘(主图)-指标公式源码均5:MA(CLOSE,5) COLORYELLOW;均10:MA(CLOSE,10)COLORGREEN;均30: MA(CLOSE,30) COLORMAGENTA ;均60: MA(CLOSE, 60) COLORRED POINTDOT LINETHICK3;均250: MA(CLOSE, 250) COLORBLUE LINETHICK2 ;魔鬼通道上:均30 + 2*STD(CLOSE,60) COLORYELLOW POINTDOT LINETHICK2 ; 魔鬼通道下:均30 - 2*STD(CLOSE,60) COLORYELLOW POINTDOT LINETHICK2; VAR1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;VAR2:=SMA(VAR1,3,1);VAR3:=SMA(VAR2,3,1);VAR4:=VAR1*1.05;VAR5:=MA(CLOSE,5);VAR6:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;VAR7:=SMA(VAR6,5,1);VAR8:=VOL>REF(VOL,1);VAR9:=MA(VOL/CAPITAL,30)*MA(VOL,60)/10000+MA(CLOSE,30);【通达信】平均价格(主图)-指标公式源码A:=(3*C+H+L+O)/6;XJ:=(A+0.618*REF(A,1)+0.382*REF(A,2)+0.236*REF(A,3)+0.146*REF(A,4))/2 .382;YCZXH:=(MA(HHV(A,2),5)+MA(HHV(A,2),13)+MA(HHV(A,2),21)+MA(HHV(A,2),32 ))/4;YCZXL:=(MA(LLV(A,2),5)+MA(LLV(A,2),13)+MA(LLV(A,2),21)+MA(LLV(A,2),32 ))/4;SMH:EMA(YCZXH,21),COLOR004000;SML:EMA(YCZXL,21),COLOR004000;SMJ:(SML+SMH)/2,COLOR004000;PJ:=(10*A+9*REF(A,1)+8*REF(A,2)+7*REF(A,3)+6*REF(A,4)+5*REF(A,5)+4*RE F(A,6)+3*REF(A,7)+2*REF(A,8)+REF(A,9))/55;A1:=EMA(PJ,3),COLOR004000;A2:=EMA(PJ,5),COLOR004000;A3:=EMA(PJ,7),COLOR004000;A4:=EMA(PJ,9),COLOR004000;A5:=EMA(PJ,11),COLOR004000;LX:=REF(XJ,1);ZD:=(SMA(MAX(XJ-LX,0),5,1)/SMA(ABS(XJ-LX),5,1))*100;KX1:=(CLOSE>=OPEN) AND ZD>=50;KX2:=(CLOSE<OPEN) AND ZD>=50;KX3:=(CLOSE>=OPEN) AND ZD<50;KX4:=(CLOSE<OPEN) AND ZD<50;IF(A5<REF(A5,1),A5,DRAWNULL),COLOR820000,LINETHICK2;IF(A5>REF(A5,1),A5,DRAWNULL),COLOR00005B,LINETHICK2;IF(A4<REF(A4,1),A4,DRAWNULL),COLOR8C0000,LINETHICK1;IF(A4>REF(A4,1),A4,DRAWNULL),COLOR000055,LINETHICK1;IF(A3<REF(A3,1),A3,DRAWNULL),COLOR9B0000,LINETHICK1;IF(A3>REF(A3,1),A3,DRAWNULL),COLOR00006C,LINETHICK1;IF(A2<REF(A2,1),A2,DRAWNULL),COLORBB0000,LINETHICK1;IF(A2>REF(A2,1),A2,DRAWNULL),COLOR00007D,LINETHICK1;IF(A1<REF(A1,1),A1,DRAWNULL),COLORCC0000,LINETHICK1;IF(A1>REF(A1,1),A1,DRAWNULL),COLOR00009B,LINETHICK1;STICKLINE(KX1,C,O,4,1),COLOR4440FF;STICKLINE(KX1,C,H,0.5,1),COLOR4440FF;STICKLINE(KX1,O,L,0.5,1),COLOR4440FF;STICKLINE(KX2,C,O,4,0),COLOR4440FF;STICKLINE(KX2,O,H,0.5,0),COLOR4440FF;STICKLINE(KX2,C,L,0.5,0),COLOR4440FF;STICKLINE(KX3,C,O,4,1),COLORFFFF33;STICKLINE(KX3,C,H,0.5,1),COLORFFFF33;STICKLINE(KX3,O,L,0.5,1),COLORFFFF33;STICKLINE(KX4,C,O,4,0),COLORFFFF33;STICKLINE(KX4,O,H,0.5,0),COLORFFFF33;STICKLINE(KX4,C,L,0.5,0),COLORFFFF33;【通达信】牛劲十足(副图)-指标公式源码VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));ZM:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CL OSE-LOW)),VOL/2)),COLORRED,POINTDOT;ZM1:=IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-V AR1*(HIGH-LOW),0-VOL/2)),COLOR00FF00,POINTDOT;MMB:=(SUM(ZM,30)+SUM(ZM1,30))/10,COLORYELLOW;SG:=MMB>0 AND REF(MMB,1)<MMB;上攻周期:COUNT(SG,5),LINESTICK,COLORWHITE;JSC:=上攻周期<1;DBQD:=FILTER(COUNT(JSC,5)>3 AND NOT(JSC),10);DRAWICON(DBQD,2,1);DRAWBAND(上攻周期,RGB(255,120,120),3,RGB(0,0,0));DRAWBAND(JSC,RGB(0,0,255),0.5,RGB(0,0,0));STICKLINE(COUNT(上攻周期>3,5)>=3 AND SG,0,上攻周期,1.5,0),COLORRED; XG: COUNT(COUNT(上攻周期>3,5)>=3 AND SG,20)>4;【通达信】魔鬼K线(副图)-指标公式源码VAR1:=REF(OPEN,1);VAR2:=SMA(MAX(OPEN-VAR1,0),6,1)/SMA(ABS(OPEN-VAR1),6,1)*100;VAR3:=REF(CLOSE,1);VAR4:=SMA(MAX(CLOSE-VAR3,0),6,1)/SMA(ABS(CLOSE-VAR3),6,1)*100;VAR5:=REF(HIGH,1);VAR6:=SMA(MAX(HIGH-VAR5,0),6,1)/SMA(ABS(HIGH-VAR5),6,1)*100;VAR7:=REF(LOW,1);VAR8:=SMA(MAX(LOW-VAR7,0),6,1)/SMA(ABS(LOW-VAR7),6,1)*100; STICKLINE(VAR4<VAR2,VAR2,VAR4,5,0),COLORGREEN , ;STICKLINE(VAR4>VAR2,VAR2,VAR4,5,0),COLORRED , ;STICKLINE(VAR4>VAR2 AND VAR6>VAR8 ANDVAR8>VAR4,VAR4,VAR6,0.5,1),COLORRED , ;STICKLINE(VAR4>VAR2 AND VAR6>VAR8 ANDVAR8<VAR4,VAR4,VAR6,0.5,1),COLORRED ,;STICKLINE(VAR4>VAR2 AND VAR6<VAR8 ANDVAR6>VAR4,VAR4,VAR8,0.5,1),COLORRED , ;STICKLINE(VAR4>VAR2 AND VAR6>VAR8 ANDVAR6<VAR2,VAR2,VAR8,0.5,1),COLORRED , ;STICKLINE(VAR4>VAR2 AND VAR6>VAR8 ANDVAR6>VAR2,VAR2,VAR8,0.5,1),COLORRED , ;STICKLINE(VAR4>VAR2 AND VAR6<VAR8 ANDVAR8<VAR2,VAR2,VAR6,0.5,1),COLORRED , ;STICKLINE(VAR4>VAR2 AND VAR6<VAR8 ANDVAR8>VAR2,VAR2,VAR6,0.5,1),COLORRED , ;STICKLINE(VAR4<VAR2 AND VAR6>VAR8 ANDVAR6<VAR4,VAR4,VAR8,0.5,1),COLORGREEN , ;STICKLINE(VAR4<VAR2 AND VAR6<VAR8 ANDVAR8<VAR4,VAR4,VAR6,0.5,1),COLORGREEN , ;STICKLINE(VAR4<VAR2 AND VAR6<VAR8 ANDVAR6>VAR4,VAR4,VAR8,0.5,1),COLORGREEN , ;STICKLINE(VAR4<VAR2 AND VAR6>VAR8 ANDVAR6<VAR4,VAR2,VAR8,0.5,1),COLORGREEN ,;STICKLINE(VAR4<VAR2 AND VAR6>VAR8 ANDVAR6>VAR4,VAR2,VAR8,0.5,1),COLORGREEN , ;STICKLINE(VAR4<VAR2 AND VAR6<VAR8 AND VAR8<VAR2,VAR2,VAR6,0.5,1), COLORGREEN , ;STICKLINE(VAR4<VAR2 AND VAR6<VAR8 ANDVAR8>VAR2,VAR2,VAR6,0.5,1),COLORGREEN , ;【通达信】牛熊分界(立桩量、中线)-指标公式源码AAA:=(3*C+H+L+O)/6;VAR1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3 )+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;VAR2:=(HHV(VA R1,5)+HHV(VAR1,10)+HHV(VAR1,20))/3;VAR3:=(LLV(VAR1,5)+LLV(VAR1,10)+LL V(VAR1,20))/3;VAR4:=(HHV(VAR2,5)+HHV(VAR2,10)+HHV(VAR2,20))/3;VAR5:=( LLV(VAR3,5)+LLV(VAR3,10)+LLV(VAR3,20))/3;VAR6:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3;DRAWBAND(VAR1,RGB(155,50,50),VAR6,RGB(250,250,0));短线:VAR1,COLORWHITE;中线:VAR6,COLORYELLOW;金叉:短线>中线 AND REF(短线,1)=REF(中线,1),NODRAW;下跌:IF(VAR1=VAR6,VAR6,DRAWNULL),COLORGREEN;TJ1:=VOL=HHV(VOL,10)AND VOL>2*REF(VOL,1)AND CLOSE>VAR1;立桩量:=FILTER(TJ1,5);TJ2:=IF(BARSLAST(立桩量)=1 ANDCLOSE>REF(HIGH,1),1,IF(BARSLAST(立桩量)=2 ANDCLOSE>REF(HIGH,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(HIGH,3),1,0)));突破:TJ2=1,NODRAW;STICKLINE(CLOSE,REF(HIGH,BARSLAST(立桩量)),REF(HIGH,BARSLAST(立桩量)),1,0),COLORCYAN;STICKLINE(CLOSE,REF(LOW,BARSLAST(立桩量)),REF(LOW,BARSLAST(立桩量)),1,0),COLORYELLOW;STICKLINE(C>=O,C,O,3,0),COLOR000045;STICKLINE(C >=O,C,O,2.5,0),COLOR000065;STICKLINE(C>=O,C,O,2,0),COLOR000085;STICKL INE(C>=O,C,O,1.5,0),COLOR0000A5;STICKLINE(C>=O,C,O,1,0),COLOR0000C5;S TICKLINE(C>=O,C,O,0.5,0),COLOR0000E5;STICKLINE(C>=O,H,L,0,0),COLOR000 0F5;STICKLINE(C<O,C,O,3,0),COLOR353500;STICKLINE(C<O,C,O,2.5,0),COLOR 454500;STICKLINE(C<O,C,O,2,0),COLOR555500;STICKLINE(C<O,C,O,1.5,0),CO LOR656500;STICKLINE(C<O,C,O,1,0),COLOR757500;STICKLINE(C<O,C,O,0.5,0) ,COLOR858500;STICKLINE(C<O,H,L,0,0),COLOR959500;ZRR:=(YEAR-1992)*365+ INTPART((YEAR-1989)/4)+IF(MONTH<=2,DAY+(MONTH-1)*31,DAY+INTPART(13*(M ONTH+1)/5)-7+(MONTH-1)*28+IF(INTPART(YEAR/4)=YEAR/4,1,0)),NODRAW;T:=B ARSLAST(ZRR-REF(ZRR,1)>WEEKDAY-REF(WEEKDAY,1))+1,NODRAW;T1:=REF(T,T)+ T,NODRAW;T2:=REF(T,T1)+T1,NODRAW;T3:=REF(T,T2)+T2,NODRAW;T4:=REF(T,T3 )+T3,NODRAW;T5:=REF(T,T4)+T4,NODRAW;T6:=REF(T,T5)+T5,NODRAW;T7:=REF(T,T6)+T6,NODRAW;T8:=REF(T,T7)+T7,NODRAW;周10:(REF(CLOSE,T)+REF(CLOSE,T1)+REF(CLOSE,T2)+REF(CLOSE,T3)+REF(CLOSE, T4)+REF(CLOSE,T5)+REF(CLOSE,T6)+REF(CLOSE,T7)+REF(CLOSE,T8)+CLOSE)/10 ,LINETHICK2;【通达信】牛准反弹(快线、慢线)-指标公式源码N:=9;M1:=3;M2:=3;P:=9;快线:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;慢线:=SMA(快线,M1,1);ELI空:=SMA(慢线,M2,1);ELI牛股:=IF(BARSLAST(CROSS(慢线,ELI空))<P AND CROSS(慢线,ELI空) AND 慢线<20,90,0);LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),4.1,1)/SMA(ABS(CLOSE-LC),4.1,1)*100;牛准反弹:=CROSS(RSI,11)*80;XG:牛准反弹 OR ELI牛股;【通达信】启动提示(平台线、启动线)-指标公式源码启动线:SUM(EMA((C+L)/2,2),5)/10.158,COLORRED;平衡线:LLV(SUM( EMA((C+L)/2,2),5)/10.158,4),COLORFF00FF;平台线:LLV(SUM( EMA((C+L)/2,2),5)/10.158,10),COLORFFFFFF;强弱线:EMA(启动线,21),COLORYELLOW;STICKLINE(平台线<启动线,启动线,平台线,0.1,0),COLORFFCCAA; STICKLINE(平衡线<启动线,启动线,平衡线,0.1,0),COLORRED;VAR1:=2*MA(LLV((C+L)/2,8)*1.1,13)-EMA((C+L)/2,3)-((C+L)/2)*0.1;VAR2:=IF((EMA((C+L)/2,3)-VAR1)*5>0,POW((EMA((C+L)/2,3)-VAR1)*5,2)/10, -1*POW((EMA((C+L)/2,3)-VAR1)*5,2)/10);VAR3:=IF(VAR2>0,VAR2-0,0);STICKLINE(VAR3>0 AND REF(VAR3,1)=0 AND (C+L)/2>MA((C+L)/2,8),强弱线,强弱线+0.2,4,0),COLORFFAACC;DRAWTEXT(VAR3>0 AND REF(VAR3,1)=0 AND (C+L)/2>MA((C+L)/2,8),强弱线+0.35,'注意控制'),LINETHICK3,COLORFFAACC;【通达信】平台启动(主图)-指标公式源码圣:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;灵:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;石:=SMA(灵,13,8);仙:=CEILING(SMA(石,13,8));编著:=SMA(圣,21,8);AABB:=IF(L,CONST(L),DRAWNULL);平台启动:STICKLINE(仙-编著>75,AABB,AABB*0.99,15,1),COLOR0000FF; VARZT:=BARSLAST(平台启动);DRAWTEXT(VARZT=1,0.99*(AABB+AABB*0.98)/2,'平台启动'),COLORYELLOW;【通达信】牛熊线分水岭(中线强弱拐点)-指标公式源码JJ:=(CLOSE+HIGH+LOW)/3;A:=EMA(JJ,10);B:=REF(A,1);M1:=EMA(CLOSE,3);M2:EMA(CLOSE,8);分水岭:SMA(M2,2.5,1.5),LINETHICK2,COLORRED;牛线:3*M2-2*分水岭,LINETHICK2,COLORFF00FF ;熊线:4*分水岭-3*M2,LINETHICK2,COLORGREEN;IF (牛线<=熊线,牛线,熊线),COLORGREEN,LINETHICK2;IF (分水岭<=熊线,分水岭,熊线),COLORGREEN,LINETHICK2;IF(牛线>REF(熊线,1),熊线,DRAWNULL),COLORFF2200,LINETHICK2;M3:EMA(M2,13);M4:EMA(M2,55);VAR1:=EMA(M3,55);M5:EMA(M4,81), COLORRED,LINETHICK1;股道:=(1-C/SMA(C,13,1))*100;基础:=EMA(C,43);中线强弱拐点:EMA(股道*C/100+基础,3),COLORGRAY,LINETHICK1;。
通达信公式指标源码综合箱体主图指标公式.docx
通达信傻买傻卖——综合箱体主图指标公式发综合箱体主图公式,配合汽枪猎杀副图公式使用有互相验证作用。
综合箱体-■主图买线:=EMA(C Z2);卖线:=EMA(SLOPE(C Z21)*20+C Z42);STICKLINE(买线 >=卖线,REFDATE(HHV(H Z0)Z DATE)Z REFDATE(LLV(L Z0)Z DATE),5Z0),COLOR000055;STICKLINE(买线 v 卖线Z REFDATE(HHV(H,0)Z DATE)Z REFDATE(LLV(L,0)Z DATE),5Z0),COLOR663300; DRAWNUMBER(ISLASTBAR, C,C),COLORMAGENTA;DRAWKLINE(HIGH,OPEN Z LOW,CLOSE);TY:=C;Al:=REF(TY,10)=HHV(TY,2*10+1);Bl:=FILTER(Al,10); Cl:=BACKSET(Bl,10+l);HD:二FILTER© JO);A2:=REF(TY z10)=LLV(TY,2*10+1);B2:=FILTER(A2z10); C2:=BACKSET(B2,10+l);LD:=FILTER(C2,10);前期高位:REF(H,BARSLAST(HD)), COLORLIRED丄INETHICK2;前期低位:REF(L,BARSLAST(LD)), COLORGREEN丄INETHICK2;MA10: = MA(C z10);MA20: = MA(C,20);MA60: = MA(C,60);VOL5:=MA(VOL,5),COLORWHITE;VOL10:=MA(VOL Z10),COLORYELLOW;VOL40:=MA(VOL,40)Z COLORFFOOFF ;量托:二VOL5>=VOL40 AND CROSS(VOL10,VOL40) ANDREF(VOL10,1)<REF(VOL40,1);DRAWTEXT(量托z L-0.012;S 托COLORWHITE;AAAI: = BARSLAST(MA60>MA20 AND (MA20=MA10 OR MA20>MA10));BB1:=REF(COUNT(C<MA60,AAA1)=AAA1,1);CC1:=CROSS(C Z MA60) AND VOL>MA(VOL,5) AND(C-REF(C/l))/REF(C,l)*100>3;芙蓉出水:二BB AND CC1,COLOROOFFOO;DRAWTEXT(芙蓉出水z H+0.12;芙蓉出水'),COLORFFOOFF;STICKLINE(芙蓉出水,H Z L,0.5Z1)Z COLORFFOOFF;STICKLINE(芙蓉出水Q ,C,4;1),LINETHICK2,COLORFFOOFF;MAA1:=MA(CLOSE,5);MAA2:=MA(CLOSE,10);MAA3:=MA(CLOSE,30);ZJ:=AMOUNT/10000;{资金}TM:=V-MA(V,10);{量填满}一穿三: = MAA1>O AND MAA2>0 AND MAA3>0 AND MAAKC AND MAA2<C AND MAA3<C AND CLOSE>OPEN ;DRAWTEXT( 一穿三z L-0.012;穿三线jCOLORFFOOFF;C6:=REF(C Z1);涨停:=IF((C-C6)*100/C6>=(10-0.01*100/C6),l,0);STICKLINE(涨停QPEN£LOSE20),COLORMAGENTA;STICKLINE(涨停z H,L,O z O)z COLORLIRED;N: = 10;T1:=CONST(HHVBARS(V,N));TO:IF(CURRBARSCOUNT<=N+3,CONST(IF(T1=0,C,REF(C,T1))),DRAWNULL), COLORCCOOCC;IF(CURRBARSCOUNT=T1+1,TOQRAWNULL),CIRCLEDOT,COLORCCOOCC;DRAWTEXTCISLASTBARJO;量能平台jCOLORCCOOCC;M: = 10;Q1:=CONST(REF(HHVBARS(V Z M),T1+1)+T1+1);QO:IF(CURRBARSCOUNTv=Tl+M+3 ANDCURRBARSCOUNT>=T1+1,CONST(REF(C,Q1))Z DRAWNULL),COLOR009900;IF(CURRBARSCOUNT=Q14-1Z QO,DRAWNULL)Z CIRCLEDOT,COLOROOCCOO; M1:=CONST(LLVBARS(V,M));M0:IF(CURRBARSCOUNT<=M+7,CONST(IF(Ml=0/O,REF(O,Ml))),DRAWNULL );IF(CURRBARSCOUNT=M1+1,MO,DRAWNULL),CIRCLEDOT;DRAWTEXT(ISLASTBAR,M(V 地量反量能平台');HV:=HHV(V,8)=V OR V/REF(V,1)>=2;FT: = BARSLAST(HV);量能平台:IF(HV,C,REF(C,FT)),COLORCCOOCC Z LINETHICK1;DP:=IF(C=INDEXC,O,1);GJ:=AMOUNT/V/100;【明日阻力】:L+(GJ-L)+(C-L)Z COLORRED,NODRAW;【明日支撑】:L+(C・GJ),NODRAW;年:二YEAR,NODRAW;月:-MONTH,NODRAW;星期:二WEEKDAY’NODRAW;H 1:=DATETODAY(DATE);上市日:二REF(DATE,TOTALBARSCOUNT・CURRBARSCOUNT);自然日:=日1-DATETODAY(上市日)+1;ZB:=(自然H-REF(自然R,l))!=星期・REF(星期,1)ORTOTALBARSCOUNT-CURRBARSCOUNT=0;木周第几天:二BARSLAST(ZB)+1;本月第几天: = BARSLAST(年*100+月!二REF(年*100+月,1))+1;MA1: = REF(C Z本周第几天);MA2: = REF(MA1,本周第儿天);MA3: = REF(MA2「木周第几天);MA4: = REF(MA3,本周第几天);MA5: = REF(MA4,本周第几天);MA6: = REF(MA5,本周第几天);MA7: = REF(MA6,本周第儿天);MA8: = REF(MA乙木周第几天);MA9: = REF(MA8,本周第几天);十周价:=(C+MAl+MA2+MA3+MA4+MA5+MA6+MA7+MA8+MA9)/10; 决策:REFDATE(十周价,D ATE),COLORYELLOW 丄INETHICK2;DRAWTEXT(ISLASTBAR,决策,决策线1COLORYELLOW;AK1:=BARSCOUNT(C);AH:=HHV(H,200);AL:=LLV(L,200);A0:=(AH-AL)/40;BK1:=L-AO;STICKLINE((AKl+0)/34=FLOOR((AKl+0)/34),BKl z BKl-1.5*AO z2z O),COLORFO OFFO;DRAWTEXT((AK1+0)/34=FLOOR((AK1+0)/34)Z BK1-1*AO;时间窗,变盘jCOLORFOOFFO;DIR2:=ABS(CLOSE-REF(CLOSE,10));VIR2:=SUM(ABS(CLOSE-REF(CLOSE,1))Z10);ER2:=DIR2/VIR2;CS2:=ER2*(0.8-2/24)+2/24;CQ2:=CS2*CS2;AMA2:EMA(DMA(CLOSE Z CQ2)Z2),COLORLIBLUE,LINETHICK3;AMA3:IF(AMA2/REF(AMA2,l)>0.997,AMA2,DRAWNULL),COLORRED,LINETHI CK3; AMA4:IF(AMA2/REF(AMA2,l)>1.001,AMA2,DRAWNULL),COLORRED,LINETHI CK3;LC:=REF(CLOSE,1);VAR2& =SMA(MAX(CLOSE-LC z O),5.5,1)/SMA(ABS(CLOSE-LC),6,1)*100;VARA00:=((AMOUNT)/(VOL))/(100);VARABOO:=((3)*(HIGH)+LOW+OPEN+(2)*(CLOSE))/(7);VARACOO:=((SUM(AMOUNT Z刀)/(VARA00))/(100);VARDO: = DMA(VARABOO Z(VOL)/(VARACOO));VARDE0:=((CLOSE-VARD0)/(VARD0))*(100);VARDEOF:=((CLOSE-LLV(LOW Z34))/(HHV(HIGH,34)-LLV(LOW Z34)))*(100); VARDE0JF:=MA(VARDE0z20)+STD(VARDE0,20);BIAS18:=((CLOSE-MA(CLOSE,18))/(MA(CLOSE,18)))*(100);AA:=SMA(VARDE0F,3,l);SS:=(REF(BIAS18,1)>=5) AND CROSS(VARDEOJF,VARDEO) AND (AA>79); DRAWTEXT(CROSS(84,RSI) AND CROSS(76,VAR28)z H*1.01/,卖岀')丄INETHICK4,COLORGREEN;红轨道: = MA(MA(CLOSE Z3),1),LINETHICK1,COLORYELLOW;绿轨道:=MA(MA(CLOSE,3),3);上升:=IF(红轨道 >=绿轨道,绿轨道Z DRAWNULL),COLORRED,LINETHICK2; AA1:=3*SMA((C-LLV(L,9))/(HHV(H,9)-LLV(L Z9))*100,3Z1)-2*SMA(SMA((C-LLV (L,9))/(HHV(H,9)-LLV(L Z9))*100,3,1),3,1);加仓:=IF(CROSS(AA1Z REF(AA1+0.01Z1)) AND LLV(AA1,2)=LLV(AA1,8) AND BETWEEN(AA1,20,60),1,0);波段底:=(3)*(SMA(((CLOSE - LLV(LOW,27))/(HHV(HIGH,2刀・LLV(LOW Z27)))*(100)Z5Z1))-(2)*(SMA(SMA(((CLOSE - LLV(LOW Z27))/(HHV(HIGH,2刀・LLV(LOW Z27)))*(100)Z5,1),3Z1));DRAWTEXT(CROSS(波段底,3)丄*0・97,底‘);A:=(3*C+L+O+H)/6;X:=(20*A+19*REF(A」)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A ,5) +14*REF(A,6)+13 *REF(A, 7)+12*REF(A,8)+ll*REF(A z9)+10*REF(A,10)+9*REF(A,11)+8*REF(A Z12)+7*REF(A Z13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+REF(A,20))/210;MTM:=C-REF(C,1);DX: = 100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6)z6);CB:=EMA(X,13);买:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) ANDCROSS(DX,MA(DX,2)),1,0);DRAWTEXT(FILTER(买=1,5)丄OW・0・03,买入'),COLORRED;盘整天数:=5;{盘整天数自己调,以5-7 S为最佳}下探幅度:=5;上冲幅度:=25;涨停l:=(C-REF(C z l))/REF(C,l)>0.09;{涨幅大于9 个点}缩量: = HHV(VOL,盘整天数・2)vREF(VOL,盘整天数・1) AND SUM(VOL,盘整天数)>2* SUM(VOL,盘整天数・2);七伤拳:二缩量AND REF(涨停1,盘整天数)AND COUNT(涨停1,盘整天数+1)=1 AND (HHV(H,盘整天数)・REF(C,盘整天数))/REF(C,盘整天数)*100<±冲幅度AND (LLV(L,盘整天数)・REF(C,盘整天数))/REF(C,盘整天数)*100>(下探幅度*-1);DRAWTEXT(七伤拳丄OW*0・98严七伤拳'),COLORRED;阳涨幅:=3.5;阳倍量:=1・9;单阳收:=C;单阳开:=0;单阳匸单阳收>=REF(C,1)*(1+阳涨幅/100)AND VOL>REF(VOL,1)*阳倍量;DRAWTEXT(CURRBARSCOUNT<300 AND 单阳丄*0.98邙日^COLOROOFFFF; 高不破价: = REF(C,BARSLAST(单阳));低不破价:=REF(L,BARSLAST(单阳));单卩日不破:=CURRBARSCOUNT<300 AND BARSLAST(^ffi)<ll AND(LLV(L,BARSLAST(单阳))>低不破价OR LLV(L,BARSLAST(单阳))"氐不破价);STICKLINE(单阳不破/氐不破价■低不破价*0.0005/氐不破价,4,0),COLORGREEN; STICKLINE(单阳不破,高不破价,高不破价Z4,0)Z COLORRED; STICKLINE(单阳,单阳开,单阳收20),COLORYELLOW;DRAWTEXT(BARSU\ST(单阳)=1 AND单阳不破‘低不破价*0.98/1,),COLORGREEN;DRAWTEXT(BARSLAST(单阳)=2 AND单阳不破,低不破价*0.98/2,)Z COLORGREEN;DRAWTEXT(BARSLAST(单阳)=3 AND单阳不破,低不破价*0.98/3*),COLORGREEN;DRAWTEXT(BARSLAST(单阳)=4 AND单阳不破,低不破价*0.98;4,),COLORGREEN;DRAWTEXT(BARSLAST(单阳)=5 AND单阳不破/氐不破价*0.98;5,),COLORGREEN;DRAWTEXT(BARSU\ST(单阳)=6 AND单阳不破‘低不破价*0.98,6),COLORGREEN;DRAWTEXT(BARSLAST(单阳)=7 AND单阳不破,低不破价*0.98/7,)Z COLORGREEN;DRAWTEXT(BARSLAST(单阳)=8 AND单阳不破,低不破价*0.98/8*),COLORGREEN;DRAWTEXT(BARSLAST(单阳)=9 AND单阳不破,低不破价*0.98,9),COLORGREEN;DRAWTEXT(BARSLAST(单阳)=10 AND单阳不破/氐不破价*0.98;10,),COLORGREEN;DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);MACD1:=CROSS(DIFF,DEA) AND COUNT(MACD>0,1)=1; RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; K:=SMA(RSV,9,1);D:=SMA(K Z9,1);J:=3*K-2*D;KDJ1:=CROSS(K,D) AND CROSS(JQ);均线:=CROSS(MA(C,5),MA(C, 10));量线:=CROSS(MA(V,5),MA(V,10));SCC:=MACD1 AND KDJ1 AND 均线AND 量线;SC1:=MACD1 AND KDJ1;SC2:=均线AND量线;SC3:=均线AND MACD1;SC4:=量线AND KDJ1;SC5:=均线AND KDJ1;SC6:=MACD1 AND 量线;DRAWICON(SC1 OR SC2 OR SC3 OR SC4 OR SC5 OR SC6,L-0.20,9);{两个以上指标同吋金叉显示9号图标}DRAWICON(SCC,L-0.20,3);{四个指标同时金叉显示3号图标,便于区别};AAA:=MA((2*CLOSE+HIGH+LOW)/4,5);通l:=AAA*102/100;通2:=AAA*(200-102)/100;CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE z20);DD: = DMA(CLOSE,CC);上:(l+7/100)*DD,CIRCLEDOT, COLORBLUE;下:(l-7/100)*DD,CIRCLEDOT,COLORBLUE;中:(上+下)/2,CIRCLEDOT,COLORBLUE;IF(±>=REF(±,1), ±,DRAWNULL),CIRCLEDOT,COLOR0099FF;IF(屮〉=REF(屮,1),屮,DRAWNULL),CIRCLEDOT,COLOR0099FF;IF(下〉=REF(下,1),下Z DRAWNULL),CIRCLEDOT,COLOR0099FF;。
135战法通达信多个公式
135战法通达信多个公式135战法,通达信新版主图一蓄势篇(1)马失前蹄(2)日月合璧(3)金屋藏娇(4)红杏出墙(5)双蹄并进(6)步步高(7)四星望月(8)小鸟依人(9)四渡赤水(10)星星点灯(11)串阳(12)串阴(13)蚂蚁上树(14)八仙过海(15)九九艳阳天(16)十全十美(17)月季花开二转势篇(1)黑客点击(2)均线互换(3)海底捞月(4)投石问路(5)动感地带(6)绝外逢生(7)一锤定音三进攻篇(1)揭竿而起(2)红衣侠女(3)破镜从圆(4)一阳穿三线(5)三线推进(6)梅开二度(7)三军集结四防御篇(1)一石二鸟(2)双飞燕(3)三剑客(4)走四方(5)暗渡阵仓(6)浪子回头(7)立竿见影五撤退篇(1)一枝独秀(2)独上高楼(3)见好就收(4)一剑封喉(5)一箭穿心(6)明修栈道(7)狗急跳墙(8)拖泥带水(9)晨钟暮鼓(10)笑里藏刀(11)落井下石(12)节外生枝(13)过河拆桥(14)金蝉脱壳(15)分道扬镳(16)突出重围(17)一阴破三线{135战法,通达信新版主图}白马线:MA(C,13),COLORRED,LINETHICK1;黑马线:MA(C,34),COLORYELLOW,LINETHICK1;烈马线:MA(C,55),COLOR9933CC,LINETHICK1;K1:=BACKSET(白马线<ref(白马线,1),2);< p="">波幅变窄:IF(K1,白马线,DRAWNULL),COLOR00CC33,LINETHICK1;K2:=BACKSET(黑马线<ref(黑马线,1),2);< p="">均线粘合:IF(K2,黑马线,DRAWNULL),COLORFFCC66,LINETHICK1;K3:=BACKSET(烈马线<ref(烈马线,1),2);< p="">随时变盘:IF(K3,烈马线,DRAWNULL),COLORBLUE,LINETHICK1;JW1:=C<ref(open,1);<="">JW2:=OPENREF(L,1);JW3:=O<ema(c,55);<="" p="">JW:=JW1 AND JW2 AND JW3;金屋藏娇:DRAWTEXT(JW,LOW-0.1,'←藏娇'),COLORYELLOW;AR1:=烈马线>黑马线AND 黑马线>白马线;AR2:=BARSLAST((C-白马线)/白马线*100<-6);AR3:=白马线>=REF(白马线,1);AR4:=COUNT(CROSS(C,白马线),AR2)=1;AR5:=AR1 AND AR2 AND AR3 AND AR4;AR6:=AR5 AND FILTER(AR5,10);红杏出墙:DRAWTEXT(AR6,L-0.0,'←红杏'),COLORYELLOW;Z1:STICKLINE(AR6,H,L,0.2,1),COLORYELLOW;Z2:STICKLINE(AR6,O,C,3,1),LINETHICK2,COLORYELLOW;BR1:=COUNT(BETWEEN((C-REF(C,1))/REF(C,1)*100,0,5) ,5)=5;BR2:=ABS((白马线-黑马线)+(黑马线-烈马线))/C<0.2;BR3:=C>烈马线AND (REF(C,1)<="" p="" ref(c,2)REF(C,3)<="">(C,5)蚂蚁上树:DRAWTEXT(BR4 AND FILTER(BR4,10),H+0.0,'←上树'),COLOR00C5FF; TS1:=CROSS(MA(C,13),MA(C,34));TS2:=MA(C,13)<ma(c,55);< p="">TS:=TS1 AND TS2;投石问路:DRAWTEXT(TS,黑马线-0.0,'←投石'),COLORF00FF0;破镜重圆:DRAWTEXT(REF((MAX(MA(C,1),MA(C,55))-MIN(MA(C,1),MA(C,55)))/MIN(MA(C,1),MA(C,55))*1000<60,1)AND EMA((EMA(CLOSE,12)-EMA(CLOSE,26)),9)<ref(ema< p="">((EMA(CLOSE,12)-EMA(CLOSE,26)),9),1) AND REF((CLOSE-REF(CLOSE,1))/REF (CLOSE,1)*100<-1,1) AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>3,L-0.02,'←重圆');Y:=(MA(C,13)-MA(C,55))/MA(C,13)*100;YY1:=C>MA(C,13) AND OPEN<ma(c,13);< p="">YY3:=C>MA(C,34) AND OPEN<ma(c,34);< p="">YY5:=C>MA(C,55) AND OPEN<ma(c,55);< p="">阳穿三线:DRAWTEXT(YY1 AND YY5 AND YY3,LOW-0.05,'←穿线'),COLORRED; SJ1:=ABS(MA(CLOSE,13)-MA(CLOSE,34))<c*0.01;< p="">SJ2:=ABS(MA(CLOSE,34)-MA(CLOSE,55))<c*0.01;< p="">SJ3:=CROSS(MA(CLOSE,13),MA(CLOSE,55));三军集结:DRAWTEXT(SJ1 AND SJ2 AND SJ3,HIGH+0.05,'←集结'),COLORRED; JG1:=ABS(MA(C,13)-MA(C,34))MA(C,13) OR O=MA(C,13);JG3:=C/OPEN>1.03 ;JG:=JG1 AND JG2 AND JG3;揭竿而起:DRAWTEXT(JG,H+0.0,'←揭竿'),COLORYELLOW;HR2:=白马线>=REF(白马线,3) AND 黑马线>=REF(黑马线,1) AND 烈马线>=REF (烈马线,1) AND CROSS(C,白马线) AND CROSS(C,黑马线) AND CROSS(C,烈马线); 三线推进:DRAWTEXT(HR2 AND FILTER(HR2,10),H+0.1,'←推进'),COLORFFC8FF; X1:STICKLINE(HR2 AND FILTER(HR2,10),H,L,0,1),COLORFFC8FF;X2:STICKLINE(HR2 AND FILTER(HR2,10),O,C,3,1),LINETHICK2,COLORFFC8FF;MK1:=MA(C,13)>MA(C,55) AND MA(C,34)>MA(C,55);MK:=TS1 AND MK1;梅开二度:DRAWTEXT(MK,黑马线-0.0,'←二度'),COLORF00FF0;均线互换:DRAWTEXT(CROSS(黑马线,烈马线),烈马线-0.0,'←互换'),COLOR0099FF,LINETHICK9;YZ1:=C/O>1.02 AND H/C>1.02 AND O/L<1.02;{收阳有上影} YZ2:=REF(C,1)>REF(O,1) AND O>MA(C,11);{昨收阳今大于均线} YZ:=YZ1 AND YZ2 AND Y>10;一支独秀:DRAWTEXT(YZ,H+0.02,'←独秀'),COLORF00FF0;DS1:=OPEN/C>1.04 AND O/REF(C,1)>1.03;DS2:=V*100/FINANCE(7)>0.08 AND Y>8;DS:=DS1 AND DS2;独上高楼:DRAWTEXT(DS,HIGH+0.0,'←高楼'),COLORGREEN;YJ1:=H/O>1.04;YJ2:=ABS(C-O)<c*0.03;< p="">YJ3:=C/EMA(C,13)>1.1;YJ:=YJ1 AND YJ2 AND DS2 AND YJ3 AND YZ2;一剑封喉:DRAWTEXT(YJ,HIGH+0.1,'←封喉'),COLORRED;T:=(MA(C,13)-MA(C,55))/MA(C,13)*100;NN1:=CMA(C,13);TT3:=CMA(C,34);TT5:=CMA(C,55);阴破三线:DRAWTEXT(NN1 AND TT5 AND TT3,H+0.0,'←破线'),COLORBLUE;红衣黑客:DRAWTEXT(CROSS(白马线,烈马线),烈马线-0.0,'←红客'), COLORYELLOW,LINETHICK9;投石叉:DRAWICON(CROSS(白马线,黑马线),黑马线,1);红客叉:DRAWICON(CROSS(白马线,烈马线),烈马线,1);互换叉:DRAWICON(CROSS(黑马线,烈马线),烈马线,1);分道叉:DRAWICON(CROSS(黑马线,白马线),黑马线,2);穿心叉:DRAWICON(CROSS(烈马线,白马线),烈马线,2);各为叉:DRAWICON(CROSS(烈马线,黑马线),烈马线,2);{买卖成交量}量:VOL,VOLSTICK;预量:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),COLORFFFF00;V AR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));买:IF(CLOSE>OPEN,V AR1*(HIGH-LOW),IF(CLOSE<="" p=""> ((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),COLORFF00FF,POINTDOT ;卖:-IF(CLOSE>OPEN,0-V AR1*((HIGH-CLOSE)+(OPEN-LOW)), IF(CLOSE<="" ar1*(high-low),0-vol="" p="">买卖%:ABS(买/卖),LINETHICK0,COLORWHITE;二十换:SUM(V/CAPITAL*100,20),COLORRED,POINTDOT;预换:MAX(VOL,DYNAINFO(17)*REF(MA(VOL,5),1))/CAPITAL*100,COLORFFFF00,POINTDOT;STICKLINE(VOL>0,VOL,0,2.5,0),COLORFF9088;STICKLINE(买>0,0,买,2.5,0),COLORFF00FF;五日均量:MA(V,5),COLORWHITE;十日均量:MA(V,10),COLORYELLOW;红箭:DRAWICON(CROSS(五日均量,十日均量),十日均量,1);绿箭:DRAWICON(CROSS(十日均量,五日均量),十日均量,2);{绝代双骄MACD}DIF:EMA(CLOSE,12)-EMA(CLOSE,26),COLORRED;DEA:EMA(DIF,9);DEF:=2*(DIF-DEA);MACD:(DIF-DEA)*2,COLORSTICK;进退有据:(DIF-DEA)*2,COLORFF00FF,LINETHICK1;K1:=BACKSET(进退有据<ref(进退有据,1),2);< p="">速战急归:IF(K1,进退有据,DRAWNULL),COLOR00CC33,LINETHICK1;K2:=BACKSET(DIF<ref(dif,1),2);< p="">畏法度:IF(K2,DIF,DRAWNULL),COLORLIBLUE,LINETHICK1;红柱持股:IF(MACD>REF(MACD,1),MACD,DRAWNULL),STICK,COLORRED ,LINETHICK1;绿柱持币:IF(MACD0 AND REF(DEF,1)>REF(DEF,2) AND DEF< REF(DEF,1),1,0);月:=IF(DEF<0 AND REF(DEF,1)< REF(DEF,2) AND DEF>REF(DEF,1),1,0);天堂:DRAWTEXT(CROSS(DIF,DEA) AND DIF<0,DEA,'←天'),COLORFF00FF;加油:DRAWTEXT(CROSS(DIF,DEA) AND DIF>0,DEA,'←加'),COLORYELLOW;地狱:DRAWTEXT(CROSS(DEA,DIF) AND DIF<0,DEA,'←地'),COLOR00CC33;末日:DRAWTEXT(CROSS(DEA,DIF) AND DIF>0,DEA,'←末'),COLORLIBLUE;卖出:DRAWICON(FILTER(日,3) AND 日,DEF+0.03,8);钱袋:DRAWICON(FILTER(月,3) AND 月,DEF-0.03,9);金叉:DRAWICON(CROSS(DIF,DEA),DEA,1);死叉:DRAWICON(CROSS(DEA,DIF),DEA,2);{股市天机}DIF:=EMA(CLOSE,9)-EMA(CLOSE,18);DEA:=EMA(DIF,7);DEF:=2*(DIF-DEA);量价线形:(DIF-DEA)*2,COLORSTICK;STICKLINE(DEF>=0 AND DEF>=REF(DEF,1),0,DEF,2.0,1),COLORRED;STICKLINE(DEF>=0 AND DEF< REF(DEF,1),0,DEF,2.0,0),COLORFFFF00;STICKLINE(DEF<0 AND DEF>=REF(DEF,1),0,DEF,2.0,1),COLORRED;STICKLINE(DEF<0 AND DEF< REF(DEF,1),0,DEF,2.0,0),COLORFFFF00;DIFF:EMA(CLOSE,9)-EMA(CLOSE,18),COLORWHITE;DEAA:EMA(DIFF,7),COLORYELLOW;日:=IF(DEF>0 AND REF(DEF,1)>REF(DEF,2) AND DEF< REF(DEF,1),1,0);月:=IF(DEF<0 AND REF(DEF,1)< REF(DEF,2) AND DEF>REF(DEF,1),1,0);进退有据:(DIF-DEA)*2,COLORFF00FF,LINETHICK2;K1:=BACKSET(进退有据<ref(进退有据,1),2);< p="">速战急归:IF(K1,进退有据,DRAWNULL),COLOR00CC33,LINETHICK2;卖出:DRAWICON(FILTER(日,3) AND 日,DEF+0.01,8);钱袋:DRAWICON(FILTER(月,3) AND 月,DEF-0.0,9);金叉:DRAWICON(CROSS(DIFF,DEAA),DEA,1);死叉:DRAWICON(CROSS(DEAA,DIFF),DEA,2);</ref(进退有据,1),2);<></ref(dif,1),2);<></ref(进退有据,1),2);<></c*0.03;<></c*0.01;<></c*0.01;<></ma(c,55);<></ma(c,34);<></ma(c,13);<></ref(ema<></ma(c,55);<></ref(烈马线,1),2);<></ref(黑马线,1),2);<> </ref(白马线,1),2);<>。
宁俊明135战法所有公式全编写主图通达信指标公式源码
宁俊明135战法所有公式全编写主图通达信指标公式源码135所有战法全编写,分享给大家,对照《135战法》书籍研究收获更大。
所有公式都包含在一个文本里方便大家下载。
里面添加了详细注释,方便大家学习和理解。
主图显示,更加直观。
注释详细,分享给大家,对照《135战法》书籍研究收获更大EMA13:MA(C,13),COLORWHITE,LINETHICK2;EMA34:MA(C,34),COLORYELLOW;EMA55:MA(C,55),COLORFF00FF;{见好就收}Y:=(EMA13-EMA55)/EMA13*100;JHJX:=REF(Y,1)<=10 AND Y>10;{DRAWICON(JHJX,H,1);}DRAWTEXT(JHJX,H,'见好就收'),COLORF00FF0;{红杏出墙}HX1:=EMA13<EMA34 AND EMA34<EMA55;{股价长期下跌,并且远离长期均线}HX2:=BARSLAST((C-EMA13)/EMA13*100<-6);{收盘价在13均线%6到现在的天数}HX3:=ABS(1-EMA55/REF(C,1))>0.1;HX6:=BARSLAST(CROSS(EMA55,EMA34))>=20;{13日均线下降趋于走平}HX4:=ABS(1-REF(EMA13,1)/EMA13)<0.004 ANDC<EMA34;HX5:=REF(C,1)<EMA13 AND C>EMA13 AND C>O; HX7:=HX1 {AND HX3} AND HX4 AND HX5 ;HX8:=HX7 AND FILTER(HX7,10);{满足后10天内不标记} DRAWTEXT(HX8,L-0.05,'红杏出墙'),COLORYELLOW;{蚂蚁上树}BR1:=COUNT(BETWEEN(((C-O)/O)*100,0,5) ,5)=5;{5日内收盘价都比前日收盘价高}BR2:=(ABS(EMA13-EMA34)+ABS(EMA34-EMA55))/C<0.1;{主均线相距很近或基本持平}BR3:=C>EMA55 AND COUNT(L<EMA55,5)>=1;{股价送上55日均线}MYSS:=BR1 AND BR2 AND BR3;DRAWTEXT(MYSS AND FILTER(MYSS,5),H,'蚂蚁上树'),COLOR00C5FF;{黑客点击}DJ1:=EMA13>EMA34 AND EMA34<EMA55;{13日均线大于34日均线,34日均线小于55日均线}DJ2:=O>EMA55;{开盘价大于55日均线}DJ3:=CROSS(EMA13,EMA55) OR ABS(1-EMA13/EMA55)<0.002;DJ4:=O>C AND C<REF(C,1);HKDJ:= DJ2 AND DJ3 AND DJ4;DRAWTEXT(HKDJ AND FILTER(HKDJ,10),L-0.03,'黑客点击'),COLORD6BA63;{红衣侠女}XN1:=ABS(1-HHV(EMA55,5)/LLV(EMA55,5))<0.02;XN2:=CROSS(EMA13,EMA55) OR ABS(1-EMA13/EMA55)<0.002;XN3:=C>O AND V>REF(V,1) AND C>EMA55; HYXN:=XN1 AND XN2 AND XN3;DRAWTEXT(HYXN AND FILTER(HYXN,5),L-0.05,'红衣侠女'),COLORF00FF0;{海底捞月}LY1:=COUNT(ABS(1-EMA55/EMA34)<0.1,20)>=16; LY2:=COUNT(CROSS(EMA34,EMA13),40)>=1 AND COUNT(CROSS(EMA55,EMA13),40)>=1;LY3:=CROSS(EMA13,EMA55);HDLY:=LY1 AND LY2 AND LY3;DRAWTEXT(HDLY AND FILTER(HDLY,5),L-0.25,'海底捞月'),COLORGREEN;{均线互换}JXHH:=BARSLAST(REF(CROSS(EMA55,EMA34),1)) AND CROSS(EMA34,EMA55);DRAWTEXT(JXHH,L+0.09,'均线互换'),COLOR0099FF;{梅开二度}MKED1:=BARSLAST(REF(CROSS(EMA34,EMA13),1));MKED2:=COUNT(H>=EMA55,MKED1)=MKED1; MKED:=MKED2 AND CROSS(EMA13,EMA34);DRAWTEXT(MKED,L-0.1,'梅开二度'),COLOR0044FF;{一阳三线}YY1:=C>EMA13 AND O<EMA13;YY2:=C>EMA34 AND O<EMA34;YY3:=C>EMA55 AND O<EMA55;YYSX:=YY1 AND YY2 AND YY3;DRAWTEXT(YYSX,H+0.1,'一阳三线'),COLORRED;{揭竿而起} MAX3:=MAX(MAX(EMA13,EMA34),EMA55);MIN3:=MIN(MIN(EMA13,EMA34),EMA55);JG1:=ABS(EMA13-EMA34)<C*0.05;{13线34线55线接近} JG2:=ABS(EMA34-EMA55)<C*0.05;JG3:=C>=O*1.03 AND C>MAX3;{阳线3%}JG4:=O>MIN3 AND O<MAX3;JG5:=C>REF(H,5);JG6:=(C-EMA34)/EMA34<=0.15;{控制价高}JG7:=V>MA(V,5) AND MA(V,10);JGEQ:=JG1 AND JG2 AND JG3 AND JG4 AND JG5 AND JG6 AND JG7;DRAWTEXT(JGEQ,H+0.1,'揭竿而起'),COLORGREEN;{三线推进}MAX4:=MAX(MAX(MAX(EMA13,EMA34),EMA55),H);MIN4:=MIN(MIN(MIN(EMA13,EMA34),EMA55),L);SXTJ1:=HHV(MAX4,60);SXTJ2:=LLV(MIN4,60);SXTJ3:=EVERY(ABS(1-SXTJ1/SXTJ2)<0.3,20);SXTJ:=SXTJ3 AND (YYSX OR JGEQ);DRAWTEXT(SXTJ AND FILTER(SXTJ,10),H+0.25,'三线推进'),COLOR00C5FF;{浪子回头}LZ1:=REF(C,2)<REF(O,2) AND REF(C,1)<REF(O,1) AND C<O;LZ2:=C<=REF(C,1) AND REF(C,1)<=REF(C,2);LZ3:=MA(V,3)<REF(V,3);LZ4:=REF(C,3)>EMA13 AND (C>EMA55 OR ABS(1-C/EMA55)<0.01);LZHT:=LZ1 AND LZ2 AND LZ3 AND LZ4;DRAWTEXT(LZHT AND FILTER(LZHT,5),L-0.1,'浪子回头'),COLOR00FF99;{走四方}ZSF1:=REF(C,4)>REF(O,4) AND (REF(C,4)>EMA13 OR REF(C,4)>EMA34) AND (ABS(1-REF(EMA55,4)/EMA55)<0.01 ORMA(EMA55,4)>REF(EMA55,5));ZSF2:=COUNT(ABS((1-REF(C,1)/C)*100)<3,4)=4 AND MA(V,4)<REF(V,4)*0.8;ZSF:=ZSF1 AND ZSF2;DRAWTEXT(ZSF AND FILTER(ZSF,4),L-0.1,'走四方'),COLORBLUE;{一枝独秀}YZ1:=C/O>1.01 AND H/C>1.025 ;{收阳有上影}YZ2:=EMA13>MAX(EMA34,EMA55) ANDC>1.05*EMA13 AND O>MA(C,11);{昨收阳今大于均线}YZDX:=YZ1 AND YZ2;DRAWTEXT(YZDX,(H+C)/2,'一枝独秀'),COLORF00FF0;{独上高楼}DSGL1:=REF(C,1)>=REF(O,1);DSGL2:=O/REF(C,1)>1.029 AND O/C>1.03 ANDO/MAX(EMA13,EMA55)>1.03;DSGL:=DSGL1 AND DSGL2;DRAWTEXT(DSGL,(O+C)/2,'独上高楼'),COLORF00FF0;{金屋藏娇}JWCJ1:=C<O AND REF(C,1)<REF(O,1);JWCJ2:=O<=REF(C,1) AND L>=REF(L,1);JWCJ3:=REF(C,1)/REF(L,1)>1.02;JWCJ4:=EMA13<EMA34 OR EMA13<EMA55; JWCJ:=JWCJ1 AND JWCJ2 AND JWCJ3 AND JWCJ4; DRAWTEXT(JWCJ,LOW-0.2,'金屋藏娇'),COLORYELLOW;{日月合璧}RYHB1:=REF(O,1)<=REF(C,2) AND REF(C,1)<REF(O,1) AND ABS(1-REF(C,1)/REF(L,1))<0.02;RYHB2:=C>O AND ABS(1-C/REF(O,1))<0.025 AND ABS(1-O/REF(C,1))<0.025;RYHB3:=EMA13<REF(EMA13,1) OR ABS(1-EMA13/REF(EMA13,1))<0.01 AND (EMA13<EMA34 OR EMA13<EMA55);RYHB4:=REF(L,1)<=LLV(REF(L,1),10);RYHB:=RYHB1 AND RYHB2 AND RYHB3 AND RYHB4; DRAWTEXT(RYHB ,LOW,'日月合璧'),COLORYELLOW;{投石问路}TSWL1:=CROSS(EMA13,EMA34) AND EMA13<EMA55; DRAWTEXT(TSWL1,L-0.1,'投石问路'),COLOR0044FF;{分道扬镳}FDYB:=CROSS(EMA34,EMA13) AND EMA34>EMA55; DRAWTEXT(FDYB,L-0.1,'分道扬镳'),COLOR0044FF;{三军集结}SJJJ3:=REF(EMA55,1)>REF(EMA13,1);SJJJ4:=ABS(1-(MAX(MAX(EMA34,EMA55),EMA13)/MIN(MIN(EMA13,EMA3 4),EMA55)))<0.005;SJJJ:=SJJJ3 AND SJJJ4;DRAWTEXT(SJJJ AND FILTER(SJJJ,5),L-0.1,'三军集结'),COLOR0044FF;{突出重围}TCCW1:=REF(EMA55,1)<REF(EMA13,1);TCCW2:=EMA13<LLV(REF(EMA13,1),5) AND ABS(1-(MAX(MAX(EMA34,EMA55),EMA13)/MIN(MIN(EMA13,EMA3 4),EMA55)))<0.008;TCCW:=TCCW1 AND TCCW2;DRAWTEXT(TCCW AND FILTER(TCCW,5),H+0.01,'突出重围'),COLORF00FF0;{明修栈道}MXZD1:=C/O>1.07;MXZD2:=EMA13>HHV(REF(EMA13,1),5) ANDV>HHV(REF(V,1),10) AND V/MA(REF(V,1),5)>2; MXZD:=MXZD1 AND MXZD2;DRAWTEXT(MXZD,H+0.01,'明修栈道'),COLORF00FF0;{暗度陈仓}ADCC1:=O/C>1.05 AND EMA13/EMA55<1.1 ANDEMA13>MA(EMA13,5);ADCC2:=O/REF(C,1)<1.03;{V<HHV(REF(V,1),5) ANDV/MA(REF(V,1),5)<2};ADCC:=ADCC1 AND ADCC2;DRAWTEXT(ADCC,(C+O)/2,'暗度陈仓'),COLOR00C5FF; {破镜重圆}PJCY1:=REF(O,1)/REF(C,1)>1.02;PJCY2:=O<=REF(C,1) AND C>=REF(O,1);PJCY3:=(ABS(1-REF(C,1)/EMA55)<0.05 OR ABS(1-C/EMA55)<0.05 OR ABS(1-MA(C,2)/EMA55)<0.05); PJCY4:=EMA13>EMA55 OR EMA13>MA(EMA13,5); PJCY:=PJCY1 AND PJCY2 AND PJCY3 AND PJCY4; DRAWTEXT(PJCY,LOW,'破镜重圆'),COLORYELLOW;{一石二鸟}YSEN1:=REF(C,2)>REF(O,2) AND REF(C,1)<REF(O,1) AND C<O;YSEN2:=REF(C,2)>EMA55 AND EMA13>EMA55 AND EMA13>=MA(EMA13,5);YSEN3:=REF(V,2)>REF(V,1) AND REF(V,2)>V; YSEN:=YSEN1 AND YSEN2 AND YSEN3;DRAWTEXT(YSEN,H+0.01,'一石二鸟'),COLORBLUE;{拖泥带水}TNDS1:=O/REF(C,1)>1.05 AND MIN(C,O)/L>1.03; TNDS2:=C/MAX(EMA13,EMA55)>1.03 ANDC>REF(C,1);TNDS:=TNDS1 AND TNDS2;DRAWTEXT(TNDS,(O+C)/2,'拖泥带水'),COLORF00FF0; {金蝉脱壳}JCTQ1:=C<O AND (EMA13/EMA55>1.1 OR(C/MIN(EMA13,EMA55)>1.1)) ANDEMA13>MA(EMA13,5);JCTQ2:=REF(O,1)>=REF(C,2) AND REF(C,1)>REF(O,1) AND O<=REF(C,1) AND C>REF(O,1);JCTQ:=JCTQ1 AND JCTQ2;DRAWTEXT(JCTQ,(O+C)/2,'金蝉脱壳'),COLORF00FF0;{一箭穿心}YJCX:=CROSS(EMA55,EMA13);DRAWTEXT(YJCX,L-0.1,'一箭穿心'),COLOR0044FF;{步步高}BBG1:=C>=REF(C,1) AND REF(C,1)>=REF(C,2);{3日内收盘价都比前日收盘价高}BBG2:=V>=REF(V,1) AND REF(V,1)>=REF(V,2);{3日内量都比前日量高}BBG3:=COUNT(C>=O,3)=3;BBG:=BBG1 AND BBG2 AND BBG3;DRAWTEXT(BBG AND FILTER(BBG,3),(C+O)/2,'步步高'),COLORFF00FF;{双飞燕}SFY1:=EMA13>EMA34 AND EMA34>EMA55;SFY2:=REF(O,1)>=REF(C,2) AND O>=REF(C,1) AND REF(C,2)>=REF(O,2);SFY3:=COUNT(C>O AND C/O<1.02,2)=2 OR COUNT(C<O AND O/C<1.02,2)=2;SFY4:= V<REF(V,1);SFY:=SFY1 AND SFY2 AND SFY3 AND SFY4; DRAWTEXT(SFY AND FILTER(SFY,2),L,'双飞燕'),COLORYELLOW;{三剑客}SJK1:=EMA13>EMA34 AND EMA34>EMA55;SJK2:=COUNT(C<=O AND O/C<1.03,3)=3 AND COUNT(ABS(1-REF(C,1)/C)<1.03,2)=2;SJK:=SJK1 AND SJK2;DRAWTEXT(SJK AND FILTER(SJK,3),L,'三剑客'),COLORYELLOW;{四星望月}SXWY1:=COUNT(C>=O AND C/O<1.03,4)=4;SXWY2:=(ABS(EMA13-EMA34)+ABS(EMA34-EMA55))/C<0.1;{主均线相距很近或基本持平} SXWY3:=EMA13<EMA55;SXWY:=SXWY1 AND SXWY2 AND SXWY3; DRAWTEXT(SXWY AND FILTER(SXWY,5),H,'四星望月'),COLOR00C5FF;{星星点灯}XXDD1:=ABS(1-C/O)*100<=2.5 ANDH/MAX(C,O)>1.03 AND REF(C,1)/REF(O,1)>1.05; XXDD2:=O>=REF(C,1) AND ABS(1-REF(EMA13,1)/EMA55)<0.1};XXDD:=XXDD1 AND XXDD2;DRAWTEXT(XXDD,(O+C)/2,'星星点灯'),COLORGREEN; {过河拆桥}GHCQ1:=C<O AND O/C>=1.04;GHCQ2:=O>EMA13 AND C<EMA13;GHCQ3:=EMA13/EMA55>1.1 AND ABS(1-EMA13/MA(EMA13,3))<0.02;GHCQ:=GHCQ1 AND GHCQ2 AND GHCQ3; DRAWTEXT(GHCQ,(O+C)/2,'过河拆桥'),COLORF00FF0; {狗急跳墙}GJTQ1:=O/REF(C,1)>1.02 AND L>REF(C,1);GJTQ2:=V>MA(V,5);GJTQ3:=EMA13/EMA55>1.1;GJTQ:=GJTQ1 AND GJTQ2 AND GJTQ3;DRAWTEXT(GJTQ,(O+C)/2,'狗急跳墙'),COLORF00FF0;{双蹄并进}STBJ1:=CROSS(DMI.PDI,DMI.MDI);STBJ2:=ABS(1-DMI.ADX/DMI.ADXR)<0.1;STBJ:=STBJ1 AND STBJ2;DRAWTEXT(STBJ,(O+C)/2,'双蹄并进'),COLORGREEN;{一剑封喉}YJFH1:=REF(C,1)>=REF(O,1);YJFH2:=H/MAX(C,O)>=1.035 ;YJFH3:=V/MA(REF(V,1),11)>3 ANDEMA13/EMA55>1.05;YJFH:=YJFH1 AND YJFH2 AND YJFH3;DRAWTEXT(YJFH,(H+L)/2,'一剑封喉'),COLORF00FF0;{小鸟依人}XNYR1:=REF(C,1)/REF(O,1)>1.05;XNYR2:=O<=REF(C,1) AND ABS(1-C/O)<0.02;XNYR3:=COUNT(JGEQ OR YYSX OR HYXN,10)>=1 AND COUNT(JGEQ OR YYSX OR HYXN,2)=0;XNYR:=XNYR1 AND XNYR2 AND XNYR3;DRAWTEXT(XNYR,H+0.01,'小鸟依人'),COLORBLUE;{立竿见影}LGJY1:=O<=REF(C,1) AND V<REF(V,1) AND C<O; LGJY2:=COUNT(JGEQ OR YYSX OR HYXN,2)=1;LGJY:=LGJY1 AND LGJY2;DRAWTEXT(LGJY,H+0.1,'立竿见影'),COLORBLUE;{节外生枝}JWSZ1:=EMA13>MAX(EMA34,EMA55) ANDEMA13/EMA55>1.1 AND REF(C,1)>1.04*EMA13 AND REF(C,1)/REF(O,1)>1.04;JWSZ2:=ABS(1-C/O)<0.015 AND ABS(1-REF(C,1)/C)<0.02;JWSZ:=JWSZ1 AND JWSZ2;DRAWTEXT(JWSZ,(H+C)/2,'节外生枝'),COLORF00FF0;{笑里藏刀}XLCD1:=REF(H,1)/MAX(REF(C,1),REF(O,1))>1.04;XLCD2:=H<REF(H,1) AND O>=REF(C,1);XLCD3:=EMA13/EMA55>1.05 AND C/EMA13>1.03; XLCD:=XLCD1 AND XLCD2 AND XLCD3;DRAWTEXT(XLCD,(O+C)/2,'笑里藏刀'),COLORF00FF0;{马失前蹄}MSQT1:=EMA55/EMA13>1.04 AND EMA13/C>1.03;MSQT2:=O<=REF(L,1) AND REF(O,1)/REF(C,1)>1.03; MSQT:= MSQT1 AND MSQT2;DRAWTEXT(MSQT,(O+C)/2,'马失前蹄'),COLORYELLOW; {绝处逢生}JCFS1:=EMA55>EMA13 AND EMA13>C;JCFS2:=O<=REF(L,1) AND C/O>1.05;JCFS:= JCFS1 AND JCFS2;DRAWTEXT(JCFS,H,'绝处逢生'),COLORYELLOW;{一阴三线}YYSX1:=C<EMA13 AND O>EMA13;{一阴三线} YYSX2:=C<EMA34 AND O>EMA34;YYSX3:=C<EMA55 AND O>EMA55;YYYSX:=YYSX1 AND YYSX2 AND YYSX3;DRAWTEXT(YYYSX,H+0.1,'一阴三线'),COLORF00FF0; {落井下石}LJXS1:=O<REF(L,1) AND EMA13/EMA55>1.05 AND C<O;DRAWTEXT(LJXS1,H+0.01,'落井下石'),COLOR00C5FF; {晨钟暮鼓}CZMG1:=REF(C,1)/REF(O,1)>1.05 ANDREF(V,1)/REF(V,2)>2 AND HSL>3;CZMG2:=C>O AND V<REF(V,1);CZMG:=CZMG1 AND CZMG2;DRAWTEXT(CZMG,H,'晨钟暮鼓'),COLORF00FF0;。
通达信指标公式源码 完美顺势而为指标
{========顺势而为=====主图==============}VAR1:=(C+H+O+L)/4;卖出:=XMA(VAR1,20)*(1+80/1000);买入:=XMA(VAR1,32)*(1-100/1000);标准:=买入+(卖出-买入)*2/3;{=========================================}赢:=MA(C,1);在:=SMA(SMA(SMA(赢,2,1),2,1),2,1);龙:=MA(在,3);{=========================================}赢在龙头:=(L+H+C*4)/6;趋势轨①:EMA(赢在龙头,12),NODRAW;趋势轨②:EMA(赢在龙头,19),NODRAW;趋势轨③:IF(L>在,在,龙),NODRAW;赢在:=(趋势轨①-REF(趋势轨①,1))/REF(趋势轨①,1)*100;龙头:=(趋势轨②-REF(趋势轨②,1))/REF(趋势轨②,1)*100;G:=BARSLAST(CROSS(赢在,0))+1;止损线A:REF(L,G),NODRAW;止损线B:REF(止损线A,BARSLAST(止损线A>REF(止损线A,1) OR 止损线A<REF(止损线A,1))+1),NODRAW;趋势①拐点:=CROSS(赢在,0);{************************************************************} 换手:=V*100/CAPITAL;主力:=MA(换手,4);大户:=MA(换手,9);中户:=MA(换手,17);散户:=MA(换手,34);均量:=(主力+大户+中户+散户)/4;机构意愿:=(主力-均量);游资意愿:=(大户-均量);大户意愿:=(中户-均量);散户意愿:=(散户-均量);顺大势:=趋势①拐点AND NOT(散户意愿<0 AND 大户意愿<0) AND (机构意愿>0 OR 机构意愿<0) AND 止损线A>REF(止损线A,1) AND H<标准,NODRAW; {---------------------------------------------}{阴线-兰色}{阳线-红色}STICKLINE(C>=O,C,O,3,0),COLOR0000AA;STICKLINE(C>=O,C,O,2.5,0),COLOR0000BB ;STICKLINE(C>=O,C,O,1.5,0),COLOR0000CC ;STICKLINE(C>=O,C,O,1,0),COLOR0000EE;STICKLINE(C>=O,H,L,0,0),COLOR0000FF;STICKLINE(C<=O,C,O,3,0),COLOR7B7B00;STICKLINE(C<=O,C,O,2.5,0),COLOR909000;STICKLINE(C<=O,C,O,1.5,0),COLORA8A800;STICKLINE(C<=O,C,O,1,0),COLORCECE00;STICKLINE(C<=O,H,L,0,0),COLORFFFF00;{===========================================} DRAWBAND(在,RGB(249,245,246),龙,RGB(0,224,224));IF(龙头>=0,趋势轨②,DRAWNULL),COLORMAGENTA,LINETHICK2;IF(龙头<0,趋势轨②,DRAWNULL),COLORBLUE,LINETHICK2;IF(赢在>=0,趋势轨①,DRAWNULL),COLOR0000FF,LINETHICK2;IF(赢在<0,趋势轨①,DRAWNULL),COLORGREEN,LINETHICK2;IF(赢在>0,REF(L,G),DRAWNULL),COLORRED,POINTDOT,LINETHICK4;IF(赢在<0,REF(L,G),DRAWNULL),COLORGREEN,POINTDOT,LINETHICK4; DRAWICON(顺大势,L*0.98,5);DRAWTEXT(顺大势,L*0.98,' ←顺势而为'),COLORCCCCCC;{般:=XMA(CLOSE,7);若:=MEMA(CLOSE,3);预警:=LONGCROSS(若,般,3) AND C>标准;确认:=BARSLAST(LONGCROSS(若,般,3) AND C>标准)=1;DRAWICON(预警AND COUNT(预警,BARSLAST(顺大势))=1,H*1.02,6); DRAWICON(确认AND COUNT(确认,BARSLAST(顺大势))=1,H,2);};{=============主力密码==副图================}主力做盘意愿:WINNER(MA(CLOSE,5))*100,LINETHICK5,COLORRED;散户跟风意愿:(WINNER(MA(CLOSE,5)*1.1)-WINNER(MA(CLOSE,5)*0.9))*100,LINETHICK5,COLORGREEN;标准:60,LINETHICK2,COLORYELLOW;{=============拨云见日==副图================} VAR1:=INDEXC;VAR2:=REF(VAR1,18);VAR3:=MA(VAR2,18);个股趋势强度:C/MA(REF(C,18),18)*100,COLOR0BFFFF,LINETHICK2; 个股风险:MA(FORCAST(个股趋势强度,20),6),COLORRED;大盘趋势强度:VAR1/VAR3*100,COLORF4E202,LINETHICK2;大盘风险:MA(FORCAST(大盘趋势强度,20),6),COLORGREEN;。
通达信公式指标135成交量战法 和的虚拟成交量指标
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 3.0,0 );
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 3.0,0 );
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 3.0,0 );
STICKLINE(主动卖<=0,0,-主动卖,3.0,0);
STICKLINE(主动卖<=0,0,-主动卖,3.0,0);
STICKLINE(主动卖<=0,0,-主动卖,3.0,0);
STICKLINE(主动卖<=0,0,-主动卖,3.0,0),COLORGREEN;
主力启动线:MA(VOLUME,5),COLORWHITE,LINETHICK2;
-LOW),0-VOL/2)); 主卖:-主动卖/10000,COLORGREEN;
STICKLINE(CLOSE=REF(CLOSE,1),0,VOL,3.0,0);
STICKLINE(CLOSE>REF(CLOSE,1),0,VOL,3.0,0);
STICKLINE(CLOSE<REF(CLOSE,1),0,VOL,3.0,0);
STICKLINE(主动买>=0,VOL,-主动卖,3.0,0);
STICKLINE(主动买>=0,VOL,-主动卖,3.0,0);
STICKLINE(主动买>=0,VOL,-主动卖,3.0,0),COLORRED;
STICKLINE(主动卖<=0,0,-主动卖,3.0,0);
STICKLINE(主动卖<=0,0,-主动卖,3.0,0);
主力洗盘线:MA(VOLUME,35),COLORBLUE,LINETHICK2;
金相投资 通达信股票软件指标公式布林135(主图、源码、贴图、说明)
金相投资通达信股票软件指标公式布林135(主图、源码、贴图、说明)BOLL:EMA(C,25)COLORMAGENTA,LINETHICK2;UPPER:=BOLL+2*STD(CLOSE,25)COLORYELLOW,CROSSDOT;LOWER:=BOLL-2*STD(CLOSE,25)COLORLICYAN,CROSSDOT; {DRAWBAND(BOLL,RGB(139,0,139),REF(BOLL,1),RGB(65,105,225));} DRAWBAND(UPPER,RGB(139,0,139),BOLL,DRAWNULL);DRAWBAND(BOLL,RGB(65,105,225),LOWER,DRAWNULL);EMA13:EMA(CLOSE,13)COLORWHITE,LINETHICK1;EMA34:EMA(CLOSE,34)COLORGREEN,LINETHICK1;EMA55:EMA(CLOSE,55)COLORCYAN,LINETHICK1;{阳K线}STICKLINE(CLOSE>=OPEN,C,O,4.7,0),COLOR000033;STICKLINE(CLOSE>=OPEN,C,O,3.9,0),COLOR000055;STICKLINE(CLOSE>=OPEN,C,O,3,0),COLOR000077;STICKLINE(CLOSE>=OPEN,C,O,2.1,0),COLOR000099;STICKLINE(CLOSE>=OPEN,C,O,1,0),COLOR0000DD;{阳线上下影}STICKLINE(CLOSE>=OPEN,L,H,0,0), COLORRED;{阴K线}STICKLINE(CLOSE<OPEN,C,O,4.7,0),COLOR003300;STICKLINE(CLOSE<OPEN,C,O,3.9,0),COLOR005500;STICKLINE(CLOSE<OPEN,C,O,3,0),COLOR007700;STICKLINE(CLOSE<OPEN,C,O,2.1,0),COLOR009900;STICKLINE(CLOSE<OPEN,C,O,1,0),COLOR00DD00;{阴线上下影}STICKLINE(CLOSE<OPEN,L,H,0,0),COLOR00EC00;XU:PEAK(C,IF(PERIOD<5,5,10),1)*0.999,COLORFFCC99,LINETHICK2;{箱顶} XD:TROUGH(C,IF(PERIOD<5,5,10),1)*0.998,COLORFF99CC,LINETHICK2;{箱底}XH:=(XU-XD)/XD*100,NODRAW,COLORYELLOW;XDU:=IF(EMA(EMA(EMA(C,2),2),2)>REF(EMA(EMA(EMA(C,2),2),2),1),XD,XU); XR:=(C-XDU)/XDU*100,COLORRED,NODRAW;XTB:=XD!=REF(XD,2) && XD=REF(XD,1);XTS:=XU!=REF(XU,2) && XU=REF(XU,1);DRAWICON(XTB,MIN(XD,L)*0.991,1);DRAWTEXT(XTB,MIN(XD,L)*0.988,'[下跌终点,上升起点!满仓]'),COLOR0000DD; DRAWICON(XTS,MAX(XU,H)*1.001,2);DRAWTEXT(XTS,MIN(XU,H)*1.004,'[上升终点,下跌起点!清仓]')COLOR00DD00;上升段:DRAWLINE(XTB,MIN(LLV(L,1),XD),XTS,MAX(HHV(H,1),XU),0)COLOR000099,LINETHICK2;{XTBL}下跌段:DRAWLINE(XTS,MAX(HHV(H,1),XU),XTB,MIN(LLV(L,1),XD),0)COLOR009900,LINETHICK2;{XTSL}Y:=(EMA(C,13)-EMA(C,55))/EMA(C,13)*100;生命线:=EMA(CLOSE,34)COLORMAGENTA,POINTDOT,LINETHICK4;EMA120:=EMA(CLOSE,120);{135均线战法}{一、底部起涨}{1.金屋藏娇}JW1:=C<OPEN AND REF(C,1)<REF(OPEN,1);JW2:=OPEN<REF(C,1) AND C>REF(L,1);JW3:=O<EMA(C,13) AND O<EMA(C,34) AND O<EMA(C,55);JW:=JW1 AND JW2 AND JW3;DRAWTEXT(JW,LOW-0.2,'金屋藏娇'),COLORYELLOW;{2.红杏出墙}AR1:=EMA55>EMA34 AND EMA34>EMA13;AR2:=BARSLAST((C-EMA13)/EMA13*100<-6);AR3:=EMA13>=REF(EMA13,2);AR4:=COUNT(CROSS(C,EMA13),AR2)=1;AR5:=AR1 AND AR2 AND AR3 AND AR4;AR6:=AR5 AND FILTER(AR5,10);DRAWTEXT(AR6,L-0.09,'红杏出墙'),COLORYELLOW;STICKLINE(AR6,H,L,0.5,1),COLORYELLOW;STICKLINE(AR6,O,C,6,1),LINETHICK2,COLORYELLOW;{3.投石问路}TS1:=CROSS(EMA(C,13),EMA(C,34));{11线上穿34线}TS2:=EMA(C,13)<EMA(C,55);DRAWTEXT(TS,H*1.001,'投石问路'),COLORF00FF0;{二.上涨“拼命三郎”要及时满仓跟进}{1.铤而走险}JG1:=ABS(EMA(C,13)-EMA(C,34))<C*0.02 AND ABS(EMA(C,13)-EMA(C,55))<C*0.02;JG2:=O>EMA(C,13) OR O=EMA(C,13);JG3:=C/OPEN>1.03 ; {阳线3%}JG:=JG1 AND JG2 AND JG3;DRAWTEXT(JG,LOW-0.2,'铤而走险'),COLORYELLOW;{2.一阳三线}YY1:=C>EMA(C,13) AND OPEN<EMA(C,13);YY3:=C>EMA(C,34) AND OPEN<EMA(C,34);YY5:=C>EMA(C,55) AND OPEN<EMA(C,55);DRAWTEXT(YY1 AND YY5 AND YY3,LOW*0.998,'一阳三线'),COLORRED;{3.红衣侠女}CR1:=(C-REF(C,1))/REF(C,1)*100>0.5;CR2:=V>MA(V,5)*0.6;CR3:=COUNT(CROSS(EMA13,EMA55),3)=1;CR4:=ABS(EMA34-EMA55)/EMA55<0.03;CR5:=EMA55<=EMA120 AND EMA55>=REF(EMA55,1);CR6:=FILTER(CR1 AND CR2 AND CR3 AND CR4 AND CR5,2);STICKLINE(CR6,H,L,0.5,1),COLORF00FF0;STICKLINE(CR6,O,C,6,1),LINETHICK2,COLORF00FF0;DRAWTEXT(CR6,L*0.996,'红衣侠女')COLORRED,{COLORF00FF0};{黑客点击}HK1:=CROSS(EMA(C,13),EMA(C,55));{11线上穿55线}HK2:=C<O;{当日收阴}HK3:=ABS(L-EMA(C,13))<C*0.03 OR ABS(C-EMA(C,13))<C*0.04;{收盘价或最低价在13线} HK:=HK1 AND HK2 AND HK3;DRAWTEXT(HK,EMA13,'黑客点击'),COLORGREEN;{三军聚集}SJ1:=ABS(EMA(CLOSE,13)-EMA(CLOSE,34))<C*0.01;{13线34线55线接近} SJ2:=ABS(EMA(CLOSE,34)-EMA(CLOSE,55))<C*0.01;SJ3:=CROSS(EMA(CLOSE,13),EMA(CLOSE,55));{13线上穿55线} DRAWTEXT(SJ1 AND SJ2 AND SJ3,HIGH+0.1,'三军聚集'),COLORRED;{ 日月合璧}RY1:=C/OPEN>1.04;{阳线4%}RY2:=REF(OPEN,1)/REF(CLOSE,1)>1.04;{阴线4%}RY3:=ABS(OPEN-REF(C,1))<C*0.02 AND ABS(C-REF(OPEN,1))<C*0.02;{两线相等}DRAWTEXT(RY1 AND RY2 AND RY3 ,LOW*0.996,'日月合璧'),COLORYELLOW; {梅开二度}MK1:=EMA(C,13)>EMA(C,55) AND EMA(C,34)>EMA(C,55);DRAWTEXT(MK,H*1.002,'梅开二度'),COLORADEAEA;{蚂蚁上树}BR1:=COUNT(BETWEEN((C-REF(C,1))/REF(C,1)*100,0,5) ,5)=5; BR2:=ABS ((EMA13-EMA34)+(EMA34-EMA55))/C<0.2;BR3:=C>EMA55 AND (REF(C,1)<REF(EMA55,1) OR REF(C,2)<REF(EMA55,2) OR REF(C,3)<REF(EMA55,3) OR REF(C,4)<REF(EMA55,4) OR REF(C,5)<REF(EMA55,5));BR4:=BR1 AND BR2 AND BR3;DRAWTEXT(BR4 AND FILTER(BR4,10),L*0.999,'蚂蚁上树'),COLOR00C5FF; {STICKLINE(BR4 AND FILTER(BR4,10),H,L,0.5,1),COLOR00C5FF; STICKLINE(BR4 AND FILTER(BR4,10),O,C,6,1),LINETHICK2,COLOR00C5FF;} { 均线交换}ER:=BARSLAST(REF(CROSS(EMA55,EMA34),1)) AND CROSS(EMA34,EMA55); DRAWTEXT(ER,EMA34*1.001,'均线交换'),COLOR0099FF;{STICKLINE(ER,H,L,0.5,1),COLOR0099FF;STICKLINE(ER,O,C,6,1),LINETHICK2,COLOR0099FF;{见好就收}GR1:=BARSLAST(BETWEEN("BIAS.BIAS2"(6,13,24),0,5) ); {内容来至小牛炒股公式网}GR2:=EMA13>EMA34 AND EMA34>EMA55 AND EMA13>REF(EMA13,1);GR3:=COUNT("BIAS.BIAS2"(6,13,24)>10 AND H=HHV(H,GR1),GR1);GR4:=H=HHV(H,GR1);GR5:="MACD.MACD"(12,26,9)<REF("MACD.MACD"(12,26,9),1);GR6:=GR2 AND GR3 AND GR4;GR7:=GR2 AND GR3 AND GR4 AND GR5;DRAWTEXT(GR6 AND GR7,H+0.13,'见好就收'),COLOR00FF00;STICKLINE(GR6 AND GR7,H,H+0.09,4,0),COLOR00FF00;{三线推进}HR2:=EMA13>=REF(EMA13,3) AND EMA34>=REF(EMA34,1) AND EMA55>=REF(EMA55,1)AND CROSS(C,EMA13) AND CROSS(C,EMA34) AND CROSS(C,EMA55); DRAWTEXT(HR2 AND FILTER(HR2,10),H*1.002,'三线推进'),COLORFFC8FF; {STICKLINE(HR2 AND FILTER(HR2,10),H,L,0,1),COLORFFC8FF;STICKLINE(HR2 AND FILTER(HR2,10),O,C,3,1),LINETHICK2,COLORFFC8FF;} {卖出形态}{1.一枝独秀}YZ1:=C/O>1.02 AND H/C>1.02 AND O/L<1.02;{收阳有上影}YZ2:=REF(C,1)>REF(O,1) AND O>EMA(C,13);{昨收阳今大于均线} {本文来至小牛网}YZ:=YZ1 AND YZ2 AND Y>10;DRAWTEXT(YZ,HIGH+0.2,'一枝独秀'),COLORF00FF0;{2.独上高楼}DS1:=OPEN/C>1.04 AND O/REF(C,1)>1.03;{高开收阴}DS2:=V*100/FINANCE(7)>0.08 AND Y>8;{换手高涨幅大}DS:=DS1 AND DS2;DRAWTEXT(DS,HIGH+0.2,'独上高楼'),COLORGREEN;{3.一剑封喉}YJ1:=H/O>1.04;YJ2:=ABS(C-O)<C*0.03;YJ3:=C/EMA(C,13)>1.1;YJ:=YJ1 AND YJ2 AND DS2 AND YJ3 AND YZ2;DRAWTEXT(YJ,HIGH+0.3,'一剑封喉'),COLORRED;{断头铡刀}T:=(MA(C,13)-MA(C,55))/MA(C,13)*100;TT1:=C<MA(C,13) AND OPEN>MA(C,13);TT3:=C<MA(C,34) AND OPEN>MA(C,34);TT5:=C<MA(C,55) AND OPEN>MA(C,55);X28:DRAWTEXT(TT1 AND TT5 AND TT3,LOW*0.99,'断头铡刀'),COLORWHITE; X30:DRAWTEXT(CROSS(EMA55,EMA13),EMA55*0.997,'一剑穿心'), COLOR00FF00;{ X39:DRAWTEXT(CROSS(EMA34,EMA13),EMA34*1.003,'分道扬镳'), COLOR00FF00;X31:DRAWTEXT(CROSS(EMA55,EMA34),EMA55*1.0,'各执一词'), COLOR00FF00;};。
135均量战法(成交量主图,源码,贴图,选股公式)
135均量战法(成交量主图,源码,贴图,选股公式)源码:VOLUME:VOL,VOLSTICK;MA5V:MA(V,5),LINETHICK2,COLORYELLOW;MA35V:MA(V,35),LINETHICK2,COLORMAGENTA;MA135V:MA(V,135),LINETHICK2,COLORRED;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; K:=SMA(RSV,3,1),COLORWHITE,LINETHICK3;D:=SMA(K,3,1),COLORYELLOW,LINETHICK3;J:=3*K-2*D,COLORYELLOW,LINETHICK2;WW:=VOL/REF(VOL,1)>2;GG:=C>O;STICKLINE (WW AND GG,0,VOL,0.01225,0),COLORGREEN; QQ:=C<O;STICKLINE (WW AND QQ,0,VOL*0.95,0.16,0),COLORRED;H60C:=HHV(C,60);除权:=EXIST(C/REF(C,1)<1-0.11,20),NODRAW;HC60跌幅:(H60C-C)/H60C,NODRAW;HC7跌幅:(HHV(C,7)-C)/HHV(C,7),NODRAW;HC60天数:HHVBARS(C,60),NODRAW;A1:=C>O AND V>MA135V AND CROSS(MA5V,MA135V); A1C:COUNT(A1,10),NODRAW;介入1:HC60天数>30 AND NOT(除权) AND ABS(C-O)/O<0.03 AND HC60跌幅>0.28 AND HC7跌幅>0.065 AND A1C=1 AND V<MA5V AND V<MA35V AND J<65,NODRAW;DRAWICON(介入1,MA5V*0.9,25);介入11:HC60天数>35 AND NOT(除权) AND ABS(C-O)/O<0.03 AND HC60跌幅>0.20 AND (HC7跌幅>0.10 OR (HC7跌幅>0.025 AND C>MA(C,20))) AND A1C=1 AND V>MA35V AND V<MA5V AND V<MA135V AND J<65,NODRAW;DRAWICON(介入11,MA5V*0.9,11);A2:=C>O AND V>MA135V AND CROSS(MA5V,MA35V) AND HC60跌幅>0.20;A2C:COUNT(A2,10),NODRAW;介入2:HC60天数>35 AND NOT(除权) AND ABS(C-O)/O<0.03 AND (O+C)/2<H60C*0.80 AND HC7跌幅>0.05 AND ((C-REF(LLV(C,7),1))/REF(LLV(C,7),1)<0.01 OR C>MA(C,20)) AND A2C=1 AND V<MA5V AND V<MA35V AND V<MA135V AND J<65,NODRAW;DRAWICON(介入2,MA5V*1.1,5);介入21:HC60天数>35 AND NOT(除权) AND HC60跌幅>0.35 AND ABS(C-O)/O<0.03 AND HC7跌幅>0.03 AND ((C-REF(LLV(C,7),1))/REF(LLV(C,7),1)<0.015) AND A2C=1 AND V<MA5V AND V<MA135V AND J<65,NODRAW;DRAWICON(介入21,MA5V*1.1,1);介入3:HC60天数>35 AND NOT(除权) AND ABS(C-O)/O<0.03 AND HC60跌幅>0.20 AND HC7跌幅>0.06 AND (A1C=1 ORA2C=1) AND V<MA5V AND MA5V<MA35V AND MA35V<MA135V AND J<65,NODRAW;DRAWICON(介入3,MA5V*1.3,7);介入4:HC60天数>35 AND NOT(除权) AND ABS(C-O)/O<0.03 AND (O+C)/2<HHV(C,13)*0.85 AND HHV(C,13)<H60C*0.85 AND A1C=1 AND V<MA5V AND MA5V<MA35V AND MA5V<MA135V AND MA5V<REF(MA5V,1) AND J<65,NODRAW;DRAWICON(介入4,MA5V*1.4,9);选股公式:VOLUME:=VOL;MA5V:=MA(V,5);MA35V:=MA(V,35);MA135V:=MA(V,135);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;WW:=VOL/REF(VOL,1)>2;GG:=C>O;QQ:=C<O;H60C:=HHV(C,60);除权:=EXIST(C/REF(C,1)<1-0.11,20);HC60跌幅:=(H60C-C)/H60C;HC7跌幅:=(HHV(C,7)-C)/HHV(C,7);HC60天数:=HHVBARS(C,60);A1:=C>O AND V>MA135V AND CROSS(MA5V,MA135V);A1C:=COUNT(A1,10);介入1:=HC60天数>30 AND NOT(除权) AND ABS(C-O)/O<0.03 AND HC60跌幅>0.28 AND HC7跌幅>0.065 AND A1C=1 AND V<MA5V AND V<MA35V AND J<65;介入11:=HC60天数>35 AND NOT(除权) AND ABS(C-O)/O<0.03 AND HC60跌幅>0.20 AND (HC7跌幅>0.10 OR (HC7跌幅>0.025 AND C>MA(C,20))) AND A1C=1 AND V>MA35V AND V<MA5V AND V<MA135V AND J<65;A2:=C>O AND V>MA135V AND CROSS(MA5V,MA35V) AND HC60跌幅>0.20;A2C:=COUNT(A2,10);介入2:=HC60天数>35 AND NOT(除权) AND ABS(C-O)/O<0.03 AND (O+C)/2<H60C*0.80 AND HC7跌幅>0.05 AND ((C-REF(LLV(C,7),1))/REF(LLV(C,7),1)<0.01 OR C>MA(C,20)) AND A2C=1 AND V<MA5V AND V<MA35V AND V<MA135V AND J<65;介入21:=HC60天数>35 AND NOT(除权) AND HC60跌幅>0.35 AND ABS(C-O)/O<0.03 AND HC7跌幅>0.03 AND ((C-REF(LLV(C,7),1))/REF(LLV(C,7),1)<0.015) AND A2C=1 AND V<MA5V AND V<MA135V AND J<65;介入3:=HC60天数>35 AND NOT(除权) AND ABS(C-O)/O<0.03 AND HC60跌幅>0.20 AND HC7跌幅>0.06 AND (A1C=1 OR A2C=1) AND V<MA5V AND MA5V<MA35V AND MA35V<MA135V AND J<65;介入4:=HC60天数>35 AND NOT(除权) AND ABS(C-O)/O<0.03 AND (O+C)/2<HHV(C,13)*0.85 AND HHV(C,13)<H60C*0.85 AND A1C=1 AND V<MA5V AND MA5V<MA35V AND MA5V<MA135V AND MA5V<REF(MA5V,1) AND J<65;{ 以上公式整体完毕,选股共介入1 ,介入11,介入2,介入21,介入3,介入4,几个条件一:如果你需要用一个条件选股比如介入11选股在下面直接打 '介入11;' 单引号不需要,运行就是选介入11成立的股票。
135均线主图+选股指标+详细用法
通达信135均线主图+选股指标+详细用法TDX135主图EMA13:EMA(C,13),COLORRED,LINETHICK2;EMA34:EMA(C,34),COLORYELLOW;EMA55:EMA(C,55),COLORFF00FF;EMA120:EMA(C,120),COLORFFCC66;AR1:=EMA55>EMA34 AND EMA34>EMA13;AR2:=BARSLAST((C-EMA13)/EMA13*100<-6);AR3:=EMA13>=REF(EMA13,2);AR4:=COUNT(CROSS(C,EMA13),AR2)=1;AR5:=AR1 AND AR2 AND AR3 AND AR4;AR6:=AR5 AND FILTER(AR5,10);DRAWTEXT(AR6,L-0.09,'红杏出墙'),COLORYELLOW;{STICKLINE(AR6,H,L,0.5,1),COLORYELLOW;STICKLINE(AR6,O,C,6,1),LINETHICK2,COLORYELLOW;}BR1:=COUNT(BETWEEN((C-REF(C,1))/REF(C,1)*100,0,5) ,5)=5;BR2:=ABS((EMA13-EMA34)+(EMA34-EMA55))/C<0.2;BR3:=C>EMA55 AND (REF(C,1)<REF(EMA55,1) OR REF(C,2)<REF(EMA55,2) OR REF(C,3)<REF(EMA55,3) OR REF(C,4)<REF(EMA55,4) ORREF(C,5)<REF(EMA55,5));BR4:=BR1 AND BR2 AND BR3;DRAWTEXT(BR4 AND FILTER(BR4,10),L-0.09,'蚂蚁上树'),COLOR00C5FF; {STICKLINE(BR4 AND FILTER(BR4,10),H,L,0.5,1),COLOR00C5FF; STICKLINE(BR4 AND FILTER(BR4,10),O,C,6,1),LINETHICK2,COLOR00C5FF;} CR1:=(C-REF(C,1))/REF(C,1)*100>0.5;CR2:=V>MA(V,5)*0.6;CR3:=COUNT(CROSS(EMA13,EMA55),3)=1;CR4:=ABS(EMA34-EMA55)/EMA55<0.03;CR5:=EMA55<=EMA120 AND EMA55>=REF(EMA55,1);CR6:=FILTER(CR1 AND CR2 AND CR3 AND CR4 AND CR5,2); {STICKLINE(CR6,H,L,0.5,1),COLORF00FF0;STICKLINE(CR6,O,C,6,1),LINETHICK2,COLORF00FF0;}DRAWTEXT(CR6,L-0.09,'红衣侠女'),COLORF00FF0;DR1:=EMA13>EMA34 AND EMA34<EMA55;DR2:=BARSLAST(CROSS(C,EMA55) );DR3:=H=HHV(H,DR2);DR4:=BARSLAST(DR3);DR5:=COUNT(O>C AND C<REF(C,1) AND C>EMA55 ANDBETWEEN((C-EMA55)/EMA55,0,0.02),DR4)=1;DR6:=C>REF(C,1) ;DR7:= DR1 AND DR5 AND DR6 ;DR8:=DR7 AND FILTER(DR7 ,10);DRAWTEXT(DR8,L-0.09,'黑客点击'),COLORD6BA63;{STICKLINE(DR8,H,L,0.5,1),COLORD6BA63;STICKLINE(DR8,O,C,6,1),LINETHICK2,COLORD6BA63;}ER:=BARSLAST(REF(CROSS(EMA55,EMA34),1)) AND CROSS(EMA34,EMA55); DRAWTEXT(ER,L-0.09,'均线互换'),COLOR0099FF;{STICKLINE(ER,H,L,0.5,1),COLOR0099FF;STICKLINE(ER,O,C,6,1),LINETHICK2,COLOR0099FF;}FR:=BARSLAST(REF(CROSS(EMA34,EMA13),1)) AND CROSS(EMA13,EMA34); DRAWTEXT(FR,L-0.09,'梅开二度'),COLORWHITE;STICKLINE(FR,H,L,0,1),COLORWHITE;STICKLINE(FR,O,C,3,1),LINETHICK2,COLORWHITE;GR1:=BARSLAST(BETWEEN("BIAS.BIAS2"(6,13,24),0,5) );GR2:=EMA13>EMA34 AND EMA34>EMA55 AND EMA13>REF(EMA13,1);GR3:=COUNT("BIAS.BIAS2"(6,13,24)>10 AND H=HHV(H,GR1),GR1);GR4:=H=HHV(H,GR1);GR5:="MACD.MACD"(12,26,9)<REF("MACD.MACD"(12,26,9),1);GR6:=GR2 AND GR3 AND GR4;GR7:=GR2 AND GR3 AND GR4 AND GR5;DRAWTEXT(GR6 AND GR7,H+0.13,'见好就收!'),COLOR00FF00; {STICKLINE(GR6 AND GR7,H,H+0.09,4,0),COLOR00FF00;}HR2:=EMA13>=REF(EMA13,3) AND EMA34>=REF(EMA34,1) ANDEMA55>=REF(EMA55,1) AND CROSS(C,EMA13) AND CROSS(C,EMA34) AND CROSS(C,EMA55);DRAWTEXT(HR2 AND FILTER(HR2,10),L-0.09,'三线推进'),COLORFFC8FF; STICKLINE(HR2 AND FILTER(HR2,10),H,L,0,1),COLORFFC8FF;STICKLINE(HR2 AND FILTER(HR2,10),O,C,3,1),LINETHICK2,COLORFFC8FF; {股海网提供:}以下是全部选股公式部分,请根据需要,选择使用!{红杏出墙选股}EMA13:=EMA(C,13);EMA34:=EMA(C,34);EMA55:=EMA(C,55);AR1:=EMA55>EMA34 AND EMA34>EMA13;AR2:=BARSLAST((C-EMA13)/EMA13*100<-6);AR3:=EMA13>=REF(EMA13,2);AR4:=COUNT(CROSS(C,EMA13),AR2)=1;AR5:=AR1 AND AR2 AND AR3 AND AR4;红杏出墙:AR5 AND FILTER(AR5,10);{蚂蚁上树选股}EMA13:=EMA(C,13);EMA34:=EMA(C,34);EMA55:=EMA(C,55);BR1:=COUNT(BETWEEN((C-REF(C,1))/REF(C,1)*100,0,5) ,5)=5;BR2:=ABS((EMA13-EMA34)+(EMA34-EMA55))/C<0.2;BR3:=C>EMA55 AND (REF(C,1)<REF(EMA55,1) OR REF(C,2)<REF(EMA55,2) OR REF(C,3)<REF(EMA55,3) OR REF(C,4)<REF(EMA55,4) OR REF(C,5)<REF(EMA55,5));蚂蚁上树:BR1 AND BR2 AND BR3;{红衣侠女选股}EMA13:=EMA(C,13);EMA34:=EMA(C,34);EMA55:=EMA(C,55);EMA120:=EMA(C,120);CR1:=(C-REF(C,1))/REF(C,1)*100>0.5;CR2:=V>MA(V,5)*0.6;CR3:=COUNT(CROSS(EMA13,EMA55),3)=1;CR4:=ABS(EMA34-EMA55)/EMA55<0.03;CR5:=EMA55<=EMA120 AND EMA55>=REF(EMA55,1);红衣侠女:FILTER(CR1 AND CR2 AND CR3 AND CR4 AND CR5,2);{黑客点击选股}EMA13:=EMA(C,13);EMA34:=EMA(C,34);EMA55:=EMA(C,55);DR1:=EMA13>EMA34 AND EMA34<EMA55;DR2:=BARSLAST(CROSS(C,EMA55) );DR3:=H=HHV(H,DR2);DR4:=BARSLAST(DR3);DR5:=COUNT(O>C AND C<REF(C,1) AND C>EMA55 ANDBETWEEN((C-EMA55)/EMA55,0,0.02),DR4)=1;DR6:=C>REF(C,1) ;DR7:=DR1 AND DR5 AND DR6 ;黑客点击:FILTER(DR7,10) AND DR7;{均线互换选股}EMA34:=EMA(C,34);EMA55:=EMA(C,55);均线互换:BARSLAST(REF(CROSS(EMA55,EMA34),1)) ANDCROSS(EMA34,EMA55);{梅开二度选股}EMA13:=EMA(C,13);EMA34:=EMA(C,34);梅开二度:BARSLAST(REF(CROSS(EMA34,EMA13),1)) ANDCROSS(EMA13,EMA34);{三线推进选股}EMA13:=EMA(C,13);EMA34:=EMA(C,34);EMA55:=EMA(C,55);HR2:=EMA13>=REF(EMA13,3) AND EMA34>=REF(EMA34,1) ANDEMA55>=REF(EMA55,1) AND CROSS(C,EMA13) ANDCROSS(C,EMA34) AND CROSS(C,EMA55);三线推进:(HR2 AND FILTER(HR2,10));135均线战法简要介绍如下:135均线即13日均线、34日均线、55日均线组合系统的简称。