通达信指标源码公式 分时指标及预警

合集下载

[通达信公式]分时控盘(分时指标源码)

[通达信公式]分时控盘(分时指标源码)

[通达信公式]分时控盘(分时指标源码)[通达信公式]分时控盘(分时指标源码)[通达信公式]分时控盘(分时指标源码)源码:{分时控盘}VAR1:=EMA(EMA(CLOSE,13),13);控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;STICKLINE(控盘<0,控盘,0,1,1),COLOR00FF00;STICKLINE(控盘>REF(控盘,1) AND 控盘<0,控盘,0,1,1),COLORFF00FF;无庄控盘:=控盘<0;STICKLINE(控盘>REF(控盘,1) AND 控盘>0,控盘,0,1,1),COLOR0000FF;有庄控盘:=控盘>REF(控盘,1) AND 控盘>0;VAR2:=100*WINNER(CLOSE*0.95);STICKLINE(控盘<REF(控盘,1) AND 控盘>0,控盘,0,1,1),COLORFFFF00;主力出货:=控盘<REF(控盘,1) AND 控盘>0;STICKLINE(VAR2>50 AND COST(85)<CLOSE AND 控盘>0,控盘,0,1,1),COLOR00FFFF;高度控盘: VAR2>50 AND COST(85)<CLOSE AND 控盘>0,COLOR00FFFF,LINETHICK2;A10:=CROSS(控盘,0);控盘B:=FILTER(IF(A10,1,0),5);{分时价格原码}JJ:=DYNAINFO(11);{波段买卖原码}P:=55;S:=8;M1:=3;财:=(EMA(CLOSE,S)-EMA(CLOSE,P))*10,COLORRED,LINETHICK2;神:=EMA(财,M1),COLORGREEN,LINETHICK1;DRAWBAND(财,RGB(255,0,0),神,RGB(0,100,50));{股价与均线偏离买卖条件}BTJ1:=(C-JJ)/JJ<-0.005;BTJ11:=(C-JJ)/JJ<-0.03;BTJ12:=LAST(JJ>=REF(JJ,1),5,1) AND (C-JJ)/JJ<0.005;STJ1:=(C-JJ)/JJ>0.005;{控盘买卖条件}STJ01:=控盘<REF(控盘,1) AND 控盘>0.5;STJ02:=控盘>0;BTJ2:=控盘>REF(控盘,1) AND 控盘<-0.2;BTJ22:=控盘>REF(控盘,1) AND 控盘<0 ;{波段买卖条件}BTJ3:=CROSS(财,神) AND 财<-0.3;BTJ32:=CROSS(财,神) AND 财<-0.1;STJ31:=CROSS(神,财);STJ32:=CROSS(神,财) AND 财>1.618;{以下为信号};BTJ81:=FILTER(BTJ1 AND BTJ2 AND BTJ3,13);BTJ811:=FILTER(BTJ11 AND BTJ2 AND BTJ3,13);BTJ82:=FILTER(BTJ12 AND BTJ22 AND BTJ32,13);DRAWICON(BTJ82,神,23);{追买};DRAWICON(BTJ81 AND TIME>10,神,27);{};DRAWICON(BTJ811 AND TIME>10,神,26);{有庄};DRAWTEXT(BTJ81,神,''),COLORRED;DRAWTEXT(BTJ811,神*1.2,'有庄'),COLORWHITE;STJ81:=FILTER(STJ1 AND STJ01 AND STJ31,13);DRAWICON(STJ81,神,19);STJ82:=FILTER(STJ02 AND STJ32 ,13); DRAWICON(STJ82,神,15);STJ83:=STJ81 AND STJ82; DRAWTEXT(STJ83,神,'必卖'),COLOR00FF00;。

通达信分时监控指标公式

通达信分时监控指标公式

通达信分时监控指标公式通达信分时监控指标公式2011-03-09 08:02转载自亮GXD886最终编辑亮GXD886BIAS1:=((CLOSE-MA(CLOSE,6))/(MA(CLOSE,6)))*(100);BIAS2:=((CLOSE-MA(CLOSE,12))/(MA(CLOSE,12)))*(100);BIAS3:=((CLOSE-MA(CLOSE,24))/(MA(CLOSE,24)))*(100);BIAS:=(BIAS1+(2)*(BIAS2)+(3)*(BIAS3))/(6);乖离:=MA(BIAS,3);探:STICKLINE((乖离<(-6)) AND (乖离>=(-12)),48,52,6,1),COLOR33FFCC;准备走:STICKLINE((乖离>6) AND (乖离<12),48,52,6,1),COLORFF0000;STICKLINE((乖离<(-12)) AND (乖离>=(-18)),0,35,4,0),COLOR33CCCC;{(乖离<(-24)) AND (乖离>=(-30)),COLOR3399CC;}VARA:=LLV(LOW,35);VARB:=HHV(HIGH,30);VARC:=(EMA(((CLOSE-VARA)/(VARB-VARA))*(4),4))*(25);底域:STICKLINE((VARC<10) AND (((100)*(HHV(HIGH,14)-CLOSE))/(HHV(HIGH,14)-LLV(LOW,14))>97),0,15,5,0),COLOR00FF00;顶域:STICKLINE((VARC>90),90,100,5,0),COLORFF0000;VARD:=87.5;VARE:=(((VARC-LLV(VARC,4))/(HHV(VARC,4)-LLV(VARC,4)))*(4))*(25);出货:DRAWTEXT(IF(CROSS(VARD,VARC),87,0),35,'↑'),COLORFF0000;DRAWTEXT(IF(CROSS(VARD,VARC),87,0),24,'跑'),COLORFF0000;卖:DRAWTEXT(IF(CROSS(VARC,VARE) AND (VARC>87),87,0),50,'↑'),COLOR0000FF;DRAWTEXT(IF(CROSS(VARC,VARE) AND (VARC>87),87,0),35,'卖'),COLOR0000FF;VAR3:=((2)*(CLOSE)+HIGH+LOW)/(4);VAR4:=LLV(LOW,34);VAR5:=HHV(HIGH,34);趋势:=(3)*(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100),5,1))-(2)*(SMA(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100),5,1),3,1));散:=EMA(((VAR3-VAR4)/(VAR5-VAR4))*(100),13);看多:IF((趋势>散),趋势,散),COLOR0000FF,LINETHICK2;看空:IF((趋势<散),趋势,散),COLORFF0000,LINETHICK2;散户:EMA(((VAR3-VAR4)/(VAR5-VAR4))*(100),13),COLORFF00FF,LINETHICK2;新庄:EMA((0.66699999)*(REF(散户,1))+(0.333)*(散户),1),COLORFFFF00;底:IF((趋势<=5),17,0),COLORFF00FF;见底:IF(CROSS(趋势,10) AND (新庄<散户),31,0),COLOR008000;DRAWTEXT(CROSS(散户,新庄) AND (趋势>散户) AND (散户<15),新庄*0.7,'绝中生'),COLORFFFFFF;IF(CROSS(趋势,92),80,90),COLORFF0000;V5:=MA(VOL,5);V10:=MA(VOL,10);A2:=(COUNT(((VOL<V10) OR (VOL<V5)),4)>=4-1);A3:=(VOL>(V5)*(1.3)) AND (CLOSE<(REF(CLOSE,1))*(1.4));A4:=(CLOSE<((HHV(HIGH,18))*(75))/(100)) AND (CLOSE<(LLV(CLOSE,6))*(1.4)) AND(CLOSE<(LLV(REF(LOW,10),50))*(0.95999997));A5:=((VOL<V5) OR (VOL<V10));A6:=BARSLAST(REF(A5,1));A7:=(CLOSE<(REF(CLOSE,1))*(0.90499997));JBM:=CLOSE;A8:=A5 AND A4 AND REF(A3,1) AND REF(A2,A6+1) AND (COUNT(A7,20)=0) AND JBM;金山现:IF(A8,30,0),COLOR0000FF;{CROSS(A8,0.1);}50,POINTDOT,COLOR33FFCC;。

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

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

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

[转载]通达信极品分时主图指标公式源码

[转载]通达信极品分时主图指标公式源码

