平台突破主图选股预警源码 通达信指标公式源码

合集下载

突破趋势线指标主图源码通达信指标公式源码

突破趋势线指标主图源码通达信指标公式源码

源码:{连结MACD相邻红绿柱区间内高低点画趋势线通达信}DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);N1:=BARSLAST(CROSS(DIFF,DEA))+1;{最近一次满足条件DIFF上穿DEA的K线到当前的距离}N2:=BARSLAST(CROSS(DEA,DIFF))+1;{最近一次满足条件DIFF下穿DEA的K线到当前的距离}{当前是DIFF>DEA的状态,连结最近两个DIFF>DEA区间(不包含当前区间)内最高点的趋势线}A1:=BACKSET(ISLASTBAR &&N1<N2,REF(REF(HHVBARS(H,N1)+1,N2),N2)+REF(N2,N2)+N2);B1:=BACKSET(ISLASTBAR && N1<N2,REF(HHVBARS(H,N1),N2)+N2+1); DRAWLINE(CROSS(A1,0.5),H,CROSS(B1,0.5),H,1),COLORRED;{当前是DIFF>DEA的状态,连结最近两个DIFF<DEA区间内最低点的趋势线}A2:=BACKSET(ISLASTBAR &&N1<N2,REF(REF(LLVBARS(L,N2)+1,N1),N2)+REF(N1,N2)+N2);B2:=BACKSET(ISLASTBAR && N1<N2,REF(LLVBARS(L,N2)+1,N1)+N1);DRAWLINE(CROSS(A2,0.5),L,CROSS(B2,0.5),L,1),COLORGREEN;{当前是DIFF<DEA的状态,连结最近两个DIFF<DEA区间(不包含当前区间)内最低点的趋势线}A3:=BACKSET(ISLASTBAR &&N1>N2,REF(REF(LLVBARS(L,N2)+1,N1),N1)+REF(N1,N1)+N1);B3:=BACKSET(ISLASTBAR && N1>N2,REF(LLVBARS(L,N2),N1)+N1+1);DRAWLINE(CROSS(A3,0.5),L,CROSS(B3,0.5),L,1),COLORGREEN;{当前是DIFF<DEA的状态,连结最近两个DIFF>DEA区间内最高点的趋势线}A4:=BACKSET(ISLASTBAR &&N1>N2,REF(REF(HHVBARS(H,N1)+1,N2),N1)+REF(N2,N1)+N1);B4:=BACKSET(ISLASTBAR && N1>N2,REF(HHVBARS(H,N1)+1,N2)+N2); DRAWLINE(CROSS(A4,0.5),H,CROSS(B4,0.5),H,1),COLORRED;。

突破平台通达信指标公式源码

突破平台通达信指标公式源码

