通达信指标公式源码 涨停后缩量板副图主图选股指标

合集下载

通达信指标公式源码涨停伏击主图及选股源码

通达信指标公式源码涨停伏击主图及选股源码

涨停伏击主图及选股源码主图:N:=10;M:=9;VAB0:=531;VAB1:=1510000;VAB2:=VAB0 + VAB1;A:=SMA(L,4,3) ;VAB3:=IF(DATE > VAB2,0,1);{DRAWTEXT(均价线AND 涨停,均价线,B1),COLORGREEN;}T:=DATE>901224 AND DATE<1130630;涨停:=IF(REF(C,1)*1.1*VAB3-C<0.01 ,1,0);R1:=(C+L+H)/3;R2:=EMA(R1,6);R3:=EMA(R2,5);联邦私募8号:EMA(R3,17),COLOR00AAFF,LINETHICK1;单阳:=IF(REF(C,1)*1.1*VAB3-C<0.01 ,1,0)*T;高不破价:=REF(C,BARSLAST(单阳));中不破价:=REF((C+L)/2,BARSLAST(单阳));低不破价:=REF(L,BARSLAST(单阳));单阳不破:=BARSLAST(单阳)<11 AND (LLV(L,BARSLAST(单阳))>低不破价ORLLV(L,BARSLAST(单阳))=低不破价);STICKLINE(单阳,O,C,1.5,0),COLORYELLOW;MA17:=MA(C,17),COLOR0000FF;MA55:MA(C,55),COLORFF00FF,LINETHICK2;支撑线:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4,COLORFFFFFF; LC:=REF(CLOSE,1);操作线:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*100,COLORWHITE,LINETHIC K2;趋势线:=SMA(MAX(CLOSE-LC,0),14,1)/SMA(ABS(CLOSE-LC),14,1)*100,COLORGRAY;震仓线:=45,COLORMAGENTA;震仓线2:=50,COLORGRAY;逃命线:=80,COLORRED;抄底线:=20,COLORGREEN;绝底线:=5,COLORBLUE;VARA12:=SMA(H,10,9)*VAB3;VARA13:=SMA(L,10,9)*VAB3;PP2:=操作线<震仓线2 AND REF(操作线,1)>震仓线2 ;PP:=操作线<震仓线AND REF(操作线,1)>震仓线;PP3:=操作线<抄底线AND REF(操作线,1)>抄底线;HH:=COUNT(涨停,13)>=1;HD:=COUNT(涨停,21)>=1;A1:=SMA(H,N,M);A2:=SMA(L,N,M);STICKLINE(涨停,OPEN,CLOSE,3,0),COLORRED;STICKLINE(涨停,OPEN,CLOSE,2,0),COLORYELLOW;STICKLINE(涨停,H,L,0,0),COLORYELLOW;卖出价参考:VARA12,COLORRED,NODRAW;补仓价参考:VARA13,COLORGREEN,NODRAW;T1:=MA(C,21)>REF(MA(C,21),1);T2:=EXIST(C>REF(C,1)*1.093,21);T3:=C<O AND C<REF(C,1) AND EVERY(MA(C,5)<REF(MA(C,5),1),3); T5:=EVERY(V<REF(V,1),2) AND EVERY(V<MA(V,5),2);T6:=MA(C,5)>MA(C,21);XG:=T1 AND T2 AND T3 AND T5 AND T6;DRAWTEXT(XG,L*0.99,'伏击'),COLOR00FF00;DRAWICON(XG,L*0.9995,1);选股:T1:=MA(C,21)>REF(MA(C,21),1);T2:=EXIST(C>REF(C,1)*1.093,21);T3:=C<O AND C<REF(C,1) AND EVERY(MA(C,5)<REF(MA(C,5),1),3); T5:=EVERY(V<REF(V,1),2) AND EVERY(V<MA(V,5),2);T6:=MA(C,5)>MA(C,21);T1 AND T2 AND T3 AND T5 AND T6;。

通达信指标公式源码涨停时间窗 主图 副图

通达信指标公式源码涨停时间窗 主图 副图

ZT:=C/ref(C,1)>1.097;XH:=FILTER(ZT,13);BH:=BARSLAST(ZT);CZ:=REF(H,BH)-REF(L,BH);STICKLINE(C,(REF(L,BH)+CZ*0.5),(REF(L,BH)+CZ*0.5),7,0),COLORRED; STICKLINE(C,REF(L,BH),REF(L,BH),7,0),COLORBLUE;STICKLINE(ZT,REF(O,BH),REF(C,BH),7,0),COLORYELLOW; DRAWTEXT(ZT,L*0.98,'涨停'),COLORf00ff0;varZT:=BARSLAST(C/REF(C,1)>1.097);stickline(varZT=2,l*0.97,l*0.98,8,0),color0000ff;drawtext(varZT=2,l*0.95,'3天'),coloryellow;stickline(varZT=4,h*1.03,h*1.02,8,0),color9966ff;drawtext(varZT=4,h*1.06,'5天'),coloryellow;stickline(varZT=7,l*0.97,l*0.98,8,0),color00ffff;drawtext(varZT=7,l*0.95,'8天'),coloryellow;stickline(varZT=12,h*1.03,h*1.02,8,0),colorff33ff;drawtext(varZT=12,h*1.06,'13天'),coloryellow;stickline(varZT=20,l*0.97,l*0.98,8,0),color0066ff;drawtext(varZT=20,l*0.95,'21天'),coloryellow;stickline(varZT=33,h*1.03,h*1.02,8,0),color9932CD;drawtext(varZT=33,h*1.06,'34天'),coloryellow;stickline(varZT=54,l*0.97,l*0.98,8,0),color006600;drawtext(varZT=54,l*0.95,'55天'),coloryellow;stickline(varZT=88,h*1.03,h*1.02,8,0),color00ff00;drawtext(varZT=88,h*1.06,'89天'),coloryellow;stickline(varZT=143,l*0.97,l*0.98,8,0),colorccffff;drawtext(varZT=143,l*0.95,'144天'),coloryellow;stickline(varZT=232 ,h*1.03,h*1.02,8,0),colorff0033;drawtext(varZT=232,h*1.06,'233天'),coloryellow;stickline(varZT=376,l*0.97,l*0.98,8,0),colorff9966;drawtext(varZT=376,l*0.95,'377天'),coloryellow;-------------------------------------------------------------涨停时间(窗),副图:N:=13;WR大于80考虑买:100*(HHV(HIGH,N)-CLOSE)/(HHV(HIGH,N)-LLV(LOW,N)),linethick0; 均价:amount/(vol*100),linethick0,coloryellow;ZT:=C/ref(C,1)>1.097;XH:=FILTER(ZT,13);BH:=BARSLAST(ZT);STICKLINE(ZT,0,L*0.7,4,0),COLORYELLOW;DRAWTEXT(ZT,L*0.8,'涨停'),COLORf00ff0;varZT:=BARSLAST(C/REF(C,1)>1.097);AA:=BETWEEN(C,REF(L,BH)*1.01,REF(L,BH)*0.987);stickline(AA,0,L*0.3,2,0),colorblue;drawtext(AA,L*0.4,'警戒'),colorwhite;stickline(AA and varzt=2,0,L*0.5,2,0),colorred;drawtext(AA and varzt=2,L*0.5,'时间窗'),colorwhite;stickline(AA and varzt=4,0,L*0.5,2,0),colorred;drawtext(AA and varzt=4,L*0.5,'时间窗'),colorwhite;stickline(AA and varzt=7,0,L*0.5,2,0),colorred;drawtext(AA and varzt=7,L*0.5,'时间窗'),colorwhite;stickline(AA and varzt=12,0,L*0.5,2,0),colorred;drawtext(AA and varzt=12,L*0.5,'时间窗'),colorwhite;stickline(AA and varzt=20,0,L*0.5,2,0),colorred;drawtext(AA and varzt=20,L*0.5,'时间窗'),colorwhite;。

通达信主图副图选股妖股核心源码

通达信主图副图选股妖股核心源码