[转载]通达信极品分时主图指标公式源码通达信极品分时主图指标公式源码如下:LTA:=FINANCE(7)+300000000;GB:=2*IF(FINANCE(7)<100000000000,FLOOR(ABS((FINANCE(7)/1000000000-1))),FLOOR(ABS((FINANCE(7)/1000000000-1)))/10),NODRAW ;C1:=CLOSE;V1:=TIME;A1:=COUNT(BARSCOUNT(C)=1 AND TIME<102000 ,0 );T:=IF(V1<130000,(FLOOR(V1/10000)-9.5)*60+(FLOOR(V1/100)-100*FLOOR(V1/10000)),(FLOOR(V1/10000)-11)*60+(FLOOR(V1/100)-100*FLOOR(V1/10000))),NODRAW;成交额:AMOUNT,NODRAW;⼤额线:=50*3+300*GB,COLOR00FFFF;VV2:=SUM(AMOUNT,T),NODRAW;初正1:=IF(T=1 AND DYNAINFO(4)>=DYNAINFO(3),VV2,0);初负1:=IF(T=1 AND DYNAINFO(4)初正2:=CONST(SUM(IF(T=1,初正1,0),T)),NODRAW;初负2:=CONST(SUM(IF(T=1,初负1,0),T)),NODRAW;初正:=CONST(SUM(IF(初正1>⼤额线 AND T=1,初正1,0),T)),NODRAW;初负:=CONST(SUM(IF(初负1>⼤额线 AND T=1,初负1,0),T)),NODRAW;T00:=IF(C1>REF(C1,1),0.9,-0.9);T01:=IF(C1T02:=T00+T01;TT1:=BARSLAST(CROSS(T02,0));TT2:=BARSLAST(CROSS(0,T02));TT:=IF(T02=1.8,1,IF(T02=-1.8,-1,0));正V1:=IF(TT=1 OR (TT=0 AND TT1>TT2),成交额,0);负V1:=IF(TT=-1 OR (TT=0 AND TT1正总1:=初正1+SUM(正V1,T),NODRAW,COLOR0000FF;负总1:=初负1+SUM(负V1,T),NODRAW,COLOR00FF00;总:=(正总1+负总1)+初正2+初负2,NODRAW;正V:=IF(正V1>⼤额线,正V1,0);负V:=IF(负V1>⼤额线,负V1,0);正总:初正+SUM(正V,T),NODRAW,COLOR0000FF;负总:初负+SUM(负V,T),NODRAW,COLOR00FF00;差%:(正总-负总)/总*100,COLOR00FF00,NODRAW;TTA:=INTPART(2*T/5);KP30:=T<240;KPGD:=H=HHV(H,0) AND KP30;GDSJ:=BARSLAST(KPGD);。

通达信分时起爆预警主图指标公式

通达信分时起爆预警主图指标公式

通达信分时起爆预警主图指标公式现价:=C,COLORWHITE,LINETHICK2;均价11:=SUM(C*V,240)/SUM(V,240),COLORRED,LINETHICK2;TT:=BARSCOUNT(C);前高:=REF(HHV(H,TT),1);突破:=crOSS(C,REF(HHV(H,TT),1)) AND C/均价11<1.09 AND TT>1 AND TT<240;主力扫盘:=COUNT(突破,13)>=3 AND CROSS(C,REF(HHV(H,TT),1));已主力扫盘:=BArslAST(主力扫盘)<13;HJ_2:=DYNAINFO(4)>0 AND HHV(HIGH,2)/LLV(LOW,2)<1.25 AND REF(CLOSE,1)<LLV(LOW,3)+(HHV(HIGH,3)-LLV(LOW,3))*0.85;HJ_9:=EMA(CLOSE,2);HJ_10:=EMA(CLOSE,3);HJ_11:=MAX(HJ_9,HJ_10);X2:=CLOSE>HJ_11 AND HJ_2 AND (CLOSE>REF(HHV(HIGH,2),1) AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>0.015) AND (V/CAPITAL<=0.2) AND C/REF(C,1)<1.07;NX:=MA(((SLOPE(C,20)*5)+C),10);{中枢}B1:=HOUR=09 AND MINUTE=45;B20:=LLV(L,15);B30:=BARSLAST(B1);B4:=REF(B20,B30);B5:=CONST(B4),COLORFF80FF,CIRCLEDOT,LINETHICK2;C1:=HOUR=09 AND MINUTE=45;C2:=HHV(H,15);C3:=BARSLAST(C1);C4:=REF(C2,C3);C5:=CONST(C4),COLORFF80FF,CIRCLEDOT,LINETHICK2;DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIF,9);macd10:=(DIF-DEA)*2;AA0:=MacD10>00 AND DIF>0 AND DEA>0;A100:=HOUR=10 AND MINUTE=0;A20:=HHV(H,30);A30:=BARSLAST(A100);A40:=REF(A20,A30);A50:=CONST(A40);A80:=CLOSE>A50 AND REF(C<=A50,1) AND CLOSE>NX;AB:=FILTER(A80,100);A90:=DYNAINFO(3);AC:=CLOSE<=A90*1.04 AND CLOSE>A90;量比:=V/REF(MA(V,5),1);XG:=AA0 AND AB AND AC AND A40>A90 AND 量比>=1;HJ_4:=CLOSE;HJ_5:=(CLOSE-REF(CLOSE,5))/REF(CLOSE,5);BAB1:=STICKLINE(HJ_5>0,DYNAINFO(3),DYNAINFO(3)*(1+ HJ_5),0.1,0);BAB2:=STICKLINE(HJ_5<0,DYNAINFO(3),DYNAINFO(3)*(1+ HJ_5),0.1,0);HJ_6:=CLOSE/DYNAINFO(3);HJ_7:=FILTER(HJ_5>0.015 AND HJ_5>REF(HJ_5,1)*2 AND vol>REF(VOL,1)*2 AND CLOSE>REF(CLOSE,1) OR HJ_5>0.025,240);H1:=MAX(DYNAINFO(3),DYNAINFO(5));L1:=MIN(DYNAINFO(3),DYNAINFO(6));P1:=H1-L1;阻力:=L1+P1*8/9,COLORLIRED,DOTLINE;支撑:=L1+P1*0.5/9,COLORGREEN,DOTLINE;WA1:=V*C/100;WA2:=SUM((IF(((WA1/8>20) AND (CLOSE>(REF(CLOSE,1)))),WA1,0)),0);WA3:=SUM((IF(((WA1/8>20) AND (CLOSE<(REF(CLOSE,1)))),WA1,0)),0);WA4:=SUM((IF(((WA1/8<20) AND (CLOSE>(REF(CLOSE,1)))),WA1,0)),0);WA5:=SUM((IF(((WA1/8<20) AND (CLOSE<(REF(CLOSE,1)))),WA1,0)),0);机构买盘:=(WA2);机构卖盘:=(WA3);散户买盘:=(WA4);散户卖盘:=(WA5);BU:=BARSLAST(CLOSE=HHV(CLOSE,60));SE:=BARSLAST(CLOSE=LLV(CLOSE,60));KK1:=SE;KK2:=BU;LM1:=SE;LM2:=BU;OK:=KK1>KK2 AND LM1>LM2;OK1:=KK1>KK2 AND LM1<LM2;NOK:=KK2>KK1 AND LM2>LM1;NOK1:=KK2>KK1 AND LM2<LM1;DRAWICON(FILTER(CROSS(KK1,KK2),60),OPEN*1,5);DRAWTEXT(FILTER(CROSS(KK1,KK2),60) ,OPEN*0.985,'抓'),COLORFF0000;TT1:=BARSCOUNT(C);均价黄:=SUM(C*V,TT1)/SUM(V,TT1);量两步:=MA(V,5)>REF(MA(V,5),1) AND REF(MA(V,5),1)>REF(MA(V,5),2);价两步:= C>=REF(C,1) AND REF(C,1)>REF(C,2);价上岗量破5:=C>均价黄 AND V>MA(V,5);量起爆:=V>=REF(V,1)*1;价创新高:=C>=HHV(C,0);量创新高:=V>=HHV(V,0);对昨日涨幅:=(C/DYNAINFO(3)-1)*100<=2.50;{涨幅控制2个点以内}每日一点:=量两步 AND 价两步 AND 价上岗量破5 AND 量起爆AND 价创新高 AND 量创新高 AND 对昨日涨幅;VV:=BARSSINCE(每日一点)+1;首次起爆价:=REF(C,VV-1),NODRAW;起爆收益:(DYNAINFO(7)-首次起爆价)/首次起爆价*100,NODRAW;流通盘:=CAPITAL*100/100000000,NODRAW;起爆时间:=REF(TIME/10000,VV),NODRAW;已爆分钟:=VV-1,NODRAW;DRAWICON(每日一点,C,25);DRAWTEXT(每日一点,L-0.01,'←分时起爆'),COLOR0000FF;DRAWNUMBER_FIX(ISLASTBAR AND C>1,0.8,0.5,0,起爆收益),COLORFF0000;DRAWTEXT_FIX(ISLASTBAR AND C>1,0.8,0.45,0,'起爆收益'),COLOR0000FF;DRAWTEXT_FIX(ISLASTBAR AND C>1,0.85,0.5,0,'%'),COLOR0000FF;ACX:=FILTER(CROSS(KK1,KK2),60);ACX1:=BARSSINCE(ACX)+1;首次抓板价:=REF(C,ACX1-1),NODRAW;抓板收益:(DYNAINFO(7)-首次抓板价)/首次抓板价*100,NODRAW;DRAWNUMBER_FIX(ISLASTBAR AND C>1,0.8,0.35,0,抓板收益),COLORFF0000;DRAWTEXT_FIX(ISLASTBAR AND C>1,0.8,0.3,0,'抓板收益'),COLOR0000FF;DRAWTEXT_FIX(ISLASTBAR AND C>1,0.85,0.35,0,'%'),COLOR0000FF;。

通达信分时主图指标公式源码

通达信分时主图指标公式源码

{分时主图--止赢止损}MA1:=EMA(C,30);MA2:=EMA(C,900);STICKLINE((MA1>MA2),MA1,MA2,0,0),COLOR1000FF;STICKLINE((MA1<MA2),MA1,MA2,0,0),COLOR00FF00;GJ:C,COLORWHITE;JJ:SUM(C*V,FROMOPEN)/SUM(V,FROMOPEN),COLORYELLOW,LINETHICK1.5;均量:=MA(V,5);量连增:=均量>REF(均量,1) AND REF(均量,1)>REF(均量,2);价连涨:=C>=REF(C,1) AND REF(C,1)>REF(C,2);价量线上:=C>JJ AND V>均量;倍量:=V>=REF(V,1)*2 ;价新高:=C>=HHV(C,FROMOPEN);量新高:=V>=HHV(V,FROMOPEN);限幅:=C/DYNAINFO(3)<=1.02;起爆:=FILTER(量连增AND 价连涨AND 价量线上AND 倍量AND 价新高AND 量新高AND 限幅,20);DRAWTEXT(起爆,C,'起爆'),COLOR00FFFF;DRAWICON(起爆,C,1);STICKLINE(起爆,C,JJ,1,0),COLOR1000FF;VV:=BARSSINCE(起爆);起爆价:=REF(C,VV);起爆时间:=REF(TIME/10000,VV);收益:=(DYNAINFO(7)-起爆价)/起爆价*100;DRAWICON(VV>=2,起爆价,13);DRAWTEXT_FIX(1,0,1,0,'起爆时间:'),COLOR00FFFF;DRAWNUMBER_FIX(1,0.06,1,0,CONST(起爆时间)),COLOR00FFFF;DRAWTEXT_FIX(1,0.12,1,0,'起爆价:'),COLOR00FFFF;DRAWNUMBER_FIX(1,0.17,1,0,CONST(起爆价)),COLOR00FFFF;DRAWTEXT_FIX(1,0.24,1,0,'收益:'),COLOR00FFFF;DRAWNUMBER_FIX(1,0.28.06,1,0,CONST(收益)),COLOR00FFFF;流通盘:CAPITAL*100/100000000,NODRAW;资金流入:=SUM(IF(C>REF(C,1),V,0),FROMOPEN),NODRAW;资金流出:=-SUM(IF(C<REF(C,1),V,0),FROMOPEN),NODRAW;资金出入:=资金流入+资金流出,NODRAW;NN:=2400,NODRAW;HD:=HHV(资金出入,NN),NODRAW;LD:=LLV(资金出入,NN),NODRAW;最高:=CONST(HD),NODRAW;最低:=CONST(LD),NODRAW;HLMAX:=最高;HLMIN:=最低;HLMN1:=(HLMAX+HLMIN)/2;HLMN2:=HLMAX-HLMIN;HLMN3:=(100-0)/2*1.3;HLMN4:=(100-0)/1*1.3;中间价轴:=(50-HLMN3)*HLMN2/HLMN4+HLMN1;轴差:=最高-最低;DRAWBAND(资金出入,RGB(150,0,150),0,RGB(0,100,0)),NODRAW;资金流量:资金出入,NODRAW;资金比:资金出入/SUM(V,FROMOPEN)*100,NODRAW;资金流量比:=IF(资金比>=0,(资金比+100)/2,100-ABS((资金比-100)/2)),NODRAW;攻击量:=((HSL*0.50+REF(HSL,1)*0.33)+(REF(HSL,2)*0.17))*SUM(C,FROMOPEN)/FROMOPE N,NODRAW;攻击量A:=SUM(IF(C>REF(C,1),攻击量*V,0),FROMOPEN),NODRAW;攻击量B:=-SUM(IF(C<REF(C,1),攻击量*V,0),FROMOPEN),NODRAW;攻击流量:攻击量A+攻击量B,NODRAW;NOTEXT攻击线:攻击流量,NODRAW;攻击比:攻击流量/SUM(V,FROMOPEN)*100,COLORRED,NODRAW;资金攻击度:=IF(攻击比>=0,(攻击比+50),100-ABS((攻击比-50)));{STICKLINE(资金流量A>0,资金流量A,0,1,0),COLOR0000FF;STICKLINE(资金流量B<0,资金流量B,0,1,0),COLORFF0000;}DRAWRECTREL(110,10,400,90,RGB(0,75,200));DRAWRECTREL(110,10,250,90,RGB(0,250,50));DRAWRECTREL(110,10,100+CONST(资金流量比*300/100),90,RGB(200,50,0)); DRAWTEXT_FIX(1,0.000,0.00,0,STRCAT(STRCAT('【资金流量比】',CON2STR(资金流量比,2)),'%买')),COLORYELLOW;DRAWRECTREL(610,10,900,90,RGB(0,75,200));DRAWRECTREL(610,10,750,90,RGB(0,250,50));DRAWRECTREL(610,10,600+CONST(资金攻击度*300/100),90,RGB(175,50,0)); DRAWTEXT_FIX(1,0.500,0.00,0,STRCAT(STRCAT('【资金攻击度】',CON2STR(资金攻击度,2)),' %买')),COLORYELLOW;MA30:=EMA(CLOSE,30);强弱:EMA(CLOSE,900);STICKLINE((MA30>强弱),MA30,强弱,1,0),COLOR0000FF;STICKLINE((MA30<强弱),MA30,强弱,1,0),COLOR00FF00;H1:=MAX(DYNAINFO(3),DYNAINFO(5));L1:=MIN(DYNAINFO(3),DYNAINFO(6));P1:=H1-L1;阻力:L1+P1*7/8,COLOR00DD00;支撑:L1+P1*0.5/8,COLOR00DD00;现价:CLOSE,COLORWHITE,LINETHICK1;STICKLINE(CROSS(支撑,现价),支撑,阻力,1,0),COLORYELLOW;DRAWTEXT(LONGCROSS(支撑,现价,2),支撑*1.001,'★B吸'),COLORWHITE;{吸} DRAWTEXT(LONGCROSS(现价,阻力,2),现价,'★S抛'),COLORGREEN;{抛};{T+1止赢、止损}止赢:H1,COLORRED,LINETHICK6;DRAWTEXT(ISLASTBAR,H1,'当日止赢价位'),COLORRED,LINETHICK6;止损:阻力,COLORBLUE,LINETHICK6;DRAWTEXT(ISLASTBAR,阻力,'高位止损价位'),COLORBLUE,LINETHICK6;最后止损:支撑,COLORGREEN,LINETHICK6;DRAWTEXT(ISLASTBAR,支撑,'低位止损价位'),COLORGREEN,LINETHICK6;UR:=10;LR:=10;均价:SUM(V*C,0)/SUM(V,0),COLORYELLOW;。

分时抓波动指标通达信指标公式源码

分时抓波动指标通达信指标公式源码

分时抓波动指标通达信指标公式源码1. 引言本文档介绍了分时抓波动指标在通达信中的实现公式源码。

分时抓波动指标是一个用于量化交易的技术指标,通过分析股票分时K线图的波动情况,识别出股票的短期波动水平,为交易提供参考依据。

2. 公式源码x=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;RSV=(EMA(MAX(x,0),N))/(EMA(ABS(x),N))*100;MA=MA(RSV,M);STD=STD(RSV,M);U=MA+N*STD;D=MA-N*STD;MR=REF(MA,1);mi=REF(TIME,1)!=TIME;XU=U+mi*MR;XD=D+mi*MR;3. 参数说明- `CLOSE`:当前收盘价- `REF(CLOSE,1)`:前一日收盘价- `EMA`:指数平均数- `MAX`:最大值- `ABS`:绝对值- `STD`:标准差- `MA`:移动平均线- `N`:波动系数,可根据实际需求进行调整- `U`:上轨线- `D`:下轨线- `MR`:上一根K线收盘价的移动平均值- `mi`:判断是否是新的交易日- `XU`:计算后的上涨波动线- `XD`:计算后的下跌波动线4. 使用方法1. 将公式源码复制到通达信的编辑公式界面中。

2. 根据需要设置参数 `N` 的值,可以根据市场情况和个人风险偏好进行调整。

3. 将公式保存并应用到分时K线图中,即可看到分时抓波动指标的效果。

5. 总结分时抓波动指标是一种用于判断股票短期波动水平的技术指标,在量化交易中有着广泛的应用。

本文介绍了该指标在通达信中的公式源码,并给出了使用方法。

希望本文对广大投资者在量化交易中的决策提供一定的参考价值。

注意:本文仅提供技术指标公式源码,具体的交易决策需要根据市场实际情况和个人风险偏好进行综合分析和判断。

6. 参考文献以上是分时抓波动指标在通达信中的公式源码。

通过将该公式源码添加到通达信软件中,并根据实际需求设置参数值,即可得到分时抓波动指标的效果。

分时k线(源码)通达信指标公式源码

分时k线(源码)通达信指标公式源码

分时k线(源码)通达信指标公式源码分时k线(源码)引用指标名称{FSKY}预测量:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,VOL);VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));主买:IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<="" p=""> 今量:VOL;昨量:REF(VOL,1);前量:REF(VOL,2);昨开:REF(O,1);昨收:REF(C,1);前开:REF(O,2);前收:REF(C,2);ZO:REF(O,1);ZC:REF(C,1);ZH:REF(H,1);ZL:REF(L,1);JO:REF(O,2);JC:REF(C,2);JH:REF(H,2);JL:REF(L,2);JO3:REF(O,3);JC3:REF(C,3);JH3:REF(H,3);JL3:REF(L,3);JO4:REF(O,4);JC4:REF(C,4);JH4:REF(H,4);JL4:REF(L,4);JO5:REF(O,5);JC5:REF(C,5);JH5:REF(H,5);JL5:REF(L,5);JO6:REF(O,6);JC6:REF(C,6);JH6:REF(H,6);JL6:REF(L,6);JO7:REF(O,7);JC7:REF(C,7);JH7:REF(H,7);JL7:REF(L,7);JO8:REF(O,8);JC8:REF(C,8);JH8:REF(H,8);JL8:REF(L,8);MA2:MA(C,2);MA3:MA(C,3);MA4:MA(C,4);MA5:MA(C,5);MA10:MA(C,10);MA20:MA(C,20);MA60:MA(C,60);上涨家数:INDEXADV;下跌家数:INDEXDEC;{分时K线}D0:=HOUR=9 AND MINUTE=30; D1:=HOUR=9 AND MINUTE=40;D2:=HOUR=9 AND MINUTE=50;D3:=HOUR=10 AND MINUTE=0;D4:=HOUR=10 AND MINUTE=30;D5:=HOUR=11 AND MINUTE=0;D6:=HOUR=13 AND MINUTE=0;D7:=HOUR=13 AND MINUTE=30;D8:=HOUR=14 AND MINUTE=0;D9:=HOUR=14 AND MINUTE=30;D10:=HOUR=14 AND MINUTE=40;D11:=HOUR=14 AND MINUTE=50;D12:=HOUR=14 AND MINUTE=55;D0D:=IF(D0=0,C,DRAWNULL);D1D:=IF(D1=1,C,DRAWNULL);D2D:=IF(D2=1,C,DRAWNULL);D3D:=IF(D3=1,C,DRAWNULL);D4D:=IF(D4=1,C,DRAWNULL);D5D:=IF(D5=1,C,DRAWNULL);D6D:=IF(D6=1,C,DRAWNULL);D7D:=IF(D7=1,C,DRAWNULL);D8D:=IF(D8=1,C,DRAWNULL);D9D:=IF(D9=1,C,DRAWNULL);D10D:=IF(D10=1,C,DRAWNULL);D11D:=IF(D11=1,C,DRAWNULL);D12D:=IF(D12=1,C,DRAWNULL);时间:=TIME=100000;N:=BARSLAST(时间);常数:=CONST(IF(N=0,C,REF(C,N))),COLORGREEN,DOTLINE; CS1:=CONST(IF(N,HHV(H,0),REF(HHV(H,0),N)));CS2:=CONST(IF(N,LLV(L,0),REF(LLV(L,0),N))); {STICKLINE(时间=1,CS1,CS2,-1,0),COLORGREEN;}DA:=YEAR AND MONTH AND DAY;AA1:=STRCAT(CON2STR(YEAR,0),'年');AA2:=STRCAT(CON2STR(MONTH,0),'月');AA3:=STRCAT(CON2STR(DAY,0),'日');AA4:=STRCAT('【',IF(WEEKDAY=1,'一',IF(WEEKDAY=2,'二',IF(WEEKDAY=3,'三',IF(WEEKDAY=4,'四',IF(WEEKDAY=5,'五',IF(WEEKDAY=6,'六','日')))))));AA:=STRCAT(STRCAT(STRCAT(AA1,AA2),STRCAT(AA3,AA4)),'】'); DRAWTEXT_FIX(DA,0.85,0.01,0,AA),COLORWHITE;{分时量}预测量:="FSKY.预测量#DAY";主买:="FSKY.主买#DAY";前量:="FSKY.前量#DAY";昨量:="FSKY.昨量#DAY";今量:="FSKY.今量#DAY";前总:=前量;昨总:=昨量;总:=今量,NODRAW;BMM:=MAX(前总,昨总);AMM:=IF(总/BMM>2,BMM*3,BMM);MM:=500/AMM;KP:=DYNAINFO(4);ZX:=DYNAINFO(7);A1:=IF(ZX>=KP,255,0);A2:=IF(ZX>=KP,0,255);A3:=IF(ZX>=KP,0,255);{DRAWRECTREL(0,80,MM*预测量,110,RGB(90,90,90)); DRAWRECTREL(0,80,MM*今量,110,RGB(A1,A2,A3));DRAWRECTREL(0,80,MM*主买,110,RGB(250,250,280));}昨开:="FSKY.昨开#DAY";昨收:="FSKY.昨收#DAY";A4:=IF(昨收>=昨开,255,0);A5:=IF(昨收>=昨开,0,255);A6:=IF(昨收>=昨开,0,255);{DRAWRECTREL(0,40,MM*昨量,70,RGB(A4,A5,A6));}前开:="FSKY.前开#DAY";前收:="FSKY.前收#DAY";A7:=IF(前收>=前开,255,0);A8:=IF(前收>=前开,0,255);A9:=IF(前收>=前开,0,255);{DRAWRECTREL(0,0,MM*前量,30,RGB(A7,A8,A9));}{分时K线}ZS:=DYNAINFO(3);ZG:=DYNAINFO(5);ZD:=DYNAINFO(6);OP:=500-(KP/ZS-1)*4000;CL:=500-(ZX/ZS-1)*4000;HI:=500-(ZG/ZS-1)*4000;LO:=500-(ZD/ZS-1)*4000;N1:=IF(TIME>=130000 OR TIME<91500,360,860); DRAWRECTREL(N1+4,OP,N1+8,HI,RGB(255,0,255)); DRAWRECTREL(N1+4,CL,N1+8,LO,RGB(0,128,0));Q1:=IF(ZX>=KP,255,0);Q2:=IF(ZX>=KP,0,255);Q3:=IF(ZX>=KP,0,255);DRAWRECTREL(N1-10,OP,N1+22,CL,RGB(Q1,Q2,Q3));ZO:="FSKY.ZO#DAY";ZC:="FSKY.ZC#DAY";ZH:="FSKY.ZH#DAY";ZL:="FSKY.ZL#DAY";ZKP:=500-(ZO/ZS-1)*4000;ZCP:=500-(ZC/ZS-1)*4000;ZZG:=500-(ZH/ZS-1)*4000;ZZD:=500-(ZL/ZS-1)*4000;DRAWRECTREL(N1-36,ZKP,N1-32,ZZG,RGB(255,0,255)); DRAWRECTREL(N1-36,ZCP,N1-32,ZZD,RGB(0,128,0));Q4:=IF(ZC>=ZO,255,0);Q5:=IF(ZC>=ZO,0,255);Q6:=IF(ZC>=ZO,0,255);DRAWRECTREL(N1-49,ZKP,N1-17,ZCP,RGB(Q4,Q5,Q6)); JO:="FSKY.JO#DAY";JC:="FSKY.JC#DAY";JH:="FSKY.JH#DAY";JL:="FSKY.JL#DAY";ZZKP:=500-(JO/ZS-1)*4000;ZZCP:=500-(JC/ZS-1)*4000;ZZZG:=500-(JH/ZS-1)*4000;ZZZD:=500-(JL/ZS-1)*4000;DRAWRECTREL(N1-76,ZZKP,N1-72,ZZZG,RGB(255,0,255)); DRAWRECTREL(N1-76,ZZCP,N1-72,ZZZD,RGB(0,128,0));Q7:=IF(JC>=JO,255,0);Q8:=IF(JC>=JO,0,255);Q9:=IF(JC>=JO,0,255);DRAWRECTREL(N1-89,ZZKP,N1-57,ZZCP,RGB(Q7,Q8,Q9)); JO3:="FSKY.JO3#DAY";JC3:="FSKY.JC3#DAY";JH3:="FSKY.JH3#DAY";JL3:="FSKY.JL3#DAY";ZZKP3:=500-(JO3/ZS-1)*4000;ZZCP3:=500-(JC3/ZS-1)*4000;ZZZD3:=500-(JL3/ZS-1)*4000;DRAWRECTREL(N1-116,ZZKP3,N1-112,ZZZG3,RGB(255,0,255)); DRAWRECTREL(N1-116,ZZCP3,N1-112,ZZZD3,RGB(0,128,0));Q10:=IF(JC3>=JO3,255,0);Q11:=IF(JC3>=JO3,0,255);Q12:=IF(JC3>=JO3,0,255);DRAWRECTREL(N1-129,ZZKP3,N1-97,ZZCP3,RGB(Q10,Q11,Q12)); JO4:="FSKY.JO4#DAY";JC4:="FSKY.JC4#DAY";JH4:="FSKY.JH4#DAY";JL4:="FSKY.JL4#DAY";ZZKP4:=500-(JO4/ZS-1)*4000;ZZCP4:=500-(JC4/ZS-1)*4000;ZZZG4:=500-(JH4/ZS-1)*4000;ZZZD4:=500-(JL4/ZS-1)*4000;DRAWRECTREL(N1-156,ZZKP4,N1-152,ZZZG4,RGB(255,0,255)); DRAWRECTREL(N1-156,ZZCP4,N1-152,ZZZD4,RGB(0,128,0));Q13:=IF(JC4>=JO4,255,0);Q14:=IF(JC4>=JO4,0,255);Q15:=IF(JC4>=JO4,0,255);DRAWRECTREL(N1-169,ZZKP4,N1-137,ZZCP4,RGB(Q13,Q14,Q15)); JO5:="FSKY.JO5#DAY";JC5:="FSKY.JC5#DAY";JH5:="FSKY.JH5#DAY";JL5:="FSKY.JL5#DAY";ZZKP5:=500-(JO5/ZS-1)*4000;ZZCP5:=500-(JC5/ZS-1)*4000;ZZZD5:=500-(JL5/ZS-1)*4000;DRAWRECTREL(N1-196,ZZKP5,N1-192,ZZZG5,RGB(255,0,255)); DRAWRECTREL(N1-196,ZZCP5,N1-192,ZZZD5,RGB(0,128,0));Q16:=IF(JC5>=JO5,255,0);Q17:=IF(JC5>=JO5,0,255);Q18:=IF(JC5>=JO5,0,255);DRAWRECTREL(N1-209,ZZKP5,N1-177,ZZCP5,RGB(Q16,Q17,Q18)); JO6:="FSKY.JO6#DAY";JC6:="FSKY.JC6#DAY";JH6:="FSKY.JH6#DAY";JL6:="FSKY.JL6#DAY";ZZKP6:=500-(JO6/ZS-1)*4000;ZZCP6:=500-(JC6/ZS-1)*4000;ZZZG6:=500-(JH6/ZS-1)*4000;ZZZD6:=500-(JL6/ZS-1)*4000;DRAWRECTREL(N1-236,ZZKP6,N1-232,ZZZG6,RGB(255,0,255)); DRAWRECTREL(N1-236,ZZCP6,N1-232,ZZZD6,RGB(0,128,0));Q19:=IF(JC6>=JO6,255,0);Q20:=IF(JC6>=JO6,0,255);Q21:=IF(JC6>=JO6,0,255);DRAWRECTREL(N1-249,ZZKP6,N1-217,ZZCP6,RGB(Q19,Q20,Q21)); JO7:="FSKY.JO7#DAY";JC7:="FSKY.JC7#DAY";JH7:="FSKY.JH7#DAY";JL7:="FSKY.JL7#DAY";ZZKP7:=500-(JO7/ZS-1)*4000;ZZCP7:=500-(JC7/ZS-1)*4000;ZZZD7:=500-(JL7/ZS-1)*4000;DRAWRECTREL(N1-276,ZZKP7,N1-272,ZZZG7,RGB(255,0,255)); DRAWRECTREL(N1-276,ZZCP7,N1-272,ZZZD7,RGB(0,128,0));Q22:=IF(JC7>=JO7,255,0);Q23:=IF(JC7>=JO7,0,255);Q24:=IF(JC7>=JO7,0,255);DRAWRECTREL(N1-289,ZZKP7,N1-257,ZZCP7,RGB(Q22,Q23,Q24)); JO8:="FSKY.JO8#DAY";JC8:="FSKY.JC8#DAY";JH8:="FSKY.JH8#DAY";JL8:="FSKY.JL8#DAY";ZZKP8:=500-(JO8/ZS-1)*4000;ZZCP8:=500-(JC8/ZS-1)*4000;ZZZG8:=500-(JH8/ZS-1)*4000;ZZZD8:=500-(JL8/ZS-1)*4000;DRAWRECTREL(N1-316,ZZKP8,N1-312,ZZZG8,RGB(255,0,255)); DRAWRECTREL(N1-316,ZZCP8,N1-312,ZZZD8,RGB(0,128,0));Q25:=IF(JC8>=JO8,255,0);Q26:=IF(JC8>=JO8,0,255);Q27:=IF(JC8>=JO8,0,255);DRAWRECTREL(N1-329,ZZKP8,N1-297,ZZCP8,RGB(Q25,Q26,Q27));DRAWLINE(D0=0,D0D,D1=1,D1D,0),COLORBLUE,LINETHICK2; DRAWLINE(D1=1,D1D,D2=1,D2D,0),COLORBLUE,LINETHICK2; DRAWLINE(D2=1,D2D,D3=1,D3D,0),COLORBLUE,LINETHICK2; DRAWLINE(D9=1,D9D,D10=1,D10D,0),COLORBLUE,LINETHICK2; DRAWLINE(D10=1,D10D,D11=1,D11D,0),COLORBLUE,LINETHICK2;DRAWLINE(D11=1,D11D,D12=1,D12D,0),COLORBLUE,LINETHICK 2;MA2:="FSKY.MA2#DAY";MA3:="FSKY.MA3#DAY";MA4:="FSKY.MA4#DAY";MA5:="FSKY.MA5#DAY";XMA5:=500-(MA5/ZS-1)*4000;DRAWRECTREL(N1-3,XMA5-2,N1+15,XMA5+2,RGB(255,0,0));MA10:="FSKY.MA10#DAY";XMA10:=500-(MA10/ZS-1)*4000;DRAWRECTREL(N1-10,XMA10-2,N1+25,XMA10+2,RGB(0,255,0));MA20:="FSKY.MA20#DAY";XMA20:=500-(MA20/ZS-1)*4000;DRAWRECTREL(N1-20,XMA20-2,N1+35,XMA20+2,RGB(0,0,255));MA60:="FSKY.MA60#DAY";XMA60:=500-(MA60/ZS-1)*4000;DRAWRECTREL(N1-30,XMA60-2,N1+45,XMA60+2,RGB(255,255,255));。