把自己优化的一个突破平台就加仓的指标分享出来,望多多支持,偶不是原作者,在原基础上优化了一下,请勿怪突破平台主图指标源码:VAR1AA:=((2)*(CLOSE)+OPEN+HIGH+LOW)/(5);VAR2AA:=VOL;上升价格线:(SUM((VAR1AA)*(VAR2AA),8))/(SUM(VAR2AA,8)),COLOR0000FF;下降价格线:LLV(上升价格线,8),COLOR00FF00;VAR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0);VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (VAR3AA>0),91,0);DRAWTEXT(FILTER((VAR4AA>90),34),(LOW)*(0.94999998),'加仓'),COLOR00FFFF; DRAWTEXT(FILTER((VAR4AA>90),34),(LOW)*(0.99000001),'★'),COLOR00FFFF;A1AA:=9;A2AA:=(REF(CLOSE,A1AA+1)<CLOSE);DRAWTEXT(FILTER((A2AA>0),34),(HIGH)*(1.02),''),COLORGREEN;VAR1:=REF(CLOSE,1);VAR2:=MA(CLOSE,5);VAR3:=SMA(MAX(CLOSE-VAR1,0),6,1)/SMA(ABS(CLOSE-VAR1),6,1)*100;VAR4:=SMA(MAX(CLOSE-VAR1,0),12,1)/SMA(ABS(CLOSE-VAR1),12,1)*100;VAR5:=SMA(MAX(CLOSE-VAR1,0),24,1)/SMA(ABS(CLOSE-VAR1),24,1)*100;VAR6:=IF(CROSS(VAR3,VAR5),LOW,REF(LOW,BARSLAST(CROSS(VAR3,VAR5))));VAR7:=IF(CROSS(VAR5,VAR3),HIGH,REF(HIGH,BARSLAST(CROSS(VAR5,VAR3))));VAR8:=IF(CLOSE>=MA(CLOSE,20),80,50);VAR9:=IF(CLOSE>=MA(CLOSE,20),50,20);VARA:=IF(VAR3<VAR8 ANDREF(VAR3,1)>=VAR8,HHV(REF(HIGH,1),BARSLAST(VAR3>=VAR8 ANDREF(VAR3,1)<VAR8)-1),REF(HHV(REF(HIGH,1),BARSLAST(VAR3>=VAR8 ANDREF(VAR3,1)<VAR8)-1),BARSLAST(VAR3<VAR8 AND REF(VAR3,1))));VARB:=IF(HIGH>VARA,LOW,REF(LOW,BARSLAST(HIGH>VARA)));VARC:=IF(HIGH>VARA,VAR3,REF(VAR3,BARSLAST(HIGH>VARA)));VARD:=IF(HIGH>VARB AND VAR3<VARC ANDVAR3<VAR5,HIGH,REF(HIGH,BARSLAST(HIGH>VARB AND VAR3<VARC ANDVAR3<VAR5)));VARE:=IF(VAR3>VAR9 ANDREF(VAR3,1)<=VAR9,LLV(REF(LOW,1),BARSLAST(VAR3<=VAR9 ANDREF(VAR3,1)>VAR9)-1),REF(LLV(REF(LOW,1),BARSLAST(VAR3<=VAR9 ANDREF(VAR3,1)>VAR9)-1),BARSLAST(VAR3>VAR9 AND REF(VAR3,1))));VARF:=IF(LOW<VARE,HIGH,REF(HIGH,BARSLAST(LOW<VARE)));VAR10:=IF(LOW<VARE,VAR3,REF(VAR3,BARSLAST(LOW<VARE)));VAR11:=IF(LOW<VARF AND VAR3>VAR10 ANDVAR3>VAR5,LOW,REF(LOW,BARSLAST(LOW<VARF AND VAR3>VAR10 ANDVAR3>VAR5)));支撑线: VAR11,COLORFF00FF ,LINETHICK2 ;压力线: VARD, COLORBLUE,LINETHICK2 ;DING:=MAX(O,C);{实顶}DI:=MIN(O,C);{实底}YANG:=(DI>=REF(DING,1)) OR (C>O AND NOT(DING<=REF(DI,1))) OR (C>REF(C,1) AND C=O) OR (C=REF(C,1) AND C=O AND REF(DING,1)=C);{阳线}YIN:=NOT(YANG);{YIN:=(C<O AND NOT(DI>=REF(DING,1))) OR (C>O AND DING<=REF(DI,1)) OR(C<REF(C,1) AND C=O) OR (C=REF(C,1) AND C=O AND REF(DI,1)=C);{阴线}} YANGSHENG:YANG AND C>=REF(DING,BARSLAST(YIN)) AND (V>REF(V,BARSLAST(YIN)) OR (BETWEEN(V,REF(V,BARSLAST(YIN))*0.95,REF(V,BARSLAST(YIN))*1.05))),NODRAW; ;LIANGJIABI:V/C,NODRAW;MALIANGJIABI:MA(LIANGJIABI,3),NODRAW;LIANGJIABIXISHU:=1.5;BLZ:=V>REF(V,1)*1.5;PLZ:=BETWEEN(V,REF(V,1)*0.95,REF(V,1)*1.05) ORBETWEEN(V,REFX(V,1)*0.95,REFX(V,1)*1.05) OR(BETWEEN(V,REF(V,2)*0.95,REF(V,2)*1.05) AND V>REF(V,1)*1.2) OR (BETWEEN(V,REF(V,3)*0.95,REF(V,3)*1.05) AND V>REF(MA(V,2),1)*1.2 ANDV>REF(HHV(V,2),1)) OR(BETWEEN(V,REF(V,4)*0.95,REF(V,4)*1.05) AND V>REF(MA(V,3),1)*1.2 ANDV>REF(HHV(V,3),1)) OR(BETWEEN(V,REF(V,5)*0.95,REF(V,5)*1.05) AND V>REF(MA(V,4),1)*1.2 ANDV>REF(HHV(V,4),1)) OR(BETWEEN(V,REF(V,6)*0.95,REF(V,6)*1.05) AND V>REF(MA(V,5),1)*1.2 ANDV>REF(HHV(V,5),1)) OR(BETWEEN(V,REF(V,7)*0.95,REF(V,7)*1.05) AND V>REF(MA(V,6),1)*1.2 ANDV>REF(HHV(V,6),1)) OR(BETWEEN(V,REF(V,8)*0.95,REF(V,8)*1.05) AND V>REF(MA(V,7),1)*1.2 ANDV>REF(HHV(V,7),1)) OR(BETWEEN(V,REF(V,9)*0.95,REF(V,9)*1.05) AND V>REF(MA(V,8),1)*1.2 ANDV>REF(HHV(V,8),1)) OR(BETWEEN(V,REF(V,10)*0.95,REF(V,10)*1.05) AND V>REF(MA(V,9),1)*1.2 ANDV>REF(HHV(V,9),1)) OR(BETWEEN(V,REF(V,11)*0.95,REF(V,11)*1.05) AND V>REF(MA(V,10),1)*1.2 ANDV>REF(HHV(V,10),1)) OR(BETWEEN(V,REF(V,12)*0.95,REF(V,12)*1.05) AND V>REF(MA(V,11),1)*1.2 ANDV>REF(HHV(V,11),1));GLZ:=V=HHV(V,3) AND V=REFX(HHV(V,3),2);TLZ:=(V*1.1<REFX(V,1) AND REFX(V,1)*1.1<REFX(V,2)) OR (V>REF(V,1)*1.1 ANDV*1.1<REFX(V,1)) OR (V>REF(V,1)*1.1 AND REF(V,1)>REF(V,2)*1.1);JSLS:=C<=REFX(C,1) AND REFX(C,1)<=REFX(C,2) ANDLIANGJIABI>REFX(LIANGJIABI,1) AND REFX(LIANGJIABI,1)>REFX(LIANGJIABI,2); JZ:=BLZ OR GLZ OR PLZ OR TLZ,NODRAW;JJZ:=CURRBARSCOUNT>=4 AND YANG AND (YANGSHENG) AND JZ ANDREFX(LLV(DI,3),3)>=DI AND(REFX(MA(LIANGJIABI,3),3)<=LIANGJIABIXISHU*LIANGJIABI OR REFX(JSLS,1)) AND REFX(C,3)>=DING,NODRAW;HJZ1:=JJZ AND REFX(MA(C,3),3)>=DING AND REFX(MA(LIANGJIABI,3),3)<=LIANGJIABI AND REFX(YANG,3);HJZ2:=YANG AND YANGSHENG AND JZ AND REFX(DI,1)>=DI AND REFX(JJZ,2) ANDREFX(C,2)>DING AND REFX(LIANGJIABI,1)<LIANGJIABI;HJZ3:=YANG AND YANGSHENG AND JZ AND REFX(LLV(DI,2),2)>=DI AND REFX(JJZ,3) AND REFX(C,3)>DING AND REFX(MA(LIANGJIABI,2),2)<LIANGJIABI;HJZ4:=JJZ AND REFX(LLV(DI,3),3)>=DING ANDREFX(MA(LIANGJIABI,3),3)<=LIANGJIABI AND REFX(YANG,3) AND (REFX(YANG,1) OR REFX(YANG,2));WP:JJZ OR HJZ1 OR HJZ4 OR HJZ2 OR HJZ3,NODRAW;CONDJJZ:=JJZ AND REF(NOT(WP),1);CONDHJZ1:=(HJZ1 OR HJZ2 OR HJZ3) AND REF(NOT(WP),1);STICKLINE(CONDJJZ,C,O,1,0),COLORYELLOW;STICKLINE(CONDHJZ1,C,O,1,0),COLORMAGENTA;DRAWTEXT(HJZ4 AND REF(NOT(HJZ4),1),L*0.98,'H'),COLORRED;DRAWLINE(CONDJJZ,DING,REF(CONDJJZ,1),REF(DING,1),1),COLORBROWN; DRAWLINE(CONDJJZ,DI,REF(CONDJJZ,1),REF(DI,1),1),COLORBROWN; DRAWLINE(CONDHJZ1,DING,REF(CONDHJZ1,1),REF(DING,1),1),COLORBROWN; DRAWLINE(CONDHJZ1,DI,REF(CONDHJZ1,1),REF(DI,1),1),COLORBROWN;VOL5:=MA(VOL,5),COLORWHITE;VOL10:=MA(VOL,10),COLORYELLOW;VOL40:=MA(VOL,40),COLORFF00FF ;MA5:=MA(CLOSE,5),COLORWHITE;MA10:=MA(CLOSE,10),COLORYELLOW;MA20:=MA(CLOSE,20),COLORMAGENTA;MA60:=MA(CLOSE,60),COLORGREEN;MA120:=MA(CLOSE,120),COLORLIMAGENTA;MA240:=MA(CLOSE,240),COLORBLUE,NODRAW;量托:=VOL5>=VOL40 AND CROSS(VOL10,VOL40) AND REF(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.12,'芙蓉出水'),COLORFF00FF;STICKLINE(芙蓉出水,H,L,0.5,1),COLORFF00FF;STICKLINE(芙蓉出水,O,C,3,1),LINETHICK2,COLORFF00FF;MA1:=MA(CLOSE,14);MA2:=MA(CLOSE,25);MA3:=MA(CLOSE,99);ZJ:=AMOUNT/10000;{资金}TM:=V-MA(V,10);{量填满}一穿三:=MA1>O AND MA2>O AND MA3>O AND MA1<C AND MA2<C AND MA3<C AND CLOSE>OPEN ;DRAWTEXT(一穿三,L-0.012,'穿'),COLORFF00FF;TY:=C;A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10); C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10);A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10); C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10);前期高位:REF(C,BARSLAST(HD)),COLOR00FF00,POINTDOT;STICKLINE(C,前期高位,前期高位,8,0),COLORRED;STICKLINE((HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)>0.667,H,C,0.8,0),COLORBLUE;三日不破:=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);三日价涨B:=C<REF(C,1);三日价涨C:=MIN(MIN(C,REF(C,1)),REF(C,2))>=REF(L,3);TIM:=IF(DATE<1140214,1,0);缩倍柱:=(VOL*1.95<=REF(VOL,1))*TIM;百日低量:=(VOL=LLV(VOL,100))*TIM;倍量柱:=C>REF(C,1)*1.04 AND (VOL>=1.9*REF(VOL,1))*TIM;四日前倍量柱:=(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 高量黄金柱;次倍量黄金柱:=NOT(黄金柱) AND 四日前倍量柱AND 三日量缩AND 三日不破AND 三日价涨B AND 前三引用不成立;次高量黄金柱:=NOT(黄金柱) AND 四日前高量柱AND 三日量缩AND 三日不破AND 三日价涨B AND 前三引用不成立;次黄金柱:=次倍量黄金柱OR 次高量黄金柱;准倍量黄金柱:=NOT(黄金柱OR 次黄金柱) AND 四日前倍量柱AND ((三日量缩AND 三日价涨C) OR (COUNT(倍量柱,3)>=1 AND 三日不破)) AND 前三引用不成立;准高量黄金柱:=NOT(黄金柱OR 次黄金柱) AND 四日前高量柱AND (三日量缩AND 三日价涨C) AND 前三引用不成立;准黄金柱:=准倍量黄金柱OR 准高量黄金柱;倍量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱) AND 四日前倍量柱AND 三日不破AND 三日价涨A AND 前三引用不成立;高量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱) AND 四日前高量柱AND 三日不破AND 三日价涨A AND 前三引用不成立;将军柱:=倍量将军柱OR 高量将军柱;次倍量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱OR 将军柱) AND 四日前倍量柱AND 三日不破AND 三日价涨B AND 前三引用不成立;次高量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱OR 将军柱) AND 四日前高量柱AND 三日不破AND 三日价涨B AND 前三引用不成立;次将军柱:=次倍量将军柱OR 次高量将军柱;准倍量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱OR 将军柱OR 次将军柱) AND 四日前倍量柱AND 三日价涨C AND 前三引用不成立;准高量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱OR 将军柱OR 次将军柱) AND 四日前高量柱AND 三日价涨C AND 前三引用不成立;准将军柱:=准倍量将军柱OR 准高量将军柱;BACKSET100:=BACKSET(黄金柱OR 次黄金柱OR 准黄金柱OR 将军柱OR 次将军柱OR 准将军柱,4);FILTER100:=FILTER(BACKSET100,3),NODRAW;BACKSET101:=BACKSET(黄金柱,4);FILTER101:=FILTER(BACKSET101,3);BACKSET102:=BACKSET(次黄金柱,4);FILTER102:=FILTER(BACKSET102,3);BACKSET103:=BACKSET(准黄金柱,4);FILTER103:=FILTER(BACKSET103,3);BACKSET104:=BACKSET(将军柱,4);FILTER104:=FILTER(BACKSET104,3);BACKSET105:=BACKSET(次将军柱,4);FILTER105:=FILTER(BACKSET105,3);BACKSET106:=BACKSET(准将军柱,4);FILTER106:=FILTER(BACKSET106,3);黄金线下影线:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<=REF(L,3); 黄金线实体下端:=REF(FILTER100,3)=1 ANDMIN(MIN(L,REF(L,1)),REF(L,2))<=MIN(REF(C,3),REF(O,3)) ANDMIN(MIN(L,REF(L,1)),REF(L,2))>REF(L,3),LINETHICK0;黄金线上影线:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>=REF(H,3); 黄金线实体上端:=REF(FILTER100,3)=1 ANDMIN(MIN(L,REF(L,1)),REF(L,2))>=MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<REF(H,3);黄金线实体中间:=REF(FILTER100,3)=1 ANDMIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3));黄金线实体中间1:=REF(FILTER100,3)=1 ANDMIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3)) ANDREF(L,2)=MIN(MIN(L,REF(L,1)),REF(L,2));黄金线实体中间2:=REF(FILTER100,3)=1 ANDMIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3)) ANDREF(L,1)=MIN(MIN(L,REF(L,1)),REF(L,2));黄金线实体中间3:=REF(FILTER100,3)=1 ANDMIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3)) ANDL=MIN(MIN(L,REF(L,1)),REF(L,2));BACKSET201:=BACKSET(黄金线下影线,4);FILTER201:=FILTER(BACKSET201,3),NODRAW;BACKSET202:=BACKSET(黄金线实体下端,4);FILTER202:=FILTER(BACKSET202,3),NODRAW;BACKSET203:=BACKSET(黄金线上影线,4);FILTER203:=FILTER(BACKSET203,3),NODRAW;BACKSET204:=BACKSET(黄金线实体上端,4);FILTER204:=FILTER(BACKSET204,3),NODRAW;BACKSET205:=BACKSET(黄金线实体中间,4);FILTER205:=FILTER(BACKSET205,3),NODRAW;BACKSET2051:=BACKSET(黄金线实体中间1,4);FILTER2051:=FILTER(BACKSET2051,3),NODRAW;BACKSET2052:=BACKSET(黄金线实体中间2,4);FILTER2052:=FILTER(BACKSET2052,3),NODRAW;BACKSET2053:=BACKSET(黄金线实体中间3,4);FILTER2053:=FILTER(BACKSET2053,3),NODRAW;BT201:=IF(BARSLAST(FILTER201)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER201));BT202:=IF(BARSLAST(FILTER202)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER 202));BT203:=IF(BARSLAST(FILTER203)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER 203));BT204:=IF(BARSLAST(FILTER204)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER 204));BT205:=IF(BARSLAST(FILTER205)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER 205));BT2051:=IF(BARSLAST(FILTER2051)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILT ER2051));BT2052:=IF(BARSLAST(FILTER2052)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILT ER2052));BT2053:=IF(BARSLAST(FILTER2053)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILT ER2053));最近黄金线:=MIN(MIN(MIN(MIN(MIN(MIN(BT201,BT202),BT203),BT204),BT2051),BT2052),BT20 53);DAY1:=SUMBARS(FILTER100,1),NODRAW;HJX1_1:=IF(SUMBARS(FILTER201,1)=DAY1,IF(DAY1=1,LOW,REF(LOW,DAY1-1)),0),NO DRAW;HJX1_2:=IF(SUMBARS(FILTER202,1)=DAY1,IF(DAY1=1,MIN(C,O),MIN(REF(C,DAY1-1),R EF(OPEN,DAY1-1))),0),NODRAW;HJX1_3:=IF(SUMBARS(FILTER203,1)=DAY1,IF(DAY1=1,HIGH,REF(HIGH,DAY1-1)),0),N ODRAW;HJX1_4:=IF(SUMBARS(FILTER204,1)=DAY1,IF(DAY1=1,MAX(C,O),MAX(REF(C,DAY1-1), REF(OPEN,DAY1-1))),0),NODRAW;HJX1_51:=IF(SUMBARS(FILTER2051,1)=DAY1,IF(DAY1=2,LOW,IF(DAY1<2,DRAWNULL, REF(LOW,DAY1-2))),0),NODRAW;HJX1_52:=IF(SUMBARS(FILTER2052,1)=DAY1,IF(DAY1=3,LOW,IF(DAY1<3,DRAWNULL, REF(LOW,DAY1-3))),0),NODRAW;HJX1_53:=IF(SUMBARS(FILTER2053,1)=DAY1,IF(DAY1=4,LOW,IF(DAY1<4,DRAWNULL, REF(LOW,DAY1-4))),0),NODRAW;黄金线:HJX1_1+HJX1_2+HJX1_3+HJX1_4+HJX1_51+HJX1_52+HJX1_53,COLORYELLOW,NO DRAW;立桩量:=VOL=HHV(VOL,40) AND VOL>1.9*REF(VOL,1);立桩量三日突破:=IF(BARSLAST(立桩量)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(立桩量)=3 ANDCLOSE>REF(HIGH,3),1,0)));立桩量三日不破:=BARSLAST(立桩量)=3 ANDREF(LOW,3)<=MIN(MIN(C,REF(C,1)),REF(C,2));BACKSET300:=BACKSET(立桩量三日不破,4);BACKSET301:=BACKSET(立桩量三日突破,4);立桩量成立:=FILTER(BACKSET300,3) AND BACKSET301 AND 立桩量; DRAWTEXT(立桩量成立,HIGH*1.01,'↙立桩量'),COLORRED;DRAWTEXT(FILTER101,LOW*0.986,'↖黄金柱'),COLORYELLOW;DRAWTEXT(FILTER102,LOW*0.986,'↖次黄金柱'),COLORYELLOW; DRAWTEXT(FILTER104,LOW*0.986,'↖将军柱'),COLORYELLOW;加仓副图/选股公式:RSV:=((HHV(HIGH,13)-CLOSE)/(HHV(HIGH,13)-LLV(LOW,13)))*(100);LWR1:=SMA(RSV,3,1);LWR2:=SMA(LWR1,5,1);VAR1AA:=((2)*(CLOSE)+OPEN+HIGH+LOW)/(5);VAR2AA:=VOL;上升价格线:=(SUM((VAR1AA)*(VAR2AA),8))/(SUM(VAR2AA,8));下降价格线:=LLV(上升价格线,8);VAR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0);VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (VAR3AA>0),91,0);VAR1:=REF(CLOSE,1);VAR2:=MA(CLOSE,5);VAR3:=SMA(MAX(CLOSE-VAR1,0),6,1)/SMA(ABS(CLOSE-VAR1),6,1)*100;VAR4:=SMA(MAX(CLOSE-VAR1,0),12,1)/SMA(ABS(CLOSE-VAR1),12,1)*100;VAR5:=SMA(MAX(CLOSE-VAR1,0),24,1)/SMA(ABS(CLOSE-VAR1),24,1)*100;VAR6:=IF(CROSS(VAR3,VAR5),LOW,REF(LOW,BARSLAST(CROSS(VAR3,VAR5)))); VAR7:=IF(CROSS(VAR5,VAR3),HIGH,REF(HIGH,BARSLAST(CROSS(VAR5,VAR3)))); VAR8:=IF(CLOSE>=MA(CLOSE,20),80,50);VAR9:=IF(CLOSE>=MA(CLOSE,20),50,20);VARA:=IF(VAR3<VAR8 ANDREF(VAR3,1)>=VAR8,HHV(REF(HIGH,1),BARSLAST(VAR3>=VAR8 ANDREF(VAR3,1)<VAR8)-1),REF(HHV(REF(HIGH,1),BARSLAST(VAR3>=VAR8 ANDREF(VAR3,1)<VAR8)-1),BARSLAST(VAR3<VAR8 AND REF(VAR3,1))));VARB:=IF(HIGH>VARA,LOW,REF(LOW,BARSLAST(HIGH>VARA)));VARC:=IF(HIGH>VARA,VAR3,REF(VAR3,BARSLAST(HIGH>VARA)));VARD:=IF(HIGH>VARB AND VAR3<VARC ANDVAR3<VAR5,HIGH,REF(HIGH,BARSLAST(HIGH>VARB AND VAR3<VARC ANDVAR3<VAR5)));VARE:=IF(VAR3>VAR9 ANDREF(VAR3,1)<=VAR9,LLV(REF(LOW,1),BARSLAST(VAR3<=VAR9 ANDREF(VAR3,1)>VAR9)-1),REF(LLV(REF(LOW,1),BARSLAST(VAR3<=VAR9 ANDREF(VAR3,1)>VAR9)-1),BARSLAST(VAR3>VAR9 AND REF(VAR3,1))));VARF:=IF(LOW<VARE,HIGH,REF(HIGH,BARSLAST(LOW<VARE)));VAR10:=IF(LOW<VARE,VAR3,REF(VAR3,BARSLAST(LOW<VARE)));VAR11:=IF(LOW<VARF AND VAR3>VAR10 ANDVAR3>VAR5,LOW,REF(LOW,BARSLAST(LOW<VARF AND VAR3>VAR10 ANDVAR3>VAR5)));压力线:= VAR11,COLORFF00FF ,LINETHICK2 ;A:=C/REF(C,1)>1.095 AND H=O AND L=H;去除ST和停牌:=NOT(NAMELIKE('S') OR NAMELIKE('*S')) AND DYNAINFO(4)>0; XG:FILTER((VAR4AA>90),34) AND 上升价格线>下降价格线AND O>=REF(C,1) AND C>REF(C,1) AND LOW>=压力线AND NOT(A) AND 去除ST和停牌;。