通达信主图副图选股妖股核心源码主图源码DRAWGBK(CLOSE>0,RGB(150,50,175),RGB(0,25,100),0,2,0);赚钱轨道:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24)) /4,COLORRED,LINETHICK2;X_1:=MA(CLOSE,20);DRAWBAND(赚钱轨道,RGB(155,50,50),X_1,RGB(0,100,50));IF(赚钱轨道<X_1 OR CLOSE<赚钱轨道,赚钱轨道,DRAWNULL),COLORBLUE,LINETHICK2;拉升线:IF(赚钱轨道>X_1,X_1,DRAWNULL),COLORMAGENTA,LINETHICK3;下跌线:IF(赚钱轨道<=X_1,X_1,DRAWNULL),COLORLIBLUE,LINETHICK2;X_2:=(CLOSE+HIGH+LOW+OPEN)/4;X_3:=MA((CLOSE*2+HIGH)/3,5);X_4:=MA((OPEN*2+HIGH)/3,5);X_5:=MA((CLOSE+LOW*2)/3,5);X_6:=MA((OPEN+LOW*2)/3,5);X_7:=OPEN+(CLOSE-OPEN)/2;DRAWKLINE(HIGH,OPEN,LOW,CLOSE);STICKLINE(DMI.PDI>DMI.MDI,CLOSE,OPEN,2.9,0),COLOR00 0099;STICKLINE(DMI.PDI>DMI.MDI,CLOSE,OPEN,1.5,0),COLOR00 00CC;STICKLINE(DMI.PDI>DMI.MDI,CLOSE,OPEN,0.1,0),COLOR99 66FF;STICKLINE(X_3>=X_4,CLOSE,OPEN,2.9,0),COLOR000099;STICKLINE(X_3>=X_4,CLOSE,OPEN,1.5,0),COLOR0000CC;STICKLINE(X_3>=X_4,CLOSE,OPEN,0.1,0),COLOR9966FF;STICKLINE(X_3<X_4 AND DMI.PDI<DMI.MDI,CLOSE,OPEN,2.9,0),COLOR999900;STICKLINE(X_3<X_4 AND DMI.PDI<DMI.MDI,CLOSE,OPEN,1.5,0),COLORCCCC00;STICKLINE(X_3<X_4 AND DMI.PDI<DMI.MDI,CLOSE,OPEN,0.1,0),COLORFFFF66;STICKLINE(X_3>=X_4 AND CLOSE<X_4,X_7,MAX(OPEN,CLOSE),2.8,0),COLORMAGENTA;STICKLINE(CROSS(X_3,X_4),CLOSE,OPEN,2.8,0),COLORYELLO W;STICKLINE(X_3<X_4 AND (CROSS(CLOSE,X_6) OR CROSS(X_2,X_6)),X_7,MIN(CLOSE,OPEN),2.8,0),COLORWHITE;STICKLINE(CROSS(X_4,X_3) AND CLOSE<OPEN AND DMI.PDI<DMI.MDI,CLOSE,OPEN,2.8,0),COLORFF3300;X_8:=REF(OPEN,1);X_9:=SMA(MAX(OPEN-X_8,0),6,1)/SMA(ABS(OPEN-X_8),6,1)*100;X_10:=REF(CLOSE,1);X_11:=SMA(MAX(CLOSE-X_10,0),6,1)/SMA(ABS(CLOSE-X_10),6,1)*100;X_12:=REF(HIGH,1);X_13:=SMA(MAX(HIGH-X_12,0),6,1)/SMA(ABS(HIGH-X_12),6,1)*100;X_14:=REF(LOW,1);X_15:=SMA(MAX(LOW-X_14,0),6,1)/SMA(ABS(LOW-X_14),6,1)*100;X_16:=(MIN(OPEN,CLOSE)-LOW)/LOW*100>VOL/CAPITAL*0.001;X_17:=(HHV(HIGH,5)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,13))*100;X_18:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;X_19:=EMA(X_18,8)*10<(-26);X_20:=IF(X_16 AND MA(X_17,5)<50 AND X_19,30,0);X_21:=X_9;X_22:=X_11;X_23:=X_13;X_24:=X_15;X_25:=MIN(MIN(MIN(X_21,X_22),X_23),X_24);X_26:=MAX(MAX(MAX(X_21,X_22),X_23),X_24);DRAWICON(LLV(X_25,5)<=20 OR LLV(X_26,5)<=30 AND CROSS(X_3,X_4),HIGH,9);X_27:=VOL>REF(VOL,1)*2 AND (CLOSE>=OPEN OR CLOSE>REF(CLOSE,1));STICKLINE(X_27,CLOSE,OPEN,0.5,0),COLOR0088FF;DRAWTEXT(CROSS(X_4,X_3) AND CLOSE<赚钱轨道,HIGH,''),COLORCYAN;X_28:=(CLOSE+LOW+HIGH)/3;X_29:=ATAN(EMA(X_28,13)-REF(EMA(X_28,13),1))*3.1416*10;X_30:=EMA(CLOSE,8);DRAWTEXT(FILTER(X_29>1 AND EMA(X_28,13)>REF(EMA(X_28,8),1),10),X_30,''),COLORWHITE;X_31:=REF(CLOSE,1);X_32:=SMA(MAX(CLOSE-X_31,0),3,1)/SMA(ABS(CLOSE-X_31),3,1)*100;X_33:=EMA(CLOSE,3);X_34:=EMA(CLOSE,21);DRAWTEXT(CROSS(X_33,X_34),LOW*0.99,''),COLORA6E500;DRAWTEXT_FIX(1,0,0,0,''),COLORYELLOW;DRAWTEXT_FIX(ISLASTBAR,0,0.06,0,''),COLORYELLOW; DRAWTEXT_FIX(ISLASTBAR,0,0.12,0,''),COLORYELLOW;X_35:=INDEXADV;X_36:=INDEXDEC;X_37:=X_35/(X_35+X_36)*100;X_38:=IF(X_37>=70,X_37,DRAWNULL);X_39:=IF(X_37<70,X_37,DRAWNULL);X_40:=HY_INDEXADV;X_41:=HY_INDEXDEC;X_42:=X_40/(X_40+X_41)*100;X_43:=IF(X_42>=70,X_42,DRAWNULL);X_44:=IF(X_42<70,X_42,DRAWNULL);X_45:=(FINANCE(11)-FINANCE(15))/FINANCE(10)*1.2;X_46:=(FINANCE(31)+FINANCE(17))/FINANCE(10)*1.4;X_47:=FINANCE(23)/FINANCE(10)*3.3;X_48:=FINANCE(19)/FINANCE(15)*0.6;X_49:=FINANCE(20)/FINANCE(15)*0.999;X_50:=X_45+X_46+X_47+X_48+X_49;副图源码DRAWGBK(CLOSE>0,RGB(150,50,175),RGB(0,25,100),0,2,0); X_1:=CROSS(KDJ.K#WEEK,KDJ.D#WEEK);X_2:=KD.K#WEEK(9,3,3);X_3:=KD.D#WEEK(9,3,3);X_4:=FILTER(CROSS(X_2,X_3) AND REF(X_3,1)<30,13);X_5:=FILTER(CROSS(X_2,X_3) AND REF(X_3,1)>30,13);X_6:=X_4;X_7:=MACD.DIF#WEEK(12,26,9);X_8:=MACD.DEA#WEEK(12,26,9);X_9:=10;X_10:=5;X_11:=FILTER(CROSS(X_7,X_8) AND REF(X_8,1)<0,13);X_12:=X_11;X_13:=(HHV(HIGH,X_9)-CLOSE)/(HHV(HIGH,X_9)-LLV(LOW,X_9))*200-125;X_14:=SMA(X_13,X_10,1)+15;X_15:=(CLOSE-LLV(LOW,X_9))/(HHV(HIGH,X_9)-LLV(LOW,X_9))*200-105;X_16:=SMA(X_15,X_10,1)+15;X_17:=CROSS(X_16,X_14);XG:X_12 AND X_11 AND X_1;选股源码X_1:=CROSS(KDJ.K#WEEK,KDJ.D#WEEK);X_2:=KD.K#WEEK(9,3,3);X_3:=KD.D#WEEK(9,3,3);X_4:=FILTER(CROSS(X_2,X_3) AND REF(X_3,1)<30,13);X_5:=FILTER(CROSS(X_2,X_3) AND REF(X_3,1)>30,13);X_6:=X_4;X_7:=MACD.DIF#WEEK(12,26,9);X_8:=MACD.DEA#WEEK(12,26,9);X_9:=10;X_10:=5;X_11:=FILTER(CROSS(X_7,X_8) AND REF(X_8,1)<0,13);X_12:=X_11;X_13:=(HHV(HIGH,X_9)-CLOSE)/(HHV(HIGH,X_9)-LLV(LOW,X_9))*200-125;X_14:=SMA(X_13,X_10,1)+15;X_15:=(CLOSE-LLV(LOW,X_9))/(HHV(HIGH,X_9)-LLV(LOW,X_9))*200-105;X_16:=SMA(X_15,X_10,1)+15;X_17:=CROSS(X_16,X_14);XG:X_12 AND X_11 AND X_1;。

通达信副图指标公式源码大全

通达信副图指标公式源码大全

副图指标公式源码1、百万踏浪(相传为杨百万看图公式)N1:=9;N:=3;VAR1:=REF(CLOSE,1);标尺: SMA(MAX(CLOSE-VAR1,0),5,1)/SMA(ABS(CLOSE-VAR1),5,1)*100;VAR2:=(CLOSE-LLV(LOW,N1))/(HHV(HIGH,N1)-LLV(LOW,N1))*100;VAR3:=SMA(VAR2,3,1);VAR4:=SMA(VAR3,3,1);VAR5:=SMA(VAR4,3,1);浪: VAR3,COLORBLUE;波: VAR4, COLORRED;段: VAR5 ,COLORYELLOW;VAR6:=CROSS(VAR3,VAR4) AND VAR4<25;STICKLINE(VAR6,0,VAR4+15,5,0), COLORGREEN;VAR7:=CROSS(VAR4,VAR5) AND VAR4<25;VAR8:=VAR7 AND VOL>REF(VOL,1)*2 AND VOL>REF(MA(VOL,5),1)*2; STICKLINE(VAR7,0,VAR4+55,5,0),COLORWHITE;DRAWTEXT(VAR7 AND COUNT(VAR7,10)=1,VAR4+25,'抄底'),COLORYELLOW; STICKLINE(VAR8,0,VAR4+15,5,0),COLORBLUE;DRAWTEXT(VAR8 AND COUNT(VAR8,10)=1,VAR4-1,'放量'),COLORGREEN; VAR9:=CROSS(VAR3,VAR4) AND VAR4>80 AND VAR4>VAR5; STICKLINE(VAR9 AND COUNT(VAR9,5)=1,VAR4-5,100,5,0),COLORYELLOW;VARA:=CROSS(VAR5,VAR4) AND REF(VAR4,1)>80;STICKLINE(VARA,VAR4-15,100,15,0), COLORYELLOW;DRAWTEXT(VARA AND COUNT(VARA,10)=1,VAR4-25,'逃顶'), COLORYELLOW; VAR1A:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;VAR1B:=SMA((SMA(VAR1A,4,1)-50)*2,3,1);VAR1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;VAR1D:=SMA(VAR1C,4,1);VAR1E:=SMA(VAR1D,3,1);VAR1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;VARE:=REF(LOW,1)*0.9;VARF:=LOW*0.9;VAR10:=(VARF*VOL+VARE*(CAPITAL-VOL))/CAPITAL;VAR11:=EMA(VAR10,30);VAR12:=CLOSE-REF(CLOSE,1);VAR13:=MAX(VAR12,0);VAR14:=ABS(VAR12);VAR15:=SMA(VAR13,7,1)/SMA(VAR14,7,1)*100;VAR16:=SMA(VAR13,13,1)/SMA(VAR14,13,1)*100;VAR17:=BARSCOUNT(CLOSE);VAR18:=SMA(MAX(VAR12,0),6,1)/SMA(ABS(VAR12),6,1)*100;VAR19:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;VAR20:=VAR18<=25 AND VAR19<-95 AND VAR1F>20 AND VAR1B<-30 ANDVAR1E<30 AND VAR11-CLOSE>=-0.25 AND VAR15<22 AND VAR16<28 AND VAR17>50;STICKLINE(VAR20,0,50,10,0),LINETHICK2,COLORBLUE;DRAWTEXT(CROSS(VAR20,0.5) AND COUNT(VAR20=1,10)=1,60,'百万导弹?'),LINETHICK7,COLORWHITE;2、分类资金A:=IF((CLOSE>126.32),(AMOUNT)/(100000),VOL);主力:MA(A,4),LINETHICK0,COLORYELLOW;游资:MA(A,8),LINETHICK0,COLOR00FF00;大户:MA(A,16),LINETHICK0,COLORRED;散户:MA(A,32),LINETHICK0,COLORF0F000;主比:ABS(((主力)/(主力+ 游资+ 大户+ 散户))*(100)),LINESTICK,COLORYELLOW; 游比:ABS(((游资)/(主力+ 游资+ 大户+ 散户))*(100)),LINESTICK,COLOR00FF00;大比:ABS(((大户)/(主力+ 游资+ 大户+ 散户))*(100)),LINESTICK,COLORRED;散比:ABS(((散户)/(主力+ 游资+ 大户+ 散户))*(100)),LINESTICK,COLORF0F000;警戒线:MA(A,180),COLORFF66FF,LINETHICK1;STICKLINE((主力> 0),0,主力,3,0),COLOR009CFF;STICKLINE((主力> 0),0,主力,2.8,0),COLOR009CFF;STICKLINE((主力> 0),0,主力,2.5,0),COLOR00C0FF;STICKLINE((主力> 0),0,主力,1.5,0),COLOR00D1FF;STICKLINE((主力> 0),0,主力,1,0),COLOR00EAFF;STICKLINE((主力> 0),0,主力,0.7,0),COLORYELLOW;STICKLINE((游资> 0),0,游资,3,0),COLOR00C100;STICKLINE((游资> 0),0,游资,2.8,0),COLOR00CA00;STICKLINE((游资> 0),0,游资,2.5,0),COLOR00D300;STICKLINE((游资> 0),0,游资,1.5,0),COLOR00DB00;STICKLINE((游资> 0),0,游资,1,0),COLOR00EA00;STICKLINE((游资> 0),0,游资,0.7,0),COLORGREEN;STICKLINE((大户> 0),0,大户,3,0),COLOR1020AA;STICKLINE((大户> 0),0,大户,2.8,0),COLOR1020BB;STICKLINE((大户> 0),0,大户,2.5,0),COLOR1020CC;STICKLINE((大户> 0),0,大户,1.5,0),COLOR1020DD;STICKLINE((大户> 0),0,大户,1,0),COLOR1020EE;STICKLINE((大户> 0),0,大户,0.7,0),COLORRED;STICKLINE((散户> 0),0,散户,3,0),COLORFF7700;STICKLINE((散户> 0),0,散户,2.8,0),COLORFF8800;STICKLINE((散户> 0),0,散户,2.5,0),COLORFF9900;STICKLINE((散户> 0),0,散户,1.5,0),COLORFFAA00; STICKLINE((散户> 0),0,散户,1,0),COLORFFBB00;STICKLINE((散户> 0),0,散户,0.7,0),COLORLIBLUE;3、黑马起爆点VAR1:=(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100;VAR2:=(CLOSE-LLV(LOW,43))/(HHV(HIGH,43)-LLV(LOW,43))*100;VAR3:=SMA(VAR2,2,1);天:100+(-ABS(VAR1)),COLORRED;下:SMA(VAR3,2,1);无:ABS(VAR1),COLORGREEN;敌:50,COLORFFAA00,LINETHICK3;A:80;B:20;买:STICKLINE(CROSS(下,无),3,20,2,0),COLORRED,LINETHICK1;STICKLINE(CROSS(下,无),20,25,2,0),COLORFF9900,LINETHICK1;DRAWTEXT(CROSS(下,无),30,' '),COLORFFFFCC;卖:STICKLINE(CROSS(下,天),70,90,2,0),COLORRED,LINETHICK1;STICKLINE(CROSS(下,天),90,99,2,0),COLORFF9900,LINETHICK1;DRAWTEXT(CROSS(下,天),70,' '),COLORFFFFCC;选股2:IF(CROSS(下,20),1,0);DRAWICON((CROSS(下,20) ),20,1);DRAWICON((CROSS(下,20) ),-20,25);4、宁波绝密(相传为宁波涨停敢死队的绝密指标)WOL:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,WOL,0,3,-1),COLORFFFFFF; VOLUME:VOL,VOLSTICK;V5:MA(VOLUME,5);V10:MA(VOLUME,10);V135:MA(VOLUME,135);VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));主买:IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLO SE-LOW)),VOL/2)),COLORRED,POINTDOT;主卖:IF(CLOSE>OPEN,VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,VAR1*(HI GH-LOW),VOL/2)),COLOR00FF00,POINTDOT;STICKLINE(主买>0,0,主买,2,0),COLORRED;{STICKLINE(主卖>0,主买,VOL,2,1),COLOR00FF80;}STICKLINE(主买<REF(主买,1)AND 主买>0,0,主买,2,0),COLOR00FFFF;换手:VOL/CAPITAL*100,POINTDOT;二十日换手:SUM(换手,20);5、起涨点换手率%:VOL/CAPITAL*100,LINETHICK0,COLORYELLOW;量比:V/(REF(MA(V,5),1)),LINETHICK0,COLORRED;VVOL:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;虚拟量比:VVOL/(REF(MA(V,5),1)),LINETHICK0,COLORRED;获利比例%:WINNER(C)*100,COLORLIBLUE;涨幅%:(C-REF(C,1))/REF(C,1)*100,LINETHICK0;换手率%1:=换手率%>5;量比1:=量比>1.5 OR 虚拟量比>1.5;获利比例%1:=获利比例%>70;涨幅%1:=涨幅%>3;启动:=换手率%1 AND 量比1 AND 获利比例%1 AND 涨幅%1 ;起涨点:IF(启动,101,0)COLORRED,LINETHICK2;6、庄家建仓VAR1:=REF(LOW,1);VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),13,1)*4;VAR3:=EMA(VAR2,13);VAR4:=LLV(LOW,34);VAR5:=EMA(IF(LOW<=VAR4,VAR3,0),3);主力进场:STICKLINE(VAR5>REF(VAR5,1),0,VAR5,7,0 ),COLORRED;7、出色超赢JRH:=HHV(C,2);JRL:=LLV(C,2);MA3:=MA(CLOSE,3);YTSL:=(3*CLOSE+LOW+OPEN+HIGH)/6;VAR1:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2));VAR2:=(REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR3:=(REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR4:=(REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR5:=(REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR6:=(REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR7:=(REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR8:=(REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR9:=(REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VARA:=(REF(VAR9,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)); VAR10:=(REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR11:=(REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR12:=(REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR13:=(REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR14:=(REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR15:=(REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR16:=(REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR17:=(REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR18:=(REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR19:=((REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1)) AND VAR1);VAR1A:=((REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,1)) AND VARD);红色持股:VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,COLOR0000FF,NODRAW;离场:=IF(红色持股,JRL,DRAWNULL);明离场价:=离场,COLORFF99FF,NODRAW;今离场价:=REF(离场,1)COLOR0000FF,NODRAW;青色观望:VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,COLORFFFF00,NODRAW;进:=IF(青色观望,JRH,DRAWNULL);明进场价:=进,COLOR33AACC,NODRAW;今进场价:=REF(明进场价,1),COLORFF0000,NODRAW;黄色低买:VAR19,COLOR33AACC,NODRAW;洋红离场:VAR1A,COLORMAGENTA,NODRAW;急跌关注:(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100<-14,COLORWHITE,NODRAW; 上市日期年:REF(YEAR,BARSCOUNT(CLOSE)-1),NODRAW,COLOR0000FF;月:REF(MONTH,BARSCOUNT(CLOSE)-1),NODRAW,COLORFF00FF;日:REF(DAY,BARSCOUNT(CLOSE)-1),NODRAW,COLOR00FFFF;STICKLINE(ISLASTBAR AND (红色持股OR REF(红色持股,1)=1),今离场价,今离场价,30,1),COLOR0000FF;STICKLINE(ISLASTBAR AND (青色观望OR REF(青色观望,1)=1),今进场价,今进场价,30,1),COLOR00FF00;STICKLINE(C>=O,L,H,0,0),COLOR0000CC; STICKLINE(C<O,L,H,0,0),COLOR999900; STICKLINE(1,C,O,3.5,0),COLOR858500; STICKLINE(C>=O,C,O,3.5,0),COLOR0000E5; STICKLINE(红色持股,CLOSE,O,2.8,0),COLOR000055; STICKLINE(红色持股,CLOSE,O,2,0),COLOR000088; STICKLINE(红色持股,CLOSE,O,1.5,0),COLOR0000AA; STICKLINE(红色持股,CLOSE,O,1,0),COLOR0000CC; STICKLINE(红色持股,CLOSE,O,0.5,0),COLOR0000EE; STICKLINE(青色观望,CLOSE,O,2.8,0),COLOR555500; STICKLINE(青色观望,CLOSE,O,2,0),COLOR888800; STICKLINE(青色观望,CLOSE,O,1.5,0),COLORAAAA00; STICKLINE(青色观望,CLOSE,O,1,0),COLORCCCC00; STICKLINE(青色观望,CLOSE,O,0.5,0),COLOREEEE00; CO:=(C-O);STICKLINE(急跌关注,O,C-CO/2,2.8,0),COLOR555555; STICKLINE(急跌关注,O,C-CO/2,2,0),COLOR888888; STICKLINE(急跌关注,O,C-CO/2,1.5,0),COLORAAAAAA; STICKLINE(急跌关注,O,C-CO/2,1,0),COLORCCCCCC; STICKLINE(急跌关注,O,C-CO/2,0.5,0),COLOREEEEEE; STICKLINE(黄色低买,O,O+CO/3,2.8,0),COLOR335555; STICKLINE(黄色低买,O,O+CO/3,2,0),COLOR338888;STICKLINE(黄色低买,O,O+CO/3,1.5,0),COLOR33AAAA;STICKLINE(黄色低买,O,O+CO/3,1,0),COLOR33CCCC;STICKLINE(黄色低买,O,O+CO/3,0,0),COLOR33EEEE;STICKLINE(洋红离场,O,O+CO/3,2.8,0),COLOR550055;STICKLINE(洋红离场,O,O+CO/3,2,0),COLOR880088;STICKLINE(洋红离场,O,O+CO/3,1.5,0),COLORAA00AA;STICKLINE(洋红离场,O,O+CO/3,1,0),COLORCC00CC;STICKLINE(洋红离场,O,O+CO/3,0.5,0),COLOREE00EE;压力:MA(REF(HHV(C,30),1),2),POINTDOT,COLOR9DFFFF;支撑:MA(REF(LLV(C,30),1),2),POINTDOT,COLORABFF46;PMA:MA(C,5),COLORWHITE,LINETHICK2;IF(PMA>REF(PMA,1),PMA,DRAWNULL),COLORRED,LINETHICK2;IF(PMA<REF(PMA,1),PMA,DRAWNULL),COLORGREEN,LINETHICK2;X:=(3*C+L+O+H)/6;多空线:(20*X+19*REF(X,1)+18*REF(X,2)+17*REF(X,3)+16*REF(X,4)+15*REF(X,5)+14*REF (X,6)+13*REF(X,7)+12*REF(X,8)+11*REF(X,9)+10*REF(X,10)+9*REF(X,11)+8*REF(X,12) +7*REF(X,13)+6*REF(X,14)+5*REF(X,15)+4*REF(X,16)+3*REF(X,17)+2*REF(X,18)+ REF(X,20))/210,COLORFF00FF,LINETHICK2;DD:=多空线<REF(多空线,1);IF(DD,多空线,DRAWNULL),COLOR00FFFF,LINETHICK2;A:=(PMA>多空线);IF(A,多空线,DRAWNULL),COLOR33FF33,POINTDOT,LINETHICK4;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,9,1);D:=SMA(K,9,1);J:=3*K-2*D;X2:=LLV(J,2)=LLV(J,8);Y:=IF(CROSS(J,REF(J+0.01,1)) AND X2 AND J<20,30,0);DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X2 AND J<20,LOW*0.98,'★'),COLORYELLOW;8、彩色成交量STICKLINE(VOL > 0,VOL,0,3,0),COLOR333333;STICKLINE(VOL > 0,VOL,0,2.5,0),COLOR998855;STICKLINE(VOL > 0,VOL,0,1.7,0),COLORBBAA77;STICKLINE(VOL > 0,VOL,0,0.9,0),COLORDDCC99;STICKLINE(VOL > 0,VOL,0,0.04,0),COLORFFEEBB;换手:=VOL/CAPITAL*100,COLORRED;STICKLINE(换手>2 ,VOL ,CAPITAL*0.02,3,0),COLOR00AAAA;STICKLINE(换手>2 ,VOL ,CAPITAL*0.02,2.5,0),COLOR00CCCC;STICKLINE(换手>2 ,VOL ,CAPITAL*0.02,1.7,0),COLOR00EEEE;STICKLINE(换手>2 ,VOL ,CAPITAL*0.02,0.08,0),COLOR00FFFF;STICKLINE(换手>4 ,VOL ,CAPITAL*0.04,3,0 ),COLOR009900;STICKLINE(换手>4 ,VOL ,CAPITAL*0.04,2.5,0 ),COLOR00BB00; STICKLINE(换手>4 ,VOL ,CAPITAL*0.04,1.7,0 ),COLOR00DD00; STICKLINE(换手>4 ,VOL ,CAPITAL*0.04,0.8,0 ),COLOR00FF00; STICKLINE(换手>7 ,VOL ,CAPITAL*0.07,3,0),COLORBROWN; STICKLINE(换手>7 ,VOL ,CAPITAL*0.07,2.5,0),COLOR0000AA; STICKLINE(换手>7 ,VOL ,CAPITAL*0.07,1.7,0),COLOR0000CC; STICKLINE(换手>7 ,VOL ,CAPITAL*0.07,0.8,0),COLOR0000DD;五天均量:MA(VOL,5),COLORRED,LINETHICK0.01;廿天均量:MA(VOL,20),COLORWHITE,LINETHICK0.01;HSS:=V/CAPITAL*100,NODRAW;{显示当日换手}五天换手率:SUM(HSS,5),NODRAW;廿天换手率:SUM(HSS,20),NODRAW;抛压:STICKLINE(CROSS(84,RSI),0 ,VOL,1.5,0),COLORBLUE,LINETHICK5; V24:MA(VOL,24),COLORLIBLUE;V10:MA(VOL,10),COLORRED;V3:MA(VOL,3),COLORLIGRAY;9、涨停回马枪(有主图)均价线:=AMOUNT/V/100;C2:=REF(C,1);涨停:=IF(REF(C,1)*1.1-C<0.01 ,1,0);STICKLINE(涨停,0,5,6,0),COLORYELLOW;DRAWTEXT(涨停,8,'涨停'),COLORYELLOW;MA13:=MA(C,13),COLORGRAY;MA21:=MA(C,21),COLORWHITE;支撑线:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4; LC:=REF(CLOSE,1);操作线:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*100;趋势线:=SMA(MAX(CLOSE-LC,0),14,1)/SMA(ABS(CLOSE-LC),14,1)*100; 震仓线:=45;震仓线2:=50;逃命线:=80;抄底线:=20;绝底线:=5;PP2:=操作线<震仓线2 AND REF(操作线,1)>震仓线2 ;PP:=操作线<震仓线AND REF(操作线,1)>震仓线;PP3:=操作线<抄底线AND REF(操作线,1)>抄底线;HH:=COUNT(涨停,13)>=1;STICKLINE(PP2 AND HH,0,5,3,0),COLORRED;STICKLINE(PP AND HH,0,5,3,0),COLORRED;STICKLINE(PP3 AND HH,0,5,3,0),COLORRED;DRAWTEXT(PP2 AND HH,8,'预警'),COLORRED;DRAWTEXT(PP AND HH,8,'预警'),COLORRED;DRAWTEXT(PP3 AND HH,8,'预警'),COLORRED;A:=SMA(L,4,3) ;绿色买入:IF (((A AND REF(PP,1) AND HH) OR (A AND REF(PP3,1) AND HH)),1,0 ); STICKLINE(A AND REF(PP,1) AND HH ,0,10,1,0),COLORGREEN;DRAWICON(A AND REF(PP,1) AND HH,12,1);STICKLINE(A AND REF(PP3,1) AND HH ,0,10,1,0)COLORGREEN; DRAWICON(A AND REF(PP3,1) AND HH,12,1);10、海风3号M1:=MA(CLOSE,1);M2:=(LOW+HIGH+CLOSE)/3;M3:= MA(M2,5);M4:= HHV(M3,10);Z:=HHV((M1<M4),10) OR HHV((M1<M4),10);S:=EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,35)-LLV(LOW,34)),3); DRAWTEXT( FILTER(CROSS(S ,60 ),20),L*0.98,'▲'),COLORYELLOW ; {DRAWTEXT(FILTER( Z,9),H*1.028,'★') ,COLORBLUE;STICKLINE( S>60,O,C,4,0) ,COLORFF9BFB;}STICKLINE( S>60,O,C,2,0) ,COLORRED;{STICKLINE( S>60,O,C,1.5,0) ,COLORFD9BFB; }STICKLINE( S>60,H,L,0,0) ,COLORRED;{STICKLINE( S<60,O,C,4,0) ,COLOR01DC38;STICKLINE( S<60,O,C,2.5,0) ,COLOR01FE41;}STICKLINE( S<60,O,C,2,0) ,COLORGREEN;STICKLINE( S<60,H,L,0,0) ,COLORGREEN;VAR1:MA(CLOSE,5);VAR2:MA(CLOSE,10);VAR3:MA(CLOSE,20);VAR60:MA(CLOSE,60);VAR120:MA(CLOSE,120);VAR4:=OPEN<VAR1 OR OPEN<VAR2 OR OPEN<VAR3;VAR5:=CLOSE>MAX(VAR1,MAX(VAR2,MAX(VAR3,VAR60)));VAR6:=VOL/MA(VOL,30)>1.2;VAR7:=CLOSE/REF(CLOSE,1)>1.049;VAR8:=VAR4 AND VAR5 AND VAR6 AND VAR7;VAR9:=VAR8 AND (REF(BARSLAST(VAR8),1)>60 OR BARSSINCE(VAR8)=0); DRAWICON(VAR9 ,L*0.98,1) ;STICKLINE( VAR9,O,C,6,0) ,COLORYELLOW;STICKLINE( VAR9,H,L,0.6,0) ,COLORYELLOW;11、涨停时间窗(通达信金融终端副图)N:=13;WR大于80考虑买:100*(HHV(HIGH,N)-CLOSE)/(HHV(HIGH,N)-LLV(LOW,N)),LINETHICK0;均价:AMOUNT/(VOL*100),LINETHICK0,COLORYELLOW;ZT:=C/REF(C,1)>1.097;XH:=FILTER(ZT,13);BH:=BARSLAST(ZT);STICKLINE(ZT,0,L*1,3,0),COLORYELLOW;DRAWTEXT(ZT,L*1.1,'涨停'),COLORF00FF0;VARZT:=BARSLAST(C/REF(C,1)>1.097);AA:=BETWEEN(C,REF(L,BH)*1.01,REF(L,BH)*0.987); STICKLINE(AA,0,L*0.5,2,0),COLORBLUE;DRAWTEXT(AA,L*0.6,'警戒'),COLORWHITE;STICKLINE(AA AND VARZT=2,0,L*0.8,2,0),COLORRED; DRAWTEXT(AA AND VARZT=2,L*0.9,'时间窗'),COLORWHITE; STICKLINE(AA AND VARZT=4,0,L*0.8,2,0),COLORRED; DRAWTEXT(AA AND VARZT=4,L*0.9,'时间窗'),COLORWHITE; STICKLINE(AA AND VARZT=7,0,L*0.8,2,0),COLORRED; DRAWTEXT(AA AND VARZT=7,L*0.9,'时间窗'),COLORWHITE; STICKLINE(AA AND VARZT=12,0,L*0.8,2,0),COLORRED; DRAWTEXT(AA AND VARZT=12,L*0.9,'时间窗'),COLORWHITE; STICKLINE(AA AND VARZT=20,0,L*0.8,2,0),COLORRED; DRAWTEXT(AA AND VARZT=20,L*0.9,'时间窗'),COLORWHITE;。

好主图的副图指标通达信指标公式源码.doc

好主图的副图指标通达信指标公式源码.doc

好主图的副图指标布林轨:=(MA(C,3)+MA(C,6)+MA(C,12)+MA(C,24))/4,COLORRED,LINETHICK2;倍量攻击:=V>REF(V,1)*2 AND (C>=0 OR C>REF(C Z1)),COLORRED,NODRAW;角线:=(ATAN((MA(C Z5)/REF(MA(C,5),1)-1)*100)*180/3.14115926);角线MA:=MA(角线,5);ANA:=PLOYLINE(CROSS(角线,角线MA),角线MA),COLORRED;ANB:=PLOYLINE(CROSS(角线MA,角线),角线MA)Z COLORFFOOFF ;角买点:=CROSS(角线,角线MA) AND ((ANB>REF(ANB,1) AND ANB>ANA AND 角线MA<=0) OR((角线MA<=-45 OR CROSS(角线MA,・45)) AND (ANB<-60 OR LLV(“KDJ.J“,3)v=・49) ANDANB>0)),COLORGREEN;角买入:IF(角买点,1,0),COLORRED,LINETHICK2;角起涨:=COUNT(CROSS(角线,角线MA),ANAvREF(ANA,5) AND ANB>REF(ANB,5));起涨点:IF(角起涨,1,0),COLORLIRED,LINETHICK2;角卖点:=(CROSS(角线MA,角线)AND (ANB>REF(ANB,1) OR ANA<REF(ANA,1)) AND ANB>ANA{AND ANB>0} AND 角线MA>0)*l;角卖出:IF(角卖点z l,0),COLORGREEN,LINETHICK2;角始跌:=COUNT(CROSS(角线MA,角线),ANAvREF(ANA,5) AND ANB>REF(ANB,5));起跌点:IF(角始跌,1,0),COLORLIBLUE,LINETHICK2;。

通达信指标公式源码 涨停板主图

通达信指标公式源码 涨停板主图

支撑价:LLV(LOW,19) ,COLORGREEN,LINETHICK3;阻力价:HHV(HIGH,19),COLORBLUE, LINETHICK3;VAR1:=EMA(CLOSE,12)-EMA(CLOSE,26);JL01:=MA(C,3);LJL07:=(3*C+L+O+H)/6;牛线:(20*LJL07+19*REF(LJL07,1)+18*REF(LJL07,2)+17*REF(LJL07,3)+16*REF (LJL07,4)+15*REF(LJL07,5)+14*REF(LJL07,6)+13*REF(LJL07,7)+12*REF(LJL 07,8)+11*REF(LJL07,9)+10*REF(LJL07,10)+9*REF(LJL07,11)+8*REF(LJL07, 12)+7*REF(LJL07,13)+6*REF(LJL07,14)+5*REF(LJL07,15)+4*REF(LJL07,16) +3*REF(LJL07,17)+2*REF(LJL07,18)+REF(LJL07,20))/210,COLORRED;马线:MA(牛线,5),COLORYELLOW,LINETHICK4,POINTDOT;等待:IF(JL01<=牛线,马线,DRAWNULL),COLORRED,LINETHICK4,POINTDOT; VAR1L:=(C>REF(C,1) AND C>REF(C,2));VAR2L:=(REF(VAR1L,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR3L:=(REF(VAR2L,1) AND C>=REF(C,1) AND C<=REF(C,2));VAR4L:=(REF(VAR3L,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR5L:=(REF(VAR4L,1) AND C>=REF(C,1) AND C<=REF(C,2));VAR6L:=(REF(VAR5L,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR7L:=(REF(VAR6L,1) AND C>=REF(C,1) AND C<=REF(C,2));VAR8L:=(REF(VAR7L,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR9L:=(REF(VAR8L,1) AND C>=REF(C,1) AND C<=REF(C,2));VARAL:=(REF(VAR9L,1) AND C<=REF(C,1) AND C>=REF(C,2));VARBL:=(REF(VARAL,1) AND C>=REF(C,1) AND C<=REF(C,2));VARCL:=(REF(VARBL,1) AND C<=REF(C,1) AND C>=REF(C,2));持股:IF(VAR1L OR VAR2L OR VAR3L OR VAR4L OR VAR5L OR VAR6L OR VAR7L OR VAR8L OR VAR9L OR VARAL OR VARBL OR VARCL,牛线,DRAWNULL),COLORRED,LINETHICK1;VARDL:=(C<REF(C,1) AND C<REF(C,2));VAREL:=(REF(VARDL,1) AND C>=REF(C,1) AND C<=REF(C,2));VARFL:=(REF(VAREL,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR1L0:=(REF(VARFL,1) AND C>=REF(C,1) AND C<=REF(C,2));VAR1L1:=(REF(VAR1L0,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR1L2:=(REF(VAR1L1,1) AND C>=REF(C,1) AND C<=REF(C,2));VAR1L3:=(REF(VAR1L2,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR1L4:=(REF(VAR1L3,1) AND C>=REF(C,1) AND C<=REF(C,2));VAR1L5:=(REF(VAR1L4,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR1L6:=(REF(VAR1L5,1) AND C>=REF(C,1) AND C<=REF(C,2));VAR1L7:=(REF(VAR1L6,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR1L8:=(REF(VAR1L7,1) AND C>=REF(C,1) AND C<=REF(C,2));持币:IF(VARDL OR VAREL OR VARFL OR VAR1L0 OR VAR1L1 OR VAR1L2 OR VAR1L3 OR VAR1L4 OR VAR1L5 OR VAR1L6 OR VAR1L7 OR VAR1L8,牛线,DRAWNULL),COLORGREEN,LINETHICK1;V5日涨跌%: (C-REF(CLOSE,5))/REF(CLOSE,5)*100,COLORWHITE,NODRAW; V10日涨跌%:(C-REF(CLOSE,10))/REF(CLOSE,10)*100,COLORYELLOW,NODRAW;V30日涨跌%:(C-REF(CLOSE,30))/REF(CLOSE,30)*100,COLORMAGENTA,NODRAW; 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;STICKLINE(C>=O,C,O,1.5,0),COLOR0000A5;STICKLINE(C>=O,C,O,1,0),COLOR0000C5;STICKLINE(C>=O,C,O,0.5,0),COLOR0000E5;STICKLINE(C>=O,H,L,0,0),COLOR0000F5;STICKLINE(C<O,C,O,3,0),COLOR353500;STICKLINE(C<O,C,O,2.5,0),COLOR454500;STICKLINE(C<O,C,O,2,0),COLOR555500;STICKLINE(C<O,C,O,1.5,0),COLOR656500;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;VAR2:=EMA(VAR1,9);VAR3:=(CLOSE*2.5/100+CLOSE);VAR4:EMA(C,3), LINETHICK4,POINTDOT;VAR5:=LLV(HIGH,240);VAR6:=100*(CLOSE-VAR5)/VAR5;VAR7:=REF(LLV(CLOSE,480),1);VAR8:=REF(HHV(CLOSE,480),1);VAR9:=100*(CLOSE-VAR7)/(VAR8-VAR7);VARA:=(CLOSE-LLV(CLOSE,981))/(HHV(CLOSE,981)-LLV(CLOSE,981))*100; VARB:=(CLOSE-LLV(CLOSE,393))/(HHV(CLOSE,393)-LLV(CLOSE,393))*100;VARC:=(CLOSE-LLV(LOW,981))/(HHV(HIGH,981)-LLV(LOW,981))*100; VARD:=(CLOSE-LLV(LOW,393))/(HHV(HIGH,393)-LLV(LOW,393))*100; VARE:=VARC>98.5 OR VARD>98.5;VARF:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),5) /4;VAR13:=VARA=0 AND VARC=0 AND VAR6<0;VAR14:=VARA=100 AND VARC=100;VAR15:=VARB=0 OR VARD=0 AND VAR9<0;VAR16:=VARB=100 AND VARD=100;VAR17:=VAR6<0 AND VAR9<0;VAR18:=VAR13 AND VAR15;VAR19:=VAR14 AND VAR16;VAR1B:=SMA(MAX(CLOSE-REF(CLOSE,1),0),49,1)/SMA(ABS(CLOSE-REF(CLO SE,1)),6,1)*100;VAR1C:=SMA(MAX(CLOSE-REF(CLOSE,1),0),14,1)/SMA(ABS(CLOSE-REF(CLO SE,1)),14,1)*100;VAR1D:=BARSCOUNT(CLOSE);VAR1E:=VAR1B<20 AND VAR1C<23 AND VAR1D>35;VAR1F:=VAR1E AND COUNT(VAR1E,1)=1;VAR20:=REF(CLOSE,1);VAR21:=SMA(MAX(CLOSE-VAR20,0),34,1)/SMA(ABS(CLOSE-VAR20),7,1)*100; VAR22:=SMA(MAX(CLOSE-VAR20,0),13,1)/SMA(ABS(CLOSE-VAR20),13,1)*10 0;VAR23:=BARSCOUNT(CLOSE);VAR24:=VAR21<20 AND VAR22<23 AND VAR23>35;VAR25:=VARA=0 AND VARF<1.2 AND VAR17;VAR27:=VAR18 AND VARF<1.2 AND VAR17;VAR29:=SUM(HIGH-OPEN,77)/SUM(OPEN-LOW,77)*100;VAR2A:=SUM(MAX(0,HIGH-REF(CLOSE,1)),77)/SUM(MAX(0,REF(CLOSE,1)-LO W),77)*100;VAR2B:=CROSS(VAR29,69) AND CROSS(VAR2A,80)<150;VAR2C:=VAR24 AND VAR1F AND COUNT(VAR24,30)=1;买点:=VAR25 AND VAR2B;绝对卖点:=(VAR19 OR VARA)AND VARF>23 OR VARE ;VAR2D:=VAR1F AND VAR2C AND VAR25;股海万元户:=(CLOSE/REF(CLOSE,1)>1.04 AND (CLOSE>10.8 ANDCLOSE<10.83 OR CLOSE>6.86 AND CLOSE<6.88 OR CLOSE>13.82 AND CLOSE<13.84 OR CLOSE>7.28 AND CLOSE<7.3 OR CLOSE>12.4 AND CLOSE<12.42 OR CLOSE>22.33 AND CLOSE<22.35 OR CLOSE>4.68 AND CLOSE<4.7 OR CLOSE>26.29 AND CLOSE<26.31 OR CLOSE>7.65 AND CLOSE<7.67 OR CLOSE>13.4 AND CLOSE<13.42 OR CLOSE>7.58 AND CLOSE<7.6 OR CLOSE>20.43 AND CLOSE<20.45 OR CLOSE>19.57 AND CLOSE<19.59 OR CLOSE>6.26 AND CLOSE<6.28 OR CLOSE>7.14 AND CLOSE<7.16 OR CLOSE>6.61 AND CLOSE<6.63 OR CLOSE>11.9 ANDVOL<11.92 OR CLOSE>6.7 AND CLOSE<6.72 OR CLOSE>8.19 AND CLOSE<8.21));DRAWTEXT(FILTER(绝对卖点>0,3),H,'风险'), COLOR00FF00; DRAWTEXT(股海万元户>0,L,'☆追涨'),COLORYELLOW ;DRAWICON(买点>0,L,4);DRAWTEXT(买点>0,L,'扫描神针'),COLORF00FF0;DRAWTEXT(VARF<0.7 AND VAR27 AND VAR25>0,L,'抄底'),COLORYELLOW; STICKLINE(VAR2D>0,O,C,10,0), COLORYELLOW;DRAWTEXT(VAR2D>0,L,'大方神针'),COLORRED;DRAWICON(COUNT(REF(VAR4,1)<REF(VAR4,2),5)=5 ANDVAR4>REF(VAR4,1),L*0.98,5);DRAWICON(FILTER(COUNT(VAR6<0,5)AND CROSS(VAR6,0)ANDVARF>REF(VARF,1)AND C>O,3),L,11);DRAWICON(FILTER(REF(VAR4,1)>REF(VAR4,2)AND VAR4<REF(VAR4,1)AND VARF>17 AND VAR1>VAR2,5),H,12);DRAWICON(阻力价>REF(阻力价,1)AND CROSS(阻力价,VAR3)ANDC<O,H*1.02,6);Y:=CLOSE/REF(CLOSE,1)>1.07;X:=VOL>MA(VOL,5);A1:=Y AND X;DRAWTEXT(A1,MA(CLOSE,5),'攻涨停'),COLORMAGENTA;Z:=CLOSE/REF(CLOSE,1)<0.93;W:=VOL<MA(VOL,5);A2:=Z AND W;DRAWTEXT(A2,MA(CLOSE,5),'小心跌停'),COLORGREEN;。

涨停MACD通达信指标公式源码

涨停MACD通达信指标公式源码

自用的MACD副图,一般参考抓板时用。

指标用法:当指标出现小绿箭头,但是第二天出现红箭头,可以80%确定是诱空信号,而且3天内涨停概率很大。

反之,当出现红箭头,第二天出现绿箭头,诱多信号,先清仓离场。

MACD出现黄柱代表可能要变盘(多变空)。

指标只是工具,没有万能的指标,只有相对稳定的指标。

关键还是自己如何操作!自带的解盘提示,可以更好的帮助新手学习趋势。

最后两张图是随机的选股测试,筛选时最好选择前5天没有出现过箭头的票,前期涨幅不要过大,资金的安全才是王道。

STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,2,0 ),COLOR00BBFF; STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,1,0 ),COLOR00DDFF; STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,0,0 ),COLOR00FFFF;STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,2,0 ),COLOR0011EE;STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,1,0 ),COLOR0033DD; STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,0,0 ),COLOR0055FF; STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,2,0 ),COLORBB11BB; STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,1,0 ),COLORDD33BB; STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,0,0 ),COLORFF55BB; STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,2,0 ),COLORFFBB11; STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,1,0 ),COLORFFDD33; STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,0,0 ),COLORFFFF55;DIFF:=EMA(CLOSE,9) - EMA(CLOSE,50);DEA1:=EMA(DIFF,2);0.10,POINTDOT;MACD:=2*(DIFF-DEA1),LINETHICK0;SS1:=MACD<REF(MACD,1)AND MACD>0;SS2:=MACD<REF(MACD,1)/2 AND MACD<0;STICKLINE(MACD>=0,MACD,0,3,1),COLORRED;STICKLINE(SS1,0,MACD,3,1),COLOR00FFFF;STICKLINE(SS2,0,MACD,3,0),COLORFFFFFF;STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,3,1),COLORFFFF00;DEA:EMA(DIFF,2),COLORGREEN;IF(DIFF>DEA,DIFF,DRAWNULL),COLORFF11CC,LINETHICK2;IF(DIFF>DEA AND DIFF<0,DIFF,DRAWNULL),COLORRED,LINETHICK2;DRAWICON(CROSS(DIFF,DEA),DIFF-0.1,1);DRAWICON(CROSS(DEA,DIFF),DIFF+0.1,2);MAC:3*DIFF-2*DEA1,LINETHICK1,COLORRED;VAR1:=EMA(CLOSE,3)-EMA(CLOSE,4);VAR2:=EMA(VAR1,2);趋势:=(-3)*(VAR1-VAR2);VAR11:=MA((V/(H-L)),4);VAR33:=ABS(C-O);VAR44:=V/(H-L);TRR := SUM(MA(MA(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),5); HD := HIGH-REF(HIGH,1);LD := REF(LOW,1)-LOW;DMP:= SUM(IF(HD>0 AND HD>LD,HD,0),5);DMM:= SUM(IF(LD>0 AND LD>HD,LD,0),5);PDI:= DMP*100/TR;MDI:= DMM*100/TR;ADX:= MA(ABS(MDI-PDI)/(MDI+PDI)*100,5);ADXR:=(ADX+REF(ADX,5))/2;W1:=CROSS(MA(C,10),MA(C,5)) ;W2:=CROSS(MA(C,5),MA(C,10)) ;W3:=CROSS(MA(V,10),MA(V,5));W4:=CROSS(DEA,DIFF);W11:=C<=MA(C,5) AND C<=MA(C,10) ;W22:=O>MA(C,3) AND O>MA(C,5) ;W33:=MA(V,2)<=MA(V,3);W44:=DIFF<DEA;W5:=VOL;DRAWTEXT(W11 AND W22 AND W33 AND W44,DIFF,'#'),COLORFFFF10;LC := REF(CLOSE,1);PSY:=COUNT(CLOSE>REF(CLOSE,1),12)/12*100;AA:=(EMA(C,10)*2+MA(C,20))/3;RA:=(VOL*CLOSE);VL1A:=EMA(RA,13)/EMA(VOL,13);VL2A:=EMA(RA,20)/EMA(VOL,20);VLA:=EMA((VL1A+VL2A)/2,3);分水岭:=MA((AA+VLA)/2,1),LINETHICK0;BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;UPR:=BBI+3*STD(BBI,10);DWN:=BBI-3*STD(BBI,10);VAR55:=(UPR-DWN)/UPR<0.03;VAR56:=(UPR-DWN)/UPR>0.18;VAR57:=(MA(C,20)-MA(C,5))/MA(C,20)>0.15;VAR58:=(MA(C,5)-MA(C,60))/MA(C,5)>0.15;S1:=趋势>0; S2:=趋势<0; S3:=CROSS(趋势,0); S4:=CROSS(0,趋势);S5:=CROSS(PDI,MDI); S6:=CROSS(MDI,PDI); S7:=ADX>REF(ADX,1); S8:=W11 AND W22;S9:=W1; S10:=W3; S11:=W4; S12:=W11 AND W22 AND W33 AND W44;S13:=W11 AND W33 AND W44; S14:=W5>0.075;S20:=CLOSE>分水岭;S21:=CLOSE<分水岭; S22:=VAR55; S23:=VAR57 AND VAR56;E1:=IF(S1=1 ,-0.08,-0.08);E2:=IF(S2=1,E1+0.1,E1);E3:=IF(S3=1,E2+0.1,E2);E4:=IF(S4=1,E3+0.1,E3);E5:=IF(S5=1,E4+0.1,E4);E6:=IF(S6=1,E5+0.1,E5);E7:=IF(S7=1,E6+0.1,E6);E8:=IF(S8=1,E7+0.1,E7);E9:=IF(S9=1,E8+0.1,E8);E10:=IF(S10=1,E9+0.1,E9);E11:=IF(S11=1,E10+0.1,E10);E12:=IF(S12=1,E11+0.1,E11);E13:=IF(S13=1,E12+0.1,E12);E14:=IF(S14=1,E13+0.1,E13);DRAWTEXT_FIX(ISLASTBAR AND S1=1,0,E1,0,'Z线趋势上升中');DRAWTEXT_FIX(ISLASTBAR AND S2=1,0,E2,0,'Z线趋势下降中');DRAWTEXT_FIX(ISLASTBAR AND S4=1,0,E4,0,'Z线考虑卖出');DRAWTEXT_FIX(ISLASTBAR AND S5=1,0,E5,0,'PDI突破MDI,有新多进场'); DRAWTEXT_FIX(ISLASTBAR AND S6=1,0,E6,0,'PDI跌破MDI,有新空进场'); DRAWTEXT_FIX(ISLASTBAR AND S8=1,0,E8,0,'断头铡刀:,卖出'),COLORGREEN; DRAWTEXT_FIX(ISLASTBAR AND S9=1,0,E9,0,'5日死叉10均线,短线卖出'); DRAWTEXT_FIX(ISLASTBAR AND S10=1,0,E10,0,'5日死叉10日均量,卖出'); DRAWTEXT_FIX(ISLASTBAR AND S11=1,0,E11,0,'DIFF下穿DEA,空头形成,卖出'); DRAWTEXT_FIX(ISLASTBAR AND S12=1,0,E12,0,'三死叉见顶,卖出'),COLORFF00FF; DRAWTEXT_FIX(ISLASTBAR AND S13=1,0,E13,0,'多方溃败,卖出'),COLORGREEN; DRAWTEXT_FIX(ISLASTBAR AND S14=1,0,E14,0,'小心主力出逃');。

通达信四种涨停板主图指标公式

通达信四种涨停板主图指标公式

通达信四种涨停板主图指标公式N:=21;N1:=10;Q:=10;TTJ:=BARSLAST((VOL=HHV(VOL,N)));K0:=TTJ=0;K111:=SUMBARS(K0,1);K2:=SUMBARS(K0,2);K3:=SUMBARS(K0,3);K4:=SUMBARS(K0,4);K5:=SUMBARS(K0,5);K6:=SUMBARS(K0,6);K7:=SUMBARS(K0,7);K8:=SUMBARS(K0,8);K9:=SUMBARS(K0,9);K10:=SUMBARS(K0,10);A111:(K111<=30,REF(C,K111-1)*1.002),COLOREA91B5,NODRAW;AA:STICKLINE(K111<=30,REF(C,K111-1)*1.002,REF(C,K111-1),10,0),COLOREA91B5;B111:=(K2<=30,REF(C,K2-1)*1.002),COLORWHITE,NODRAW,LINETHICK1;AA1:=REF(H,N1)=HHV(H,2*N1+1);QY:=BACKSET(AA1,N1+1);CC:=FILTER(QY,N1) AND H=HHV(H,N1+1);DDD:=BARSLAST(CC);GDTS:=IF(CC,CURRBARSCOUNT,0);DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);GDCS1:=CONST(DINGBUTS);GDCS13:=CONST(REF(HIGH,GDCS1-1));XG1:=BACKSET(ISLASTBAR,GDCS1);C1:(XG1,GDCS13,GDCS13),COLORRED,NODRAW,LINETHICK 1;STICKLINE(XG1,GDCS13,GDCS13,1,0),COLORRED;AAA:=(3*C+H+L+O)/6;VAR21:=(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;TJ1:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>VAR21;立桩量:=FILTER(TJ1,5);STICKLINE(CLOSE,REF(LOW,BARSLAST(立桩量)),REF(LOW,BARSLAST(立桩量)),1,0),COLORYELLOW;{STICKLINE(CLOSE,REF(HIGH,BARSLAST(立桩量)),REF(HIGH,BARSLAST(立桩量)),1,0),COLORCYAN;}三日不破:=MIN(MIN(L,REF(L,1)),REF(L,2))>=REF(L,3);三日量缩:=(MAX(MAX(V,REF(V,1)),REF(V,2))<REF(V,3));三日价涨A:=C>=REF(C,1);三日价涨C:=MIN(MIN(C,REF(C,1)),REF(C,2))>=REF(L,3);TIM:=IF(DATE<1140214,1,0);四日前倍量柱:=(REF(VOL,3)>1.9*REF(VOL,4))*TIM;四日前高量柱:=(REF(VOL,3)>=REF(VOL,4) AND REF(VOL,3)<1.9*REF(VOL,4) AND 三日量缩)*TIM;前三引用不成立:=COUNT(REF(四日前倍量柱,1) AND (REF(三日不破,1) OR REF(三日价涨C,1)),3)=0 AND COUNT(REF(四日前高量柱,1) AND (REF(三日不破,1) OR REF(三日价涨C,1)),3)=0;倍量黄金柱:=四日前倍量柱 AND 三日量缩 AND 三日不破 AND 三日价涨A AND 前三引用不成立;高量黄金柱:=四日前高量柱 AND 三日量缩 AND 三日不破 AND三日价涨A AND 前三引用不成立;黄金柱:=倍量黄金柱 OR 高量黄金柱;BACKSET101:=BACKSET(黄金柱,4);FILTER101:=FILTER(BACKSET101,3);牛熊线:=SUMBARS(FILTER101,1);STICKLINE(牛熊线,REF(L,牛熊线-2),REF(L,牛熊线-2),0.0001,0),COLORGREEN;{DRAWTEXT(ISLASTBAR,REF(L,牛熊线-2)*0.99,CON2STR(REF(L,牛熊线-2),2)),COLORGREEN,LINETHICK1;}E1:REF(L,牛熊线-2),COLORGREEN,NODRAW,LINETHICK1;{红心板:吸货板,短线比较稳定;绿心板:中继板,继续上涨中出现;空心板:疯板,要么暴涨,要么止损;蓝心板:自救板,回调中出现。

通达信指标公式源码 天天涨停完美组合 主副图指标

通达信指标公式源码 天天涨停完美组合 主副图指标

主图公式:N:=20;N1:=7;N2:=69;T1:=IF((DATE<=1341231),1,0);M3:=EMA(CLOSE,3);M8:EMA(CLOSE,8),COLOR008000;M13:EMA(M8,13),COLOR0000FF;M62:EMA(M8,55),COLORF0F000;VAR1:=EMA(M13,62);M81:EMA(M62,81),COLOR00FFFF;M144:EMA(VAR1,144),LINETHICK2,COLOR0000FF;M250:EMA(VAR1,250),POINTDOT,LINETHICK2,COLORF00FF0;VAR2:=(CLOSE+HIGH+LOW)/(3);VAR3:=(EMA(VAR2,10))*(T1);VAR4:=(REF(VAR3,1))*(T1);STICKLINE((VAR3>VAR4),VAR3,VAR4,4,0),COLOR00FFFF; STICKLINE((VAR3<VAR4),VAR3,VAR4,4,0),COLORFF0000;VAR5:=((REF(HIGH,1)+REF(LOW,1))/(2))*(T1);VAR6:=MA(CLOSE,N)+((2)*(STD(CLOSE,N)))*(T1);DRAWTEXT(CROSS(VAR3,VAR4),(VAR3)*(0.98),'★'),COLOR00FFFF; DRAWTEXT(CROSS(VAR5,VAR6),(HIGH)*(1.04),'↓卖'),COLOR008000;VAR7:=REF(CLOSE,1);VAR8:=((SMA(MAX(CLOSE-VAR7,0),N1,1))/(SMA(ABS(CLOSE-VAR7),N1,1)))*(100);VAR9:=CROSS(N2,VAR8);VARA:=(FILTER(VAR9,4))*(T1);DRAWTEXT(VARA,(HIGH)*(1.04),'↓卖'),COLORFFFFFF;VARB:=((2)*(CLOSE)+HIGH+LOW)/(4);VARC:=LLV(LOW,34);VARD:=HHV(HIGH,34);VARE:=(EMA(((VARB-VAR1)/(VAR5-VAR1))*(100),7))*(T1);VARF:=(EMA((0.667)*(REF(VARE,1))+(0.333)*(VARE),5))*(T1);DRAWTEXT(IF(((COUNT((CLOSE<REF(CLOSE,1)),8))/(8)>0.6) AND (VOL>=(1.5)*(MA(VOL,5))) AND COUNT((VARE>=VARF),3) AND (REF(LOW,1)=LLV(LOW,120)),1,0),LOW,'●买进'),COLORFF00FF;DRAWTEXT(IF(((COUNT((CLOSE<REF(CLOSE,1)),13))/(13)>0.6) AND COUNT((VARE>VARF),6) AND (REF(LOW,5)=LLV(LOW,120)) AND REF((CLOSE>=OPEN),4) AND REF((CLOSE>OPEN),3) AND REF((CLOSE>OPEN),2) AND REF((OPEN>CLOSE),1) AND (OPEN>REF(CLOSE,1)),1,0),LOW,'●买进'),COLOR00FFFF;VAR10:=(MA(CLOSE,80)-(MA(CLOSE,10))/(3))*(T1);DRAWTEXT(IF((CLOSE<VAR10) AND ((VOL)/(240)>(MA(VOL,5))/(240)) AND (CLOSE>(REF(CLOSE,1))*(1.08)) AND (CLOSE<(MA(CLOSE,13))*(1.3)),1,0),LOW,'●抄底'),COLOR0000FF;副图公式:N:=5;VAR1:4*SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1),3.2,1),COLORY ELLOW,LINETHICK0;VAR2:8,COLORGREEN,LINETHICK0;上升在即: IF(CROSS(VAR1,VAR2),80,0),STICK,COLOR0000CC,LINETHICK2;专吸庄血: IF(VAR1<=8,25,0),STICK,COLORWHITE,LINETHICK2;DRAWTEXT(CROSS(VAR1,VAR2),80,'准备买入'),COLOR00FFFF;VARO5:=LLV(LOW,27);VARO6:=HHV(HIGH,34);VARO7:=EMA((CLOSE-VARO5)/(VARO6-VARO5)*4,4)*25;建仓区: IF((VARO7<10),80,100) ,COLOR00CCFF,LINETHICK1;0,LINETHICK2 ,COLORFFCC00;。

通达信指标公式源码 通达信涨停反包擒牛选股副图源码

通达信指标公式源码 通达信涨停反包擒牛选股副图源码

《涨停反包擒牛战法轻松抓住妖股》要点如下:何为涨停反包?涨停反包通常K线形态是:第一天涨停(或涨幅大于7%),第二天收阴线,第三天涨停大阳线反包阴线(往上吞没阴线实体一半以上)。

涨停反包意味着情绪反转,后续还有新高!涨停反包个股要义:1、流通市值小,一般流通市值小于60亿,次新股反包现象居多,其次是高送转,再次是在炒并购重组(包含股权转让概念)。

2、题材概念处于刚刚启动阶段,K线看起来像要涨又要跌,让散户又不敢,能起到出其不意攻其不备的效果;3、中间的阴线是主力刻意在洗盘吸筹。

把恐高者吓出去,在相对低位以高换手继续吸筹;涨停阳线竖起后立马大阴盖下,手法比较极端,效果也会很好;4、题材足够大,能快速吸引游资和散户们的眼球,一旦启动反包,有一呼百应的效果,千金难买的龙回头,为后面继续疯炒空中加油。

小结:低位阳包阴,后续涨幅空间大;高位阳包阴,风险加大,收益有限,朋友们酌情考虑!题材方面如高送转:每股公积金>=1(即有能力转增);每股未分配利润>0(大于0即可,你也可以设置大于1);流通市值小于60亿(中小市值的公司有股本扩张的欲望);本选股指标是根据K线形态来进行的,这种形态不多,如果再增加题材方面的条件,选出的票很少甚至选不出,所以你可以屏蔽题材方面的条件,就是用{ }把题材条件括起来即可。

ZF:=(C/REF(C,1)-1)*100;AZ:=RANGE(ZF,1.07,1.1) OR C=H;A1:=REF(AZ,2);A2:=REF(C,1)<REF(O,1);A3:=C>(REF(C,1)+REF(C,1))/1.9;A4:=(C*FINANCE(7)/100000000)<60;{流通市值}A5:=FINANCE(34)>5;{每股净资产}A6:=FINANCE(18)>1;{每股公积金}A7:=FINANCE(32)>0.5;{未分配利润}A8:=FINANCE(25)/FINANCE(1)>0.5;{每股经营现金流}XG:A1 AND A2 AND A3 AND A4 AND A5 AND A6 AND A7 AND A8;。

通达信指标公式源码 自用涨停主图指标

通达信指标公式源码 自用涨停主图指标

涨停:=BETWEEN(CLOSE/REF(CLOSE,1),1.0984,1.110) AND C=H AND C>O; MA5:MA(CLOSE,5),COLORWHITE;MA10:MA(CLOSE,10),COLORYELLOW;MA20:MA(CLOSE,30),COLORGREEN;MA60:MA(CLOSE,60),COLORBROWN,DOTLINE;MA120:MA(CLOSE,120),COLORLIMAGENTA,DOTLINE;DRAWICON(CROSS(MA10,MA20),MA20,1);DRAWICON(CROSS(MA20,MA60),MA60,1);DRAWICON(CROSS(MA20,MA120),MA120,1);DRAWICON(CROSS(MA60,MA120),MA60,1);反弹托:=MA5>MA20 AND MA5>MA20 AND MA20<MA60 AND MA60<MA120 AND CROSS(MA10,MA20);月价托:=MA5>MA20 AND MA20>MA60 AND MA60>MA120 AND MA5>MA20 AND CROSS(MA10,MA20);季价托:=MA20>MA60 AND MA20>MA60 AND CROSS(MA20,MA60);短长价托:=MA5>MA60 AND MA5>MA10 AND CROSS(MA10,MA60);半年托:=MA60>MA120 AND MA60>MA120 AND CROSS(MA60,MA120);熊来:=MA60<MA120 AND MA60<MA120 AND CROSS(MA120,MA60);月蜘蛛:=MA5>MA10 AND MA10>MA20 AND CROSS(MA5,MA20)AND CROSS(MA10,MA20);DRAWTEXT(月蜘蛛,MA20-0.08,'△蜘'),COLORMAGENTA;DRAWTEXT(反弹托,MA20-0.08,'△反弹'),COLORMAGENTA;DRAWTEXT(月价托,MA20-0.1,'△月托'),COLORMAGENTA;DRAWTEXT(季价托,MA60-0.0.1,'△季托'),COLORMAGENTA;DRAWTEXT(短长价托,L+0.05,'△短长托'),COLOR36C0C1;DRAWTEXT(半年托,MA120-0.05,'△牛来'),COLORRED;DRAWTEXT(熊来,MA60+0.05,'▽熊来'),COLORGREEN;压:=MA10<MA20 AND MA20>MA10 AND CROSS(MA20,MA10); DRAWTEXT(压,MA20+0.012,'▽压'),COLORYELLOW;VOL5:=MA(VOL,5),COLORWHITE; {好}VOL10:=MA(VOL,10),COLORYELLOW;VOL40:=MA(VOL,40),COLORFF00FF ;量托:=VOL5>=VOL40 AND CROSS(VOL10,VOL40) ANDREF(VOL10,1)<REF(VOL40,1);DRAWTEXT(量托,L-0.012,'量'),COLORWHITE;AA1:=BARSLAST(MA60>MA20 AND (MA20=MA10 OR MA20>MA10));BB1:=REF(COUNT(C<MA60,AA1)=AA1,1);CC1:=CROSS(C,MA60) AND VOL>MA(VOL,5) AND(C-REF(C,1))/REF(C,1)*100>3;芙蓉出水:=BB AND CC1,COLOR00FF00;DRAWTEXT(芙蓉出水,H+0.05,'△芙'),COLORFF00FF;STICKLINE(芙蓉出水,H+2,L-2,0.001,0),COLORYELLOW,DOTLINE;R1:=(C>REF(C,1) AND C>REF(C,2));R2:=(REF(R1,1) AND C<=REF(C,1) AND C>=REF(C,2));R3:=(REF(R2,1) AND C>=REF(C,1) AND C<=REF(C,2));R4:=(REF(R3,1) AND C<=REF(C,1) AND C>=REF(C,2));R5:=(REF(R4,1) AND C>=REF(C,1) AND C<=REF(C,2));R6:=(REF(R5,1) AND C<=REF(C,1) AND C>=REF(C,2));R7:=(REF(R6,1) AND C>=REF(C,1) AND C<=REF(C,2));R8:=(REF(R7,1) AND C<=REF(C,1) AND C>=REF(C,2));R9:=(REF(R8,1) AND C>=REF(C,1) AND C<=REF(C,2));RA:=(REF(R9,1) AND C<=REF(C,1) AND C>=REF(C,2));RB:=(REF(RA,1) AND C>=REF(C,1) AND C<=REF(C,2));RC:=(REF(RB,1) AND C<=REF(C,1) AND C>=REF(C,2));RD:=(C<REF(C,1) AND C<REF(C,2));RE:=(REF(RD,1) AND C>=REF(C,1) AND C<=REF(C,2));RF:=(REF(RE,1) AND C<=REF(C,1) AND C>=REF(C,2));R10:=(REF(RF,1) AND C>=REF(C,1) AND C<=REF(C,2));R11:=(REF(R10,1) AND C<=REF(C,1) AND C>=REF(C,2));R12:=(REF(R11,1) AND C>=REF(C,1) AND C<=REF(C,2));R13:=(REF(R12,1) AND C<=REF(C,1) AND C>=REF(C,2));R14:=(REF(R13,1) AND C>=REF(C,1) AND C<=REF(C,2));R15:=(REF(R14,1) AND C<=REF(C,1) AND C>=REF(C,2));R16:=(REF(R15,1) AND C>=REF(C,1) AND C<=REF(C,2));R17:=(REF(R16,1) AND C<=REF(C,1) AND C>=REF(C,2));R18:=(REF(R17,1) AND C>=REF(C,1) AND C<=REF(C,2));R19:=((REF(RD OR RE OR RF OR R10 OR R11 OR R12 OR R13 OR R14 OR R15OR R16 OR R17 OR R18,1)) AND R1);R1A:=((REF(R1 OR R2 OR R3 OR R4 OR R5 OR R6 OR R7 OR R8 OR R9 OR RA OR RB OR RC,1)) AND RD);蓝心板:=REF(RD OR RE OR RF OR R10 OR R11 OR R12 OR R13 OR R14 OR R15 OR R16 OR R17 OR R18,1);RSV9:=(C-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K1:=SMA(RSV9,3,1);DK1:=K1-REF(K1,1);出手就赢:=IF(DK1>7 AND REF(DK1,1)<0 AND (DK1-REF(DK1,1))>9,50,0);绿心板:=(出手就赢=50 OR REF("KDJ.J",1)<0) AND "KDJ.J">0;红心板:=蓝心板AND 绿心板;绿心过滤:=IF((蓝心板),DRAWNULL,绿心板);蓝心过滤:=IF((绿心板),DRAWNULL,蓝心板);STICKLINE(涨停,O,C,3.6,1),COLORYELLOW;STICKLINE(涨停AND 蓝心过滤,O,C,0.4,0),COLORBLUE;STICKLINE(涨停AND 绿心过滤,O,C,0.4,0),COLORGREEN;STICKLINE(涨停AND 红心板,O,C,0.4,0),COLORRED;AAA:=CONST(HHV(H,90));AA2:=AMOUNT/V;BB2:=L<AA1*0.9;CC2:=(C-REF(C,1))/REF(C,1)*100>1.2;DD2:=L<MA(C,5)*0.921;EE2:=V<MA(V,5)*1.5;老鼠仓:=BB2 AND CC2 AND DD2 AND EE2,LINETHICK0;DRAWTEXT(老鼠仓,(LOW* 0.99),'老鼠仓'),COLOR40CCFF;A74:=MA(CLOSE,20);A75:=(CLOSE > MA(CLOSE,5));A76:=(MA(CLOSE,5) > MA(CLOSE,10));A77:=(CLOSE > MA(CLOSE,10));A78:=(MA(CLOSE,5) > MA(CLOSE,20));A79:=(CLOSE > MA(CLOSE,20));A710:=REF(A74,1);A711:=(A74 > A710);AVX:=(((((IF(A75,10,(0 - 10)) + IF(A76,10,(0 - 10))) + IF(A77,10,(0 - 10))) + IF(A78,10,(0 - 10))) + IF(A79,10,(0 - 10))) + IF(A711,10,(0 - 10))); DSLX:=(CLOSE / INDEXC);DSLX1:=MA(DSLX,5);DSLX2:=MA(DSLX,10);V1:=MA(VOL,5);V2:=MA(VOL,10);T1:=CONST(IF(C<200 AND ((CROSS(AVX,1) AND (V1 >= V2)) AND (DSLX >= DSLX1)),1,0));T2:=CONST(IF(C<200 AND ((CROSS(AVX,1) AND (V1 < V2)) AND (DSLX >=DSLX1)),1,0));T3:=CONST(IF(C<200 AND ((CROSS(AVX,1) AND (V1 > V2)) AND (DSLX < DSLX1)),1,0));T4:=CONST(IF(C<200 AND ((CROSS(AVX,1) AND (V1 <= V2)) AND (DSLX < DSLX1)),1,0));T5:=CONST(IF(C<200 AND ((CROSS(1,AVX) AND (V1 >= V2)) AND (DSLX >= DSLX1)),1,0));T6:=CONST(IF(C<200 AND ((CROSS(1,AVX) AND (V1 < V2)) AND (DSLX >= DSLX1)),1,0));T7:=CONST(IF(C<200 AND ((CROSS(1,AVX) AND (V1 >= V2)) AND (DSLX < DSLX1)),1,0));T8:=CONST(IF(C<200 AND ((CROSS(1,AVX) AND (V1 < V2)) AND (DSLX < DSLX1)),1,0));T9:=CONST(IF(C<200 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND(V1 >= V2)) AND (DSLX >= DSLX1)),1,0));T10:=CONST(IF(C<200 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 < V2)) AND (DSLX >= DSLX1)),1,0));T11:=CONST(IF(C<200 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND(V1 >= V2)) AND (DSLX < DSLX1)),1,0));T12:=CONST(IF(C<200 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 < V2)) AND (DSLX < DSLX1)),1,0));T13:=CONST(IF(C<200 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 >= V2)) AND (DSLX >= DSLX1)),1,0));T14:=CONST(IF( C<200 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 < V2)) AND (DSLX >= DSLX1)),1,0));T15:=CONST(IF(C<200 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 >= V2)) AND (DSLX < DSLX1)),1,0));T16:=CONST(IF(C<200 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 < V2)) AND (DSLX < DSLX1)),1,0));T17:=CONST(IF(C>200 AND (CROSS(AVX,1) AND (V1 >= V2)),1,0));T18:=CONST(IF(C>200 AND (CROSS(AVX,1) AND (V1 >= V2)),1,0));T19:=CONST(IF(C>200 AND (CROSS(AVX,1) AND (V1 < V2)),1,0));T20:=CONST(IF(C>200 AND (CROSS(1,AVX) AND (V1 >= V2)),1,0));T21:=CONST(IF(C>200 AND (CROSS(1,AVX) AND (V1 < V2)),1,0));T22:=CONST(IF(C>200 AND (((AVX >= 1) AND (REF(AVX,1) > 0)) AND(V1 >= V2)),1,0));T23:=CONST(IF(C>200 AND (((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 < V2)),1,0));T24:=CONST(IF(C>200 AND (((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 >= V2)),1,0));T25:=CONST(IF(C>200 AND (((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 < V2)),1,0));DRAWTEXT(T1=1 AND CURRBARSCOUNT=70,AAA-(AAA*0.03),'量能理想,明显走强,中线参与,仓位在2/3左右'),COLORFF00FF ;,'走势趋强,还显不足,短线进场,仓位在1/2左右'),COLORFF00FF ; DRAWTEXT(T3=1 AND CURRBARSCOUNT=70,AAA-(AAA*0.03),'量价良好,没有明显走强,短线进场,仓位1/2左右'),COLORFF00FF ; DRAWTEXT(T4=1 AND CURRBARSCOUNT=70,AAA-(AAA*0.03),'形态尚可,量能不足,未完全走强,短线参与,仓位1/3左右'),COLORFF00FF ; DRAWTEXT(T5=1 AND CURRBARSCOUNT=70,AAA-(AAA*0.03),'形态变坏,重仓者减持大半,清仓者观望'),COLORFF00FF ;DRAWTEXT(T6=1 AND CURRBARSCOUNT=70,AAA*0.98,'随大盘一起下跌,明显缩量走势,考虑到风险,减持或清仓'),COLORFF00FF ; DRAWTEXT(T7=1 AND CURRBARSCOUNT=70,AAA-(AAA*0.03),'该股放量下跌,走势明显偏弱,离场观望'),COLORFF00FF ;DRAWTEXT(T8=1 AND CURRBARSCOUNT=70,AAA-(AAA*0.03),'该股缩量下跌,走势偏弱,离场观望。

通达信涨停板妖股第二波副图选股指标源码编程思路破译

通达信涨停板妖股第二波副图选股指标源码编程思路破译

通达信涨停板妖股第二波副图选股指标源码编程思路破译编程思路破译选股指标X_1赋值:(收盘价-1日前的收盘价)/1日前的收盘价*100>=9.9X_2赋值:上次1日前的最近2日一直存在X_1距今天数<30X_3赋值:最近30-2+1日存在最近2日一直存在收盘价/1日前的收盘价>1.095ANDCLOSE=最高价X_4赋值:如果模糊匹配品种名称,返回0,否则返回1X_5赋值:当前流通股本(手)/1000000<=35X_6赋值:统计30日中满足X_3的天数>0X_7赋值:X_4 AND X_5 AND X_6X_8赋值:(2*收盘价+最高价+最低价)/4的5日简单移动平均X_9赋值:X_8*102/100X_10赋值:X_8*(200-102)/100X_11赋值:(2*收盘价+最高价+最低价)/4-收盘价的20日简单移动平均的绝对值/收盘价的20日简单移动平均X_12赋值:以X_11为权重收盘价的动态移动平均X_13赋值:(1+7/100)*X_12X_14赋值:(1-7/100)*X_12X_15赋值:1日前的收盘价<=X_14X_16赋值:收盘价>=X_14X_17赋值:收盘价的20日指数移动平均X_18赋值:收盘价的21日指数移动平均X_19赋值:收盘价的22日指数移动平均X_20赋值:收盘价的19日指数移动平均X_21赋值:最高价的5日简单移动平均X_22赋值:最高价的4日简单移动平均X_23赋值:1日前的收盘价<=X_17X_24赋值:1日前的收盘价<=X_18X_25赋值:1日前的收盘价<=X_19X_26赋值:1日前的收盘价<=X_20X_27赋值:收盘价>=X_21X_28赋值:1日前的收盘价<=X_21X_29赋值:1日前的收盘价<=X_22X_30赋值:收盘价>=X_21X_31赋值:收盘价>=X_22X_32赋值:X_23 OR X_24 OR X_25 OR X_26 OR X_15X_33赋值:收盘价>=X_17X_34赋值:收盘价>=X_18X_35赋值:收盘价>=X_19X_36赋值:X_33X_37赋值:最高价的6日简单移动平均X_38赋值:1日前的最高价的10日简单移动平均X_39赋值:1日前的收盘价<=X_38X_40赋值:收盘价>=X_38X_41赋值:1日前的收盘价<=X_37X_42赋值:收盘价>=X_37X_43赋值:收盘价的12日指数移动平均-收盘价的26日指数移动平均X_44赋值:X_43的9日指数移动平均X_45赋值:(X_43-X_44)*2X_46赋值:X_43<=1X_47赋值:(收盘价的3日简单移动平均+收盘价的6日简单移动平均+收盘价的12日简单移动平均+收盘价的24日简单移动平均)/4 X_48赋值:1日前的收盘价<=X_47X_49赋值:(收盘价-收盘价的60日简单移动平均)/收盘价的60日简单移动平均的绝对值<3 AND (收盘价-1日前的收盘价)/收盘价*100的10日累和<(-5)X_50赋值:(收盘价-1日前的收盘价)/收盘价*100的25日累和<(-1)X_51赋值:(收盘价-1日前的收盘价)/1日前的收盘价*100的3日累和<5X_52赋值:收盘价的8日指数移动平均X_53赋值:1日前的收盘价<=X_52X_54赋值:(收盘价-3日前的收盘价)/3日前的收盘价*100<(-3)X_55赋值:X_54=3X_56赋值:1日前的X_54=3X_57赋值:(收盘价/1日前的收盘价-1)*100X_58赋值:2日前的X_57的2日累和<0输出AA:X_4=1 AND X_7 AND X_2 AND X_41 AND X_42 AND X_58,画洋红色X_59赋值:收盘价/1日前的收盘价>1.057X_60赋值:统计25日中满足AA的天数>0X_61赋值:X_60 AND X_33输出EE:X_4=1 AND X_7 AND X_2 AND X_39 AND X_41 AND X_53 AND X_40当满足条件AA时,在0和1位置之间画柱状线,宽度为0,0不为0则画空心柱.,画红色当满足条件AA时,在0和0.5位置之间画柱状线,宽度为0.8,0不为0则画空心柱.当满足条件AA时,在0和0.5位置之间画柱状线,宽度为1,0不为0则画空心柱.。

通达信指标公式源码 涨停板主图

通达信指标公式源码 涨停板主图

支撑价:LLV(LOW,19) ,COLORGREEN,LINETHICK3;阻力价:HHV(HIGH,19),COLORBLUE, LINETHICK3;VAR1:=EMA(CLOSE,12)-EMA(CLOSE,26);JL01:=MA(C,3);LJL07:=(3*C+L+O+H)/6;牛线:(20*LJL07+19*REF(LJL07,1)+18*REF(LJL07,2)+17*REF(LJL07,3)+16*REF (LJL07,4)+15*REF(LJL07,5)+14*REF(LJL07,6)+13*REF(LJL07,7)+12*REF(LJL 07,8)+11*REF(LJL07,9)+10*REF(LJL07,10)+9*REF(LJL07,11)+8*REF(LJL07, 12)+7*REF(LJL07,13)+6*REF(LJL07,14)+5*REF(LJL07,15)+4*REF(LJL07,16) +3*REF(LJL07,17)+2*REF(LJL07,18)+REF(LJL07,20))/210,COLORRED;马线:MA(牛线,5),COLORYELLOW,LINETHICK4,POINTDOT;等待:IF(JL01<=牛线,马线,DRAWNULL),COLORRED,LINETHICK4,POINTDOT; VAR1L:=(C>REF(C,1) AND C>REF(C,2));VAR2L:=(REF(VAR1L,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR3L:=(REF(VAR2L,1) AND C>=REF(C,1) AND C<=REF(C,2));VAR4L:=(REF(VAR3L,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR5L:=(REF(VAR4L,1) AND C>=REF(C,1) AND C<=REF(C,2));VAR6L:=(REF(VAR5L,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR7L:=(REF(VAR6L,1) AND C>=REF(C,1) AND C<=REF(C,2));VAR8L:=(REF(VAR7L,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR9L:=(REF(VAR8L,1) AND C>=REF(C,1) AND C<=REF(C,2));VARAL:=(REF(VAR9L,1) AND C<=REF(C,1) AND C>=REF(C,2));VARBL:=(REF(VARAL,1) AND C>=REF(C,1) AND C<=REF(C,2));VARCL:=(REF(VARBL,1) AND C<=REF(C,1) AND C>=REF(C,2));持股:IF(VAR1L OR VAR2L OR VAR3L OR VAR4L OR VAR5L OR VAR6L OR VAR7L OR VAR8L OR VAR9L OR VARAL OR VARBL OR VARCL,牛线,DRAWNULL),COLORRED,LINETHICK1;VARDL:=(C<REF(C,1) AND C<REF(C,2));VAREL:=(REF(VARDL,1) AND C>=REF(C,1) AND C<=REF(C,2));VARFL:=(REF(VAREL,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR1L0:=(REF(VARFL,1) AND C>=REF(C,1) AND C<=REF(C,2));VAR1L1:=(REF(VAR1L0,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR1L2:=(REF(VAR1L1,1) AND C>=REF(C,1) AND C<=REF(C,2));VAR1L3:=(REF(VAR1L2,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR1L4:=(REF(VAR1L3,1) AND C>=REF(C,1) AND C<=REF(C,2));VAR1L5:=(REF(VAR1L4,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR1L6:=(REF(VAR1L5,1) AND C>=REF(C,1) AND C<=REF(C,2));VAR1L7:=(REF(VAR1L6,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR1L8:=(REF(VAR1L7,1) AND C>=REF(C,1) AND C<=REF(C,2));持币:IF(VARDL OR VAREL OR VARFL OR VAR1L0 OR VAR1L1 OR VAR1L2 OR VAR1L3 OR VAR1L4 OR VAR1L5 OR VAR1L6 OR VAR1L7 OR VAR1L8,牛线,DRAWNULL),COLORGREEN,LINETHICK1;V5日涨跌%: (C-REF(CLOSE,5))/REF(CLOSE,5)*100,COLORWHITE,NODRAW; V10日涨跌%:(C-REF(CLOSE,10))/REF(CLOSE,10)*100,COLORYELLOW,NODRAW;V30日涨跌%:(C-REF(CLOSE,30))/REF(CLOSE,30)*100,COLORMAGENTA,NODRAW; 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;STICKLINE(C>=O,C,O,1.5,0),COLOR0000A5;STICKLINE(C>=O,C,O,1,0),COLOR0000C5;STICKLINE(C>=O,C,O,0.5,0),COLOR0000E5;STICKLINE(C>=O,H,L,0,0),COLOR0000F5;STICKLINE(C<O,C,O,3,0),COLOR353500;STICKLINE(C<O,C,O,2.5,0),COLOR454500;STICKLINE(C<O,C,O,2,0),COLOR555500;STICKLINE(C<O,C,O,1.5,0),COLOR656500;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;VAR2:=EMA(VAR1,9);VAR3:=(CLOSE*2.5/100+CLOSE);VAR4:EMA(C,3), LINETHICK4,POINTDOT;VAR5:=LLV(HIGH,240);VAR6:=100*(CLOSE-VAR5)/VAR5;VAR7:=REF(LLV(CLOSE,480),1);VAR8:=REF(HHV(CLOSE,480),1);VAR9:=100*(CLOSE-VAR7)/(VAR8-VAR7);VARA:=(CLOSE-LLV(CLOSE,981))/(HHV(CLOSE,981)-LLV(CLOSE,981))*100; VARB:=(CLOSE-LLV(CLOSE,393))/(HHV(CLOSE,393)-LLV(CLOSE,393))*100;VARC:=(CLOSE-LLV(LOW,981))/(HHV(HIGH,981)-LLV(LOW,981))*100; VARD:=(CLOSE-LLV(LOW,393))/(HHV(HIGH,393)-LLV(LOW,393))*100; VARE:=VARC>98.5 OR VARD>98.5;VARF:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),5) /4;VAR13:=VARA=0 AND VARC=0 AND VAR6<0;VAR14:=VARA=100 AND VARC=100;VAR15:=VARB=0 OR VARD=0 AND VAR9<0;VAR16:=VARB=100 AND VARD=100;VAR17:=VAR6<0 AND VAR9<0;VAR18:=VAR13 AND VAR15;VAR19:=VAR14 AND VAR16;VAR1B:=SMA(MAX(CLOSE-REF(CLOSE,1),0),49,1)/SMA(ABS(CLOSE-REF(CLO SE,1)),6,1)*100;VAR1C:=SMA(MAX(CLOSE-REF(CLOSE,1),0),14,1)/SMA(ABS(CLOSE-REF(CLO SE,1)),14,1)*100;VAR1D:=BARSCOUNT(CLOSE);VAR1E:=VAR1B<20 AND VAR1C<23 AND VAR1D>35;VAR1F:=VAR1E AND COUNT(VAR1E,1)=1;VAR20:=REF(CLOSE,1);VAR21:=SMA(MAX(CLOSE-VAR20,0),34,1)/SMA(ABS(CLOSE-VAR20),7,1)*100; VAR22:=SMA(MAX(CLOSE-VAR20,0),13,1)/SMA(ABS(CLOSE-VAR20),13,1)*10 0;VAR23:=BARSCOUNT(CLOSE);VAR24:=VAR21<20 AND VAR22<23 AND VAR23>35;VAR25:=VARA=0 AND VARF<1.2 AND VAR17;VAR27:=VAR18 AND VARF<1.2 AND VAR17;VAR29:=SUM(HIGH-OPEN,77)/SUM(OPEN-LOW,77)*100;VAR2A:=SUM(MAX(0,HIGH-REF(CLOSE,1)),77)/SUM(MAX(0,REF(CLOSE,1)-LO W),77)*100;VAR2B:=CROSS(VAR29,69) AND CROSS(VAR2A,80)<150;VAR2C:=VAR24 AND VAR1F AND COUNT(VAR24,30)=1;买点:=VAR25 AND VAR2B;绝对卖点:=(VAR19 OR VARA)AND VARF>23 OR VARE ;VAR2D:=VAR1F AND VAR2C AND VAR25;股海万元户:=(CLOSE/REF(CLOSE,1)>1.04 AND (CLOSE>10.8 ANDCLOSE<10.83 OR CLOSE>6.86 AND CLOSE<6.88 OR CLOSE>13.82 AND CLOSE<13.84 OR CLOSE>7.28 AND CLOSE<7.3 OR CLOSE>12.4 AND CLOSE<12.42 OR CLOSE>22.33 AND CLOSE<22.35 OR CLOSE>4.68 AND CLOSE<4.7 OR CLOSE>26.29 AND CLOSE<26.31 OR CLOSE>7.65 AND CLOSE<7.67 OR CLOSE>13.4 AND CLOSE<13.42 OR CLOSE>7.58 AND CLOSE<7.6 OR CLOSE>20.43 AND CLOSE<20.45 OR CLOSE>19.57 AND CLOSE<19.59 OR CLOSE>6.26 AND CLOSE<6.28 OR CLOSE>7.14 AND CLOSE<7.16 OR CLOSE>6.61 AND CLOSE<6.63 OR CLOSE>11.9 ANDVOL<11.92 OR CLOSE>6.7 AND CLOSE<6.72 OR CLOSE>8.19 AND CLOSE<8.21));DRAWTEXT(FILTER(绝对卖点>0,3),H,'风险'), COLOR00FF00; DRAWTEXT(股海万元户>0,L,'☆追涨'),COLORYELLOW ;DRAWICON(买点>0,L,4);DRAWTEXT(买点>0,L,'扫描神针'),COLORF00FF0;DRAWTEXT(VARF<0.7 AND VAR27 AND VAR25>0,L,'抄底'),COLORYELLOW; STICKLINE(VAR2D>0,O,C,10,0), COLORYELLOW;DRAWTEXT(VAR2D>0,L,'大方神针'),COLORRED;DRAWICON(COUNT(REF(VAR4,1)<REF(VAR4,2),5)=5 ANDVAR4>REF(VAR4,1),L*0.98,5);DRAWICON(FILTER(COUNT(VAR6<0,5)AND CROSS(VAR6,0)ANDVARF>REF(VARF,1)AND C>O,3),L,11);DRAWICON(FILTER(REF(VAR4,1)>REF(VAR4,2)AND VAR4<REF(VAR4,1)AND VARF>17 AND VAR1>VAR2,5),H,12);DRAWICON(阻力价>REF(阻力价,1)AND CROSS(阻力价,VAR3)ANDC<O,H*1.02,6);Y:=CLOSE/REF(CLOSE,1)>1.07;X:=VOL>MA(VOL,5);A1:=Y AND X;DRAWTEXT(A1,MA(CLOSE,5),'攻涨停'),COLORMAGENTA;Z:=CLOSE/REF(CLOSE,1)<0.93;W:=VOL<MA(VOL,5);A2:=Z AND W;DRAWTEXT(A2,MA(CLOSE,5),'小心跌停'),COLORGREEN;。

通达信指标公式源码 大小底结合副图+选股 公布源码 通达信指标

通达信指标公式源码 大小底结合副图+选股 公布源码 通达信指标

大小底结合: 副图X_1:=6;X_2:=80;X_3:=REF(CLOSE,1);X_4:=SMA(MAX(CLOSE-X_3,0),18,1)/SMA(ABS(CLOSE-X_3),13,1)*100; X_5:=SMA(MAX(CLOSE-X_3,0),24,1)/SMA(ABS(CLOSE-X_3),20,1)*100; X_6:=BARSLAST(X_5<48)<=3 AND CROSS(X_4,X_5);X_7:=(CLOSE-MA(CLOSE,48))/MA(CLOSE,20)*100<(-12.5);X_8:=LLV(LOW,5);X_9:=HHV(HIGH,10);X_10:=EMA((CLOSE-X_8)/(X_9-X_8)*100,4);X_11:=EMA(0.667*REF(X_10,1)+0.333*X_10,2);X_12:=1011131;X_13:=IF(DATE<=X_12,X_7,0) OR IF(DATE<=X_12,X_2,0);X_15:=SMA(MAX(CLOSE-X_14,0),7,1)/SMA(ABS(CLOSE-X_14),7,1)*100;X_16:=SMA(MAX(CLOSE-X_14,0),13,1)/SMA(ABS(CLOSE-X_14),13,1)*100; X_17:=BARSLAST(X_16<43)<=3 AND CROSS(X_15,X_16);X_18:=(CLOSE-MA(CLOSE,43))/MA(CLOSE,20)*100<(-12.5);X_19:=LLV(LOW,5);X_20:=HHV(HIGH,10);X_21:=EMA((CLOSE-X_19)/(X_20-X_19)*100,4);X_22:=EMA(0.667*REF(X_21,1)+0.333*X_21,2);X_23:=1011131;X_24:=IF(DATE<=X_23,X_18,0) OR IF(DATE<=X_23,X_2,0);X_25:=0-(-1)*X_17 AND X_18 AND CROSS(X_21,X_22) AND X_21<=25;X_26:=REF(CLOSE,1);X_27:=SMA(MAX(CLOSE-X_26,0),7,1)/SMA(ABS(CLOSE-X_26),7,1)*100;X_28:=SMA(MAX(CLOSE-X_26,0),13,1)/SMA(ABS(CLOSE-X_26),13,1)*100; X_29:=BARSLAST(X_28<33)<=3 AND CROSS(X_27,X_28);X_30:=(CLOSE-MA(CLOSE,33))/MA(CLOSE,20)*100<(-12.5);X_31:=LLV(LOW,5);X_32:=HHV(HIGH,10);X_33:=EMA((CLOSE-X_31)/(X_32-X_31)*100,4);X_34:=EMA(0.667*REF(X_33,1)+0.333*X_33,2);X_35:=1011131;X_36:=IF(DATE<=X_35,X_30,0) OR IF(DATE<=X_35,X_2,0);小底小仓位:0-(-1)*X_29 AND X_30 AND CROSS(X_33,X_34) ANDX_33<=25,COLOR80FF00;DRAWICON(小底小仓位>0,0.8,23);X_37:=REF(CLOSE,1);X_38:=SMA(MAX(CLOSE-X_37,0),7,1)/SMA(ABS(CLOSE-X_37),7,1)*100;X_39:=SMA(MAX(CLOSE-X_37,0),13,1)/SMA(ABS(CLOSE-X_37),13,1)*100; X_40:=BARSLAST(X_39<23)<=3 AND CROSS(X_38,X_39);X_41:=(CLOSE-MA(CLOSE,23))/MA(CLOSE,20)*100<(-12.5);X_42:=LLV(LOW,5);X_43:=HHV(HIGH,10);X_44:=EMA((CLOSE-X_42)/(X_43-X_42)*100,4);X_45:=EMA(0.667*REF(X_44,1)+0.333*X_44,2);X_46:=1011131;X_47:=IF(DATE<=X_46,X_41,0) OR IF(DATE<=X_46,X_2,0);大底大仓位:0-(-1)*X_40 AND X_41 AND CROSS(X_44,X_45) ANDX_44<=25,COLORRED;DRAWTEXT_FIX(C>O,0.01,0.9,0,'室'),COLORyellow; DRAWICON(大底大仓位>0,0.8,24);大小底结合: 条件选股X_1:=6;X_2:=80;X_4:=SMA(MAX(CLOSE-X_3,0),18,1)/SMA(ABS(CLOSE-X_3),13,1)*100;X_5:=SMA(MAX(CLOSE-X_3,0),24,1)/SMA(ABS(CLOSE-X_3),20,1)*100;X_6:=BARSLAST(X_5<48)<=3 AND CROSS(X_4,X_5);X_7:=(CLOSE-MA(CLOSE,48))/MA(CLOSE,20)*100<(-12.5);X_8:=LLV(LOW,5);X_9:=HHV(HIGH,10);X_10:=EMA((CLOSE-X_8)/(X_9-X_8)*100,4);X_11:=EMA(0.667*REF(X_10,1)+0.333*X_10,2);X_12:=1011131;X_13:=IF(DATE<=X_12,X_7,0) OR IF(DATE<=X_12,X_2,0);X_14:=REF(CLOSE,1);X_15:=SMA(MAX(CLOSE-X_14,0),7,1)/SMA(ABS(CLOSE-X_14),7,1)*100;X_16:=SMA(MAX(CLOSE-X_14,0),13,1)/SMA(ABS(CLOSE-X_14),13,1)*100; X_17:=BARSLAST(X_16<43)<=3 AND CROSS(X_15,X_16);X_18:=(CLOSE-MA(CLOSE,43))/MA(CLOSE,20)*100<(-12.5);X_19:=LLV(LOW,5);X_20:=HHV(HIGH,10);X_21:=EMA((CLOSE-X_19)/(X_20-X_19)*100,4);X_22:=EMA(0.667*REF(X_21,1)+0.333*X_21,2);X_23:=1011131;X_24:=IF(DATE<=X_23,X_18,0) OR IF(DATE<=X_23,X_2,0);X_25:=0-(-1)*X_17 AND X_18 AND CROSS(X_21,X_22) AND X_21<=25;X_26:=REF(CLOSE,1);X_27:=SMA(MAX(CLOSE-X_26,0),7,1)/SMA(ABS(CLOSE-X_26),7,1)*100;X_28:=SMA(MAX(CLOSE-X_26,0),13,1)/SMA(ABS(CLOSE-X_26),13,1)*100; X_29:=BARSLAST(X_28<33)<=3 AND CROSS(X_27,X_28);X_30:=(CLOSE-MA(CLOSE,33))/MA(CLOSE,20)*100<(-12.5);X_31:=LLV(LOW,5);X_32:=HHV(HIGH,10);X_33:=EMA((CLOSE-X_31)/(X_32-X_31)*100,4);X_34:=EMA(0.667*REF(X_33,1)+0.333*X_33,2);X_35:=1011131;X_36:=IF(1<=X_35,X_30,0) OR IF(1<=X_35,X_2,0);X_37:=0-(-1)*X_29 AND X_30 AND CROSS(X_33,X_34) AND X_33<=25;X_38:=REF(CLOSE,1);X_39:=SMA(MAX(CLOSE-X_38,0),7,1)/SMA(ABS(CLOSE-X_38),7,1)*100;X_40:=SMA(MAX(CLOSE-X_38,0),13,1)/SMA(ABS(CLOSE-X_38),13,1)*100; X_41:=BARSLAST(X_40<23)<=3 AND CROSS(X_39,X_40);X_42:=(CLOSE-MA(CLOSE,23))/MA(CLOSE,20)*100<(-12.5);X_43:=LLV(LOW,5);X_44:=HHV(HIGH,10);X_45:=EMA((CLOSE-X_43)/(X_44-X_43)*100,4);X_46:=EMA(0.667*REF(X_45,1)+0.333*X_45,2);X_47:=1011131;X_48:=IF(1<=X_47,X_42,0) OR IF(1<=X_47,X_2,0);X_49:=0-(-1)*X_41 AND X_42 AND CROSS(X_45,X_46) AND X_45<=25; XG:X_37 OR X_49;。

通达信指标公式源码 涨停后缩量板副图主图选股指标

通达信指标公式源码 涨停后缩量板副图主图选股指标

涨停:=IF((C-REF(C,1))*100/REF(C,1)>=9.90,1,0);缩量涨停:=EVERY(涨停,2);DRAWTEXT(缩量涨停,H*1.03,'缩量涨停'),COLORGREEN;UU:=3;A88:=SUM(C*V,UU);B88:=SUM(V,UU);市场价值线:MA(A88/B88,7)COLORYELLOW,LINETHICK3;VAR41:=REF(CLOSE,1);VAR42:=((SMA(MAX((CLOSE - VAR41),0),7,1) / SMA(ABS((CLOSE -VAR41)),7,1)) * 100);VAR43:=((SMA(MAX((CLOSE - VAR41),0),13,1) / SMA(ABS((CLOSE -VAR41)),13,1)) * 100);VAR44:=((BARSLAST((VAR43 < 23)) <= 3) AND CROSS(VAR42,VAR43)); VAR45:=((((CLOSE - MA(CLOSE,23)) / MA(CLOSE,20)) * 100) < -12.5);VAR46:=LLV(LOW,5);VAR47:=HHV(HIGH,10);VAR48:=EMA((((CLOSE - VAR46) / (VAR47 - VAR46)) * 100),4);VAR49:=EMA(((0.667 * REF(VAR48,1)) + (0.333 * VAR48)),2);{VAR50:=1011131;VAR51:=(IF((DATE <= VAR50),VAR45,0) OR IF((DATE <= VAR50),VAR1,0));} DRAWTEXT((((0 - (-1 * VAR44)) AND VAR45) AND CROSS(VAR48,VAR49)) AND (VAR48 <=25),LOW*1.008,'急跌后超级大黑马'),COLORMAGENTA;DRAWICON((((0 - (-1 * VAR44)) AND VAR45) AND CROSS(VAR48,VAR49)) AND (VAR48 <=25),L-0.10,26);DRAWICON((((0 - (-1 * VAR44)) AND VAR45) AND CROSS(VAR48,VAR49)) AND (VAR48 <=25),L-0.38,26);持股线1:MA(CLOSE,15),COLORMAGENTA,LINETHICK5;MA10:MA(CLOSE,50),COLORBB0000;DRAWKLINE(H,O,L,C);{筹码峰}时长:=120;换手次数:=2;选择方式:=1;统计时长:IF(选择方式=1,CONST(SUMBARS(V/FINANCE(7)*100,换手次数)),时长),NODRAW;KK:=统计时长;高:=CONST(HHV(H,KK));低:=CONST(LLV(L,KK));XX:=(高-低);均价:=AMOUNT/V/100,NODRAW;L0:=低+XX*0/9;L1:=低+XX*1/9;L2:=低+XX*2/9;L3:=低+XX*3/9;L4:=低+XX*4/9;L5:=低+XX*5/9;L6:=低+XX*6/9;L7:=低+XX*7/9;L8:=低+XX*8/9;L9:=低+XX*9/9;MLZ:=SUM((CURRBARSCOUNT<KK+1)*V,KK),COLORWHITE;ML1:=SUM((CURRBARSCOUNT<KK+1 AND RANGE(均价,L0-0.001,L1+0.001))*V,KK)/MLZ;STICKLINE(CURRBARSCOUNT<CONST(INTPART(ML1*200)),(L0+L1*0.99)*0. 49,(L0+L1*0.99)*0.5,18,0),COLORFF5555;ML2:=SUM((CURRBARSCOUNT<KK+1 AND RANGE(均价,L1,L2+0.001))*V,KK)/MLZ;STICKLINE(CURRBARSCOUNT<CONST(INTPART(ML2*200)),(L1+L2*0.99)*0. 4999,(L1+L2*0.99)*0.5,18,0),COLORFFAA55;ML3:=SUM((CURRBARSCOUNT<KK+1 AND RANGE(均价,L2,L3+0.001))*V,KK)/MLZ;STICKLINE(CURRBARSCOUNT<CONST(INTPART(ML3*200)),(L2+L3*0.99)*0. 4999,(L2+L3*0.99)*0.5,18,0),COLORAAFF55;ML4:=SUM((CURRBARSCOUNT<KK+1 AND RANGE(均价,L3,L4+0.001))*V,KK)/MLZ;STICKLINE(CURRBARSCOUNT<CONST(INTPART(ML4*200)),(L3+L4*0.99)*0.4999,(L3+L4*0.99)*0.5,18,0),COLOR5FFF00;ML5:=SUM((CURRBARSCOUNT<KK+1 AND RANGE(均价,L4,L5+0.001))*V,KK)/MLZ;STICKLINE(CURRBARSCOUNT<CONST(INTPART(ML5*200)),(L4+L5*0.99)*0. 4999,(L4+L5*0.99)*0.5,18,0),COLORFFFFF0;ML6:=SUM((CURRBARSCOUNT<KK+1 AND RANGE(均价,L5,L6+0.001))*V,KK)/MLZ;STICKLINE(CURRBARSCOUNT<CONST(INTPART(ML6*200)),(L5+L6*0.99)*0. 4999,(L5+L6*0.99)*0.5,18,0),COLORFF0FFF;ML7:=SUM((CURRBARSCOUNT<KK+1 AND RANGE(均价,L6,L7+0.001))*V,KK)/MLZ;STICKLINE(CURRBARSCOUNT<CONST(INTPART(ML7*200)),(L6+L7*0.99)*0. 4999,(L6+L7*0.99)*0.5,18,0),COLOR509FDD;ML8:=SUM((CURRBARSCOUNT<KK+1 AND RANGE(均价,L7,L8+0.001))*V,KK)/MLZ;STICKLINE(CURRBARSCOUNT<CONST(INTPART(ML8*200)),(L7+L8*0.99)*0. 4999,(L7+L8*0.99)*0.5,18,0),COLORAA5DDD;ML9:=SUM((CURRBARSCOUNT<KK+1 AND RANGE(均价,L8,L9+0.001))*V,KK)/MLZ;STICKLINE(CURRBARSCOUNT<CONST(INTPART(ML9*200)),(L8+L9*0.99)*0. 4999,(L8+L9*0.99)*0.5,18,0),COLOR0055DD;STICKLINE(C/REF(C,1)>=1.096 AND H=C,O,C,2,0),COLORYELLOW;HJ_8:=(REF(CLOSE,3)-CLOSE)/REF(CLOSE,3)*100>5;HJ_9:=FILTER(HJ_8,10);HJ_10:=BARSLAST(HJ_9);HJ_11:=REF(HIGH,HJ_10+2);HJ_12:=REF(HIGH,HJ_10+1);HJ_13:=REF(HIGH,HJ_10);HJ_14:=MAX(HJ_11,HJ_12);HJ_15:=MAX(HJ_14,HJ_13);HJ_16:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>5;HJ_17:=HJ_10<150;HJ_18:=(OPEN-HJ_15)/HJ_15*100<30;HJ_19:=(CLOSE-LLV(LOW,HJ_10))/LLV(LOW,HJ_10)*100<50;HJ_20:=(CLOSE-REF(OPEN,5))/REF(OPEN,5)*100<30;HJ_21:=VOL/MA(VOL,5)<3.5;HJ_22:=(CLOSE-REF(CLOSE,89))/REF(CLOSE,89)*100<80;HJ_25:=HJ_16 AND HJ_17 AND HJ_18 AND HJ_19 AND HJ_20 AND HJ_21 AND HJ_22;暴利:=FILTER(HJ_25,15);MA54:=MA(CLOSE,54)NODRAW;PL1:=(((CLOSE-MA54)/MA54)<0.1);PL2:=(((CLOSE-MA10)/MA10)<0.3);偏离率:=(((PL1=1) AND (PL2=1))*0.2);平台突破:=((((偏离率=0) AND (REF(偏离率,1)=0.2)) AND (REF((COUNT((偏离率=0.2),10)=10),1)=1))*-0.1);妖股突破:=平台突破=-0.1;XDF:=(暴利OR 妖股突破);VARA:=DMA(AMOUNT/VOL/100,VOL/CAPITAL);VARAA:=DYNAINFO(7)/(REF(CLOSE,1))>1.05 AND (DYNAINFO(7)/O>1.05); FLIGA:=(VOL/REF(VOL,1)>1.2 AND COUNT(CLOSE>OPEN,1)) OR(LOW>REF(HIGH,1) AND COUNT(OPEN>CLOSE,1) AND VOL/REF(VOL,1)>1.2); 妖股:=XDF AND C/REF(C,1)>1.095 AND FLIGA AND VARAA;DRAWICON(妖股,H*1.0395,7);DRAWTEXT(XDF AND C/REF(C,1)>1.095 AND FLIGA AND VARAA,L*0.975,' 妖股'),COLORYELLOW;DRAWTEXT(XDF AND C/REF(C,1)>1.095 AND FLIGA AND VARAA,L*0.995,' 妖股'),COLORRED;DRAWTEXT_FIX(1,0.1,0.98,0,'艳红色线是持股线,黄线是反映市场价值线,接近收盘时股价上了黄色线就买进,股价在黄线之下的坚决不买,下黄线(收盘破红必跑) 毫不犹豫清仓,切记切记,做股票万万不要痴心妄想')COLORYELLOW; LC11:=REF(CLOSE,1),NODRAW;RSI11:=((SMA(MAX((CLOSE - LC11),0),3,1) / SMA(ABS((CLOSE - LC11)),3,1)) * 100);FF:=EMA(CLOSE,3);日:=150;昨前:=3;高1:=REF(HHV(H,日),昨前);低1:=REF(LLV(L,日),昨前);H1:=高1-(高1-低1)*0.191;H2:=高1-(高1-低1)*0.382;H3:=高1-(高1-低1)*0.5;H4:=高1-(高1-低1)*0.618;H5:=高1-(高1-低1)*0.809;顶:REFDATE(高1,DATE),COLORRED;低点:REFDATE(低1,DATE),DOTLINE,COLORRED;收盘破红必跑:MA(CLOSE,7)COLORRED,LINETHICK3;CG:MA((LOW+HIGH+CLOSE*2)/4,10);FL:HHV(CG,3);FS:IF(CG<FL,(CG-(FL-CG)),FL);FL1:HHV(CG,5);FS1:IF(CG<FL1,(CG-(FL1-CG)),FL1);FL2:HHV(CG,7);FS2:IF(CG<FL2,(CG-(FL2-CG)),FL2);FL3:HHV(CG,9),COLORFFABA3,LINETHICK2;FS3:IF(CG<FL3,(CG-(FL3-CG)),FL3);ZLZC1:=(HHV(H,144)-((HHV(H,144)-LLV(L,144))*0.618));ZLZC2:=(HHV(H,144)-((HHV(H,144)-LLV(L,144))*0.5));ZLZC3:=(HHV(H,144)-((HHV(H,144)-LLV(L,144))*0.382));POLYLINE:(FS3>MA(FS3,5),FS3);LC:=REF(CLOSE,1);RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);MTM1:=C-REF(C,1);DX:=100*EMA(EMA(MTM1,6),6)/EMA(EMA(ABS(MTM1),6 ),6);买:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) ANDCROSS(DX,MA(DX,2)),1,0);DRAWTEXT(FILTER(买=1,5),LOW-0.03,'拉升'),COLORGREEN; DRAWTEXT(FILTER(买=1,5),LOW-0.22,'拉升'),COLORWHITE;A63:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;A64:=SMA(A63,3,1);A5:=SMA(A64,3,1);A6:=3*A64-2*A5;A76:=C-REF(C,1);A68:=100*EMA(EMA(A76,6),6)/EMA(EMA(ABS(A76),6),6);买88:=LLV(A68,2)=LLV(A68,7) AND COUNT(A68<0,2) ANDCROSS(A68,MA(A68,2));DRAWTEXT(FILTER(买88=1,5),H+0.05,'买进'),COLORYELLOW; DRAWTEXT(FILTER(买88=1,5),LOW-0.25,'买进'),COLORYELLOW; STICKLINE(买88,OPEN,CLOSE,2.5,0)COLORMAGENTA;STICKLINE(买88,OPEN,CLOSE,1,0),COLORWHITE;。

通达信N字涨停幅图选股指标源码

通达信N字涨停幅图选股指标源码

通达信N字涨停幅图选股指标源码N字选股模型,顾名思义,就是以'N'字形态作为依据进行选股。

就跟N字形一样,追求的是暴涨暴跌洗盘之后再度暴涨拉升的力度,N字形中间的观察时间绝对不能超过3—4天,自攻击性长阳之后的总观察周期不超过5天,暴涨+快速回调+再度暴涨。

要点:上涨时倍量涨停,下跌时缩量调整,期间不能超过5天,再上涨,用涨停板来形成N字形态。

N字涨停指标举例:已更新!1、N字涨停幅图指标:NZ_1:=(1+M1/100)*MA(CLOSE,N2);NZ_2:=MA(CLOSE,5);NZ_3:=NZ_2;NZ_4:=NZ_3*1.1;NZ_5:=REF(CLOSE,1)*1.098-CLOSEREF( OPEN ,2);NZ_10:=REF(CLOSE,4)*1.098-REF(CLOSE,3)REF(OPEN,3);NZ_13:=REF(CLOSE,5)*1.098-REF(CLOSE,4)REF(OPEN,4);NZ_16:=REF(CLOSE,6)*1.098-REF(CLOSE,5)REF(OPEN,5);N字涨停:NZ_9 OR NZ_12 OR NZ_15 OR NZ_18;2、N字涨停选股公式:NZ_1:=(1+M1/100)*MA(CLOSE,N2);NZ_2:=MA(CLOSE,5);NZ_3:=NZ_2;NZ_4:=NZ_3*1.1;NZ_5:=REF(CLOSE,1)*1.098-CLOSEREF(OPEN,2);NZ_10:=REF(CLOSE,4)*1.098-REF(CLOSE,3)REF(OPEN,3); NZ_13:=REF(CLOSE,5)*1.098-REF(CLOSE,4)REF(OPEN,4); NZ_16:=REF(CLOSE,6)*1.098-REF(CLOSE,5)REF(OPEN,5); N字涨停:NZ_9 OR NZ_12 OR NZ_15 OR NZ_18;。

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

涨停:=IF((C-REF(C,1))*100/REF(C,1)>=9.90,1,0);缩量涨停:=EVERY(涨停,2);DRAWTEXT(缩量涨停,H*1.03,'缩量涨停'),COLORGREEN;UU:=3;A88:=SUM(C*V,UU);B88:=SUM(V,UU);市场价值线:MA(A88/B88,7)COLORYELLOW,LINETHICK3;VAR41:=REF(CLOSE,1);VAR42:=((SMA(MAX((CLOSE - VAR41),0),7,1) / SMA(ABS((CLOSE -VAR41)),7,1)) * 100);VAR43:=((SMA(MAX((CLOSE - VAR41),0),13,1) / SMA(ABS((CLOSE -VAR41)),13,1)) * 100);VAR44:=((BARSLAST((VAR43 < 23)) <= 3) AND CROSS(VAR42,VAR43)); VAR45:=((((CLOSE - MA(CLOSE,23)) / MA(CLOSE,20)) * 100) < -12.5);VAR46:=LLV(LOW,5);VAR47:=HHV(HIGH,10);VAR48:=EMA((((CLOSE - VAR46) / (VAR47 - VAR46)) * 100),4);VAR49:=EMA(((0.667 * REF(VAR48,1)) + (0.333 * VAR48)),2);{VAR50:=1011131;VAR51:=(IF((DATE <= VAR50),VAR45,0) OR IF((DATE <= VAR50),VAR1,0));} DRAWTEXT((((0 - (-1 * VAR44)) AND VAR45) AND CROSS(VAR48,VAR49)) AND (VAR48 <=25),LOW*1.008,'急跌后超级大黑马'),COLORMAGENTA;DRAWICON((((0 - (-1 * VAR44)) AND VAR45) AND CROSS(VAR48,VAR49)) AND (VAR48 <=25),L-0.10,26);DRAWICON((((0 - (-1 * VAR44)) AND VAR45) AND CROSS(VAR48,VAR49)) AND (VAR48 <=25),L-0.38,26);持股线1:MA(CLOSE,15),COLORMAGENTA,LINETHICK5;MA10:MA(CLOSE,50),COLORBB0000;DRAWKLINE(H,O,L,C);{筹码峰}时长:=120;换手次数:=2;选择方式:=1;统计时长:IF(选择方式=1,CONST(SUMBARS(V/FINANCE(7)*100,换手次数)),时长),NODRAW;KK:=统计时长;高:=CONST(HHV(H,KK));低:=CONST(LLV(L,KK));XX:=(高-低);均价:=AMOUNT/V/100,NODRAW;L0:=低+XX*0/9;L1:=低+XX*1/9;L2:=低+XX*2/9;L3:=低+XX*3/9;L4:=低+XX*4/9;L5:=低+XX*5/9;L6:=低+XX*6/9;L7:=低+XX*7/9;L8:=低+XX*8/9;L9:=低+XX*9/9;MLZ:=SUM((CURRBARSCOUNT<KK+1)*V,KK),COLORWHITE;ML1:=SUM((CURRBARSCOUNT<KK+1 AND RANGE(均价,L0-0.001,L1+0.001))*V,KK)/MLZ;STICKLINE(CURRBARSCOUNT<CONST(INTPART(ML1*200)),(L0+L1*0.99)*0. 49,(L0+L1*0.99)*0.5,18,0),COLORFF5555;ML2:=SUM((CURRBARSCOUNT<KK+1 AND RANGE(均价,L1,L2+0.001))*V,KK)/MLZ;STICKLINE(CURRBARSCOUNT<CONST(INTPART(ML2*200)),(L1+L2*0.99)*0. 4999,(L1+L2*0.99)*0.5,18,0),COLORFFAA55;ML3:=SUM((CURRBARSCOUNT<KK+1 AND RANGE(均价,L2,L3+0.001))*V,KK)/MLZ;STICKLINE(CURRBARSCOUNT<CONST(INTPART(ML3*200)),(L2+L3*0.99)*0. 4999,(L2+L3*0.99)*0.5,18,0),COLORAAFF55;ML4:=SUM((CURRBARSCOUNT<KK+1 AND RANGE(均价,L3,L4+0.001))*V,KK)/MLZ;STICKLINE(CURRBARSCOUNT<CONST(INTPART(ML4*200)),(L3+L4*0.99)*0.4999,(L3+L4*0.99)*0.5,18,0),COLOR5FFF00;ML5:=SUM((CURRBARSCOUNT<KK+1 AND RANGE(均价,L4,L5+0.001))*V,KK)/MLZ;STICKLINE(CURRBARSCOUNT<CONST(INTPART(ML5*200)),(L4+L5*0.99)*0. 4999,(L4+L5*0.99)*0.5,18,0),COLORFFFFF0;ML6:=SUM((CURRBARSCOUNT<KK+1 AND RANGE(均价,L5,L6+0.001))*V,KK)/MLZ;STICKLINE(CURRBARSCOUNT<CONST(INTPART(ML6*200)),(L5+L6*0.99)*0. 4999,(L5+L6*0.99)*0.5,18,0),COLORFF0FFF;ML7:=SUM((CURRBARSCOUNT<KK+1 AND RANGE(均价,L6,L7+0.001))*V,KK)/MLZ;STICKLINE(CURRBARSCOUNT<CONST(INTPART(ML7*200)),(L6+L7*0.99)*0. 4999,(L6+L7*0.99)*0.5,18,0),COLOR509FDD;ML8:=SUM((CURRBARSCOUNT<KK+1 AND RANGE(均价,L7,L8+0.001))*V,KK)/MLZ;STICKLINE(CURRBARSCOUNT<CONST(INTPART(ML8*200)),(L7+L8*0.99)*0. 4999,(L7+L8*0.99)*0.5,18,0),COLORAA5DDD;ML9:=SUM((CURRBARSCOUNT<KK+1 AND RANGE(均价,L8,L9+0.001))*V,KK)/MLZ;STICKLINE(CURRBARSCOUNT<CONST(INTPART(ML9*200)),(L8+L9*0.99)*0. 4999,(L8+L9*0.99)*0.5,18,0),COLOR0055DD;STICKLINE(C/REF(C,1)>=1.096 AND H=C,O,C,2,0),COLORYELLOW;HJ_8:=(REF(CLOSE,3)-CLOSE)/REF(CLOSE,3)*100>5;HJ_9:=FILTER(HJ_8,10);HJ_10:=BARSLAST(HJ_9);HJ_11:=REF(HIGH,HJ_10+2);HJ_12:=REF(HIGH,HJ_10+1);HJ_13:=REF(HIGH,HJ_10);HJ_14:=MAX(HJ_11,HJ_12);HJ_15:=MAX(HJ_14,HJ_13);HJ_16:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>5;HJ_17:=HJ_10<150;HJ_18:=(OPEN-HJ_15)/HJ_15*100<30;HJ_19:=(CLOSE-LLV(LOW,HJ_10))/LLV(LOW,HJ_10)*100<50;HJ_20:=(CLOSE-REF(OPEN,5))/REF(OPEN,5)*100<30;HJ_21:=VOL/MA(VOL,5)<3.5;HJ_22:=(CLOSE-REF(CLOSE,89))/REF(CLOSE,89)*100<80;HJ_25:=HJ_16 AND HJ_17 AND HJ_18 AND HJ_19 AND HJ_20 AND HJ_21 AND HJ_22;暴利:=FILTER(HJ_25,15);MA54:=MA(CLOSE,54)NODRAW;PL1:=(((CLOSE-MA54)/MA54)<0.1);PL2:=(((CLOSE-MA10)/MA10)<0.3);偏离率:=(((PL1=1) AND (PL2=1))*0.2);平台突破:=((((偏离率=0) AND (REF(偏离率,1)=0.2)) AND (REF((COUNT((偏离率=0.2),10)=10),1)=1))*-0.1);妖股突破:=平台突破=-0.1;XDF:=(暴利OR 妖股突破);VARA:=DMA(AMOUNT/VOL/100,VOL/CAPITAL);VARAA:=DYNAINFO(7)/(REF(CLOSE,1))>1.05 AND (DYNAINFO(7)/O>1.05); FLIGA:=(VOL/REF(VOL,1)>1.2 AND COUNT(CLOSE>OPEN,1)) OR(LOW>REF(HIGH,1) AND COUNT(OPEN>CLOSE,1) AND VOL/REF(VOL,1)>1.2); 妖股:=XDF AND C/REF(C,1)>1.095 AND FLIGA AND VARAA;DRAWICON(妖股,H*1.0395,7);DRAWTEXT(XDF AND C/REF(C,1)>1.095 AND FLIGA AND VARAA,L*0.975,' 妖股'),COLORYELLOW;DRAWTEXT(XDF AND C/REF(C,1)>1.095 AND FLIGA AND VARAA,L*0.995,' 妖股'),COLORRED;DRAWTEXT_FIX(1,0.1,0.98,0,'艳红色线是持股线,黄线是反映市场价值线,接近收盘时股价上了黄色线就买进,股价在黄线之下的坚决不买,下黄线(收盘破红必跑) 毫不犹豫清仓,切记切记,做股票万万不要痴心妄想')COLORYELLOW; LC11:=REF(CLOSE,1),NODRAW;RSI11:=((SMA(MAX((CLOSE - LC11),0),3,1) / SMA(ABS((CLOSE - LC11)),3,1)) * 100);FF:=EMA(CLOSE,3);日:=150;昨前:=3;高1:=REF(HHV(H,日),昨前);低1:=REF(LLV(L,日),昨前);H1:=高1-(高1-低1)*0.191;H2:=高1-(高1-低1)*0.382;H3:=高1-(高1-低1)*0.5;H4:=高1-(高1-低1)*0.618;H5:=高1-(高1-低1)*0.809;顶:REFDATE(高1,DATE),COLORRED;低点:REFDATE(低1,DATE),DOTLINE,COLORRED;收盘破红必跑:MA(CLOSE,7)COLORRED,LINETHICK3;CG:MA((LOW+HIGH+CLOSE*2)/4,10);FL:HHV(CG,3);FS:IF(CG<FL,(CG-(FL-CG)),FL);FL1:HHV(CG,5);FS1:IF(CG<FL1,(CG-(FL1-CG)),FL1);FL2:HHV(CG,7);FS2:IF(CG<FL2,(CG-(FL2-CG)),FL2);FL3:HHV(CG,9),COLORFFABA3,LINETHICK2;FS3:IF(CG<FL3,(CG-(FL3-CG)),FL3);ZLZC1:=(HHV(H,144)-((HHV(H,144)-LLV(L,144))*0.618));ZLZC2:=(HHV(H,144)-((HHV(H,144)-LLV(L,144))*0.5));ZLZC3:=(HHV(H,144)-((HHV(H,144)-LLV(L,144))*0.382));POLYLINE:(FS3>MA(FS3,5),FS3);LC:=REF(CLOSE,1);RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);MTM1:=C-REF(C,1);DX:=100*EMA(EMA(MTM1,6),6)/EMA(EMA(ABS(MTM1),6 ),6);买:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) ANDCROSS(DX,MA(DX,2)),1,0);DRAWTEXT(FILTER(买=1,5),LOW-0.03,'拉升'),COLORGREEN; DRAWTEXT(FILTER(买=1,5),LOW-0.22,'拉升'),COLORWHITE;A63:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;A64:=SMA(A63,3,1);A5:=SMA(A64,3,1);A6:=3*A64-2*A5;A76:=C-REF(C,1);A68:=100*EMA(EMA(A76,6),6)/EMA(EMA(ABS(A76),6),6);买88:=LLV(A68,2)=LLV(A68,7) AND COUNT(A68<0,2) ANDCROSS(A68,MA(A68,2));DRAWTEXT(FILTER(买88=1,5),H+0.05,'买进'),COLORYELLOW; DRAWTEXT(FILTER(买88=1,5),LOW-0.25,'买进'),COLORYELLOW; STICKLINE(买88,OPEN,CLOSE,2.5,0)COLORMAGENTA;STICKLINE(买88,OPEN,CLOSE,1,0),COLORWHITE;。

相关文档
最新文档