通达信指标公式源码 价涨停难逃副图选股指标
通达信指标公式源码涨停伏击主图及选股源码
涨停伏击主图及选股源码主图: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;。
通达信利用分时量能抓涨停副图指标源码
通达信利用分时量能抓涨停副图指标源码背景: DRAWGBK(1,RGB(25,25,112),RGB(0,0,128),0,1,0);量价:=(VOL/CLOSE)/3;统计主动买量:=SUM((IF(((量价>0.20) AND (CLOSE>(REF(CLOSE,1)))),量价,0)),0);统计主动卖量:=SUM((IF(((量价>0.20) AND (CLOSE<(REF(CLOSE,1)))),量价,0)),0);涨停量:((统计主动买量)/统计主动卖量)*10,NODRAW,COLORRED;DRAWTEXT_FIX(1,0.04,0,0,'▇'),COLORGRAY;DRAWTEXT_FIX(1,0.05,0,0,'▇'),COLORGRAY;DRAWTEXT_FIX(1,0.06,0,0,'▇'),COLORGRAY;DRAWTEXT_FIX(1,0.07,0,0,'▇'),COLORGRAY;DRAWTEXT_FIX(1,0.08,0,0,'▇'),COLORGRAY;DRAWTEXT_FIX(1,0.04,0.1,0,'▇'),COLORGRAY;DRAWTEXT_FIX(1,0.05,0.1,0,'▇'),COLORGRAY;DRAWTEXT_FIX(1,0.06,0.1,0,'▇'),COLORGRAY;DRAWTEXT_FIX(1,0.07,0.1,0,'▇'),COLORGRAY;DRAWTEXT_FIX(1,0.08,0.1,0,'▇'),COLORGRAY;DRAWTEXT_FIX(1,0.04,0.2,0,'▇'),COLORGRAY;DRAWTEXT_FIX(1,0.05,0.2,0,'▇'),COLORGRAY;DRAWTEXT_FIX(1,0.06,0.2,0,'▇'),COLORGRAY;DRAWTEXT_FIX(1,0.07,0.2,0,'▇'),COLORGRAY;DRAWTEXT_FIX(1,0.08,0.2,0,'▇'),COLORGRAY;DRAWTEXT_FIX(1,0.04,0.3,0,'▇'),COLORGRAY;DRAWTEXT_FIX(1,0.05,0.3,0,'▇'),COLORGRAY;DRAWTEXT_FIX(1,0.06,0.3,0,'▇'),COLORGRAY;DRAWTEXT_FIX(1,0.07,0.3,0,'▇'),COLORGRAY;DRAWTEXT_FIX(1,0.08,0.3,0,'▇'),COLORGRAY;DRAWTEXT_FIX(1,0.05,0.4,0,'▇'),COLORGRAY; DRAW TEXT_FIX(1,0.06,0.4,0,'▇'),COLORGRAY; DRAWTEXT_FIX(1,0.07,0.4,0,'▇'),COLORGRAY; DRAWTEXT_FIX(1,0.08,0.4,0,'▇'),COLORGRAY; DRAWTEXT_FIX(1,0.04,0.5,0,'▇'),COLORGRAY; DRAWTEXT_FIX(1,0.05,0.5,0,'▇'),COLORGRAY; DRAWTEXT_FIX(1,0.06,0.5,0,'▇'),COLORGRAY; DRAWTEXT_FIX(1,0.07,0.5,0,'▇'),COLORGRAY; DRAWTEXT_FIX(1,0.08,0.5,0,'▇'),COLORGRAY; DRAWTEXT_FIX(1,0.04,0.6,0,'▇'),COLORGRAY; DRAWTEXT_FIX(1,0.05,0.6,0,'▇'),COLORGRAY; DRAWTEXT_FIX(1,0.06,0.6,0,'▇'),COLORGRAY; DRAWTEXT_FIX(1,0.07,0.6,0,'▇'),COLORGRAY; DRAWTEXT_FIX(1,0.08,0.6,0,'▇'),COLORGRAY; DRAWTEXT_FIX(1,0.04,0.7,0,'▇'),COLORGRAY; DRAWTEXT_FIX(1,0.05,0.7,0,'▇'),COLORGRAY; DRAWTEXT_FIX(1,0.06,0.7,0,'▇'),COLORGRAY; DRAWTEXT_FIX(1,0.07,0.7,0,'▇'),COLORGRAY; DRAWTEXT_FIX(1,0.08,0.7,0,'▇'),COLORGRAY; DRAWTEXT_FIX(1,0.04,0.8,0,'▇'),COLORWHITE; DRAWTEXT_FIX(1,0.05,0.8,0,'▇'),COLORWHITE; DRAWTEXT_FIX(1,0.06,0.8,0,'▇'),COLORWHITE; DRAWTEXT_FIX(1,0.07,0.8,0,'▇'),COLORWHITE; DRAWTEXT_FIX(1,0.08,0.8,0,'▇'),COLORWHITE; DRAWTEXT_FIX(1,0.04,0.9,0,'▇'),COLORWHITE; DRAWTEXT_FIX(1,0.05,0.9,0,'▇'),COLORWHITE; DRAWTEXT_FIX(1,0.06,0.9,0,'▇'),COLORWHITE; DRAWTEXT_FIX(1,0.07,0.9,0,'▇'),COLORWHITE; DRAWTEXT_FIX(1,0.08,0.9,0,'▇'),COLORWHITE;DRAWTEXT_FIX(1,0.05,1,0,'▇'),COLORWHITE;DRAWTEXT_FIX(1,0.06,1,0,'▇'),COLORWHITE;DRAWTEXT_FIX(1,0.07,1,0,'▇'),COLORWHITE;DRAWTEXT_FIX(1,0.08,1,0,'▇'),COLORWHITE;DRAWTEXT_FIX(涨停量>30,0.04,0,0,'▇'),COLORYELLOW;DRAWTEXT_FIX(涨停量>30,0.05,0,0,'▇'),COLORYELLOW;DRAWTEXT_FIX(涨停量>30,0.06,0,0,'▇'),COLOR YELLOW;DRAWTEXT_FIX(涨停量>30,0.07,0,0,'▇'),COLORYELLOW;DRAWTEXT_FIX(涨停量>30,0.08,0,0,'▇'),COLORYELLOW;DRAWNUMBER_FIX(涨停量AND ISLASTBAR,0.04,0,0,涨停量),LINETHICK8,COLORRED;DRAWTEXT_FIX(涨停量>30,0.04,0.1,0,'▇'),COLORYELLOW;DRAWTEXT_FIX(涨停量>30,0.05,0.1,0,'▇'),C OLORYELLOW;DRAWTEXT_FIX(涨停量>30,0.06,0.1,0,'▇'),COLORYELLOW;DRAWTEXT_FIX(涨停量>30,0.07,0.1,0,'▇'),COLORYELLOW;DRAWTEXT_FIX(涨停量>30,0.08,0.1,0,'▇'),COLORYELLOW;DRAWTEXT_FIX(涨停量>30,0.04,0.2,0,'▇'),COLORYELLOW;DRAWTEXT_FIX(涨停量>30,0.05,0.2,0,'▇'),COLORYELLOW;DRAWTEXT_FIX(涨停量>30,0.06,0.2,0,'▇'),COLORYELLOW;DRAWTEXT_FIX(涨停量>30,0.07,0.2,0,'▇'),COLORYELLOW;DRAWTEXT_FIX(涨停量>30,0.08,0.2,0,'▇'),COLORYELLOW;DRAWTEXT_FIX(涨停量>30,0.03,0.2,0,'●'),COLORYELLOW;DRAWTEXT_FIX(涨停量>30,0.03,0.1,0,'●'),COLORYELLOW;DRAWTEXT_FIX(涨停量>30,0.03,0,0,'●'),COLORYELLOW;DRAWTEXT_FIX(涨停量>30,0.08,0,0,' ←早盘OBV值保持20,30以上出绿钻有涨停可能'),COLORYELLOW;:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));涨停量▇:=(统计主动买量/统计主动卖量)*40,LINETHICK2,NODRAW,COLORRED;DRAWTEXT_FIX(20<涨停量▇ <30,0.04,0.3,0,'▇'),COLORRED;DRAWTEXT_FIX(20<涨停量▇ <30,0.05,0.3,0,'▇'),COLORRED;DRAWTEXT_FIX(20<涨停量▇ <30,0.06,0.3,0,'▇'),COLORRED;DRAWTEXT_FIX(20<涨停量▇ <30,0.07,0.3,0,'▇'),COLORRED;DRAWTEXT_FIX(20<涨停量▇ <30,0.08,0.3,0,'▇'),COLORRED;DRAWTEXT_FIX(20<涨停量▇ <30,0.04,0.4,0,'▇'),COLORRED;DRAWTEXT_FIX(20<涨停量▇ <30,0.05,0.4,0,'▇'),COLORRED;DRAWTEXT_FIX(20<涨停量▇ <30,0.06,0.4,0,'▇'),COLORRED;DRAWTEXT_FIX(20<涨停量▇ <30,0.07,0.4,0,'▇'),COLORRED;DRAWTEXT_FIX(20<涨停量▇ <30,0.08,0.4,0,'▇'),COLORRED;DRAWTEXT_FIX(20<涨停量▇ <30,0.04,0.5,0,'▇'),COLORRED;DRAWTEXT_FIX(20<涨停量▇ <30,0.05,0.5,0,'▇'),COLORRED;DRAWTEXT_FIX(20<涨停量▇ <30,0.06,0.5,0,'▇'),COLORRED;DRAWTEXT_FIX(20<涨停量▇ <30,0.07,0.5,0,'▇'),COLORRED;DRAWTEXT_FIX(20<涨停量▇ <30,0.08,0.5,0,'▇'),COLORRED;OBV:= (EXPMA(CLOSE,500)-REF(EXPMA(CLOSE,500),1))/REF(EXPMA(CLOSE,500),1)*100, COLORSTICK;主力:=EXPMA( (EXPMA(CLOSE,500)-REF(EXPMA(CLOSE,500),1))/REF(EXPMA(CLOSE,500),1)*100,120)-0.0004,LINETHICK5,COLORMAGENTA;散户:=EXPMA( (EXPMA(CLOSE,500)-REF(EXPMA(CLOSE,500),1))/REF(EXPMA(CLOSE,500),1)*100,200), LINETHICK5,COLORGREEN;DRAWICON(CROSS(EXPMA(OBV,120)-0.0004,EXPMA(OBV,200)),EXPMA(OBV,200)*1,27);。
通达信指标公式源码涨停时间窗 主图 副图
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;。
通达信指标公式源码 涨停后缩量板副图主图选股指标
涨停:=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;。
通达信副图指标公式源码大全
副图指标公式源码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;。
通达信指标-预测上涨-副选指标源码
通达信指标-预测上涨-副选指标源码副图指标源码A:=1;X00:=O;MX000:=(0.3609454219*X00-0.03309329629*REF(X00,1)-0.04241822779*REF(X00,2)-0.026737249*REF(X00,3)-0.007010041271*REF(X00,4)-0.002652859952*REF(X00,5)-0.0008415042966*REF(X00,6)-0.0002891931964*REF(X00,7)-0.0000956265934*REF(X00,8)-0.0000321286052*REF(X00,9)-0.0000106773454*REF(X00,10)-0.0000035457562*REF(X00,11)-0.0000011670713*REF(X00,12) )/ (1-0.7522406533 );明日重心涨跌幅:=(MX000-X00)/X00*100;资金动力:=明日重心涨跌幅*100;ST:=NOT(C/REF(C,1)>=1.045 AND O=C)*A;ST1:=IF(NAMELIKE('S'),0,1) AND IF(NAMELIKE('*'),0,1);涨:=REF(C,1)*1.1-C<0.01 AND H=C;{涨停}最低成本:=COST(5);最高成本:=COST(95);平均成本:=COST(50);成本重心:=(平均成本-最低成本)/(最高成本-最低成本)*100;成本带宽CBW:=(最高成本-最低成本)/最低成本*100*A;中线位置:=(C-LLV(最低成本,120))/LLV(最低成本,120)*100*A;成本突破:=(中线位置<50 AND 成本带宽CBW<40)*A;XG5:=BARSLASTCOUNT(成本突破)*A;AHC1:=CLOSE*VOL;AHC2:=EMA((EMA(AHC1,3)/EMA(VOL,3)+EMA(AHC1,6)/EM A(VOL,6)+EMA(AHC1,12)/EMA(VOL,12)+EMA(AHC1,24)/EMA(V OL,24))/4,13);内上:=1.06*AHC2*A;内下:=AHC2*0.94;XXX:=(MA(CLOSE,120)>内下 AND MA(CLOSE,60)>内下 AND MA(CLOSE,20)>内下AND MA(CLOSE,10)>内下AND MA(CLOSE,5)>内下AND MA(CLOSE,120)<内上AND MA(CLOSE,60)<内上AND MA(CLOSE,20)<内上AND MA(CLOSE,10)<内上AND MA(CLOSE,5)<内上)/2*A;VAR61 := MA(C,26);VAR62 := POW(C - VAR61,2);VAR63 := MA(VAR62,13);VAR64 := SQRT(VAR63);VAR65 :=VAR61 + (2 * VAR64);XG14:=COUNT(REF(L,0)/REF(L,1)>1.03,5)=1;XG9:=BARSLASTCOUNT(XG14);XG15:=COUNT(REF(L,0)/REF(L,1)>1.03,5)=1;XG10:=BARSLASTCOUNT(XG15);A1:=(C-REF(C,1))/REF(C,1)*100*A;涨多:=NOT(REF(涨,1)) AND REF(A1,1)<3 AND REF(A1,2)<3 AND REF(A1,3)<3 AND REF(A1,4)<3 AND REF(A1,5)<3 AND REF(A1,6)<3*A;D:=MA(O,4)+0.03;霸气:={CROSS(VAR32,50) AND }O/REF(C,1)>1.02 AND HIGH > REF(VAR65,1) AND 资金动力<=400 AND 涨多 AND XG9=1;霸气2:={CROSS(VAR32,50) AND }O/REF(C,1)>1.02 AND HIGH > REF(VAR65,1) AND 涨多AND XG9=1 AND XXX AND XG5 AND ST1 AND ST AND O/REF(C,1)<1.06 AND REF(C,1)<=D;VAR34 := ZJL.折价率#WEEK;VAR35 := MA(VAR34,PERIOD) + (2 * STD(VAR34,PERIOD));VAR36 := (MA(VAR34,3 * PERIOD)) + (2 * (STD(VAR34,3 * PERIOD)));VAR37 := (MA(VAR34,5 * PERIOD)) + (2 * (STD(VAR34,5 * PERIOD)));VAR38 := (MA(VAR34,6 * PERIOD)) + (2 * (STD(VAR34,6 * PERIOD)));VAR39 := (MA(VAR34,7 * PERIOD)) + (2 * (STD(VAR34,7 * PERIOD)));VAR40 := (MA(VAR35 - (REF(VAR35,2 * PERIOD)),PERIOD)) + (2 * (STD(VAR35 - (REF(VAR35,3 * PERIOD)),PERIOD)));VAR41 := (MA(VAR36 - (REF(VAR36,2 * PERIOD)),PERIOD)) + (2 * (STD(VAR36 - (REF(VAR36,3 * PERIOD)),PERIOD)));VAR42 := (MA(VAR37 - (REF(VAR37,2 * PERIOD)),PERIOD)) + (2 * (STD(VAR37 - (REF(VAR37,3 * PERIOD)),PERIOD)));VAR43 := (MA(VAR38 - (REF(VAR38,2 * PERIOD)),PERIOD)) + (2 * (STD(VAR38 - (REF(VAR38,3 * PERIOD)),PERIOD)));VAR44 := (MA(VAR39 - (REF(VAR39,2 * PERIOD)),PERIOD)) + (2 * (STD(VAR39 - (REF(VAR39,3 * PERIOD)),PERIOD)));VAR45 := REF(HHV(VAR37,5),1);VAR46 := REF(HHV(VAR37,5),6);VAR47 := REF(HHV(VAR37,5),11);VAR48 := REF(HHV(VAR37,5),16);VAR49 := REF(HHV(VAR37,5),21);VAR50 := REF(HHV(VAR37,5),26);VAR51 := IF(VAR45 < REF(MAX(VAR46,VAR47),BARSLAST(CROSS(VAR37,MAX(VAR46, VAR47)))),REF(MAX(VAR46,VAR47),BARSLAST(CROSS(VAR37,MA X(VAR46,VAR47)))),VAR45);气:=((((VAR37 > VAR51)) AND (VAR38 > VAR51)) AND (VAR39 > VAR51)),COLORRED;必涨:XXX AND XG5 AND 霸气AND ST1 AND ST{ AND 气}*A,COLORFF00FF;必涨2:=霸气2 AND (REF(C,2)<REF(O,1) OR REF(C,1)<REF(O,1) OR REF(C,4)>REF(O,1) OR REF(C,3)>REF(O,1))*A;MA34:=EMA(H,5);确定涨:(必涨 2 AND REF(C,1)<REF(MA34,1) { AND 底部<=0.13}){ OR (必涨AND MACD.DIF<0.2)}{AND XG10=1},COLORRED,NODRAW;STICKLINE(确定涨,0,0.5,4,0 )*A,COLOR000099;STICKLINE(确定涨,0,0.5,3,0 )*A,COLOR0000BB;STICKLINE(确定涨,0,0.5,1.5,0 )*A,COLOR0000DD;STICKLINE(确定涨,0,0.5,0.3,0 )*A,COLOR0000FF;选股指标源码A:=1;ST:=NOT(C/REF(C,1)>=1.045 AND O=C)*A;ST1:=IF(NAMELIKE('S'),0,1) AND IF(NAMELIKE('*'),0,1);涨:=REF(C,1)*1.1-C<0.01 AND H=C;最低成本:=COST(5);最高成本:=COST(95);成本带宽CBW:=(最高成本-最低成本)/最低成本*100*A;中线位置:=(C-LLV(最低成本,120))/LLV(最低成本,120)*100*A;成本突破:=(中线位置<50 AND 成本带宽CBW<40)*A;XG5:=BARSLASTCOUNT(成本突破)*A;AHC1:=CLOSE*VOL;AHC2:=EMA((EMA(AHC1,3)/EMA(VOL,3)+EMA(AHC1,6)/EM A(VOL,6)+EMA(AHC1,12)/EMA(VOL,12)+EMA(AHC1,24)/EMA(V OL,24))/4,13);内上:=1.06*AHC2*A;内下:=AHC2*0.94;XXX:=(MA(CLOSE,120)>内下 AND MA(CLOSE,60)>内下 AND MA(CLOSE,20)>内下AND MA(CLOSE,10)>内下AND MA(CLOSE,5)>内下AND MA(CLOSE,120)<内上ANDMA(CLOSE,60)<内上AND MA(CLOSE,20)<内上AND MA(CLOSE,10)<内上 AND MA(CLOSE,5)<内上)/2*A;VAR61 := MA(C,26);VAR62 := POW(C - VAR61,2);VAR63 := MA(VAR62,13);VAR64 := SQRT(VAR63);VAR65 :=VAR61 + (2 * VAR64);XG14:=COUNT(REF(L,0)/REF(L,1)>1.03,5)=1;XG9:=BARSLASTCOUNT(XG14);A1:=(C-REF(C,1))/REF(C,1)*100*A;涨多:=NOT(REF(涨,1)) AND REF(A1,1)<3 AND REF(A1,2)<3 AND REF(A1,3)<3 AND REF(A1,4)<3 AND REF(A1,5)<3 AND REF(A1,6)<3*A;D:=MA(O,4)+0.03;霸气2:=O/REF(C,1)>1.02 AND HIGH > REF(VAR65,1) AND 涨多AND XG9=1 AND XXX AND XG5 AND ST1 AND ST AND O/REF(C,1)<1.06 AND REF(C,1)<=D;必涨2:=霸气2 AND (REF(C,2)<REF(O,1) OR REF(C,1)<REF(O,1) OR REF(C,4)>REF(O,1) OR REF(C,3)>REF(O,1))*A;MA34:=EMA(H,5);确定涨:(必涨2 AND REF(C,1)<REF(MA34,1) );{提示大家:在复制通达信指标源码时注意复制完整,复制不完整在测试时指标会提示错误。
分时涨停通达信指标公式源码
分时涨停通达信指标公式源码通达信指标公式源码是一种编写股票技术指标的代码,通常用于量化交易分析。
分时涨停是指当股价在一定时间内涨幅达到涨停板的情况。
下面是一个使用通达信公式语言编写的分时涨停指标示例源码:```c/*分时涨停指标公式*//*分时涨停=(当前价格-昨收价格)/昨收价格*100*//*若涨幅超过10%,则显示为1000*//*以一个交易日为周期计算涨停*/input n = 1; // 交易周期input limit_up = 10; // 涨停幅度//获取昨收价格prev_close = Ref(C, 1);//计算当前涨停幅度percent = (close - prev_close) / prev_close * 100;//若当前涨停幅度超过限制,则显示为1000if (percent >= limit_up)percent = 1000;//输出涨停幅度Plot(percent, "分时涨停", colorRed, styleLine, Null, Null, n);```上述代码中,`input`语句用于设置输入参数,包括交易周期和涨停幅度。
`prev_close`变量用于获取昨收价格,`percent`变量用于计算当前涨停幅度。
如果涨幅超过涨停幅度限制,将其显示为1000。
最后,使用`Plot`函数输出涨停幅度曲线,参数包括指标数值、指标名称、曲线颜色和样式等。
注意:以上代码仅为示例,具体的指标公式可能根据交易软件和数据源的不同而有所差异,需要根据实际需求进行相应的调整和修改。
用户可以根据自己的需求进行各种参数的设置和指标计算逻辑的编写。
通达信指标公式源码 涨停后缩量板副图主图选股指标
涨停:=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;。
通达信最牛涨停板指标(源码)
通达信最牛涨停板指标(源码)CA:=MA(CLOSE,5);CJ5:=CA*102/100;HA:=MA(H,5);HJ5:=HA*102/100;TGH1:=IF(C>O&&H>REF(C,1),ATAN(HJ5-REF(CJ5,1)),0); TGH2:=IF(C>O&&H<REF(C,1),-ATAN(REF(CJ5,1)-HJ5),0); TGH3:=IF(C>O&&H=REF(C,1),0,0);LGH1:=IF(C<O&&H>REF(C,1),ATAN(HJ5-REF(CJ5,1)),0); LGH2:=IF(C<O&&H<REF(C,1),-ATAN(REF(CJ5,1)-HJ5),0); LGH3:=IF(C<O&&H=REF(C,1),0,0);GGH:=(TGH1+TGH2+TGH3+LGH1+LGH2+LGH3);突破高点:MA(REF(GGH,1),26),COLORWHITE;AA:=MA((2*CLOSE+HIGH+LOW)/4,9);通道1:=AA*102/100;CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(C,26))/MA(C,26); DD:=DMA(CLOSE,CC);通道2:=(1+7/100)*DD;TA2:MA(ATAN((通道2-REF(通道2,1))),3),COLORCYAN;T1:=ATAN((通道1-REF(通道1,1)));T2:=ATAN((通道1-REF(通道1,2)));T3:=ATAN((通道1-REF(通道1,3)));T4:=ATAN((通道1-REF(通道1,4)));T5:=ATAN((通道1-REF(通道1,5)));T6:=ATAN((通道1-REF(通道1,6)));T7:=ATAN((通道1-REF(通道1,7)));T8:=ATAN((通道1-REF(通道1,8)));T9:=ATAN((通道1-REF(通道1,9)));T10:=ATAN((通道1-REF(通道1,10)));TJD:MA((((T1+T2+T3+T4+T5+T6+T7+T8+T9+T10)/10)),3),C OLORGRAY,LINETHICK2;TT1:=ATAN((通道2-REF(通道2,1)));TT2:=(ATAN((通道2-REF(通道2,2))));TT3:=(ATAN((通道2-REF(通道2,3))));TT4:=(ATAN((通道2-REF(通道2,4))));TT5:=(ATAN((通道2-REF(通道2,5))));TT6:=(ATAN((通道2-REF(通道2,6))));TT7:=(ATAN((通道2-REF(通道2,7))));TT8:=(ATAN((通道2-REF(通道2,8))));TT9:=(ATAN((通道2-REF(通道2,9))));TT10:=(ATAN((通道2-REF(通道2,10))));TJD2:MA((((TT1+TT2+TT3+TT4+TT5+TT6+TT7+TT8+TT9+T T10)/10)),3),COLORRED;。
通达信指标公式源码 涨停王 分时副图源码
{买卖}VAR0:=VOL/CLOSE/2;VAR1:=SUM(IF(VAR0 > 100 AND CLOSE > REF(CLOSE,1),VAR0,0),0); VAR2:=SUM(IF(VAR0 > 100 AND CLOSE < REF(CLOSE,1),VAR0,0),0); VAR3:=SUM(IF(VAR0 < 100 AND CLOSE > REF(CLOSE,1),VAR0,0),0); VAR4:=SUM(IF(VAR0 < 100 AND CLOSE < REF(CLOSE,1),VAR0,0),0); VAR5:=VAR1 + VAR2 + VAR3 + VAR4;VAR6:=IF(ISLASTBAR,100 * VAR1/VAR5,0);VAR7:=IF(ISLASTBAR,100 * VAR2/VAR5,0);VAR8:=IF(ISLASTBAR,100 * VAR3/VAR5,0);VAR9:=IF(ISLASTBAR,100 * VAR4/VAR5,0);{机构买:=VAR1;机构卖:=VAR2;散户买:=VAR3;散户卖:=VAR4;}机构买:VAR1,LINETHICK9,COLOR031BFA;机构卖:VAR2,LINETHICK9,COLORFFFF55;散户买:VAR3,COLOR5FFFFF,DOTLINE;散户卖:VAR4,COLOR55FF55,DOTLINE;{DRAWTEXT(CROSS(机构买,1500),2500,'机会'),COLORYELLOW,LAYER0,LINETHICK4;}{DRAWTEXTREL(1003,870,'机构买'),LINETHICK2,COLORRED;DRAWTEXTREL(1003,570,'机构卖'),LINETHICK2,COLORFFFF55; DRAWTEXTREL(1003,320,'散户买'),LINETHICK2,COLORWHITE; DRAWTEXTREL(1003,50,'散户卖'),LINETHICK2,COLORYELLOW;}A787:=BARSSINCE(V>0)+1;均价787:=SUM(C*V,A787)/SUM(V,A787);机:=FILTER(((CROSS(机构买,机构卖) OR (机构卖=0 AND CROSS(机构买,10))) AND C/DYNAINFO(3)>1.001 AND 机构买>机构卖),2400);DRAWTEXT(机AND C/DYNAINFO(3)>0.0113 AND C>=均价787 AND C> DYNAINFO(3),(机构买+1000)*1.35,'机会'),COLORF000FF,LINETHICK5;风:=FILTER(((CROSS(机构卖,机构买) OR (机构买=0 AND CROSS(机构卖,100))) AND DYNAINFO(3)/C>1.0001 AND 机构买<机构卖),2400);风2:=FILTER((CROSS(散户卖,机构买) OR (机构买=0 AND CROSS(机构卖,100))) AND DYNAINFO(3)/C>1.001,2400);DRAWTEXT((风OR 风2) AND DYNAINFO(3)/C>0.0113 AND C<=均价787 AND C< DYNAINFO(3),(机构买+1000)*1.35,'风险'),COLORFFFF00,LINETHICK5;。
[转载]可以预测涨停的指标,通达信副图
[转载]可以预测涨停的指标,通达信副图源码:VAR1:=EMA(EMA(CLOSE,9),9);控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000; K:=控盘<0;K3:=控盘>0;涨停可能:=COUNT(K,50);调整:=COUNT(K,100)-COUNT(K3,100);K2:=COUNT(K,100)>=50;K1:=COUNT(K,50)>=40;交额亿:=AMOUNT/100000000;J:=AMOUNT/100000000;Z:=(C/REF(C,1)-1)*100;Z3T:= Z+ REF(Z,1)+ REF(Z,2);Z10:=Z>9.9;STICKLINE(Z>0,0,Z*10,1,0),COLORRED;{红色} STICKLINE(Z<=0,0,Z*10,1,0),COLORWHITE;{白色} D2:SUM(Z,2);D3:SUM(Z,3);跌进3:=SUM(Z,3);日4:SUM(Z,4);日5:SUM(Z,5);基因30:=COUNT(Z>9.09,30);J1:=基因30>=1;B1:=D2*J1<-15;B2:=D3*J1<-18;特强50:=COUNT(Z>9.09,50);DRAWTEXT(D2<-15,控盘+5,'停!'),COLORRED;{红色};DRAWTEXT(D3<-18,控盘+5,'必停!'),COLORRED;{红色};DRAWTEXT(Z>9.09,Z*10,'涨停!'),COLORGREEN;{绿色};DRAWICON(CROSS(ZIG(3,8)*J1,REF(ZIG(3,8),1)),控盘+5,9);钱包:=CROSS(ZIG(3,8),REF(ZIG(3,8),1));DRAWTEXT(CROSS(ZIG(3,8),REF(ZIG(3,8),1))*J1,控盘-5,'进钱'),LINETHICK2,COLORRED;基因10:=COUNT(Z>9.09,10);不定期最低价:=DLOW;不定期最高价:=DHIGH;最高价50天内:=HHV(HIGH,50);涨跌50天:(LOW-HHV(HIGH,50))/HHV(HIGH,50)*100;G:=HHV(DHIGH,30);G1:=REF(H,30);G3:=HHV(DHIGH,3);G4:=REF(H,3);现最低价:=LOW;D1:=LOW;F3:=(D1-G4)/G4*100,COLORGREEN;{绿色};最低价:=LLV(DLOW,30);D:=LLV(DLOW,30);D30:=(G-D)/G*100;F30:=(D1-G)/G*100,COLORRED;{红色};F30定:=(D1-G1)/G1*100,COLORRED;{红色};可停:=F30*钱包<-20;DRAWTEXT(可停,控盘+8,'可停!'),COLORGREEN;{绿色}; DRAWTEXT(可停,控盘+14,'砸!'),COLORGREEN;{绿色}; DRAWTEXT(Z<-10.2,控盘,'权息!'),COLORMAGENTA;{粉色}; DRAWTEXT(日5<-18,Z,'拼啦!'),COLORRED;{红色};Z3:=(LOW-REF(HIGH,3))/REF(HIGH,3)*100;A3:=Z3<-16;Z4:=(LOW-REF(HIGH,4))/REF(HIGH,4)*100;A4:=Z4<-15;。
通达信涨停板妖股第二波副图选股指标源码编程思路破译
通达信涨停板妖股第二波副图选股指标源码编程思路破译编程思路破译选股指标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则画空心柱.。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
涨停难逃副图源码:
福海制:0,NODRAW,COLORCYAN;
趋势
线:EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3),COLOR YELLOW;
动态市盈率:CLOSE/FINANCE(33),NODRAW,COLORWHITE;
X_1:=AMOUNT/CLOSE/(HHV(AMOUNT,20)/HHV(CLOSE,20));
量能饱和度:IF(X_1>1,1,X_1)*100,NODRAW,COLORRED;
X_2:=CLOSE/REF(CLOSE,1)>1.02;
X_3:=VOL>MA(VOL,5);
X_4:=X_2 AND X_3;
X_5:=IF(X_4,70,0);
X_6:=X_5;
X_7:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
X_8:=IF(CLOSE>OPEN,X_7*(HIGH-LOW),IF(CLOSE<OPEN,X_7*(HIGH-OPEN +(CLOSE-LOW)),VOL/2));
X_9:=X_8/VOL*100;
X_10:=X_9>=80;
X_11:=ATAN((EMA(CLOSE,5)/REF(EMA(CLOSE,5),1)-1)*100)*57.299999;
X_12:=ATAN((EMA(CLOSE,10)/REF(EMA(CLOSE,10),1)-1)*100)*57.299999; X_13:=ATAN((EMA(CLOSE,20)/REF(EMA(CLOSE,20),1)-1)*100)*57.299999; X_14:=X_11>=60 AND X_12>13;
X_15:=IF(CLOSE>REF(CLOSE,1),88,0);
X_16:=IF(CLOSE/REF(CLOSE,1)>1.02 AND HIGH/CLOSE<1.01 AND
X_15>0,91,0);
X_17:=FILTER(X_16>1,5);
X_18:=MA(CLOSE,90);
X_19:=MA(CLOSE,288);
X_20:=IF(1.1>SMA(CLOSE,2,1)/SMA(CLOSE,13,2)>1.03,SMA(HIGH,21,5)*1.0 5,SMA(HIGH,21,2)*1.05);
X_21:=IF(1.09>SMA(CLOSE,5,1)/SMA(CLOSE,15,1)>0.3,SMA(LOW,10,1),SMA (LOW,5,1));
X_22:=IF(MA(VOL,2)>MA(VOL,3)/2>MA(VOL,5),SMA(HIGH,2,1),SMA(CLOSE, 3,1));
X_23:=IF(MA(VOL,3)>MA(VOL,5)>MA(VOL,9),SMA(CLOSE,3,1),SMA(CLOSE,5 ,1));
X_24:=CROSS(X_22,X_20) OR CROSS(X_18,X_21) OR CROSS(X_20,X_19); X_25:=X_17 OR X_24;
X_26:=CLOSE/REF(CLOSE,3)*100-100;
X_27:=STICKLINE(X_26>12,0,50,2,0);
X_28:=MA(CLOSE,5);
X_29:=MA(CLOSE,10);
X_30:=MA(VOL,10);
X_31:=HHV(HIGH,5)=HHV(HIGH,0) AND BARSCOUNT(CLOSE)>=5;
X_32:=CLOSE>REF(CLOSE,1)*1.02;
X_33:=VOL>X_30;
X_34:=OPEN>X_29 AND CLOSE>X_28;
X_35:=X_31 AND X_32 AND X_33 AND X_34;
X_36:=X_26 OR X_35;
X_37:=X_6 AND X_10 AND X_14 AND X_25 AND X_36;
STICKLINE(X_37,20,40,1,0),COLORWHITE;
STICKLINE(X_37,10,20,2,0),COLORRED;
STICKLINE(X_37,0,10,3,0),COLOR0080FF;
STICKLINE(X_37,(-10),0,4,0),COLORMAGENTA;
STICKLINE(X_37,(-20),(-10),5,0),COLORYELLOW;
STICKLINE(X_37,(-30),(-20),6,0),COLORLIGREEN;
STICKLINE(X_37,(-40),(-30),7,0),COLORCYAN;
STICKLINE(X_37,(-50),(-40),8,0),COLORBLUE;
STICKLINE(X_37,(-65),(-50),9,0),COLORLIGREEN;
DRAWICON(X_37,43,13);
{公式名称: 涨停难逃
公式描述:
无参数
公式类型: 条件选股公式-其他类型
公式版本: 0
参数精灵:无
用法睥释:无
公式源码:}
X_1:=CLOSE/REF(CLOSE,1)>1.02;
X_2:=VOL>MA(VOL,5);
X_3:=X_1 AND X_2;
X_4:=IF(X_3,70,0);
X_5:=X_4;
X_6:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
X_7:=IF(CLOSE>OPEN,X_6*(HIGH-LOW),IF(CLOSE<OPEN,X_6*(HIGH-OPEN +(CLOSE-LOW)),VOL/2));
X_8:=X_7/VOL*100;
X_9:=X_8>=80;
X_10:=ATAN((EMA(CLOSE,5)/REF(EMA(CLOSE,5),1)-1)*100)*57.299999;
X_11:=ATAN((EMA(CLOSE,10)/REF(EMA(CLOSE,10),1)-1)*100)*57.299999; X_12:=ATAN((EMA(CLOSE,20)/REF(EMA(CLOSE,20),1)-1)*100)*57.299999; X_13:=X_10>=60 AND X_11>13;
X_14:=IF(CLOSE>REF(CLOSE,1),88,0);
X_15:=IF(CLOSE/REF(CLOSE,1)>1.02 AND HIGH/CLOSE<1.01 AND
X_14>0,91,0);
X_16:=FILTER(X_15>1,5);
X_17:=MA(CLOSE,90);
X_18:=MA(CLOSE,288);
X_19:=IF(1.1>SMA(CLOSE,2,1)/SMA(CLOSE,13,2)>1.03,SMA(HIGH,21,5)*1.0 5,SMA(HIGH,21,2)*1.05);
X_20:=IF(1.09>SMA(CLOSE,5,1)/SMA(CLOSE,15,1)>0.3,SMA(LOW,10,1),SMA (LOW,5,1));
X_21:=IF(MA(VOL,2)>MA(VOL,3)/2>MA(VOL,5),SMA(HIGH,2,1),SMA(CLOSE, 3,1));
X_22:=IF(MA(VOL,3)>MA(VOL,5)>MA(VOL,9),SMA(CLOSE,3,1),SMA(CLOSE,5 ,1));
X_23:=CROSS(X_21,X_19) OR CROSS(X_17,X_20) OR CROSS(X_19,X_18); X_24:=X_16 OR X_23;
X_25:=CLOSE/REF(CLOSE,3)*100-100;
X_26:=STICKLINE(X_25>12,0,50,2,0);
X_27:=MA(CLOSE,5);
X_28:=MA(CLOSE,10);
X_29:=MA(VOL,10);
X_30:=HHV(HIGH,5)=HHV(HIGH,0) AND BARSCOUNT(CLOSE)>=5;
X_31:=CLOSE>REF(CLOSE,1)*1.02;
X_32:=VOL>X_29;
X_33:=OPEN>X_28 AND CLOSE>X_27;
X_34:=X_30 AND X_31 AND X_32 AND X_33;
X_35:=X_25 OR X_34;
X_5 AND X_9 AND X_13 AND X_24 AND X_35,COLORMAGENTA,LINETHICK4;。