突破左峰优化版主图 幅图 选股通达信指标公式源码

突破左峰优化版主图 幅图 选股通达信指标公式源码

突破左峰优化版主图幅图选股评测我是这么设置的时间2014.12.1---2015.4014.止损10% 止盈20%,然后将所有164张票导入开始.主图T:=FINDHIGHBARS(H,60,30,1);A:DRAWLINE(CURRBARSCOUNT=CONST(T)+1,H,ISLASTBAR,REF(H,T),0),COLORYELLO W;TT:=BARSLAST(C>A*1.014 AND L<A);TA:=BARSLAST(CROSS(A!=DRAWNULL,0.5));TJ:=VOL=HHV(VOL,T+1) AND TA>28;TJ1:=COUNT(EXPMA(C,2)>=A,TA+1)=1 AND EXPMA(C,2)>=A*1.01;E13:=EXPMA(C,TA+1);CJ:=(A/E13-1) *100 ;HH:=HHV(CJ,10);XG:=COUNT(TT=0,T+1)=1 AND TT=0 AND TJ AND TJ1 AND HH<20;STICKLINE(XG,H,L,0,0),COLORFF00FF;STICKLINE(XG,C,O,3,0),COLOR990099;STICKLINE(XG,C,O,2,0),COLORBB00BB;STICKLINE(XG,C,O,1,0),COLORDD00DD;STICKLINE(XG,C,O,0.3,0),COLORFF00FF;DRAWICON(XG,L*0.93,25);DRAWTEXT(TA=0,A*1.05,STRCAT(STRCAT('最高价:',VAR2STR(REF(A,TA),2)),'元'))COLORYELLOW;幅图T:=FINDHIGHBARS(H,60,30,1);A:=DRAWLINE(CURRBARSCOUNT=CONST(T)+1,H,ISLASTBAR,REF(H,T),0);TT:=BARSLAST(C>A*1.014 AND L<A);TA:=BARSLAST(CROSS(A!=DRAWNULL,0.5));TJ:=VOL=HHV(VOL,T+1) AND TA>28;TJ1:=COUNT(EXPMA(C,2)>=A,TA+1)=1 AND EXPMA(C,2)>=A*1.01;E13:=EXPMA(C,TA+1);CJ:=(A/E13-1) *100 ;HH:=HHV(CJ,10);XG:=COUNT(TT=0,T+1)=1 AND TT=0 AND TJ AND TJ1 AND HH<20;STICKLINE(XG,0,8,3,0),COLOR990099;STICKLINE(XG,0,8,2,0),COLORBB00BB;STICKLINE(XG,0,8,1,0),COLORDD00DD;STICKLINE(XG,0,8,0.3,0),COLORFF00FF;选股T:=FINDHIGHBARS(H,60,30,1);A:=DRAWLINE(CURRBARSCOUNT=CONST(T)+1,H,ISLASTBAR,REF(H,T),0);TT:=BARSLAST(C>A*1.014 AND L<A);TA:=BARSLAST(CROSS(A!=DRAWNULL,0.5));TJ:=VOL=HHV(VOL,T+1) AND TA>28;TJ1:=COUNT(EXPMA(C,2)>=A,TA+1)=1 AND EXPMA(C,2)>=A*1.01; E13:=EXPMA(C,TA+1);CJ:=(A/E13-1) *100 ;HH:=HHV(CJ,10);XG:COUNT(TT=0,T+1)=1 AND TT=0 AND TJ AND TJ1 AND HH<20;。

通达信突破龙头选股指标公式源码编程思路破译及成功率回测数据和风险提示

通达信突破龙头选股指标公式源码编程思路破译及成功率回测数据和风险提示