通达信买入稳妥分时主图指标公式

通达信买入稳妥分时主图指标公式

通达信买入稳妥分时主图指标公式IF(MACD.DEA<0,CLOSE,DRAWNULL),COLORRED,LINETHICK 9;X_1:=MAX(DYNAINFO(3),DYNAINFO(5));X_2:=MIN(DYNAINFO(3),DYNAINFO(6));X_3:=X_1-X_2;X_4:=X_2+X_3*7/8;X_5:=X_2+X_3*0.5/8;DRAWICON(LONGCROSS(X_5,CLOSE,2),CLOSE,1);DRAWICON(LONGCROSS(CLOSE,X_4,2),CLOSE,2);X_6:=DYNAINFO(4);X_7:=DYNAINFO(5);X_8:=DYNAINFO(6);X_9:=DYNAINFO(11);X_10:=CLOSE;X_11:=BARSCOUNT(X_10);X_12:=SUM(VOL*CLOSE,0)/SUM(VOL,0);X_13:=MA(X_10,X_11);X_14:=X_13+2*STD(X_10,3);X_15:=X_13-2*STD(X_10,3);DRAWICON(CROSS(X_12,X_13),X_12,38);X_16:=TIME>93000;X_17:=X_10/REF(CLOSE,1)>1.02;X_18:=X_10/REF(CLOSE,1)<0.98;X_19:=(HHV(X_10,X_11)-LLV(X_10,X_11))/X_10<0.05;X_20:=SMA(VOL,30,1);X_21:=(X_20-LLV(LLV(X_20,1),30))/(HHV(HHV(X_20,1),30)-LLV(LLV(X_20,1),30))>0.95;X_22:=X_17 OR X_18;X_23:=X_22=0 AND X_19 AND X_21 AND CROSS(X_12,X_13);DRAWTEXT(FILTER(X_23,10),X_12,3),COLORYELLOW;X_24:=X_22=0 AND X_19 AND X_21 AND CROSS(CLOSE,X_12) AND CROSS(CLOSE,X_13);DRAWTEXT(FILTER(X_24,10),X_12*0.99,4),COLORRED;FX1:=VOL/CLOSE/3;FX2:=SUM(IF(FX1>0.2 AND CLOSE>REF(CLOSE,1),FX1,0),0);FX3:=SUM(IF(FX1>0.2 AND CLOSE<REF(CLOSE,1),FX1,0),0);FX4:=FX2+FX3;FX5:=1;FX6:=FX2/FX3;FX7:=EMA((-100)*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4)+100;FX8:=MAX(DYNAINFO(3),DYNAINFO(5));FX9:=MIN(DYNAINFO(3),DYNAINFO(6));FX10:=FX8-FX9;FX11:=FX9+FX10*7/8;FX12:=FX9+FX10*0.5/8;FX13:=SUM(CLOSE*VOL,240)/SUM(VOL,240);FX14:=BARSCOUNT(CLOSE);FX15:=MA(CLOSE,FX14);FX16:=FX15+2*STD(CLOSE,3);FX17:=FX15-2*STD(CLOSE,3);FX18:=TIME>93000;FX19:=CLOSE/REF(CLOSE,1)>1.02;FX20:=CLOSE/REF(CLOSE,1)<0.98;FX21:=(HHV(CLOSE,FX14)-LLV(CLOSE,FX14))/CLOSE<0.05;FX22:=SMA(VOL,30,1);FX23:=(FX22-LLV(LLV(FX22,1),30))/(HHV(HHV(FX22,1),30)-LLV(LLV(FX22,1),30))>0.95;FX24:=FX19 OR FX20;FX25:=FX24=0 AND FX21 AND FX23 AND CROSS(FX13,FX15);IF(MACD.DEA<0,CLOSE,DRAWNULL),COLORRED,LINETHICK 9;FX26:=SUM(AMOUNT,BARSCOUNT(CLOSE))/SUM(VOL*100, BARSCOUNT(CLOSE));FX27:=EXPMA(CLOSE/FX26,20);FX28:=EXPMA(CLOSE/FX26,60);FX29:=EXPMA(CLOSE/FX26,120);FX30:=1;1.02,NODRAW;FX31:=1.03;FX32:=FX27>FX28 AND FX27>1.003 AND FX28>FX29 AND CLOSE>EXPMA(CLOSE,20) AND EXPMA(CLOSE,10)>EXPMA(CLOSE,20) AND EXPMA(CLOSE,20)>EXPMA(CLOSE,60);DRAWICON(FX27>FX28 AND FX28>FX29 AND CLOSE>EXPMA(CLOSE,20) AND EXPMA(CLOSE,10)>EXPMA(CLOSE,20) AND EXPMA(CLOSE,20)>EXPMA(CLOSE,60) AND FX27=HHV(FX27,30) AND CROSS(FX27,1.003),CLOSE,25);DRAWICON(CROSS(FX27,1.02),CLOSE,24);DRAWICON(CROSS(FX27,1.04),CLOSE,26);FX36:=SUM(IF(CLOSE>REF(CLOSE,1) AND VOL>4000,VOL/1000,0),0);FX37:=SUM(IF(CLOSE<REF(CLOSE,1) AND VOL>4000,VOL/1000,0),0);FX38:=SUM(IF(CLOSE>REF(CLOSE,1),VOL/1000,0),0);FX39:=SUM(IF(CLOSE<REF(CLOSE,1),VOL/1000,0),0);FX40:=FX38-FX36;FX41:=FX39-FX37;FX42:=FX36;FX43:=FX37;FX44:=FX40;FX45:=FX41;FX46:=FX36-FX37;FX47:=FX40-FX41;FX48:=FX38-FX39;FX49:=CONST(MAX(ABS(FX42),MAX(ABS(FX43),MAX(ABS(F X44),ABS(FX45)))));地:EMA(FX13,50)/0.97,COLORGREEN,LINETHICK2;IF(地>REF(地,1),地,DRAWNULL),COLORRED,LINETHICK2;平衡线:(FX13+地)/2,DOTLINE,COLORGREEN;FX50:=COUNT(VOL>4000 AND CLOSE>REF(CLOSE,1),0);黄次数:COUNT(VOL>DYNAINFO(16)*10 AND CLOSE>REF(CLOSE,1),0),NODRAW,COLORYELLOW;DRAWICON(FX50>REF(FX50,1) AND 黄次数>REF(黄次数,1) AND CROSS(CLOSE,地),CLOSE,7);DRAWICON(FX40>FX41 AND FX36>FX40 AND FX41>FX37,FX13,38);H1:=MAX(DYNAINFO(3),DYNAINFO(5));L1:=MIN(DYNAINFO(3),DYNAINFO(6));P1:=H1-L1; 阻力:L1+P1*7/8,COLORLIMAGENTA,DOTLINE;支撑:L1+P1*0.5/8,COLORCYAN,DOTLINE;中:(支撑+阻力)/2,COLORLIGRAY,POINTDOT,LINETHICK2;均价:SUM(V*C,0)/SUM(V,0),COLORYELLOW,DOTLINE,NODRAW;现价:CLOSE,COLORWHITE,LINETHICK1,NODRAW;DRAWTEXT(ISLASTBAR AND 现价,现价,STRCAT('←',CON2STR(现价,2))),COLORYELLOW;STICKLINE(CROSS(支撑,现价),支撑,中,0,-1),COLORYELLOW;STICKLINE(CROSS(现价,阻力),阻力,中,0,-1),COLORGREEN; DRAWTEXT(LONGCROSS(支撑,现价,2),C*0.9982,' 买'),COLORYELLOW;DRAWTEXT(LONGCROSS(现价,阻力,2),C*1.0018,' 卖'),COLORCYAN,LINETHICK2;STICKLINE(C<支撑,支撑,C,1,0),COLORYELLOW;DRAWICON(CROSS(支撑,现价),(支撑-中)/5+支撑,26);DRAWICON(CROSS(现价,阻力),阻力-(支撑-中)/5,15);DRAWTEXT(CURRBARSCOUNT=8,阻力+0.003,'顶'),COLORYELLOW,LINETHICK2;DRAWTEXT(CURRBARSCOUNT=8,支撑-0.003,'底'),COLORGREEN,LINETHICK2;DRAWTEXT(CURRBARSCOUNT=8,(支撑+阻力)/2,'中'),COLORLIRED,LINETHICK2;成交额:=V*C/100,NODRAW;A2:=SUM((IF(((成交额/8>20) AND (CLOSE>(REF(CLOSE,1)))),成交额,0)),0);A3:=SUM((IF(((成交额/8>20) AND (CLOSE<(REF(CLOSE,1)))),成交额,0)),0);A6:=(A2+A3);A7:=IF((ISLASTBAR),((100*A2)/A6),0);A8:=IF((ISLASTBAR),((1 00*A3)/A6),0);DD1:=1;AAA1:=STRCAT(STRCAT('机构买',CON2STR((100*A2)/A6,0)),'%');AAA2:=STRCAT(STRCAT('机构卖',CON2STR((100*A3)/A6,0)),'%');AAA3:=STRCAT(STRCAT('机构总买入',CON2STR((100*(A2-A3))/A6,0)),'%');A000:=DRAWTEXT_FIX(DD1=1,0,0.02,0,AAA1);A001:=DRAWTEXT_FIX(DD1=1,0,0.13,0,AAA2);DRAWTEXT_F IX(DD1=1,0.842,1,0,AAA3),COLORYELLOW;现手买:BUYVOL*DYNAINFO(7)*100/10000 COLOR0000FF,NODRAW;现手卖:SELLVOL*DYNAINFO(7)*100/10000 COLOR00FF00,NODRAW;合:=ABS(现手买)+ABS(现手卖)COLOR80FFFF,NODRAW;差:=ABS(现手买)-ABS(现手卖)COLOR80FFFF,NODRAW;MPB1:=ABS(现手买)/合*100;MPB2:=ABS(现手卖)/合*100;TESTSKIP(NOT(现手买 OR 现手卖 OR 合 OR 差 OR MPB1 OR MPB2)!=0);DRAWRECTREL(595,1000,795,940,RGB(0,128,0));DRAWRECTREL(595,995,795,945,RGB(0,148,0));DRAWRECTREL(595,990,795,950,RGB(0,168,0));DRAWRECTREL(595,985,795,955,RGB(0,188,0));DRAWRECTREL(595,980,795,960,RGB(0,208,0));DRAWRECTREL(595,975,795,965,RGB(0,228,0));DRAWRECTREL(595,970,795,970,RGB(0,248,0));DRAWRECTREL(595,1000,595+现手买*210/合,940,RGB(128,0,0));DRAWRECTREL(595,995,595+现手买*210/合,945,RGB(148,0,0));DRAWRECTREL(595,990,595+现手买*210/合,950,RGB(168,0,0));DRAWRECTREL(595,985,595+现手买*210/合,955,RGB(188,0,0));DRAWRECTREL(595,980,595+现手买*210/合,960,RGB(208,0,0));DRAWRECTREL(595,975,595+现手买*210/合,965,RGB(228,0,0));DRAWRECTREL(595,970,595+现手买*210/合,970,RGB(248,0,0));DRAWRECTREL(595+现手买*210/合,940,595+现手买*210/合,1000,RGB(128,0,0));DRAWRECTREL(795,940,795,1000,RGB(0,0.0,10));DRAWRECT REL(594.8,939.8,594.8,1000,RGB(0,0,10));DRAWRECTREL(594.8,939.8,594.8,939.8,RGB(0,0,10));DRAWRECTREL(594.8,1000,594.8,1000,RGB(0,0,10));DRAWTEXT_FIX(1,0.560,0.89,0,STRCAT(STRCAT('',CON2STR(现手买,1)),'万')),COLORRED;DRAWTEXT_FIX(1,0.800,0.89,0,STRCAT(STRCAT('',CON2STR(现手卖,1)),'万')),COLORGREEN;DRAWTEXT_FIX(CURRBARSCOUNT=1AND(差)>0,0.678,0.888,0,STRCAT(' ',STRCAT(CON2STR(差,1),'万'))) COLORRED;DRAWTEXT_FIX(CURRBARSCOUNT=1AND(差)<0,0.678,0.888,0,STRCAT(' ',STRCAT(CON2STR(差,1),'万'))) COLORGREEN,LINETHICK2;DRAWTEXT_FIX(CURRBARSCOUNT=1AND(差)=0,0.678,0.888,0,STRCAT(' ',STRCAT(CON2STR(差,1),'万'))) COLOR80FFFF;DRAWTEXT_FIX(1,0.800,0.98,0,STRCAT(STRCAT('',CON2STR(MPB2,1)),'%')),COLORGREEN;DRAWTEXT_FIX(1,0.560,0.98,0,STRCAT(STRCAT('',CON2STR( MPB1,1)),'%')),COLORRED;市盈率:=STRCAT('市盈率: ',CON2STR(C/FINANCE(33),2));市销率:=STRCAT('市销率:',CON2STR(C/(FINANCE(20)/FINANCE(1)),2));市净率:=STRCAT('市净率: ',CON2STR(C/FINANCE(34),2));净资收益率:=STRCAT('净资收益率: ',CON2STR(FINANCE(33)/FINANCE(34)*100,2));毛利率:=STRCAT('毛利率: ',CON2STR((FINANCE(20)-FINANCE(21))/FINANCE(20)*100,2));净利润率:=STRCAT('净利润率',CON2STR(FINANCE(30)/FINANCE(20)*100,2));主营利润率:=STRCAT('主营利润率',CON2STR(FINANCE(23)/FINANCE(20)*100,2));利润同比:=STRCAT('利润同比: ',CON2STR(FINANCE(43),2));收入同比:=STRCAT('收入同比: ',CON2STR(FINANCE(44),2));X1:=(FINANCE(11)-FINANCE(15))/FINANCE(10)*1.2;X2:=(FINANCE(31)+FINANCE(17 ))/FINANCE(10)*1.4;X3:=FINANCE(23)/FINANCE(10)*3.3;X4:=FIN ANCE(19)/FINANCE(15)*0.6;X5:=FINANCE(20)/FINANCE(15)*0.9 99;Z值:=X1+X2+X3+X4+X5;预警:=IF(Z值<1.2,'重警',IF(Z 值>=1.2 AND Z值<2.6,'轻警','无警'));财务预警:=STRCAT('财务预警: ',STRCAT(预警,STRCAT('-Z值: ',CON2STR(Z值,3))));优质资产率:=STRCAT(' 优质资产率: ',CON2STR((FINANCE(19)-FINANCE(22)-FINANCE(27))/FINANCE(19),2));现金负债比:=STRCAT(' 现金负债比: ',CON2STR(FINANCE(25)/FINANCE(15),3));财务系数:=STRCAT('风险系数: ',STRCAT(STRCAT(财务预警,优质资产率),现金负债比));DRAWTEXT_FIX(ISLASTBAR,0.222,0.96,0,财务系数),COLORLIBLUE;D1:=YEAR AND MONTH AND DAY;AA1:=STRCAT(CON2STR(YEAR,0),'年');AA2:=STRCAT(CON2STR(MONTH,0),'月');AA3:=STRCAT(CON2STR(DAY,0),'日');AA4:=STRCAT('星期',IF(WEEKDAY=1,'一',IF(WEEKDAY=2,'二',IF(WEEKDAY=3,'三',IF(WEEKDAY=4,'四',IF(WEEKDAY=5,'五',IF(WEEKDAY=6,'六','日')))))));AA:=STRCAT(STRCAT(STRCAT(AA1,AA2),STRCAT(AA3,AA4)),' ');DRAWTEXT_FIX(D1,0.888,0.001,0,AA),COLORLIGRAY;MZ0:=(BARSLAST(((HOUR=9) AND (MINUTE=31)))+1);上穿分时:IF(((SETCODE<2) AND (CONST(MZ0)<241)),CONST(IF((TIME<1000),HHV(CLOSE,0),SUM ((IF((TIME=1000),1,0)*HHV(CLOSE,0)),0))),DRAWNULL),LINETHICK2,COLORLIRED;底支:IF(((SETCODE<2) AND (CONST(MZ0)<241)),CONST(IF((TIME<1000),HHV(CLOSE,0),SUM ((IF((TIME=1000),1,0)*LLV(CLOSE,0)),0))),DRAWNULL),LINETHICK 2,COLORLIGREEN;STICKLINE(TIME=931 OR TIME=1000,上穿分时,底支,0,-1),COLORLIBLUE;分时上突:=CROSS(C,上穿分时);上突:=C<上穿分时AND 上穿分时>底支;DRAWICON(分时上突,C,5);股价支撑线:=MA(CLOSE,20);底价线:股价支撑线-2*STD(CLOSE,20),NODRAW,COLORMAGENTA,LINETHICK2;DRA WTEXT_FIX(1,0.0001,0.00,0,STRCAT(STRCAT('【今日强势有效突破】',CON2STR(上穿分时,2)),' 元买入稳赚')),COLORWHITE,LINETHICK1;DRAWTEXT_FIX(1,0.5001,0.00,0,STRCAT(STRCAT('【底部得到有效支撑】',CON2STR(底支,2)),' 元可以参考')),COLORLIRED,LINETHICK1;所属板块:=STRCAT('【所属板块】',STRCAT(STRCAT(STRCAT(' [行业]—',HYBLOCK),STRCAT(' [地域]—',DYBLOCK)),STRCAT(' [概念]—',GNBLOCK)));DRAWTEXT_FIX(ISLASTBAR,0.005,0.05,0,所属板块),COLORWHITE;{题材数据}DRAWTEXT_FIX(ISLASTBAR,0.005,0.15,0,FGBLOCK),COLORW HITE;E:=EMA(C,50),COLORRED,LINETHICK2;开盘:='辅助公式.开盘价#DAY',DOTLINE,COLORWHITE;DRAWTEXT_FIX(1,0.5,0.87,0,DYBLOCK)COLORMAGENTA;万手额:=C*100;DRAWTEXT_FIX(1,0.6,0.87,0,STRCAT('',STRCAT(VAR2STR(万手额,0),'万')))COLORGRAY;成交额1:=DYNAINFO(10)/100000000;DRAWTEXT_FIX(1,0.75,0.76,0,STRCAT('额:',STRCAT(VAR2STR(成交额1,2),'亿')))COLORCYAN;开盘金额:=DYNAINFO(15)/10000;DRAWTEXT_FIX(1,0.75,0.69,0,STRCAT('开:',STRCAT(VAR2STR(开盘金额,0),'万')))COLORCYAN;流:=FINANCE(46)*C/100000000;DRAWTEXT_FIX(1,0.75,0.83,0,STRCAT('流:',STRCAT(VAR2STR(流,2),'亿')))COLORLIGREEN;换手Z:=成交额1/流*100,NODRAW;DRAWTEXT_FIX(1,0.75,0.89,0,STRCAT('换:',STRCAT(VAR2STR(换手Z,2),'%')))COLORLIGREEN;。