通达信突破龙头选股指标公式源码编程思路破译及成功率回测数据和风险提示编程思路破译A1赋值:成交量(手)A2赋值:A1的5日简单移动平均A3赋值:收盘价的10日简单移动平均A4赋值:收盘价的26日简单移动平均A5赋值:收盘价的5日指数移动平均A6赋值:收盘价的14日指数移动平均A7赋值:收盘价的18日指数移动平均A8赋值:收盘价的40日指数移动平均A9赋值:收盘价的60日指数移动平均A10赋值:收盘价的10日简单移动平均A11赋值:收盘价的54日简单移动平均A12赋值:(3日前的收盘价-收盘价)/3日前的收盘价*100>5A13赋值:A12的10日过滤A14赋值:上次A13距今天数A15赋值:A14+2日前的最高价A16赋值:A14+1日前的最高价A17赋值:A14日前的最高价A18赋值:A15和A16的较大值A19赋值:A18和A17的较大值A20赋值:(收盘价-1日前的收盘价)/1日前的收盘价*100>5A21赋值:A14<150A22赋值:(开盘价-A19)/A19*100<30A23赋值:(收盘价-A14日内最低价的最低值)/A14日内最低价的最低值*100<50A24赋值:(收盘价-5日前的开盘价)/5日前的开盘价*100<30A25赋值:成交量(手)/成交量(手)的5日简单移动平均<3.5A26赋值:(收盘价-89日前的收盘价)/89日前的收盘价*100<80 A27赋值:A20 AND A21 AND A22 AND A23 AND A24 AND A25 AND A26A28赋值:A27的15日过滤A29赋值:(收盘价-A11)/A11<0.1A30赋值:(收盘价-A10)/A10<0.3A31赋值:(A29=1 AND A30=1)*0.2A32赋值:(A31=0 AND 1日前的A31=0.2 AND 1日前的统计10日中满足A31=0.2的天数=10=1)*(-0.1)A33赋值:A32=(-0.1)A34赋值:A28 OR A33A35赋值:现价/1日前的收盘价>1.05 AND 现价/开盘价>1.05A36赋值:成交量(手)/1日前的成交量(手)>1.2 AND 统计1日中满足收阳线的天数 OR (最低价>1日前的最高价 AND 统计1日中满足收阴线的天数 AND 成交量(手)/1日前的成交量(手)>1.2)A37赋值:A34 AND 收盘价/1日前的收盘价>1.099 AND A36 AND A35A38赋值:开盘价>0 AND 10日内最高价的最高值/10日内最低价的最低值<1.25 AND 1日前的收盘价<15日内最低价的最低值+(15日内最高价的最高值-15日内最低价的最低值)*0.85 AND 收阳线ANDSE 收盘价>=10日内最高价的最高值A39赋值:开盘价>0 AND 8日内最高价的最高值/8日内最低价的最低值<2 AND 1日前的收盘价<15日内最低价的最低值+(15日内最高价的最高值-15日内最低价的最低值) AND 收阳线ANDSE 收盘价>=120日内最高价的最高值A40赋值:A8和A9的较大值A41赋值:收盘价>A40 AND A38 AND (收盘价>1日前的3日内最高价的最高值 AND (收盘价-1日前的收盘价)/1日前的收盘价>0.07) A42赋值:A2+A2>A1A43赋值:收盘价>1日前的3日内最高价的最高值 AND (收盘价-1日前的收盘价)/1日前的收盘价>0.07 AND A39 AND A42 A44赋值:(收盘价-1日前的收盘价)/1日前的收盘价*100>7A45赋值:A39 AND A44A46赋值:A41 AND A45A47赋值:A5和A3的较大值和A6的较大值和A7的较大值和A8的较大值和A9的较大值A48赋值:A5和A3的较小值和A6的较小值和A7的较小值和A8的较小值和A9的较小值A49赋值:收盘价>A47 AND 最低价<A48 AND (收盘价>1日前的3日内最高价的最高值AND (收盘价-1日前的收盘价)/1日前的收盘价>0.09)A50赋值:A49>0的历史过滤=1A51赋值:1日前的26日内收盘价的最高值的2日简单移动平均A52赋值:收盘价-A4的2乘幂A53赋值:A52的13日简单移动平均A54赋值:A53的开方A55赋值:A4+2*A54A56赋值:收盘价上穿A51 AND 最高价>1日前的A55 OR (收盘价>A51 AND 收盘价上穿1日前的A55) AND 收盘价/开盘价>0.998 A57赋值:平滑异同平均线的MACDA58赋值:随机指标KD的KA59赋值:随机指标KD的DA60赋值:RSI的RSI1A61赋值:RSI的RSI3A62赋值:收盘价-1日前的收盘价A63赋值:如果A62>=0,返回A62,否则返回0A64赋值:如果A62<0,返回-A62,否则返回0A65赋值:A63的10日平滑移动平均A66赋值:A64的10日平滑移动平均A67赋值:A63的6日平滑移动平均A68赋值:A64的6日平滑移动平均A69赋值:100*A65/(A65+A66)的10日简单移动平均A70赋值:100*A67/(A67+A68)的6日简单移动平均A71赋值:收盘价的5日简单移动平均/收盘价的10日简单移动平均>0.999 AND 收盘价的10日简单移动平均/收盘价的20日简单移动平均>0.9847 AND 收盘价的20日简单移动平均>收盘价的60日简单移动平均AND 1日前的统计8日中满足收盘价的10日简单移动平均/收盘价的20日简单移动平均<1.017ORMA(收盘价,5)/收盘价的10日简单移动平均<1.017的天数>=1 AND 收盘价的20日简单移动平均/收盘价的60日简单移动平均<1.121A72赋值:(收盘价-收盘价的60日简单移动平均)/收盘价的60日简单移动平均*100A73赋值:统计100日中满足A72<35的天数>=95A74赋值:A56 AND A71>0 AND 取反 AND A73 AND 1日前的统计4日中满足收盘价的20日简单移动平均>收盘价的30日简单移动平均的天数=4ANDCOUNT(收盘价>收盘价的5日简单移动平均,3)>=2AND 成交量(手)>1日前的成交量(手) AND (1日前的统计10日中满足收阳线的天数>=6ORCOUNT(收阳线,5)>=4 OR 收盘价=最高价) AND (A70上穿A69 OR A57上穿0OR 1日前的统计3日中满足A57上穿0的天数=1ANDA57<0.15ANDCLOSE/开盘价>0.989ANDCLOSE/1日前的收盘价<1.03 OR A58上穿A59OR A60上穿A61) AND 1日前的收盘价/开盘价>0.988AND(收盘价>OPENOR(收盘价<=OPENANDHIGH/最低价<1.049)) AND 最高价/收盘价<1.013 AND 收盘价/开盘价>1.05A75赋值:A41+A43+A45+A50+A74>=2A76赋值:收盘价的5日简单移动平均>收盘价的10日简单移动平均AND 收盘价的10日简单移动平均>收盘价的20日简单移动平均AND 收盘价的20日简单移动平均>收盘价的60日简单移动平均 AND 收盘价的60日简单移动平均>收盘价的120日简单移动平均 AND 收盘价的5日简单移动平均>1日前的收盘价的5日简单移动平均A77赋值:收盘价>1日前的收盘价*1.1-0.01A78赋值:20日内最高价的最高值=1日内收盘价的最高值AND 成交量(手)>0 AND 收盘价的有效数据周期数>=20A79赋值:成交量(手)/1日前的成交量(手)>1.9A80赋值:A76 AND A77 AND A78 AND A79A81赋值:收盘价/1日前的收盘价>1.05 AND 1日前的收盘价/2日前的收盘价<1.05 AND 收盘价/10日内收盘价的最低值<1.4 A82赋值:成交量(手)/1日前的成交量(手)>2 OR 成交量(手)=15日内成交量(手)的最高值A83赋值:当前流通股本(手)<10000000A84赋值:(收盘价的5日简单移动平均/1日前的收盘价的5日简单移动平均-1)*100的反正切*57.299999>40A85赋值:(收盘价的10日简单移动平均/1日前的收盘价的10日简单移动平均-1)*100的反正切*57.299999>30A86赋值:(收盘价的20日简单移动平均/1日前的收盘价的20日简单移动平均-1)*100的反正切*57.299999>20A87赋值:(收盘价的30日简单移动平均/1日前的收盘价的30日简单移动平均-1)*100的反正切*57.299999>10A88赋值:A84 AND A85 AND A86 AND A87A89赋值:KDJ的K>1日前的KDJ的KA90赋值:KDJ的D>1日前的KDJ的D AND KDJ的D<70A91赋值:KDJ的J>1日前的KDJ的JA92赋值:A89 AND A90 AND A91A93赋值:A8 AND A81 AND A82 AND A83 AND A88 AND A92 A94赋值:A93的15日过滤A95赋值:A80 OR A94A96赋值:A95 AND A75 OR A50 OR A46输出突破龙头:A96 OR A39 OR A37条件选股:通达信突破龙头[日线]成功率测试(20日收益率10%)测试股票数:5076共发出信号:13952 成功信号:6999 失败信号:6836 未完成信号:117信号发出率:71.85% 平均成功率:50.59% 成功率达到50%的股票数有:56.73%利润1总平均:14.53% 最大平均利润1: 637.75% 最小平均利润1: 0.00%利润2总平均:-0.59% 最大平均利润2: 389.54% 最小平均利润2: -43.88%条件选股:通达信突破龙头[日线]成功率测试(250日收益率10%)测试股票数:5076共发出信号:13957 成功信号:11180 失败信号:2106 未完成信号:671信号发出率:71.85% 平均成功率:84.15% 成功率达到50%的股票数有:89.85%利润1总平均:62.73% 最大平均利润1: 4620.24% 最小平均利润1: 0.00%利润2总平均:14.77% 最大平均利润2: 2319.06% 最小平均利润2: -75.84%风险提示该公式包含未来函数:CAPITAL该公式包含未来函数:DYNAINFO。

通达信指标公式源码 数字预警解盘主图指标

通达信指标公式源码 数字预警解盘主图指标

AAA:=REFDATE(HHV(H,130),DATE);BBB:=REFDATE(LLV(L,130),DATE);DRAWBAND(AAA,RGB(0,80,80),BBB,RGB(00,00,00));N:=3;TYP:=(HIGH+LOW+CLOSE)/3;CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));CCI修正1:=EMA(EMA(EMA(CCI,2),2),2);CCI修正2:=EMA(EMA(EMA(CCI,3),2),2);X:=(CROSS(CCI修正1,CCI修正2) OR (CCI修正1>=CCI修正2))AND CCI修正1>=-101 AND CCI修正1>=REF(CCI修正1,1)AND REF(CCI修正1,1)<-101 ;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;K1:= EMA(EMA(EMA(K,2),2),2);D1:= EMA(EMA(EMA(D,2),2),2);J1:= EMA(EMA(EMA(J,2),2),2);Y:= J1>REF(J1,1) ;预警:=X AND Y ;上:=EMA(C,3);MM:=上>REF(上,1) AND REF(上,1)<REF(上,2) ;VAR03:=CLOSE=LLV(C,4) AND (REF(C,1)<REF(C,2) OR REF(C,1)<REF(C,3)) OR REF(C,1)=LLV(C,4) AND C<REF(C,2) OR REF(C,2)=LLV(C,4) ANDREF(C,1)=HHV(C,4) AND C<REF(C,1) OR REF(C,3)=LLV(C,4) ANDC<REF(C,1) AND C<REF(C,2);{收盘价=4日内收盘价的最低值AND (昨收<2日前的收盘价}VAR04:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1)<=REF(C,3) AND REF(C,2)<REF(C,4) AND C>=REF(C,1);{涨停}STICKLINE(CLOSE>REF(CLOSE,1)*1.0985 AND CLOSE=HIGH,CLOSE,OPEN,3.5,-1), COLOR00FFFF;{跌停}STICKLINE(CLOSE<REF(CLOSE,1)*0.9015 AND CLOSE=LOW,CLOSE,OPEN,3.5,-1), COLORGREEN;{蓝}STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,3.3*2,0),COLORFF6600;STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,2.4*2,0),COLORFF8800;STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,1.3*2,0),COLORFFAA00;STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,0.6*2,0),COLORFFCC00;{红}STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3.3*2,0),COLOR000099;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.4*2,0),COLOR0000BB;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1.3*2,0),COLOR0000DD;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0.5*2,0),COLOR0000FF;{绿}STICKLINE(VAR03,OPEN,(OPEN+CLOSE)/2,3.3*2,0),COLOR009900;STICKLINE(VAR03,OPEN,(OPEN+CLOSE)/2,2.4*2,0),COLOR00BB00;STICKLINE(VAR03,OPEN,(OPEN+CLOSE)/2,1.3*2,0),COLOR00DD00;STICKLINE(VAR03,OPEN,(OPEN+CLOSE)/2,0.5*2,0),COLOR00FF00;{灰}STICKLINE(VAR04 AND MM,OPEN,(OPEN+CLOSE)/2,3.3*2,0),COLOR999999; STICKLINE(VAR04 AND MM,OPEN,(OPEN+CLOSE)/2,2.2*2,0),COLORBBBBBB; STICKLINE(VAR04 AND MM,OPEN,(OPEN+CLOSE)/2,1.3*2,0),COLORDDDDDD; STICKLINE(VAR04 AND MM,OPEN,(OPEN+CLOSE)/2,0.5*2,0),COLORFFFFFF;〓铁底〓: LLV(LOW,60)*1.02,DOTLINE,LINETHICK1,COLORLIGREEN;VAR1:=REF(LOW,1);VL:=REF(LOW,1);VAR102:=(SMA(ABS(LOW-VL),13,1))/(SMA(MAX(LOW-VL,0),13,1))*100;VAR104:=MA(VAR102,13);VAR105:=LLV(LOW,34);VAR108:=EMA(IF(LOW<=VAR105,VAR104,0),3);VAR88:=SMA(SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1),5,1); VAR89:=SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1)*16.18-VAR8 8*10.9;DRAWTEXT(ISLASTBAR,〓铁底〓,'〓铁底〓'),COLORLIGREEN;〓顶部〓: HHV(HIGH,60)*0.98,DOTLINE,LINETHICK1,COLORBLUE;VV2:=REF(CLOSE,1);VV3:=SMA((CLOSE-VV2),6,1)/SMA(ABS(CLOSE-VV2),6,1)*100;DRAWICON(REF(VV3,1)>81 AND VV3<80,HIGH,2);DRAWTEXT(ISLASTBAR,〓顶部〓,' 〓顶部〓'),COLORBLUE;VARR1:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100; DRAWICON(CROSS(82,VARR1),HIGH,10);DRAWTEXT(CROSS(82,VARR1),〓顶部〓,'预警卖★'),COLORGREEN;DRAWICON(预警,(LOW * 0.98),11);DRAWTEXT(预警,(LOW * 0.93),'→预警买'),COLORYELLOW; VAR15:=MA(CLOSE,5);VAR16:=MA(CLOSE,10);VAR17:=MA(CLOSE,20);VAR18:=MA(CLOSE,30);VAR19:=MA(CLOSE,60);VAR20:=MA(CLOSE,120);VAR21:=MA(CLOSE,250);WW5:=RANGE(VAR15 ,O,C);QQ10:=RANGE(VAR16 ,O,C);GG20:=RANGE(VAR17 ,O,C);DD30:=RANGE(VAR18 ,O,C);WW60:=RANGE(VAR19 ,O,C);TT120:=RANGE(VAR20 ,O,C);GG250:=RANGE(VAR21 ,O,C);JJBB:=WW5+QQ10+GG20+DD30+WW60+TT120+GG250; STICKLINE(JJBB>=3,O,C,0.5,0), COLOR42426F ; DRAWTEXT(JJBB=3,H*1.02,'3'),COLORWHITE; DRAWTEXT(JJBB=4,H*1.02,'4'),COLORWHITE; DRAWTEXT(JJBB=5,H*1.02,'5'),COLORWHITE; DRAWTEXT(JJBB=6,H*1.02,'6'),COLORWHITE; DRAWTEXT(JJBB=7,H*1.02,'7'),COLORWHITE;。

1本人长期使用的通达信选股持股 指标公式--突破预警(非常好用)

1本人长期使用的通达信选股持股 指标公式--突破预警(非常好用)

本人长期使用的通达信选股持股指标公式--突破预警(非常好用)一、指标介绍突破预警,是根据筹码、压力位、均线、kdj计算,指当价格突破压力线时进行预警,此后股价大概率上升。

二、指标截图发出白色、红色三角箭头时,为买入信号。

三、公式源代码{突破预警M1=5 M2=10}AAA:C;M3:=EMA(CLOSE,5);M20:=EMA(CLOSE,10);A:=BARSLAST(CROSS(M3,M20));A1:=REF(BARSLAST(CROSS(M3,M20)),A+1); A2:=A+A1;AA:=REF(BARSLAST(CROSS(M3,M20)),A2+2);A3:=AA+A2;B:=BARSLAST(CROSS(M20,M3));B1:=REF(BARSLAST(CROSS(M20,M3)),B+1); B2:=B+B1;BB:=REF(BARSLAST(CROSS(M20,M3)),B2+2); X1:=IF(A<B,A2-B,A-B);Y1:=IF(A2<B2,A3-B2,A2-B2);GD0:=REF(HHVBARS(H,X1+3),B);GD1:=REF(HHVBARS(H,Y1+3),B2);GG0:=BACKSET(ISLASTBAR,GD0+B+1);GG1:=BACKSET(ISLASTBAR,GD1+B2+1);TJ3:=CROSS(GG0,0.5);TJ4:=CROSS(GG1,0.5);上轨:=DRAWLINE(TJ4,H,TJ3,H,1);值3:=GG0>REF(GG0,1);值4:=GG1>REF(GG1,1);顶1:IF(GG0,REF(HIGH,BARSLAST(值3)),0); 突破1:CROSS(C,顶1);突破2:COUNT(突破1,10);突破:(突破1 AND 突破2=1);四、公式使用方法功能---公式系统 ---公式管理器—新建—输入公式就可以了注:指标公式不是万能的。

通达信起爆主图源码通达信指标源码公式.docx

通达信起爆主图源码通达信指标源码公式.docx