通达信经典分时主图 源码指标公式

通达信经典分时主图 源码指标公式

DRAWGBK(O>=0,RGB(60,35,0),RGB(0,60,60),0,'背景图',0),LINETHICK2;{========================额外==========================} Z1:=STRCAT(DYBLOCK,' ');Z2:=STRCAT(Z1,HYBLOCK);Z3:=STRCAT(Z2,' ');Z4:=STRCAT(Z3,GNBLOCK);Z5:=STRCAT(Z4,' ');Z6:=STRCAT(Z5,FGBLOCK);DRAWTEXT_FIX(ISLASTBAR,0.01,0.012,0,STRCAT(Z6,ZHBLOCK)),COLORCYAN;DRAWTEXT_FIX(ISLASTBAR,0,0.14,0,STRCAT('概念: ',GNBLOCK)),COLORWHITE;A1:=(VOL/CLOSE)/3;A2:=SUM((IF(((A1>40) AND (CLOSE>(REF(CLOSE,1)))),A1,0)),0);A3:=SUM((IF(((A1>40) AND (CLOSE<(REF(CLOSE,1)))),A1,0)),0);A4:=SUM((IF(((A1<40) AND (CLOSE>(REF(CLOSE,1)))),A1,0)),0);突破:=REF(EMA(C,14),1);A1X:=(EMA(C,10)-突破)/突破*100;多方:=IF(A1X>=0,REF(EMA(C,10),BARSLAST(CROSS(A1X,0))+1),DRAWNULL);空方:=IF(A1X<0,REF(EMA(C,10),BARSLAST(CROSS(0,A1X))+1),DRAWNULL); STICKLINE(A1X>=0,多方,突破,0,0),COLOR000099;STICKLINE(A1X<0,空方,突破,0,0),COLOR00CC66;最新:CLOSE,LINETHICK1,COLORWHITE;AA:=SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BARSCOUNT(C));BB:=BETWEEN(C/AA,C+H,C-H);DRAWTEXT( ISLASTBAR AND 最新>REF(最新,1),最新,STRCAT(' 涨▲',CON2STR(最新,2))),COLORMAGENTA;DRAWTEXT( ISLASTBAR AND 最新<REF(最新,1),最新,STRCAT(' 跌▼',CON2STR(最新,2))),COLOR00FF00;DRAWTEXT_FIX(1,0.880,1-0.97,0,DYBLOCK),COLORWHITE;DRAWTEXT_FIX(1,0.940,1-0.97,0,HYBLOCK),COLORYELLOW;均价:SUM(C*V,240)/SUM(V,240),COLORYELLOW,LINETHICK1;DXJP:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,21)-LLV(LOW,34))*100;FSZX:=(EMA(DXJP,3)-50)*2,COLORGRAY;BGTYU:=IF(DATE<=1150530,1,0);GHYJKU:=BETWEEN((DCLOSE*BGTYU)/(SUM(AMOUNT,BARSCOUNT((DCLOSE*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,BARSCOUNT((DCLOSE*BGTYU))) ));DRAWICON(FSZX<=-95,C,38);DRAWTEXT(CROSS(EXPMA((DCLOSE/VBNH),20),1.04),C,'板'),COLORCYAN; DRAWTEXT(CROSS(EXPMA((DCLOSE/VBNH),20),1.02),C,'追'),COLORYELLOW;H1:=MAX(DYNAINFO(3),DYNAINFO(5));L1:=MIN(DYNAINFO(3),DYNAINFO(6));P1:=H1-L1;阻力:=L1+P1*7/8,COLORGREEN;支撑:=L1+P1*0.5/8,COLORMAGENTA;DRAWICON(LONGCROSS(支撑,C,2),C,5);AYGB1:=(DVOL/C)/2,NODRAW;AYGB2:=SUM(IF(AYGB1>100 AND CLOSE>REF(CLOSE,1),AYGB1,0),0);AYGB3:=SUM(IF(AYGB1>100 AND CLOSE<REF(CLOSE,1),AYGB1,0),0);AYGB4:=SUM(IF(AYGB1<100 AND CLOSE>REF(CLOSE,1),AYGB1,0),0);AYGB5:=SUM(IF(AYGB1<100 AND CLOSE<REF(CLOSE,1),AYGB1,0),0);AYGB6:=AYGB2+AYGB3+AYGB4+AYGB5;机买:=(AYGB2/AYGB6)*100-100,LINETHICK1,COLORRED;机卖:=(AYGB3/AYGB6)*100-100,LINETHICK1,COLORGREEN;主力差:=机买-机卖;LQH:=主力差>0 AND REF(主力差,1)<=0;DRAWICON(LQH,C,25);JJXX:=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;JJXXH:=(JJXX*1.007 ),COLORFF6600;FFLL:=SUM(VOL,6)>REF(MA(VOL,30),1)*10;HHPP:=((HHV(CLOSE,BARSCOUNT(CLOSE))-LLV(CLOSE,BARSCOUNT(CLOSE)))/CLOSE)< 1;HHZZ:=HHPP AND FFLL AND (C>JJXXH);TTPP2:=FILTER(HHZZ,100);DRAWICON(TTPP2,C,26);ZS:=DYNAINFO(3);KP:=DYNAINFO(4);ZX:=DYNAINFO(7);ZG:=DYNAINFO(5);ZD:=DYNAINFO(6);分时均价线:SUM(C*V,240)/SUM(V,240),COLORYELLOW;RC:=DYNAINFO( 3);量比超2.5:=IF(DYNAINFO(17)>2.5,RC-0.15,DRAWNULL),COLORFF9933;量比超5:=IF(DYNAINFO(17)>5,RC-0.15,DRAWNULL),COLORBA75FF;DRAWBAND(量比超2.5,RGB(51,153,255),量比超2.5+0.015,RGB(51,153,255)); DRAWBAND(量比超5,RGB(255,118,188),量比超5+0.015,RGB(255,118,188));{首次起爆}TT:=BARSCOUNT(C);{取得有效收盘价}均价黄:SUM(C*V,TT)/SUM(V,TT),LINETHICK1,COLOR00FFE1;{分时均线的取值}量两步:=MA(V,5)>REF(MA(V,5),1) AND REF(MA(V,5),1)>REF(MA(V,5),2);价两步:= C>=REF(C,1) AND REF(C,1)>REF(C,2);价上岗量破5:=C>均价黄AND V>MA(V,5);量起爆:=V>=REF(V,1)*2 ;价创新高:=C>=HHV(C,0);量创新高:=V>=HHV(V,0);对昨日涨幅:=C/DYNAINFO(3)<=1.02;{涨幅控制2个点以内}每日一点:=量两步AND 价两步AND 价上岗量破5 AND 量起爆AND 价创新高AND 量创新高AND 对昨日涨幅;{计算收益、已爆分钟}VC:=BARSSINCE(每日一点)+1;首次起爆价:REF(C,VC-1),NODRAW;今天收益:(DYNAINFO(7)-首次起爆价)/首次起爆价*100,NODRAW;起爆时间:REF(TIME/10000,VC),NODRAW;已爆分钟:VC-1,NODRAW;首次起爆量:=REF(VOL,VC-1);DRAWICON(已爆分钟>=2,RC-0.1,11);{出现金手指,至少已经确认2分钟了};R1:=MA(C,13);R2:=SMA(R1,5,2);DRAWBAND(R1,RGB(255,0,125),R2,RGB(0,111,255));C,LINETHICK2,COLORDDDDDD;{涨停}地:=DYNAINFO(11)+(DYNAINFO(11)*0.021);涨停:IF(DYNAINFO(7)>地,1,0),NODRAW,COLOR0088FF;涨:=IF(涨停=1,C+0.0075,DRAWNULL),COLOR8000FF,LINETHICK2;DRAWBAND(涨,RGB(255,211,0),C-0.0075,RGB(255,125,0));时间:=TIME=100000;N:=BARSLAST(时间);常数:=CONST(IF(N=0,C,REF(C,N))),COLORGREEN,DOTLINE;CS1:=CONST(IF(N,HHV(H,0),REF(HHV(H,0),N)));CS2:=CONST(IF(N,LLV(L,0),REF(LLV(L,0),N)));STICKLINE(时间=1,CS1,CS2,1.2,0),COLOR008888;{涨停2}AAZ:=BARSLAST(TIME=103000);CC:=REF(HHV(C,0),AAZ+1);VV:=REF(HHV(V,0),AAZ+1);ZF:=CC/DYNAINFO(3)<1.05;涨停2:=CROSS(C,CC) AND V>VV AND ZF,COLOR0000FF; DRAWICON(涨停2,RC-0.06,13);A:=O>C AND C>REF(C,1) AND O/REF(C,1)>1.03; DRAWTEXT(ABS(A)>0,L, '假阴'),COLORYELLOW;均价5:AMOUNT/VOL/100,NODRAW;假阴0:=O>C AND 均价5>REF(C,1);DRAWTEXT(假阴0,L-0.2,'假阴真阳'),COLORE8E8E8; STICKLINE(假阴0,O,C,1,0),COLORRED;时间N:=TIME=100000;NN:=BARSLAST(时间N),COLOR808080;常数N:CONST(IF(NN=0,C,REF(C,N))),COLOR004848,DOTLINE;。

分时抓跌停指标通达信指标公式源码

分时抓跌停指标通达信指标公式源码

分时抓跌停指标通达信指标公式源码前言分时抓跌停指标是股票交易中常用的技术指标之一,它对于投资者判断股票价格的涨跌以及未来可能的走势具有一定的参考价值。

本文将提供通达信指标公式的源码,供投资者在通达信软件上使用该指标。

分时抓跌停指标公式源码@分时抓跌停指标代码:VCR:=(2*C-REF(C,1))/(REF(C,1)-REF(C,2))*100;VAR1:=(VCR>4 OR VCR<-4);VAR2:=(C/REF(C,1)<0.93 OR C/REF(C,1)>1.07);VAR3:=VOL*(VOL-HHV(VOL,20))/HHV(VOL,20);VAR4:=(VAR3>REF(VAR3,1)*2);VAR5:=VOL-Barssince(VOL=HHV(VOL,20));VAR6:=(VAR5>2 AND REF(VAR5,1)<=2);VAR7:=(VCR!=REF(VCR,1));VAR8:=(BARSLAST(VAR7)>2 AND VCR<0);VAR9:=(LOW<>REF(LOW,1)*1.1);VAR10:=COUNT(VAR9,BARSLAST(VAR9=1))>0;VAR11:=BARSLAST(VAR9 AND VAR2 AND VAR10<=2 AND VAR4);VAR12:=BARSLAST(VAR6)<>1 AND VCR>0;VAR13:= --BARSLAST(VAR3>REF(VAR3,1)*2 ANDVAR6>1);VAR14:= --COUNT(VAR8,BARSLAST(VAR8>BARSLAST(VAR8>2)));VAR15:=BARSLAST(VAR11 OR VAR12 OR VAR13 ORVAR14);VAR16:=(BARSLAST(VAR6)=0 AND BARSLAST(VAR5)<>0);VAR17:=(BARSLAST(VCR<0 AND REF(VCR,1)<0 ANDVCR<REF(VCR,1)));VAR18:=ABS(VCR)<ABS(REF(VCR,1));VAR19:= COUNT(VCR>0.1,VAR15) OR COUNT(VCR<-0.1,VAR15);VAR20:=HHV(LOW,VAR19+1)=LOW;VAR21:=IF(HHV(O<LOW,VAR19+1)=O ANDHHV(C<O,VAR19+1)=LOW,VAR15,0);VAR22:=COUNT(HHV(O<LOW,VAR19+1) ANDHHV(C<O,VAR19+1)=LOW,VAR15)>0;VAR23:=(VAR17>VAR22);VAR24:=BARSLAST(VAR23>2 AND VAR22<>1);VAR25:=BARSLAST(VAR16 AND VAR18 ANDVAR20>=VAR23 AND VAR22=0);VAR26:=COUNT(VAR2,VAR15)>(VAR22-1)*2+1;VAR27:=SMVAR(VAR2,VAR15,1)>(VAR22-1)*2 AND VCR>5;VAR28:=SMVAR(VAR2,VAR15,1)>(VAR22-1)*2 AND VCR<-5;VAR29:=SMVAR(VAR2,VAR15,1)>(VAR22-1)*2 ANDVAR12>=1 AND VCR<7;VAR30:=SMVAR(VAR2,VAR15,1)>(VAR22-1)*2 ANDVAR12<=1 AND MAX(VAR12,0);公式说明:- 行1:计算VCR指标,该指标表示当前价与昨日收盘价相比的变化程度- 行2-3:定义VAR1指标,表示VCR大于4或小于-4- 行4:计算VAR3指标,表示成交量与过去20日成交量之间的差值- 行5-6:定义VAR4指标,表示VAR3大于前一日VAR3的两倍- 行7-8:计算VAR5指标,表示当天成交量大于过去20日成交量的天数- 行9-11:定义VAR6指标,表示VAR5大于2且前一日VAR5小于等于2- 行12-13:定义VAR7指标,表示VCR与前一日VCR不相等- 行14-15:定义VAR8指标,表示VAR7为真的连续天数大于2且VCR小于0- 行16-17:定义VAR9指标,表示当天最低价不等于前一日最低价的1.1倍- 行18-19:定义VAR10指标,VAR9为真的连续天数大于0 - 行20-21:定义VAR11指标,VAR9和VAR2和VAR10满足的连续天数- 行22:定义VAR12指标,VAR6为假且VCR大于0的连续天数- 行23-24:定义VAR13指标,VAR3大于前一日VAR3的两倍且VAR6大于1的连续天数的相反数- 行25:定义VAR14指标,VAR8大于2的连续天数的相反数- 行26:定义VAR15指标,VAR11或VAR12或VAR13或VAR14的连续天数- 行27-30:定义VAR16、VAR17、VAR18、VAR19、VAR20、VAR21、VAR22、VAR23、VAR24、VAR25、VAR26、VAR27、VAR28、VAR29、VAR30指标使用方法1. 将以上源码复制到通达信软件的指标公式编辑器中。

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