起爆主图送给大家,喜欢我指标的人请加关注,后续有更多的指标奉献给大家!AA1:=SU M(IF(CLOSE>REF(CLOSE,l),VOL/CAPITAL*100,IF(CLOSEvREF(CLOSE,l),・VOL/CAPITAL*100,0)),0);成交额:=V*C/100Z NODRAW;{万元}AA2:=SUM((IF(((成交额/8>20) AND (CLOSE>(REF(CLOSE,1)))),成交额,0)),0);AA3:=SUM((IF(((成交额/8>20) AND (CLOSEv(REF(CLOSE,l)))),成交额,0)),0);AA4:=SUM((IF(((成交额/8<20) AND (CLOSE>(REF(CLOSE,1)))),成交额,0)),0);AA5:=SUM((IF(((成交额/8<20) AND (CLOSEv(REF(CLOSE,l)))),成交额,0)),0);AA6:=((AA2+AA3)+AA4)+AA5;DD1: = 1;AAAI: =STRCAT(STRCAT(* 机构持有筹码:CON2STR((100*AA2)/AA6,0)),%');AAA2: =STRCAT(STRCAT(* 散户持有筹码:CON2STR((100*AA3)/AA6,0)),%'); DRAWTEXT_FIX(DD1 = 1,0.89,0.9,0,AAAI),COLORRED;DRAWTEXT_FIX(DD1 = 1,0.89,0.99z O,AAA2),COLORGREEN;N: = 13;M:=3;VAR2:=CLOSE*VOL;MID:=EMA((EMA(VAR2,3)/EMA(VOL,3)+EMA(VAR2Z6)/EMA(VOL,6)+EMA(VAR2,12)/EMA( VOL ,12)+EMA(VAR2,24)/EMA(VOL,24))/4Z N);VAR1: = MID;主趋势:MID;当前上升势:IFF(VAR1>REF(VAR1Z1),主趋势,DRAWNULL),COLORRED;当前下跌势:IFF(VAR1<REF(VAR1Z1),主趋势,DRAWNULL),COLORGREEN;SDN:MID*0・94,COLOROOCCFF,LINETHICK2;SUP:1.06*MID,COLORFF6633,LINETHICK2;AHC1:=CLOSE*VOL;AHCll:=EMA((EXPMA(AHCl,l)/EXPMA(VOL,l)+EXPMA(AHCl/2)/EXPMA(VOL z2)+EXPMA (AHC1,4)/EXPMA(VOL,4)+EXPMA(AHC1,6)/EXPMA(VOL,6))/4,7),COLORYELLOW;AHC2:EMA((EXPMA(AHC1Z3)/EXPMA(VOL,3)+EXPMA(AHC1Z6)/EXPMA(VOL Z6)+EXPMA(A HCl,12)/EXPMA(VOL,12)+EXPMA(AHCl,24)/EXPMA(VOL,24))/4,13),POINTDOT,COLORY ELLOW;AHC22:=EMA((EXPMA(AHC1,2 刀/EXPMA(VOL,27)+EXPMA(AHC1,54)/EXPMA(VOL,54)+EXPMA(AHC1Z108)/EXPMA(VOL,108)+EXPMA(AHC1Z316)/EXPMA(VOL,316))/4,13),COLORW HITE,POINTDOT;顶: = 1.3*AHC2;内上: = 1.06*AHC2;内下:=AHC2*0.94;底:=AHC2*0.87;IF((内上v= REF(内上,1)),内上,DRAWNULL),COLORGREENQOTLINE丄INETHICK2; IF((内上 >=REF(内上,1)),内上,DRAWNULL),COLORMAGENTAQOTLINE,LINETHICK2; IF((内下v= REF(内下」)),内下QRAWNULL),COLORGREEN,DOTLINE,LINETHICK2; IF((内下 >=REF(内下」)),内下Z DRAWNULL),COLORMAGENTA,DOTLINE,LINETHICK2; ZT:=REF(C z l)*l.l-C<0.01;启爆1:=CROSS(C Z内上)OR CROSS(C,内下)AND ZT;DRAWTEXT(启爆1 丄*0.98,启爆'),COLORYELLOW;STICKLINE(启爆1Z C Z O Z3,1),COLORWHITE;STICKLINE(启爆l,COl,0),COLORGREEN;。

通达信指标公式源码 好用分时突破指标

通达信指标公式源码 好用分时突破指标

均线:IF(BETWEEN(C/(SUM(AMOUNT,0)/SUM(VOL*100,0)),1.05,0.95)=0,MA(C,0),(SUM(AMOUNT,0)/SUM(VOL*100,0))),COLORYELLOW, LINETHICK1;均线H:=(均线*1.007 ),COLORLICYAN;均线L:=(均线/1.005 ),COLORWHITE;均线横盘:=C<均线H AND C>均线L;放量:=SUM(VOL,6)>REF(MA(VOL,30),1)*10;横盘:=((HHV(CLOSE,BARSCOUNT(CLOSE))-LLV(CLOSE,BARSCOUNT(CLOSE)))/ CLOSE)<1;收:DYNAINFO( 3),COLORWHITE,LINETHICK2;横涨:=横盘AND 放量AND (C>均线H);横跌:=横盘AND 放量AND CROSS(均线L,C) ;突破:=FILTER(横涨,100);下破:=FILTER(横跌,50) ;DRAWTEXT(突破,C*1.01,'突破'),COLORWHITE;现价:C,COLORWHITE;AA:=MA((2*CLOSE+HIGH+LOW)/4,5);谷1:AA*102/100,COLORMAGENTA;BGTYU:=IF(DATE<=1130107,1,0);GHYJKU:=BETWEEN((DCLOSE*BGTYU)/(SUM(AMOUNT,BARSCOUNT((DCLOS E*BGTYU)))/SUM(VOL*100,BARSCOUNT((DCLOSE*BGTYU)))),1.05,0.95); VBNH:=IF(GHYJKU=0,MA((DCLOSE*BGTYU),BARSCOUNT((DCLOSE*BGTYU)) ),(SUM(AMOUNT,BARSCOUNT((DCLOSE*BGTYU)))/SUM(VOL*100,BARSCOUN T((DCLOSE*BGTYU)))));DRAWTEXT(CROSS(EXPMA((DCLOSE/VBNH),120),1.0029),现价*0.98,'买进'),COLORWHITE;DRAWICON(CROSS(EXPMA((DCLOSE/VBNH),120),1.0029),现价*0.99,1);DRAWTEXT(CROSS(EXPMA((DCLOSE/VBNH),60),EXPMA((DCLOSE/V BNH),120)),现价,'主穿散')COLORWHITE;DRAWICON(CROSS(EXPMA((DCLOSE/VBNH),120),1.004),现价*0.98,55),COLORWHITE;MA30:=EMA(CLOSE,30);强弱界定:=EMA(CLOSE,900);DRAWICON(CROSS(MA30,强弱界定),现价*0.98,34);VAR1:=(EMA(CLOSE,30)+EMA(CLOSE,72))/2;VAR2:=(EMA(VOL,10)+EMA(VOL,32))/2;VAR3:=(VAR1+VAR2)/2;VAR4:=EMA(VAR3,30);VAR5:=EMA(VAR3,60);VAR6:=EVERY(VAR1>REF(VAR1,1),5) AND EVERY(VAR4>REF(VAR4,1),5);趋势关注:=IF(CROSS(VAR1,EMA(VAR1,60)) ANDVAR6,1,0);DRAWBAND(VAR1*0.96,RGB(150,30,30),EMA(VAR1,60)*0.96,RGB( 0,110,30));DRAWTEXT(趋势关注=1,C*0.97,'转折'),COLORWHITE;DIFF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);DEA:=EMA(DIFF,9),COLORFFFF00;MACD:=(DIFF-DEA)*2;A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF> REF(DIFF,A1+1) AND CROSS(DIFF,DEA);DRAWTEXT(底背离,L*0.98,'↖底背'),COLORYELLOW; GDK:=(SMA(C,2,1)-SMA(C,6,1))*8;ZSR:DYNAINFO( 3)*0.96;STICKLINE(GDK>0,ZSR,ZSR+GDK,0,0) ,COLORRED;STICKLINE(GDK<=0,ZSR,ZSR+GDK,0,0) ,COLORGREEN;STICKLINE(GDK>0 ,ZSR+GDK*0.05,ZSR+GDK*0.15,0,0) ,COLORRED; STICKLINE(GDK>0 ,ZSR+GDK*0.2,ZSR+GDK*0.35,0,0) ,COLORRED; STICKLINE(GDK>0 ,ZSR+GDK*0.4,ZSR+GDK*0.55,0,0) ,COLORRED; STICKLINE(GDK>0 ,ZSR+GDK*0.6,ZSR+GDK*0.75,0,0) ,COLORRED; STICKLINE(GDK>0 ,ZSR+GDK*0.8,ZSR+GDK*0.95,0,0) ,COLORRED; STICKLINE(GDK>0 ,ZSR+GDK*0.86,ZSR+GDK*0.999,0,0) ,COLORRED; STICKLINE(GDK<=0 ,(ZSR+GDK*0.05),(ZSR+GDK*0.15),0,0) ,COLORGREEN; STICKLINE(GDK<=0 ,(ZSR+GDK*0.2),(ZSR+GDK*0.35),0,0) ,COLORGREEN; STICKLINE(GDK<=0 ,(ZSR+GDK*0.4),(ZSR+GDK*0.55),0,0),COLORGREEN; STICKLINE(GDK<=0 ,(ZSR+GDK*0.6),(ZSR+GDK*0.75),0,0) ,COLORGREEN; STICKLINE(GDK<=0 ,(ZSR+GDK*0.8),(ZSR+GDK*0.95),0,0) ,COLORGREEN; STICKLINE(GDK<=0 ,(ZSR+GDK*0.86),(ZSR+GDK*0.999),0,0) ,COLORGREE N;均价:DYNAINFO(11),COLORGREEN,DOTLINE;神奇:=HHV(MA(H,13),45),COLORGREEN,LINETHICK4;奇特:=LLV(MA(H,13),1),COLORWHITE;STICKLINE(神奇=奇特,DYNAINFO( 3)*0.935,DYNAINFO( 3)*0.938,2,1),COLORMAGENTA;MA25:= EMA(CLOSE,25);牛熊分水岭:=EMA(CLOSE,905);STICKLINE((MA25 > 牛熊分水岭),DYNAINFO( 3)*0.925,DYNAINFO( 3)*0.928,4,0),COLORRED; 均线2:=IF(BETWEEN(C/(SUM(AMOUNT,0)/SUM(VOL*100,0)),1.05,0.95)=0,MA(C,0),(SUM(AMOUNT,0)/SUM(VOL*100,0))),COLORYELLOW; 均线H1:=(均线2*1.005 ),COLORFF6600;均线L1:=(均线2/1.002 ),COLOR00FF00;均线横盘1:=C<均线H1 AND C>均线L1;STICKLINE(均线横盘1,DYNAINFO( 3)*0.921,DYNAINFO( 3)*0.923,3,0),COLORYELLOW;。

通达信突破上轨启爆+风险区主图指标源码

通达信突破上轨启爆+风险区主图指标源码

通达信突破上轨启爆+风险区主图指标源码【风险区】--高抛避险【警示区】--逢高减仓【突破区】--主力拉升【拉升区】--强势畜锐【关注区】--逢低买入【低吸区】--大胆买入DRAWGBK(1,RGB(0,0,0),RGB(0,0,0),0,'BJ1',0);N:=120;K:=BARSLAST(CURRBARSCOUNT=N);GD:=CONST(IF(ISLASTBAR=1,HHV(H,K),0)),NODRAW;{高点} DD:=CONST(IF(ISLASTBAR=1,LLV(L,K),0)),NODRAW;{低点}KJ:=GD-DD;{高低点差值=分区高度}GD4:=IF(CURRBARSCOUNT<=N/2,GD,DRAWNULL);高区:IF(CURRBARSCOUNT<=N,GD,DRAWNULL),COLORRED,LINET HICK2,NODRAW;低区:IF(CURRBARSCOUNT<=N,DD,DRAWNULL),COLOR00FF00,LIN ETHICK2,NODRAW;平衡:=IF(CURRBARSCOUNT<=N,DD+KJ/2,DRAWNULL),COLOR00F FFF,NODRAW;低:IF(CURRBARSCOUNT<=N/2,DD,DRAWNULL),COLORFFFF 00;高:IF(CURRBARSCOUNT<=N/2,GD,DRAWNULL),COLOR00FF FF;支撑:IF(CURRBARSCOUNT<=N/2,DD+KJ*0.191,DRAWNULL),COLOR00FFFF;强势: IF(CURRBARSCOUNT<=N/2,DD+KJ*0.382,DRAWNULL),COLORF F00FF;突破:IF(CURRBARSCOUNT<=N/2,DD+KJ/2,DRAWNULL),COLOR00 00FF;警示:IF(CURRBARSCOUNT<=N/2,DD+KJ*0.618,DRAWNULL),COLO R00FFFF;压力:IF(CURRBARSCOUNT<=N/2,DD+KJ*0.809,DRAWNULL),COLO R00FF00;低涨:IF(CURRBARSCOUNT<=N/2,(C/LLV(LOW,K)-1)*100,DRAWNULL),COLOR0000FF,NODRAW;天数:BARSLAST(L=DD),COLORCYAN,NODRAW;顶点:IF(CURRBARSCOUNT<=N/2, CONST(IF(ISLASTBAR=1,HHV(H,BARSLAST(CURRBARSCOUNT=60)),1)),DRAWNULL),COLORRED, CROSSDOT,NODRAW;低点:IF(CURRBARSCOUNT<=N/2, CONST(IF(ISLASTBAR=1,LLV(L,BARSLAST(CURRBARSCOUNT=60)),1)),DRAWNULL),COLORMAG ENTA,CROSSDOT,NODRAW;STICKLINE(CCI>=200 AND H>=顶点,O,C,2,0),COLORBLUE;STICKLINE(CCI<=100 AND L<=低点,O,C,2,0),COLORYELLOW;DRAWBAND(高区,RGB(0,0,0),平衡,RGB(0,0,0));DRAWBAND(平衡,RGB(0,0,0),低区,RGB(0,0,0));DRAWBAND(高,RGB(120,100,0),压力,RGB(0,0,0));DRAWBAND(压力,RGB(258,58,0),警示,RGB(0,0,0));DRAWBAND(警示,RGB(128,58,0),突破,RGB(0,0,0));DRAWBAND(突破,RGB(68,0,0),强势,RGB(0,0,0));DRAWBAND(强势,RGB(38,0,0),支撑,RGB(0,0,0));DRAWBAND(支撑,RGB(38,38,38),低,RGB(0,0,0));STICKLINE(CURRBARSCOUNT=N/2,GD,DD,0,0),COLOR40808 0,NODRAW;STICKLINE(CURRBARSCOUNT<=N/2,支撑,支撑,2,0),COLOR1E1E1E;STICKLINE(CURRBARSCOUNT<=N/2,强势,强势,2,0),COLOR1E1E1E;STICKLINE(CURRBARSCOUNT<=N/2,突破,突破,2,0),COLOR1E1E1E;STICKLINE(CURRBARSCOUNT<=N/2,警示,警示,2,0),COLOR1E1E1E;STICKLINE(CURRBARSCOUNT<=N/2,压力,压力,2,0),COLOR1E1E1E;DRAWTEXT(CURRBARSCOUNT=10,压力,'压力-0.809'),COLOR00FFFF,NODRAW;DRAWTEXT(CURRBARSCOUNT=10,警示,'警示-0.618'),COLOR00FFFF,NODRAW;DRAWTEXT(CURRBARSCOUNT=10,突破,'突破-0.500'),COLOR00FFFF,NODRAW;DRAWTEXT(CURRBARSCOUNT=10,强势,'强势-0.382'),COLOR00FFFF,NODRAW;DRAWTEXT(CURRBARSCOUNT=10,支撑,'支撑-0.191'),COLOR00FFFF,NODRAW;DRAWTEXT(CURRBARSCOUNT=N/4+5,GD-KJ*0.09,'【风险区】--高抛避险'),COLORFFFFFF;DRAWTEXT(CURRBARSCOUNT=N/4+5,GD-KJ*0.3,'【警示区】--逢高减仓'),COLORFFFFFF;DRAWTEXT(CURRBARSCOUNT=N/4+5,GD-KJ*0.45,'【突破区】--主力拉升'),COLORFFFFFF;DRAWTEXT(CURRBARSCOUNT=N/4+5,GD-KJ*0.55,'【拉升区】--强势畜锐'),COLORFFFFFF;DRAWTEXT(CURRBARSCOUNT=N/4+5,DD+KJ/3,'【关注区】--逢低买入'),COLORFFFFFF;DRAWTEXT(CURRBARSCOUNT=N/4+5,DD+KJ/10,'【低吸区】--大胆买入'),COLORFFFFFF;第一防线:REFDATE(低,DATE),DOTLINE,COLORYELLOW,NODRAW;第二防线:REFDATE(支撑,DATE),DOTLINE,COLORWHITE,NODRAW;{今日保护价:(REF(C,2)+REF(C,1)+O)/3 ,COLORCC3299;}DRAWKLINE(H,O,L,C);AHC1:=CLOSE*VOL;AHC22:=EMA((EXPMA(AHC1,27)/EXPMA(VOL,27)+EXPMA( AHC1,54)/EXPMA(VOL,54)+EXPMA(AHC1,108)/EXPMA(VOL,108) +EXPMA(AHC1,316)/EXPMA(VOL,316))/4,34);上轨:=1.06*AHC22,COLOR40FF00,LINETHICK1;下轨:=AHC22*0.94;{STICKLINE(上轨>下轨,上轨,下轨,5,0),COLOR555555;}ZT:=REF(C,1)*1.1-C<0.01 AND H=C;启爆:=CROSS(C,上轨) OR CROSS(C,下轨) AND ZT;DRAWTEXT(启爆,L,'启爆'),COLORCYAN;STICKLINE(启爆,C,O,3,1),COLORWHITE;STICKLINE(启爆,C,O,1,0),COLORGREEN;STICKLINE(C>=O ,HIGH,LOW,0,1 ),COLORRED;STICKLINE(C>=O ,OPEN,CLOSE,3.1,0 ),COLOR000033;STICKLINE(C>=O,OPEN,CLOSE,2.7,0 ),COLOR000066;STICKLINE(C>=O ,OPEN,CLOSE,2.1,0 ),COLOR000099;STICKLINE(C>=O ,OPEN,CLOSE,1.5,0 ),COLOR0000CC;STICKLINE(C>=O ,OPEN,CLOSE,0.9,0 ),COLOR0000FF;STICKLINE(C>=O ,OPEN,CLOSE,0.3,0 ),COLORCC66FF;STICKLINE(C<O ,HIGH,LOW,0,1 ),COLORCYAN;STICKLINE(C<O ,OPEN,CLOSE,3.1,0 ),COLOR990000;STICKLINE(CLOSE<O ,OPEN,CLOSE,2.7,0 ),COLORCC0000;STICKLINE(CLOSE<O ,OPEN,CLOSE,2.1,0 ),COLORFF4400;STICKLINE(CLOSE<O ,OPEN,CLOSE,1.5,0 ),COLORFF8800;STICKLINE(CLOSE<O ,OPEN,CLOSE,0.9,0 ),COLORFFCC00;STICKLINE(CLOSE<O ,OPEN,CLOSE,0.3,0 ),COLORCYAN;CC:IF(CURRBARSCOUNT<18,CONST(REF(C,1)),DRAWNULL), COLOR000000,NODRAW;止赢:1.05*CC,COLORMAGENTA,LINETHICK1;DRAWTEXT(ISLASTBAR,止赢,'止赢'),LINETHICK1;止损:0.97*CC,COLORYELLOW,LINETHICK1;DRAWTEXT(ISLASTBAR,止损,'止损'),LINETHICK1;DRAWNUMBER(ISLASTBAR ,C,C),COLORWHITE;AAA:=CONST(HHV(H,50));PL5:=HHV(H,45);F:=100*(C-REF(C,1))/REF(C,1);博尔:=IF(C<REF(O,1) AND F<0,1,0);P1:=博尔;量化:=IF(C<REF(O,2) AND F<0,1,0);P2:=量化;STICKLINE(P1=0 AND REF(P1,1)=1 AND P2=0 AND REF(P2,1)=1,OPEN,CLOSE,3,0),COLOR0055FF;操作30日均线:EMA(C,30),COLORYELLOW,LINETHICK4;红升:IF(操作30日均线>REF(操作30日均线,1),操作30日均线,DRAWNULL),COLORRED,LINETHICK4;绿降:IF(操作30日均线<REF(操作30日均线,1),操作30日均线,DRAWNULL),COLOR009300,LINETHICK4;趋势55日线:EMA(C,55),COLORYELLOW,LINETHICK1,NODRAW;红升4:IF(趋势55日线>REF(趋势55日线,1),趋势55日线,DRAWNULL),COLOR0080FF,LINETHICK1;绿降4:IF(趋势55日线<REF(趋势55日线,1),趋势55日线,DRAWNULL),COLORFFFF00,DOTLINE,LINETHICK1;年线:EMA(C,250),COLORYELLOW,LINETHICK1,NODRAW;年红升:IF(年线>REF(年线,1),年线,DRAWNULL),COLOR8000FF,LINETHICK1;年绿降:IF(年线<REF(年线,1),年线,DRAWNULL),COLORFFFF00,DOTLINE,LINETHICK1;。

通达信指标公式源码 红球预警副图主图选股指标

通达信指标公式源码 红球预警副图主图选股指标

VAR55:=EMA(EMA(EMA(CLOSE,8),13),62);VAR56:=((REF(HIGH,1) + REF(LOW,1)) / 2);VAR57:=(MA(CLOSE,20) + (2 * STD(CLOSE,20)));VAR58:=((SMA(MAX((CLOSE - REF(CLOSE,1)),0),7,1) / SMA(ABS((CLOSE - REF(CLOSE,1))),7,1)) * 100);卖出1:=FILTER(CROSS(79,VAR58),4);MA21:=REF(CLOSE,1);ZX:=((SMA(MAX((CLOSE - MA21),0),6,1) / SMA(ABS((CLOSE - MA21)),6,1)) * 100);卖出2:=CROSS(84,ZX);卖出3:=CROSS(90,RSI);卖出:=卖出1 OR 卖出2 OR 卖出3;DRAWICON(卖出,(LOW * 1.1),12);A:=EMA((EMA(C,29)+EMA(C,31)+EMA(C,33))/3,3);A1:=EMA((EMA(C,1)+EMA(C,3)+EMA(C,5))/3,3),COLOR1010FF;A3:=IF(K2!=2,EMA((EMA(C,5)+EMA(C,6)+EMA( C,7))/3,3),DRAWNULL),COL ORCYAN,LINETHICK3;{COLOR1030FF;}A4:=IF(K2!=2,EMA((EMA(C,7)+EMA(C,9)+EMA( C,11))/3,3),DRAWNULL),COLOR1040FF;A5:=IF(K2!=2,EMA((EMA(C,9)+EMA(C,11)+EMA( C,13))/3,3),DRAWNULL)COLOR1050FF;A6:=IF(K2!=2,EMA((EMA(C,11)+EMA(C,13)+EMA( C,15))/3,3),DRAWNULL)COLOR1060FF;A7:=IF(K2!=2,EMA((EMA(C,13)+EMA(C,15)+EMA( C,17))/3,3),DRAWNULL)COLOR1070FF;A8:=IF(K2!=2,EMA((EMA(C,15)+EMA(C,17)+EMA( C,19))/3,3),DRAWNULL)COLOR1080FF;A9:=IF(K2!=2,EMA((EMA(C,17)+EMA(C,19)+EMA( C,21))/3,3),DRAWNULL),COLORLIMAGEN TA;{COLOR1080EF;}{好}A10D:=IF(K2!=2,EMA((EMA(C,19)+EMA(C,21)+EMA( C,23))/3,3),DRAWNULL),COLORLIMAGEN TA;{COLOR10C0FF;}A11D:=IF(K2!=2,EMA((EMA(C,21)+EMA(C,23)+EMA( C,25))/3,3),DRAWNULL),COLORWHITE,LI NETHICK2;A15D:IF(K2!=2,A-(A1-A*0.977),DRAWNULL),COLORBLUE,LINETHICK3;{COLORFF0000;原997} A24D:=IF(K2!=2, A-(A10D-A),DRAWNULL)COLORF6D030;A25D:=IF(K2!=2, A-(A11D-A*0.987),DRAWNULL)COLORF5F030;{原997}AK2:=IF(K2=2,EMA((EMA(C,5)+EMA(C,7)+EMA( C,9))/3,3),DRAWNULL);AK1:=IF(K2=2,A-(A1-A*0.987),DRAWNULL);{原997}{5日变色线}越过成仙M240:MA(C,240),COLORGRAY,LINETHICK1;M144:=MA(C,144),COLORWHITE,LINETHICK1;M88:=MA(C,88),COLORLIGRAY,LINETHICK1;越过有道M120:MA(C,120),COLORMAGENTA,LINETHICK1;{越过强势M60:MA(C,60),COLORGREEN,LINETHICK3;}M30:=MA(C,27),COLORGREEN,LINETHICK2;M20:=MA(C,17),COLORMAGENTA,LINETHICK2;M10:=MA(C,10),COLORWHITE,LINETHICK1;M5:MA(C,3),COLORRED,LINETHICK3;BB55:=ATAN((M5/REF(M5,1)-1)*100)*180/3.1416;IF(BB55>30 AND M5>REF(M5,1), M5,DRAWNULL),COLORRED,LINETHICK3; BB100:=ATAN((M10/REF(M10,1)-1)*100)*180/3.1416;IF(BB55<0 AND M5<REF(M5,1), M5,DRAWNULL),COLORCYAN,LINETHICK2;V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);V2:=(1-7/100)*(DMA(CLOSE,V1));{变色下插支撑线}{YM:=EMA(SLOPE((CLOSE+HIGH+LOW)/3,24)*20+(CLOSE+HIGH+LOW)/3, 40);YM1:=EMA(YM,1),NODRAW;YM2:=EMA(YM1,2),NODRAW;DRAWBAND(YM1,RGB(240,120,80),YM2,RGB(40,240,50));{变色条。

回调突破主图指标源码通达信指标公式源码

回调突破主图指标源码通达信指标公式源码

回调突破主图指标源码通达信指标公式源码B1:=MA(C,1);B2:=SMA(SMA(SMA(B1,2,1),2,1),2,1);SMA2:=MA(B2,3);停损下限:IF(LLV(MA(B2,8),3)<b2,llv(ma(b2,8),3),b2);< p=""> IF(B2>SMA2,B2,DRAWNULL),COLORRED,LINETHICK4;IF(B2<sma2,b2,drawnull),colorgreen,linethick4;< p="">SNAKEA:HHV(MA(B2,1),13),COLORYELLOW;VAR1A:=(2*CLOSE+HIGH+LOW)/4;VAR2A:=MA(VAR1A,7);VAR3A:=VAR2A-MA(VAR1A,7/2)<0;VAR4A:=VAR2A-MA(VAR1A,7/2)>0;VAR5A:=BARSLAST(VAR3A);VAR6A:=0-BARSLAST(VAR4A);VAR7A:=IF(VAR3A<=0,VAR5A,VAR6A);STICKLINE(SNAKEA>B2 AND B2>SMA2,SNAKEA,B2,0,0),COLORBLUE;STICKLINE(SNAKEA>SMA2 AND B2VAR21A:=EMA(VAR11A,13)-EMA(VAR11A,34);VAR31A:=EMA(VAR21A,5);{STICKLINE((C>=O),OPEN,LOW,0,0),COLOR0726CA;STICKLINE((C>=O),CLOSE,HIGH,0,0),COLOR0726CA;STICKLINE((C<o),close,low,0,0),colorde9100;< p="">STICKLINE((C<o),open,high,0,0),colorde9100;< p="">STICKLINE((C<o),close,open,2.5,0),colorffcc00;< p="">STICKLINE((C<o),close,open,1.5,0),colorffff00;< p="">STICKLINE((C>O),CLOSE,OPEN,2,0),COLOR0754E9;STICKLINE((C>O),CLOSE,OPEN,1.5,0),COLOR076EF3;STICKLINE((C>O),CLOSE,OPEN,1,0),COLOR077BF3;}VAR2:=((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:=((REF(VARC,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2))); VARE:=((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(VAR18,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));VAR1B:=(REF((((((((((((VARE OR VARF) OR VAR10) OR VAR11) OR VAR12) OR VAR13) OR VAR14) OR VAR15) OR VAR16) OR VAR17) OR VAR18) OR VAR19),1) AND VAR2); {STICKLINE(VAR1B,O,O+(C-O)/3,3,0),COLOR10D0FF;}STICKLINE(VAR1B,O,O+(C-O)/3,2,0),COLOR10FFFF;STICKLINE(VAR1B,O,O+(C-O)/3,1,0),COLOR00FFFF;AA:=(REF((((((((((((VAR2 OR VAR3) OR VAR4) OR VAR5) OR VAR6) OR VAR7) OR VAR8) OR VAR9) OR VARA) OR VARB) ORVARC) OR VARD),1) AND VARE);{STICKLINE(AA,O,O+(C-O)/3,3,0),COLOR00DD00;}STICKLINE(AA,O,O+(C-O)/3,2,0),COLOR00EE00;STICKLINE(AA,O,O+(C-O)/3,1,0),COLOR00FF00;A13:=EMA(CLOSE,55);A14:=MA(CLOSE,75);A15:=EMA(A14,3);A16:=EMA(A15,3);A17:=(HIGH + LOW) / 5;A18:=(MA(A17,4)) - (MA(A17,34));A19:=CROSS(A18,0);A20:=CROSS(0,A18);A21:=BARSLAST(A19);A22:=BARSLAST(A20);A23:=REF(A19,1);A24:=REF(A20,1);A25:=BARSLAST(A23);A26:=BARSLAST(A24);A27:=IF((A25 < A26),(REF((HHV(HIGH,2)),A25)),(REF((LLV(LOW,2)),A26)));A28:=(((REF(CLOSE,1)) <= (REF(A27,1))) AND (CLOSE > A27)) AND (A21 < A22); A29:=(((REF(CLOSE,1)) >= (REF(A27,1))) AND (CLOSE < A27)) AND (A22 < A21); A30:=A28 AND ((COUNT(A28,A21)) = 1);A31:=A29 AND ((COUNT(A29,A22)) = 1);A32:=A30 AND ((REF(BARSLAST(A31),1)) < (REF(BARSLAST(A30),1)));A33:=A31 AND ((REF(BARSLAST(A31),1)) > (REF(BARSLAST(A30),1)));DRAWTEXT(A32,SMA2*0.99,'←═≒∝'),COLORYELLOW;AC:=AMOUNT/(VOL);YY:=MA(AC,13);LLL:=(C-YY)/YY*100;MIDC := MA(CLOSE,22);UPPERC:= MIDC + 2*STD(C,22);LOWERC:= MIDC - 2*STD(C,22);BBA:=(C-LOWERC)/(UPPERC-LOWERC);BBC:=FORCAST(BBA,3);LIFENGCYC:=(REF(LLL,1)<-15 AND REF(BBA,1)<0 AND LLL>REF(LLL,1));{//STICKLINE(LIFENGCYC,BBC,0.5,6,0);}{/BBD:(UPPER+LOWER)/2*(C-UPPER);}STICKLINE(LIFENGCYC>0,C,O,2,0),COLOR10ABFF;{STICKLINE(LIFENGCYC>0,C,O,1.5,0),COLOR10D0FF;STICKLINE(LIFENGCYC>0,C,O,1,0),COLOR10FFFF;}DRAWTEXT(LIFENGCYC>0,LOW*0.99,'☆'),COLORDD00DD;TJ:=DYNAINFO(4)>0AND HHV(HIGH,10)/LLV(LOW,10)<1.25AND REF(CLOSE,1)<(LLV(LOW,15)+(HHV(HIGH,15)-LLV(LOW,15))*0.85)AND CLOSE>OPENAND CLOSE>=HHV(HIGH,10);STICKLINE(C/REF(C,1)>=1.096 AND H=C,O,C,1,0),COLORYELLOW; 放量突破:TJ,NODRAW,COLORRED;DRAWTEXT(TJ,L-0.3,'放量突破'),COLORRED;W1:=C=HHV(C,20);W2:=BARSLAST(W1);W3:=IF(W2>0,REF(C,W2),REF(C,W2));W4:=CROSS(C,REF(W3,1));回调突破:=W4 AND COUNT(W4,5)=1;DRAWTEXT(回调突破>0,MA(L,3),'*回调突破'),COLORYELLOW; 敢死队操作线:MA(C,24),LINETHICK2,COLORLIMAGENTA;</o),close,open,1.5,0),colorffff00;<></o),close,open,2.5,0),colorffcc00;<></o),open,high,0,0),colorde9100;<></o),close,low,0,0),colorde9100;<></sma2,b2,drawnull),colorgreen,linethick4;<></b2,llv(ma(b2,8),3),b2);<>。

通达信指标公式源码 :突破瞬间介入 主图源码

通达信指标公式源码 :突破瞬间介入 主图源码

突破瞬间介入源码获利%:WINNER(CLOSE)*100,NODRAW,COLORWHITE;DRAWTEXT_FIX(获利%>=95 AND ISLASTBAR,0.97,0.97,0,'高危'),COLORRED; DRAWTEXT_FIX(获利%>=80 AND 获利%<95 AND ISLASTBAR,0.97,0.97,0,'风险'),COLORYELLOW;DRAWTEXT_FIX(获利%>=50 AND 获利%<80 AND ISLASTBAR,0.97,0.97,0,'安全'),COLORGREEN;DRAWTEXT_FIX(获利%<50 AND ISLASTBAR,0.97,0.97,0,'空头'),COLORBLUE; STICKLINE((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(C,1)),OPEN,CLOSE,3,0),CO LOR0055FF;STICKLINE((REF(C,1)-C)*100/REF(C,1)>=(10-0.01*100/REF(C,1)),OPEN,CLOSE,3,0),CO LOR00FF00;N:=10;T1:=CONST(HHVBARS(V,N));T0:IF(CURRBARSCOUNT<=N+3,CONST(IF(T1=0,C,REF(C,T1))),DRAWNULL),COLORFF00 FF;IF(CURRBARSCOUNT=T1+1,T0,DRAWNULL),CIRCLEDOT,COLORFF00FF; DRAWTEXT(ISLASTBAR,T0,' 量能平台'),COLORCC00CC;M:=10;Q1:=CONST(REF(HHVBARS(V,M),T1+1)+T1+1);Q0:IF(CURRBARSCOUNT<=T1+M+3 AND CURRBARSCOUNT>=T1+1,CONST(REF(C,Q1)),DRAWNULL),COLOR009900;IF(CURRBARSCOUNT=Q1+1,Q0,DRAWNULL),CIRCLEDOT,COLOR00CC00;M1:=CONST(LLVBARS(V,M));M0:IF(CURRBARSCOUNT<=M+7,CONST(IF(M1=0,O,REF(O,M1))),DRAWNULL);IF(CURRBARSCOUNT=M1+1,M0,DRAWNULL),CIRCLEDOT;DRAWTEXT(ISLASTBAR,M0,' 地量反量能平台');HV:=HHV(V,8)=V OR V/REF(V,1)>=2;FT:=BARSLAST(HV);量能平台:IF(HV,C,REF(C,FT)),COLORYELLOW,LINETHICK2;DP:=IF(C=INDEXC,0,1);GJ:=AMOUNT/V/100;【明日阻力】:L+(GJ-L)+(C-L),COLORRED,NODRAW;【明日支撑】:L+(C-GJ),NODRAW;年:=YEAR,NODRAW;月:=MONTH,NODRAW;星期:=WEEKDAY,NODRAW;日1:=DATETODAY(DATE);上市日:=REF(DATE,TOTALBARSCOUNT-CURRBARSCOUNT);自然日:=日1-DATETODAY(上市日)+1;ZB:=(自然日-REF(自然日,1))!=星期-REF(星期,1)OR TOTALBARSCOUNT-CURRBARSCOUNT=0;本周第几天:=BARSLAST(ZB)+1;本月第几天:=BARSLAST(年*100+月!=REF(年*100+月,1))+1;MA1:=REF(C,本周第几天);MA2:=REF(MA1,本周第几天);MA3:=REF(MA2,本周第几天);MA4:=REF(MA3,本周第几天);MA5:=REF(MA4,本周第几天);MA6:=REF(MA5,本周第几天);MA7:=REF(MA6,本周第几天);MA8:=REF(MA7,本周第几天);MA9:=REF(MA8,本周第几天);十周价:=(C+MA1+MA2+MA3+MA4+MA5+MA6+MA7+MA8+MA9)/10; 决策:REFDATE(十周价,DATE),COLORYELLOW,LINETHICK1; DRAWTEXT(ISLASTBAR,决策,' 决策线'),COLORYELLOW;。

突破盘整选股与预警公式源码

突破盘整选股与预警公式源码

突破盘整选股与预警公式源码
一是突破盘整;二是突破前高;三是突破平台
平台盘整突破,尤其是突破是用涨停板突破的,当日进入,次日绝对能获得至少3个点以上的涨幅,我在实战中用此方法,基本当日能获取3-6个点的盈利,次日能获取4个点以上的盈利。

比如近期的运盛实业,珠江控股等股,都贡献率非常不错。

对于如何选择且能盘中及时预警,查阅过很多盘中突破的公式,思路均很模糊,实战性相对都很差。

盘中能实时预警并买入且次日能大赚的才是牛指标。

指标的核心思路:
1:最好是涨停后开始的盘整;
2、盘整天数不宜过长,最长15日最佳;
3、突破一定要带量突破,且要超出盘整期间的某一天的最高量;3、当日涨幅一定是盘整期间的单日最高涨幅,如果能收盘涨停,那恭喜你,中特等奖了;
4、突破一定是要盘中有脉冲的现象出现,俗话说的火箭发射的分时图要出现,也就是盘中要瞬间有冲高现象,一般瞬间拉升的涨幅至少2%以上,且带量
5、关键的核心买点是突破后信号提示,瞬间买入。

6、何时卖出呢?如果次日低开下跌,则说明买入错误,必须及时卖出,但是这种现象目前还没遇到
7、何时卖出呢?如果次日低开或者高开,且能涨幅在3个点以上,则持股,直到某一天涨幅低于1个点的时候,则可以果断出货。

记住:思路是神圣的,指标不是万能的
突破盘整选股与预警公式
W1:=C=HHV(C,20);
W2:=BARSLAST(W1);
W3:=IF(W2>0,REF(C,W2),REF(C,W2)); W4:=CROSS(C,REF(W3,1));
W4 AND COUNT(W4,5)=1;。

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