【股票指标公式下载】-【通达信】合成主图(暴涨)
通达信筹码突破+筹码峰合并主图指标公式
通达信筹码突破+筹码峰合并主图指标公式HB:=COST(99.9); LB:=COST(0.1); B3:=(HB-LB)/50; B31:=HB-B3; B32:=HB-2*B3; B33:=HB-3*B3; B34:=HB-4*B3; B35:=HB-5*B3; B36:=HB-6*B3; B37:=HB-7*B3; B38:=HB-8*B3; B39:=HB-9*B3; B310:=HB-10*B3; B311:=HB-11*B3; B312:=HB-12*B3; B313:=HB-13*B3; B314:=HB-14*B3; B315:=HB-15*B3; B316:=HB-16*B3; B317:=HB-17*B3; B318:=HB-18*B3; B319:=HB-19*B3; B320:=HB-20*B3; B321:=HB-21*B3; B322:=HB-22*B3; B323:=HB-23*B3; B324:=HB-24*B3; B325:=HB-25*B3; B326:=HB-26*B3; B327:=HB-27*B3; B328:=HB-28*B3; B329:=HB-29*B3; B330:=HB-30*B3; B331:=HB-31*B3; B332:=HB-32*B3; B333:=HB-33*B3; B334:=HB-34*B3; B335:=HB-35*B3; B336:=HB-36*B3; B337:=HB-37*B3; B338:=HB-38*B3; B339:=HB-39*B3; B340:=HB-40*B3; B341:=HB-41*B3; B342:=HB-42*B3; B343:=HB-43*B3; B344:=HB-44*B3; B345:=HB-45*B3; B346:=HB-46*B3; B347:=HB-47*B3; B348:=HB-48*B3; B349:=HB-49*B3; A1:=WINNER(HB)*100-WINNER(B31)*100; A2:=WINNER(B31)*100-WINNER(B32)*100; A3:=WINNER(B32)*100-WINNER(B33)*100;A4:=WINNER(B33)*100-WINNER(B34)*100;A5:=WINNER(B34)*100-WINNER(B35)*100;A6:=WINNER(B35)*100-WINNER(B36)*100;A7:=WINNER(B36)*100-WINNER(B37)*100;A8:=WINNER(B37)*100-WINNER(B38)*100;A9:=WINNER(B38)*100-WINNER(B39)*100;A10:=WINNER(B39)*100-WINNER(B310)*100;A11:=WINNER(B310)*100-WINNER(B311)*100;A12:=WINNER(B311)*100-WINNER(B312)*100;A13:=WINNER(B312)*100-WINNER(B313)*100;A14:=WINNER(B313)*100-WINNER(B314)*100;A16:=WINNER(B315)*100-WINNER(B316)*100; A17:=WINNER(B316)*100-WINNER(B317)*100; A18:=WINNER(B317)*100-WINNER(B318)*100; A19:=WINNER(B318)*100-WINNER(B319)*100; A20:=WINNER(B319)*100-WINNER(B320)*100; A21:=WINNER(B320)*100-WINNER(B321)*100; A22:=WINNER(B321)*100-WINNER(B322)*100; A23:=WINNER(B322)*100-WINNER(B323)*100; A24:=WINNER(B323)*100-WINNER(B324)*100; A25:=WINNER(B324)*100-WINNER(B325)*100; A26:=WINNER(B325)*100-WINNER(B326)*100; A27:=WINNER(B326)*100-WINNER(B327)*100; A28:=WINNER(B327)*100-WINNER(B328)*100; A29:=WINNER(B328)*100-WINNER(B329)*100; A30:=WINNER(B329)*100-WINNER(B330)*100; A31:=WINNER(B330)*100-WINNER(B331)*100; A32:=WINNER(B331)*100-WINNER(B332)*100; A33:=WINNER(B332)*100-WINNER(B333)*100; A34:=WINNER(B333)*100-WINNER(B334)*100; A35:=WINNER(B334)*100-WINNER(B335)*100; A36:=WINNER(B335)*100-WINNER(B336)*100; A37:=WINNER(B336)*100-WINNER(B337)*100; A38:=WINNER(B337)*100-WINNER(B338)*100; A39:=WINNER(B338)*100-WINNER(B339)*100; A40:=WINNER(B339)*100-WINNER(B340)*100; A41:=WINNER(B340)*100-WINNER(B341)*100; A42:=WINNER(B341)*100-WINNER(B342)*100; A43:=WINNER(B342)*100-WINNER(B343)*100; A44:=WINNER(B343)*100-WINNER(B344)*100;A46:=WINNER(B345)*100-WINNER(B346)*100;A47:=WINNER(B346)*100-WINNER(B347)*100;A48:=WINNER(B347)*100-WINNER(B348)*100;A49:=WINNER(B348)*100-WINNER(B349)*100;A50:=WINNER(B349)*100-WINNER(LB)*100;STICKLINE(ISLASTBAR,HB ,HB ,A1*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B31 ,B31 ,A1*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B32 ,B32 ,A2*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B33 ,B33 ,A3*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B34 ,B34 ,A4*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B35 ,B35 ,A5*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B36 ,B36 ,A6*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B37 ,B37 ,A7*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B38 ,B38 ,A8*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B39 ,B39 ,A9*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B310 ,B310 ,A10*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B311 ,B311 ,A11*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B312 ,B312 ,A12*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B313 ,B313 ,A13*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B314 ,B314 ,A14*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B315 ,B315 ,A15*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B316 ,B316 ,A16*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B317 ,B317 ,A17*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B318 ,B318 ,A18*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B319 ,B319 ,A19*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B320 ,B320 ,A20*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B321 ,B321 ,A21*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B322 ,B322 ,A22*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B323 ,B323 ,A23*50 ,0 ),COLORGRAY;STICKLINE(ISLASTBAR,B324 ,B324 ,A24*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B325 ,B325 ,A25*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B326 ,B326 ,A26*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B327 ,B327 ,A27*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B328 ,B328 ,A28*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B329 ,B329 ,A29*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B330 ,B330 ,A30*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B331 ,B331 ,A31*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B332 ,B332 ,A32*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B333 ,B333 ,A33*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B334 ,B334 ,A34*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B335 ,B335 ,A35*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B336 ,B336 ,A36*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B337 ,B337 ,A37*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B338 ,B338 ,A38*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B339 ,B339 ,A39*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B340 ,B340 ,A40*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B341 ,B341 ,A41*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B342 ,B342 ,A42*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B343 ,B343 ,A43*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B344 ,B344 ,A44*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B345 ,B345 ,A45*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B346 ,B346 ,A46*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B347 ,B347 ,A47*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B348 ,B348 ,A48*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,LB ,LB ,A50*50 ,0 ),COLORGRAY;当前获利筹码:IF(WINNER(CLOSE),WINNER(CLOSE)*100,0),NODRAW;DIFF:=( EMA(CLOSE,7) - EMA(CLOSE,19)); DEA:=EMA(DIFF,9); MACD:=0.90*(DIFF-DEA); TJ:=(DIFF>=DEA); TJ1:=(DIFF>=0); STICKLINE(TJ,H,L,0.4,0),COLORYELLOW;STICKLINE(TJ,O,C,3,1),COLOR0088FF;STICKLINE(TJ,O,C,3.4,1),COLOR00AAFF;STICKLINE(TJ,O,C,2.8,1),COLOR00CCFF;STICKLINE(TJ,O,C,2,1),COLOR00DDFF;STICKLINE(TJ,O,C,1.2,1),COLOR55FFFF;STICKLINE(TJ,O,C,0.4,1),COLOR99FFFF; STICKLINE(TJ1 AND TJ,H,L,0.4,0),COLORF00FF0; STICKLINE(TJ1 AND TJ,O,C,3,1),COLORFF33FF; STICKLINE(TJ1 AND TJ,O,C,3.4,1),COLORFF55FF; STICKLINE(TJ1 AND TJ,O,C,2.8,1),COLORFF77FF; STICKLINE(TJ1 AND TJ,O,C,2,1),COLORFF99FF; STICKLINE(TJ1 AND TJ,O,C,1.2,1),COLORFFBBFF; STICKLINE(TJ1 AND TJ,O,C,0.4,1),COLORFFDDFF;STICKLINE(DIFF<DEA,H,L,0.4,0),COLORF0F000;STICKLINE(DIFF<DEA,O,C,3,1),COLORFF3300;STICKLINE(DIFF<DEA,O,C,3.4,1),COLORFF6600;STICKLINE(DIFF<DEA,O,C,2.8,1),COLORFF9900;STICKLINE(DIFF<DEA,O,C,2,1),COLORFFBB00;STICKLINE(DIFF<DEA,O,C,1.2,1),COLORFFDD00;STICKLINE(DIFF<DEA,O,C,0.4,1),COLORFFFF00;VAR1:=(CLOSE*2+HIGH+LOW)/4; SK:= EMA(VAR1,13)-EMA(VAR1,73); SD:= EMA(SK,2); SJ:=(CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03)OR(CROSS(SK,SD) AND SK<=-0.14 )OR(CROSS(SK,SD) AND SK<=0.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035)); STICKLINE(SJ,H,L,0.5,0),COLORRED;STICKLINE(SJ,O,C,5.5,0),LINETHICK3,COLOR000055; STICKLINE(SJ,O,C,4.5,0),LINETHICK3,COLOR000077; STICKLINE(SJ,O,C,3.5,0),LINETHICK3,COLOR000099; STICKLINE(SJ,O,C,2.5,0),LINETHICK3,COLOR0000BB;STICKLINE(SJ,O,C,1.5,0),LINETHICK3,COLOR0000DD; STICKLINE(SJ,O,C,0.5,0),LINETHICK3,COLOR0000FF; 筹码价位低:=COST(0.001);筹码价位2:=COST(0.001)+(COST(99.999)-COST(0.001))/20*2;筹码价位4:=COST(0.001)+(COST(99.999)-COST(0.001))/20*4;筹码价位6:=COST(0.001)+(COST(99.999)-COST(0.001))/20*6;筹码价位8:=COST(0.001)+(COST(99.999)-COST(0.001))/20*8;筹码价位10:=COST(0.001)+(COST(99.999)-COST(0.001))/20*10;筹码价位12:=COST(0.001)+(COST(99.999)-COST(0.001))/20*12;筹码价位14:=COST(0.001)+(COST(99.999)-COST(0.001))/20*14;筹码价位16:=COST(0.001)+(COST(99.999)-COST(0.001))/20*16;筹码价位18:=COST(0.001)+(COST(99.999)-COST(0.001))/20*18;筹码价位高:=COST(99.999);区间最大筹码:=MAX(MAX(MAX(MAX(MAX(WINNER(筹码价位2)-WINNER(筹码价位低),WINNER(筹码价位4)-WINNER(筹码价位2)),MAX(WINNER(筹码价位6)-WINNER(筹码价位4),WINNER(筹码价位8)-WINNER(筹码价位6))),MAX(WINNER(筹码价位10)-WINNER(筹码价位8),WINNER(筹码价位12)-WINNER(筹码价位10))),MAX(WINNER(筹码价位14)-WINNER(筹码价位12),WINNER(筹码价位16)-WINNER(筹码价位14))),MAX(WINNER(筹码价位18)-WINNER(筹码价位16),WINNER(筹码价位高)-WINNER(筹码价位18)));筹码密集均价:=IF(区间最大筹码=WINNER(筹码价位2)-WINNER(筹码价位低),(筹码价位2+筹码价位低)/2,IF(区间最大筹码=WINNER(筹码价位4)-WINNER(筹码价位2),(筹码价位4+筹码价位2)/2,IF(区间最大筹码=WINNER(筹码价位6)-WINNER(筹码价位4),(筹码价位6+筹码价位4)/2,IF(区间最大筹码=WINNER(筹码价位8)-WINNER(筹码价位6),(筹码价位8+筹码价位6)/2,IF(区间最大筹码=WINNER(筹码价位10)-WINNER(筹码价位8),(筹码价位10+筹码价位8)/2,IF(区间最大筹码=WINNER(筹码价位12)-WINNER(筹码价位10),(筹码价位12+筹码价位10)/2,IF(区间最大筹码=WINNER(筹码价位14)-WINNER(筹码价位12),(筹码价位14+筹码价位12)/2,IF(区间最大筹码=WINNER(筹码价位16)-WINNER(筹码价位14),(筹码价位16+筹码价位14)/2,IF(区间最大筹码=WINNER(筹码价位18)-WINNER(筹码价位16),(筹码价位18+筹码价位16)/2,(筹码价位高+筹码价位18)/2)))))))));顶:MA(筹码密集均价,1),COLORYELLOW,LINETHICK2; VAR2:=HHV(HIGH,70);底: VAR2*0.83,LINETHICK2,COLORGREEN;涨家:INDEXADV,NODRAW,COLORRED;跌家:INDEXDEC,NODRAW,COLOR00FFFF;MA10:=MA(CLOSE,10),C OLORYELLOW,LINETHICK0;MA54:=MA(CLOSE,54),COLORFFCCC C,LINETHICK0;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)) * 1);DRAWTEXT(平台突破,L,'=================='),COLORWHITE;DRAWTEXT(ISLASTBAR,顶,'===顶'),COLORYELLOW;DRAWTEXT(ISLASTBAR,底,'===底'),COLORGREEN;止损:STICKLINE(ISLASTBAR,HHV(C,5)*0.97-0.01,HHV(C,5)*0.97,50,0),COLORWHITE;DRAWTEXT(ISLASTBAR, HHV(C,5)*0.95,'止损'),COLORWHITE;Tags:筹码突破主图。
【股票指标公式下载】-【通达信】益盟操盘手(主图)
【通达信】益盟操盘手(主图)-指标公式源码VAR1:=(100 - ((90 * (HHV(HIGH,14) - CLOSE)) / (HHV(HIGH,14) -LLV(LOW,14))));VAR2:=(100 - ((90 * (HHV(HIGH,14) - CLOSE)) / (HHV(HIGH,14) -LLV(LOW,14))));VAR3:=(100 - MA(((100 * (HHV(HIGH,6) - CLOSE)) / (HHV(HIGH,6) -LLV(LOW,6))),34));DIR1:=ABS(CLOSE-REF(CLOSE,5));VIR1:=SUM(ABS(CLOSE-REF(CLOSE,1)),5);ER1:=DIR1/VIR1;CS1:=ER1*(0.8-2/8)+2/8;CQ1:=CS1*CS1;AMA1:EMA(DMA(CLOSE,CQ1),2) ,COLORWHITE;DIR2:=ABS(CLOSE-REF(CLOSE,10));VIR2:=SUM(ABS(CLOSE-REF(CLOSE,1)),10);ER2:=DIR2/VIR2;CS2:=ER2*(0.8-2/24)+2/24;CQ2:=CS2*CS2;AMA2:EMA(DMA(CLOSE,CQ2),2),COLORGREEN,LINETHICK2;AMA3:IF(AMA2/REF(AMA2,1)>0.997,AMA2,DRAWNULL),COLORYELLOW,LINETHICK2; AMA4:IF(AMA2/REF(AMA2,1)>1.001,AMA2,DRAWNULL),COLORRED,LINETHICK2; STICKLINE((VAR2 < MA(VAR3,6)),CLOSE,OPEN,3,1),COLOR008000; STICKLINE((VAR2 > MA(VAR3,6)),OPEN,CLOSE,3,1),COLORRED;STICKLINE(((OPEN > CLOSE) AND (VAR2 > MA(VAR3,6))),(OPEN * 0.998),(CLOSE * 1.0001),2.3,0),COLOR008000;STICKLINE(((OPEN < CLOSE) AND (VAR2 < MA(VAR3,6))),(CLOSE * 0.998),(OPEN * 1.002),2.3,0),COLORRED;STICKLINE(((OPEN > CLOSE) AND (VAR2 <MA(VAR3,6))),CLOSE,OPEN,2.3,0),COLOR008000;DRAWICON(CROSS(VAR2,MA(VAR3,6)),(LOW - (LOW*0.04)),7);DRAWICON(CROSS(MA(VAR3,6),VAR1),(HIGH+(HIGH*0.03)),8);PT:=REF(H,1)-REF(L,1);CDP:=(REF(H,1)+REF(L,1)+REF(C,1)*2)/4;AH:=CDP+PT;AL:=CDP-PT;NH:=CDP*2-REF(L,1);NL:=CDP*2-REF(H,1);强:IF(AH>REF(C,1)*1.1,REF(C,1)*1.1,AH)NODRAW;阻:IF(NH>强,(强-CDP)*0.618+CDP,NH)NODRAW,COLORCYAN;M:=IF(AL<REF(C,1)/1.1,REF(C,1)/1.1,AL);撑:IF(NL<M,CDP-(CDP-M)*0.618,NL)NODRAW;底:IF(AL<REF(C,1)/1.1,REF(C,1)/1.1,AL)NODRAW;【通达信】益盟操盘手(主图)-指标公式效果图 (文档来源:若水财经社区)。
通达信极品公式三合一主图源码
通达信极品公式三合一主图源码通达信极品公式三合一主图源码享一高人的极品公式。
用法:柱状线:出现灰色柱子代表即将调整。
底部柱状线出现浅紫色代表可以进场。
MACD:这个macd比传统的超前,MACD分为红蓝两色。
庄家抬轿柱子:简单的说出现高度控盘是我们可以放心持股。
这三个指标融合在一起最主要的还是看柱状线,柱状线原理是量价关系,柱状线出现灰色最好减仓。
觉得好用的给我点果果吧{公式在线提供:}C/C++ Code复制内容到剪贴板1.JH:=VOL*CLOSE;2.JHO:=SUM(JH,2)/SUM(VOL,2);3.JH0:=EMA(JHO,10);4.AAA:=(JHO-JH0)*20/JHO;5.超:=STICKLINE(AAA>0 AND AAA>=REF(AAA,1),0,AAA,3,0 ),COLORLIRED;6.级:=STICKLINE(AAA>0 AND AAA<REF(AAA,1),0,AAA,3,1), COLORLIRED;7.好:=STICKLINE(AAA<0 AND AAA>=REF(AAA,1),0,AAA,3,1 ),COLORGREEN;8.的:=STICKLINE(AAA<0 AND AAA<REF(AAA,1),0,AAA,3,0), COLORGREEN;9.公:=EMA(IF(AAA>0 AND AAA<REF(AAA,1),0,AAA),3);10.式:=CROSS(REF(公,1),公) AND 公>0;11.谢:=EMA(IF(AAA<0 AND AAA<REF(AAA,1),0,AAA),3);12.了:=CROSS(REF(谢,1),谢) AND 谢<0;13.必买:=CROSS(C,DRAWLINE(HIGH>=HHV(HIGH,30),HIGH,LOW<=L LV(LOW,10),HHV(HIGH,6),1));14.WY1001:=(2*CLOSE+HIGH+LOW)/4;15.WY1002:=EMA(WY1001,4);16.WY1003:=EMA(WY1002,4);17.WY1004:=EMA(WY1003,4);18.X:=(WY1004-REF(WY1004,1))/REF(WY1004,1)*2000;19.X1:=IF(X<REF(X,1),X,DRAWNULL),COLORWHITE,LINET HICK2;20.XO:=MA(X,2),COLOR9932CD;21.SI:=REF(X,1);22.STICKLINE(X>SI,X,SI,2.3,0),COLOR0000FF;23.STICKLINE(X>SI,X,SI,0.3,0),COLORCC66FF;24.STICKLINE(X<SI,X,SI,2.3,0),COLOR00BB00;25.STICKLINE(X<SI,X,SI,0.3,0),COLOR00FF00;26.STICKLINE(式,X,SI,2.15,0),COLOR545454;27.STICKLINE(了,X,SI,2.15,0),COLORDB7093;28.29.VAR1:=EMA(EMA(CLOSE,9),9);30.控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;31.STICKLINE(控盘<0,控盘,0,3,0),COLORWHITE;32.AA1:=CROSS(控盘,0);33.无庄控盘:IF(控盘<0,控盘,0),COLORWHITE,NODRAW;34.轻度控盘:STICKLINE(控盘<0 AND 0.9*控盘>REF(控盘,1),控盘,0,3,0),COLORYELLOW;35.轻度出货:STICKLINE(控盘<0 AND 1.1*控盘<REF(控盘,1),控盘,0,3,0),COLORFFFF79;36.开始控盘:=IF(AA1,5,0),LINETHICK1,COLORYELLOW;37.38.有庄控盘:IF(控盘>REF(控盘,1) AND 控盘>0,控盘,0),COLORRED,NODRAW;39.STICKLINE(控盘>REF(控盘,1) AND 控盘>0,控盘,0,3,0),COLORRED;40.41.VAR2:=100*WINNER(CLOSE*0.95);42.高度控盘:IF(VAR2>50 AND COST(85)<CLOSE AND 控盘>0,控盘,0),COLORFF00FF,NODRAW;43.STICKLINE(VAR2>50 AND COST(85)<CLOSE AND 控盘>0,控盘,0,3,0),COLORFF00FF;44.主力出货:IF(控盘<REF(控盘,1) AND 控盘>0,控盘,0),COLOR00FF00,NODRAW;45.STICKLINE(控盘<1.2*REF(控盘,1) AND 控盘>0,控盘,0,3,0),COLOR00FF00;46.DIF1:=EMA(DCLOSE,12)-EMA(DCLOSE,26);47.DEA1:=EMA(DIF1,9);48.{柱状线}49.MACD1:=(DIF1-DEA1)*2*60;50.MACD上:IF(MACD1>REF(MACD1,1),MACD1,DRAWNULL),51.STICK,COLORRED,LINETHICK1;52.MACD下:IF(MACD1<REF(MACD1,1),MACD1,DRAWNULL),53.STICK,COLORFF9900,LINETHICK1;54.{买点提示}55.A1:=BARSLAST(REF(CROSS(DIF1,DEA1),1));56.BL:=REF(CLOSE,A1+1)>CLOSE AND DIF1>REF(DIF1,A1 +1) AND CROSS(DIF1,DEA1);57.{STICKLINE(BL,0,1,2,0),COLOR00FF00;}58.买点:DRAWICON(BL,DEA1,23);59.A2:=BARSLAST(REF(CROSS(DEA1,DIF1),1));60.DBL:=REF(CLOSE,A2+1)<CLOSE AND REF(DIF1,A2+1) >DIF1 AND CROSS(DEA1,DIF1);61.买点1:DRAWICON(DBL,DEA1,12);62.低位金叉:=CROSS(DIF1,DEA1) AND DIF1<-0.1;63.DRAWTEXT(低位金叉,-0.36,' 低位金叉');64.JCCOUNT:=COUNT(CROSS(DIF1,DEA1),BARSLAST(DEA 1>=0));65.二次金叉:=CROSS(DIF1,DEA1) AND DEA1<0 AND COUNT(JCCOUNT=2 ,21)=1;66.DRAWICON(二次金叉,DEA1*1.04,13) ;67.DRAWTEXT(二次金叉,-0.22,' 二次金叉'),COLORFF00FF;68.A10:=BARSLAST(REF(CROSS(DIF1,DEA1),1));69.底背离:=REF(CLOSE,A10+1)>CLOSE AND DIF1>REF(DIF1,A10+1) AND CROSS(DIF1,DEA1);70.DRAWLINE(A10=0,DEA1,底背离,DEA1,0),COLORRED,LINETHICK2;71.DRAWTEXT(底背离,-0.50,' 底背离'),COLOR00FF00;72.A20:=BARSLAST(REF(CROSS(DEA1,DIF1),1));73.顶背离:=REF(CLOSE,A20+1)<CLOSE AND REF(DIF1,A20+1)>DIF1 AND CROSS(DEA1,DIF1);74.DRAWLINE(A20=0,DEA1,顶背离,DEA1,0),COLORWHITE,LINETHICK2;75.{STICKLINE(底背离,X,SI,1,0),COLORYELLOW;}76.STICKLINE(低位金叉,X,SI,1,0),COLORWHITE;77.STICKLINE(必买,X,(X+SI)/2,2.3,0),COLORFF9900;78.STICKLINE(必买,X,(X+SI)/2,0.1,0),COLORWHITE;79.STICKLINE(低位金叉 AND 底背离,X,(X+SI)/2,2.3,0),COLORYELLOW;80.STICKLINE(低位金叉 AND 底背离,X,(X+SI)/2,0.1,0),COLORCC66FF;81.STICKLINE(二次金叉,X,SI,2.0,0),COLORYELLOW;82.{主力进场}83.VAR12:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);84.VAR13:=SMA(ABS(LOW-VAR12),13,1)/SMA(MAX(LOW-VAR12,0),10,1);85.VAR14:=EMA(VAR13,10);86.VAR15:=LLV(LOW,33);87.VAR16:=EMA(IF(LOW<=VAR15,VAR14,0),3);88.主力进场:=IF(VAR16>REF(VAR16,1),VAR16,0),COLORRED,NODRAW;89.STICKLINE(主力进场,X,SI,0.1,0),COLORRED;90.RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;91.K:=SMA(RSV,3,1),COLORWHITE;92.D:=SMA(K,3,1),COLORYELLOW;93.J:=3*K-2*D,COLORFF00FF;94.X3:=LLV(J,2)=LLV(J,8);95.A:=250;96.JH1:=HHV(MAX(K,MAX(D,J)),A);97.DH:=HHV(MAX(DIF1,DEA1),A);98.SH:=INTPART(JH1/DH)/2;99.DIFF50:=SH*DIF1+50,COLORFFFF00;100.DEA50:=SH*DEA1+50,COLORBLUE;101.诱空:=IF(1.5*(DIFF50-DEA50)>0 AND REF(1.5*(DIFF50-DEA50),1)< REF(1.5*(DIFF50-DEA50),2) AND 1.5*(DIFF50-DEA50)>REF(1.5*(DIFF50-DEA50),1),1,0);102.低位:=CROSS(J,REF(J+0.01,1)) AND X3 AND J<19;103.MTM:=C-REF(C,1);104.DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);105.值:=LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND C ROSS(DX,MA(DX,2));106.DRAWTEXT(FILTER(诱空,3) AND 诱空,X,'洗盘'),COLOR00FF00;。
通达信牛暴涨主图指标公式通达信指标公式源码
通达信牛暴涨主图指标公式Z1:=STRCAT(HYBLOCK,' ');Z2:=STRCAT(Z1,DYBLOCK);Z3:=STRCAT(Z2,' ');DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNBLOCK)),COLORRED;ZK1:(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1+XMA(XMA(H,25),25),DOTL INE,COLORBLUE;ZD1:XMA(XMA(L,25),25)-(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1,LINET HICK2,COLORRED;ZD2:EMA(ZD1,25),LINETHICK2;DRAWBAND(ZD1,RGB(55,0,0),ZD2,RGB(0,91,0));DRAWKLINE(H,O,L,C);STICKLINE(ZD1>LOW ANDZD1<HIGH,ZD1,MIN(MIN(OPEN,CLOSE),ZD1),2,0),COLORYELLOW; STICKLINE(ZD1>MIN(C,O) ANDZD1<MAX(C,O),ZD1,MIN(OPEN,CLOSE),2,0),COLORYELLOW;STICKLINE(ZD1>HIGH,OPEN,CLOSE,2,0),COLORYELLOW;STICKLINE(ZD1>HIGH,HIGH,LOW,0,0),COLORYELLOW;VAR23:=100*XMA(XMA((C-REF(C,1)),6),6)/XMA(XMA(ABS((C-REF(C,1))),6),6 );回调买:=LLV(VAR23,2)=LLV(VAR23,7) AND COUNT(VAR23<0,2) AND CROSS(VAR23,MA(VAR23,2));XG:=ZD1>HIGH AND 回调买AND L<=ZD1;DRAWTEXT(XG,L,'▲买入'),COLORRED;JJ:=(HIGH+LOW+CLOSE)/3;QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);QJ1:=IF(CAPITAL=0,QJ0*(JJ-MIN(CLOSE,OPEN)),QJ0*IF(HIGH=LOW,1,(MIN (OPEN,CLOSE)-LOW)));QJ2:=IF(CAPITAL=0,QJ0*(MIN(OPEN,CLOSE)-LOW),QJ0*IF(HIGH=LOW,1,(JJ -MIN(CLOSE,OPEN))));QJ3:=IF(CAPITAL=0,QJ0*(HIGH-MAX(OPEN,CLOSE)),QJ0*IF(HIGH=LOW,1,( HIGH-MAX(OPEN,CLOSE))));QJ4:=IF(CAPITAL=0,QJ0*(MAX(CLOSE,OPEN)-JJ),QJ0*IF(HIGH=LOW,1,(MAX (CLOSE,OPEN)-JJ)));DDX:=((QJ1+QJ2)-(QJ3+QJ4))/IF(CAPITAL=0,10000,10000),COLOR00AAAA, LINETHICK;V2:=SMA(IF(C>=REF(C,1),DDX,-DDX/100),2,1);V5:=SMA(V2*120/FROMOPEN*5,2,1);V10:=SMA(V5,5,1);V20:=SMA(V10,5,1);DY:=CURRBARSCOUNT=1 AND C<REF(C,1);DY2:=REF(V2,1)-DY;XG2:=C>O AND DY2<0.02 AND MA(C,5)>MA(C,60) AND C/REF(C,1)>=1.02 AND H<ZK1;{DRAWTEXT(XG2,L,'▲抓牛'),COLORYELLOW;}DRAWTEXT(XG2 AND L<ZD1,L,'↖牛暴涨'),COLORRED;超B:=L2_AMO(0,2)/10000.0;大B:=L2_AMO(1,2)/10000.0;中B:=L2_AMO(2,2)/10000.0;小B:=L2_AMO(3,2)/10000.0;超S:=-L2_AMO(0,3)/10000.0;大S:=-L2_AMO(1,3)/10000.0;中S:=-L2_AMO(2,3)/10000.0;小S:=-L2_AMO(3,3)/10000.0;TESTSKIP(NOT(超B OR 大B OR 中B OR 小B OR 超S OR 大S OR 中S OR 小S)!=0);净流入:=(超B+大B+中B+小B)+(超S+大S+中S+小S);大宗净流入:=(超B+大B)+(超S+大S);超大单:=(超B)+(超S);大单:=(大B)+(大S);中单:=(中B)+(中S);小单:=(小B)+(小S);大宗进:=(超B)+(大B);大宗出:=(超S)+(大S);非大宗进:=(中B)+(小B);非大宗出:=(中S)+(小S);资金流向:=(超B+大B+中B+小B)+(超S+大S+中S+小S);近5日流向:=SUM(资金流向,5);近10日流向:=SUM(资金流向,10);主力资金线:=(L2_AMO(0,0)+L2_AMO(1,0)-L2_AMO(0,1)-L2_AMO(1,1))/100.0,LINETHI CK2;主力买力度:=LARGEINTRDVOL*100/VOL;主力卖力度:=LARGEOUTTRDVOL*100/VOL;AAB:=CONST(MAX(ABS(超大单),MAX(ABS(大单),MAX(ABS(中单),ABS(小单))))),NODRAW;DRAWRECTREL(5,CONST(830-(ABS(超大单)*500/AAB))/2,35,460,IF(CONST(超大单)>0,RGB(255,0,255),RGB(0,255,255)));DRAWRECTREL(40,CONST(830-(ABS(大单)*500/AAB))/2,70,460,IF(CONST(大单)>0,RGB(255,0,255),RGB(0,255,255)));DRAWRECTREL(75,CONST(830-(ABS(中单)*500/AAB))/2,105,460,IF(CONST(中单)>0,RGB(255,0,255),RGB(0,255,255)));DRAWRECTREL(110,CONST(830-(ABS(小单)*500/AAB))/2,140,460,IF(CONST(小单)>0,RGB(255,0,255),RGB(0,255,255)));DRAWTEXT_FIX(CURRBARSCOUNT=1,0.007,0.46,0,'超户大户中户散户'),COLORWHITE;DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.007,0.4,0,INTPART(超大单)),COLORWHITE;DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.042,0.4,0,INTPART(大单)),COLORWHITE;DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.076,0.4,0,INTPART(中单)),COLORWHITE;DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.112,0.4,0,INTPART(小单)),COLORWHITE;TYX3:=MA(REF(HHV((C+L+O+H)/4,30),1),3);筹码突破:=C>TYX3AND(C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(C,1)),COLORRED;A111:=COST(85);A222:=COST(15);A333:=A111-A222;A444:=(A111+A222)/2;单峰密集:=A333/A444*100<30,LINETHICK0;{A5:=A3/A4*100<30;}B1:=HHV(HIGH,250);B2:=LLV(LOW,250);B3:=B1-B2;B4:=(A444-B2);低位:=A444<(B3*04+B2),LINETHICK0;低位单峰密集:=单峰密集AND 低位;B5:=C/REF(C,1)>1.04; {AND V/REF(V,1)>2;{ AND H=C;}主力持仓%:=EMA(100*(CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30)),3);主力持仓大于75%:=主力持仓%>=75 {AND 主力持仓%<=91} AND C>0 AND CLOSE>OPEN AND C=H;敢死吗:=主力持仓大于75% AND 低位单峰密集AND B4 ANDWINNER(C)>=0.91 AND B5,COLORGREEN,LINETHICK3;{DRAWTEXT(FILTER(敢死吗=1,5),L,'----敢死吗'),COLORGREEN;} DRAWICON(FILTER(敢死吗=1,5),L*0.995,25);DIF1:=EMA(DCLOSE,12)-EMA(DCLOSE,26);DEA1:=EMA(DIF1,9);AAA1:=(DIF1-DEA1)*2*60;AAA上:=IF(AAA1>REF(AAA1,1),AAA1,DRAWNULL);AAA下:=IF(AAA1<REF(AAA1,1),AAA1,DRAWNULL);买:=13;入:=AAA1-REF(AAA1,1);正大:=CROSS(入,买);DIF2:=EMA(DCLOSE,10)-EMA(DCLOSE,72);DEA2:=EMA(DIF2,17);AAA:=(DIF2-DEA2)*2*60;入2:=AAA-REF(AAA,1);牛股:=CROSS(入2,13);正大牛股:=正大AND 牛股;DRAWICON(正大牛股,L*0.99,1);VAR1:=(CLOSE-MA(CLOSE,7))/MA(CLOSE,7)*100;VAR2:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100; VAR3:=SMA(VAR2,3,1);天:=100+(-ABS(VAR1)),COLORRED;下:=SMA(VAR3,2,1);无:=ABS(VAR1),COLORGREEN;敌:=50,COLORFFAA00,LINETHICK3;LC:=REF(CLOSE,1);操作线:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*100; 卖:=CROSS(90,操作线);DRAWICON(卖,H*1.01,8);绝底线:=5;买阴线1:操作线<5 AND ZD1>ZD2 AND L<ZD1;DRAWICON(买阴线1,L*0.98,7);买阴线2:操作线<5 AND ZD1<ZD2 AND L<ZD1;DRAWICON(买阴线2,L*0.995,7);DRAWTEXT_FIX(1,0.20,0.88,0,HYBLOCK),COLORGREEN; DRAWTEXT_FIX(1,0.20,0.94,0,EXTERNSTR(0,3))COLORFF88FF;。
【股票指标公式下载】[通达信] 加密的通达信布林线(源码、主图、贴图)
很多朋友在找通达信的布林线指标,今天我将源码公布N:=20;MIDA:=MA(C,N);V ART1:=POW((C-MIDA),2);V ART2:=MA(V ART1,N);V ART3:=SQRT(V ART2);UPPERA:=MIDA+2*V ART3;LOWERA:=MIDA-2*V ART3;BOLL:REF(MIDA,1);UB:REF(UPPERA,1);LB:REF(LOWERA,1);今天还有朋友要sar指标,也叫抛物线指标,网上有,今天也给朋友V AR1:=SAR(10,2,20);S:IF(V AR1>C,V AR1,DRAWNULL),COLORRED,CIRCLEDOT;X:IF(VAR1<C,V AR1,DRAWNULL),COLORGREEN,CIRCLEDOT;B1:=REF(C,1);B2:=REF(C,2);SS:=IF(C>REF(C,1) AND REF(C,1)>=REF(C,2),1,IF(C<REF(C,1) AND REF(C,1)<=REF(C,2),-1,IF(C>REF(C,2) AND REF(C,2)>REF(C,1),2,IF(C<REF(C,2) AND REF(C,2)<REF(C,1),-2,0))));SM:=IF(REF(SS,1)>0 OR REF(SS,1)<0,REF(SS,1),IF(REF(SS,2)>0 OR REF(SS,2)<0,REF(SS,2),IF(REF(SS,3)>0 OR REF(SS,3)<0,REF(SS,3),IF(REF(SS,4)>0 OR REF(SS,4)<0,REF(SS,4),IF(REF(SS,5)>0 OR REF(SS,5)<0,REF(SS,5),IF(REF(SS,6)>0 OR REF(SS,6)<0,REF(SS,6),IF(REF(SS,7)>0 OR REF(SS,7)<0,REF(SS,7),0)))))));MC:IF(REF(SS,1)>0 OR REF(SS,1)<0,B2,IF(SM>0,MIN(B1,B2),MAX(B1,B2))),COLORFF00FF;STICKLINE(SS=1 OR SM>=1 AND SS=0,B1,C,0.8,1),COLORRED;STICKLINE(SS=-1 OR SM<=-1 AND SS=0,B1,C,0.8,0),COLORFF9000;STICKLINE(SS=2,B2,C,0.8,1),COLORRED;STICKLINE(SS=-2,B2,C,0.8,0),COLORFF9000;STICKLINE((SS=-1 OR SS=-2) AND SM>0,B2,B1,0.8,1),COLORRED;STICKLINE((SS=1 OR SS=2) AND SM<0,B2,B1,0.8,0),COLORFF9000;。
【股票指标公式下载】-【通达信】量能指标(预测量、实际量、换手率、资金异动)
【通达信】量能指标(预测量、实际量、换手率、资金异动)-指标公式源码股:CAPITAL/1000000,LINETHICK0,COLORWHITE;实际量:VOL,LINETHICK0;{VAR1:=DYNAINFO(17)*REF(MA(VOL,5),1);VAR2:=DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT;预测:=IF(DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT,VAR1,VAR2)/10000; 预测量:STICKLINE(IF(DYNAINFO(7)=CLOSE ANDDYNAINFO(10)=AMOUNT,VAR1,VAR2),VAR1,0,7,1),COLORGRAY;}AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));主买:IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OPEN,AA*((HIGH-OPEN)+(CLOSE-L OW)),VOL /2)),POINTDOT,COLORRED;主卖:IF(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-AA*(H IGH-LOW),0-VOL /2)),LINETHICK0,COLORGREEN;换手率%:VOL/CAPITAL*100,POINTDOT,COLORWHITE;STICKLINE(C>=REF(C,1) ,0,VOL,2.5,1),COLORRED;STICKLINE(C<REF(C,1),0,VOL,2.5,1),COLORGREEN;STICKLINE(主买>0,0,主买,2.5,0),COLORRED;STICKLINE(主卖<0 ,0,主卖,2.5,0),COLORGREEN;资金异动:VOL/MA(VOL,55)*100,COLORYELLOW;STICKLINE(资金异动>100 ,0,VOL,0.6,0),COLORYELLOW;MA5:MA(V,5),COLORWHITE;MA13:MA(V,13),COLORRED;DRAWTEXT(CROSS(MA5,MA13),(V *1.05),'★'),COLORYELLOW;【通达信】量能指标(预测量、实际量、换手率、资金异动)-指标公式效果图(文档来源:若水财经社区)。
暴涨主图指标通达信指标公式源码
暴涨主图指标暴涨主图MA5:MA(CLOSE,M1);MA10:MA(CLOSE,M2);MA24:MA(CLOSE,M3);MA30:MA(CLOSE,M4);MA60:MA(CLOSE,M5);MA120:MA(CLOSE,M6);MA250:MA(CLOSE,M7);DIF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);DEA:=EMA(DIF,9);AAA:=(DIF-DEA)*2*60;起爆:=CROSS(AAA-REF(AAA,1),15),COLORRED,LINETHICK2; DRAWTEXT(起爆,L*0.99,'◆■◆↖暴张'),COLORYELLOW,LINETHICK2; STICKLINE(REF(COUNT(C<MA(REF(HHV((C+L+O+H)/4,40),1),3),5)=5,1) AND C>MA(REF(HHV((C+L+O+H)/4,40),1),3) ANDC>O,C,O,1.3,0),COLORYELLOW;TYX2:=MA(REF(HHV((C+L+O+H)/4,10),1),3);STICKLINE(REF(COUNT(C<TYX2,5)=5,1) AND C>TYX2 ANDC>O,C,O,1.3,0),COLORBLUE;DRAWTEXT(HIGH>REF(HIGH,1) ANDREF(HIGH,2)>REF(HIGH,1) AND LOW>REF(LOW,1)AND REF(LOW,2)>REF(LOW,1)AND MA(CLOSE,5)<MA(CLOSE,10),L-0.4,'■底方买进'),COLORMAGENTA;主力:=EMA(((2*C+H+L)/4-LLV(L,34))/(HHV(H,34)-LLV(L,34))*100,13){*VAR2}, COLORRED;散户:=EMA(0.667*REF(主力,1)+0.333*主力,2),COLORFF9933;上扬:IF(CROSS(主力,30) AND 散户<主力,L,DRAWNULL),POINTDOT,LINETHICK7,COLORLIMAGENTA;{35,STICK,LINETHICK2,COLOR000000;强弱分界线:=50, POINTDOT, LINETHICK2, COLORFFFF00;}买入脉冲:IF(CROSS(主力,散户) AND 主力<35,L*0.99,DRAWNULL),POINTDOT,LINETHICK7,COLORLIBLUE;VAR1:=(CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100;操盘线:=SMA(VAR1,5,1),LINETHICK2,COLORRED;趋势线:=SMA(操盘线,3,1),LINETHICK2,COLORYELLOW;买入航标:IF(CROSS(操盘线,趋势线) AND 趋势线<25,L*0.98,DRAWNULL),POINTDOT,LINETHICK5,COLORRED;卖出脉冲:IF(CROSS(散户,主力) AND 散户>75,H*1.03,DRAWNULL),CROSSDOT,LINETHICK3,COLORGRAY; DRAWTEXT(CROSS(主力,散户) AND 主力<22,L,'起动'),COLORYELLOW; DRAWTEXT(CROSS(主力,30) AND 散户<主力,L,'上扬'),COLOR00CCFF; DRAWTEXT(CROSS(主力,65) AND 散户<主力,H,'冲顶'),COLOR9933FF; DRAWTEXT(CROSS(主力,75) AND 散户<主力,H,'小心被套'),COLORRED; DRAWTEXT(CROSS(散户,主力) AND 散户>75,H,'头部'), COLORYELLOW; DRAWTEXT(买入航标>0,L,'买入'),COLORMAGENTA;DRAWTEXT(CROSS(趋势线,操盘线)AND 操盘线>70,H*1.02,'卖出'),COLOR00FF00;FA:=BARSLAST(CROSS(MA10,MA5)) AND CROSS(MA5,MA10);FB:=FA AND MA5>MA30 AND MA10>MA30 AND MA10>REF(MA10,1); DRAWTEXT(FB,L-0.58,'★追涨'),COLORRED;V1:=EMA(CLOSE,5);V2:=EMA(EMA(CLOSE,90)*1.01,10);DRAWTEXT(CROSS(V1,V2),V1+0.05,'牛起步'),COLOR00FF00;VARA1:=LLV(LOW,21);VARA2:=HHV(HIGH,21);AK1:=EMA((((CLOSE - VARA1) / (VARA2 - VARA1)) * 100),5);AK:=EMA((((CLOSE - VARA1) / (VARA2 - VARA1)) * 50),13);AB:=CROSS(AK1,AK);DRAWTEXT((AB = 1),(LOW * 0.99),'○关注'),COLORYELLOW;AA1:=AMOUNT/V;BB1:=L<AA1*0.9;CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;DD1:=L<MA(C,5)*0.921;EE1:=V<MA(V,5)*1.5;介入:=BB1 AND CC1 AND DD1 AND EE1,LINETHICK0,COLOR0099FF; DRAWTEXT(介入,L*0.99,'介入'),COLOR0099FF;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),45),(LOW)*(0.93),'★买入'),COLOR00FFFF; DRAWTEXT(FILTER((VAR4AA>90),35),(LOW)*(0.99000001),'★加仓'),COLOR00FFFF;VZ:=INTPART(AMOUNT)/INTPART(V)/100;DRAWTEXT_FIX(1,0.00,0,0,'所属地区:')COLOR00FFFF;DRAWTEXT_FIX(1,0.07,0,0,DYBLOCK)COLOR00FFFF;DRAWTEXT_FIX(1,0.00,0.06,0,'所属行业:')COLORFF00FF;DRAWTEXT_FIX(1,0.07,0.06,0,HYBLOCK)COLORFF00FF;EMA20:EMA(C,20),COLORWHITE,NODRAW;EMA40:EMA(C,40),COLORYELLOW,NODRAW;EMA60:EMA(C,60),COLORFF00FF;MA020:=EMA(CLOSE,20);MA040:=EMA(CLOSE,40);MA060:=EMA(CLOSE,60);A1:=OPEN<MA020 OR OPEN<MA040 OR OPEN<MA060;A2:=C>MAX(MA020,MAX(MA040,MA060));A3:=V/MA(V,10)>1.2;A4:=C/REF(C,1)>1.049;A5:=VOL/REF(VOL,1)>=1.9;出水芙蓉:=A1 AND A2 AND A3 AND A4 AND A5 AND O<MA060 AND C>MA060; DRAWTEXT(出水芙蓉,H-0.20,'出水芙蓉');。
【股票指标公式下载】-【通达信】主力动向(分时、MACD定位顶底、MACD趋势)
【股票指标公式下载】-【通达信】主⼒动向(分时、MACD定位顶底、MACD趋势)【通达信】主⼒动向(分时、MACD定位顶底、MACD趋势)-指标公式源码{-------------------------通达信新分时源码深度优化版--------------------}A:=CURRBARSCOUNT;A1:=DAY!=REF(DAY,1);A2:=BARSLAST(A1)+1;A3:=MA(C,A2);A4:=SUM(AMO,A2)/SUM(VOL,A2)/100;A5:=IF(CAPITAL>0,A4,A3);均价线:=IF(A<=CONST(A2),A5,DRAWNULL);分钟有效周期:=IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,240,DRAW NULL))));分时价:=TFILT(CLOSE,CURRBARSCOUNT,00,CURRBARSCOUNT,00);分时判断:=IF(分时价=DRAWNULL,1,IF(分钟有效周期=DRAWNULL,DRAWNULL,1)); {-----------------------------由MACD定位顶底-------------------------------}DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);KX:=BARSSINCE(CLOSE);{←⾸次开盘价距⾦的天数}HHN:=CONST(HHV(DIFF,KX));HLN:=CONST(LLV(DEA,KX));RC1:=CONST((HHN+HLN)/2);SS:=((HHN-HLN)/200);MACD底部:=(-100*SS+RC1)+-(-100*SS+RC1),COLOR669999;MACD顶部:=(100*SS+RC1)+-(-100*SS+RC1),COLORFF0033;MACD中轴:=0+-(-100*SS+RC1);DIFF修正:=DIFF+-(-100*SS+RC1),COLOR008080;DEA修正:=DEA+-(-100*SS+RC1),COLOR00FF00;MACD修正:=2*(DIFF修正-DEA修正)+MACD中轴,COLOR0000BB,NODRAW;MACD超跌:=CONST(LLV(MACD修正,KX));MACD超跌线:=IF(MACD超跌{----------------------利⽤MACD趋势进⾏精确顶底判断------------------------}顶部:=MACD顶部+-MACD超跌线;天际:=顶部*0.809;中轴:=MACD中轴+-MACD超跌线;海⾯:=顶部*0.191;底部:=MACD底部;{------------------------传统KDJ指标结合MACD优化---------------------------}RSVA:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*顶部;{采⽤21⽇⽉线优化}K:SMA(RSVA,3,1),COLORFFFFFF,NODRAW;D:SMA(K,3,1),COLOR00FFFF,NODRAW;原J值参数:=3*K-2*D;JD:=IF(原J值参数<底部,底部,原J值参数);{J值底部钝化处理}J:IF(JD>顶部,顶部,JD),COLORFF00FF,NODRAW;{底部钝化处理后再进⾏顶部钝化处理}{---------------------------MACD多空量能判断-------------------------------}MACD多头:DIFF修正+-MACD超跌线,COLOR339999;空头:DEA修正+-MACD超跌线,COLOR00FF00;量能柱:2*(MACD多头-空头)+中轴,COLOR0000BB,NODRAW;超前DEA:=(EMA(MACD多头,7));超前MACD:=2*(MACD多头-超前DEA)+中轴;{-----------------------------------⼤盘动向-------------------------------}VAR1⼤盘:=LLV(LOW,13);VAR2⼤盘:=HHV(HIGH,13);VAR3⼤盘:=(SMA((CLOSE-VAR1⼤盘)/(VAR2⼤盘-VAR1⼤盘)*顶部,5,1))-顶部/2;VAR4⼤盘:=SMA((VAR2⼤盘-CLOSE)/(VAR2⼤盘-VAR1⼤盘)*顶部,5,1)-顶部/2; ⼤盘散户:=IF(VAR4⼤盘<底部,底部,VAR4⼤盘),COLOR408000;⼤盘主⼒:=IF(VAR3⼤盘<底部,底部,VAR3⼤盘),COLOR330088;{---------------------------------密集成本突破-----------------------------}最⾼获利参数:=顶部/100;VAR1C:=(COST(89)-COST(11))*最⾼获利参数;VAR2C:=(COST(99.9)-COST(1))*最⾼获利参数;单峰:=((1-VAR1C/VAR2C))*顶部;低密:=((COST(90)-COST(60))/VAR2C)*顶部;⾼密:=((COST(40)-COST(1))/VAR2C)*顶部;赢利:= (SMA(WINNER(AMOUNT/VOL/99),2,1))*顶部;活跃度:顶部-顶部/(1+EXPMA(HSL,21)),COLOR774455;{←CYF公众追涨热情指标}70%成本集中度:=IF(VAR1C>顶部,顶部,VAR1C),COLORFFFFFF;90%成本集中度:=IF(VAR2C>顶部,顶部,VAR2C),COLORFF0000;套牢筹码上升:=IF((单峰-赢利)>底部,(单峰-赢利),底部);个股散户:=IF(套牢筹码上升>顶部,顶部,套牢筹码上升),COLOR408000;散户:IF(个股散户=DRAWNULL,DRAWNULL,个股散户),COLOR408000;获利筹码上升:=IF((赢利-单峰)>底部,(赢利-单峰),底部);个股主⼒:=IF(获利筹码上升>顶部,顶部,获利筹码上升),COLOR330088;主⼒:IF(个股主⼒=DRAWNULL,DRAWNULL,个股主⼒),COLOR330088;{--------------------换⼿率,五⽇换⼿率辅助判断个股活跃度-------------------}换⼿:SUM(VOL,1)/CAPITAL*100,COLOR666666,NODRAW;⑤⽇换:SUM(VOL,5)/CAPITAL*100,COLOR999999,NODRAW;{----------------------密集成本突破指标筹码峰画线--------------------------}⾦⾊背景修边1:STICKLINE(C>0 AND CURRBARSCOUNT>=2,顶部,底部,3.05,0),COLOR003333;⾦⾊背景修边2:STICKLINE(C>0 AND CURRBARSCOUNT>=2,顶部,中轴,3.05,0),COLOR003333;⾦⾊背景补充:DRAWBAND(顶部,RGB(51,51,0),中轴,RGB(51,51,0));⾦⾊背景:DRAWBAND(顶部,RGB(51,51,0),底部,RGB(128,128,128));追涨热度峰紫⾊:DRAWBAND(活跃度,RGB(66,52,81),底部,RGB(204,0,0));⾼密峰墨蓝⾊:=DRAWBAND(⾼密,RGB(0,0,51),底部,RGB(0,0,255));低密峰纯蓝⾊:=DRAWBAND(低密,RGB(0,0,102),底部,RGB(0,0,255));90%成本峰:DRAWBAND(90%成本集中度,RGB(0,0,153),底部,RGB(0,0,153)); 70%成本峰:DRAWBAND(70%成本集中度,RGB(0,128,0),底部,RGB(255,255,255));散户峰绿⾊:DRAWBAND(散户,RGB(0,64,0),底部,RGB(204,0,0));主⼒峰红⾊:DRAWBAND(主⼒,RGB(102,26,51),底部,RGB(0,0,255));MACD多空趋势:DRAWBAND(MACD多头,RGB(204,51,51),空头,RGB(0,179,0)); MACD多头重画:DRAWBAND(MACD多头,RGB(153,153,51),MACD多头,RGB(153,153,51));MACD空头重画:DRAWBAND(空头,RGB(0,204,0),空头,RGB(0,204,0));{--------若⽔论坛‘131488’会员提供的通达信■新宝塔线■-----原码-----------}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); VARD:=CLOSEVARE:=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); 三平底翻⾦:=(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;主⼒启动线:=MA(V,5),COLORFFFFFF;主⼒洗盘线:=MA(V,35),COLOR00FFFF;资⾦异动线:=MA(V,135),COLORFF0000;{----------------------------买卖参考--------------------------------------}出击:=(CROSS(主⼒启动线,资⾦异动线) OR ((主⼒洗盘线 > 资⾦异动线) AND CROSS(主⼒启动线,主⼒洗盘线))),COLORYELLOW;启动:=(主⼒启动线>REF(主⼒启动线,1) AND (CROSS(VOL,主⼒启动线) AND (REF(VOL,1)线,2)))),COLOR45AAEE;成⽴:=三平底翻⾦ AND (出击 OR 启动);买⼊提⽰:=IF(成⽴=1,海⾯*0.5,0) AND 分时判断=1;{------------------------顶部线,天际线,海⾯线,底部线重画-------------------}顶部线:DRAWBAND(顶部,RGB(51,0,255),顶部,RGB(51,0,255));天际线:DRAWBAND(天际,RGB(128,64,64),天际,RGB(128,64,64));海⾯线:DRAWBAND(海⾯,RGB(0,153,153),海⾯,RGB(0,153,153));{------------------------超前MACD多空量能柱--------------------------------}超前MACD红柱1:STICKLINE(超前MACD>=中轴,超前MACD,中轴,1.50,0),COLOR226688;超前MACD红柱2:STICKLINE(超前MACD>=中轴,超前MACD,中轴,0.95,0),COLOR4488BB;超前MACD红柱3:STICKLINE(超前MACD>=中轴,超前MACD,中轴,0.31,0),COLOR55AADD;超前MACD兰柱1:STICKLINE(超前MACD<=中轴,超前MACD,中轴,1.50,0),COLOR006600;超前MACD兰柱2:STICKLINE(超前MACD<=中轴,超前MACD,中轴,0.95,0),COLOR007700;超前MACD兰柱3:STICKLINE(超前MACD<=中轴,超前MACD,中轴,0.31,0),COLOR008800;{--------------------------MACD多空量能柱----------------------------------}MACD红柱1:STICKLINE(量能柱>=中轴,量能柱,中轴,1.5,0),COLOR000077; MACD红柱2:STICKLINE(量能柱>=中轴,量能柱,中轴,1.1,0),COLOR000088; MACD红柱3:STICKLINE(量能柱>=中轴,量能柱,中轴,0.6,0),COLOR000099; MACD红柱4:STICKLINE(量能柱>=中轴,量能柱,中轴,0.15,0),COLOR0000AA; MACD兰柱1:STICKLINE(量能柱<=中轴,量能柱,中轴,1.5,0),COLORAA6633;MACD兰柱2:STICKLINE(量能柱<=中轴,量能柱,中轴,1.1,0),COLORBB7744; MACD兰柱3:STICKLINE(量能柱<=中轴,量能柱,中轴,0.6,0),COLORCC8855; MACD兰柱4:STICKLINE(量能柱<=中轴,量能柱,中轴,0.15,0),COLORDD9966; {---------中轴线重画及顶部线,天际线,海⾯线,底部线,多空线⽂字说明-----------}中轴线:DRAWBAND(中轴,RGB(128,128,255),中轴,RGB(128,128,255));顶部线⽂字:DRAWTEXT(CURRBARSCOUNT=1,顶部*0.98,' 顶部线'),COLORFF0033;天际线⽂字:DRAWTEXT(CURRBARSCOUNT=1,天际*0.98,' 天际线'),COLOR404080;海⾯线⽂字:DRAWTEXT(CURRBARSCOUNT=1,海⾯,' 海⾯线'),COLOR999900; 底部线⽂字:DRAWTEXT(CURRBARSCOUNT=1,底部,' 底部线'),COLOR669999; 中轴线⽂字:DRAWTEXT(CURRBARSCOUNT=1,中轴,' 多空线'),COLORFF8080; {-------------------------------传统KDJ指标线重画--------------------------}D线重画:DRAWBAND(D,RGB(255,255,0),D*0.998,RGB(255,255,0));K线重画:DRAWBAND(K,RGB(255,255,255),K,RGB(255,255,255));J线重画:DRAWBAND(J,RGB(255,0,255),J,RGB(255,0,255));【通达信】主⼒动向(分时、MACD定位顶底、MACD趋势)-指标公式效果图(⽂档来源:若⽔财经社区)。
【股票指标公式下载】-【通达信】超强组合(波段线、金手指)
【通达信】超强组合(波段线、金手指)-指标公式源码{波段线}VAR2:=(HIGH+LOW+CLOSE*2)/4;VAR3:=EMA(VAR2,21);VAR4:=STD(VAR2,21);VAR5:=((VAR2-VAR3)/VAR4*100+200)/4;VAR6:=(EMA(VAR5,5)-25)*1.56;{AK: EMA(VAR6,2)*1.22;AD1: EMA(AK,2);AJ: 3*AK-2*AD1;DRAWTEXT(CROSS(AK,AD1),AK,'*'),COLORRED;DRAWTEXT(CROSS(AD1,AK),AK,'*'),COLORWHITE;}{金手指}RA:=LLV(LOW,35);RB:=HHV(HIGH,30);RC:=EMA((CLOSE-RA)/(RB-RA)*4,4)*19;近日均价:=MA(CLOSE,5),COLORYELLOW,LINETHICK2;DRAWICON(RC<6 AND100*(HHV(HIGH,19)-CLOSE)/(HHV(HIGH,19)-LLV(LOW,19))>97,100,11); LC:=REF(CLOSE,1);RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;ZL:=EMA( (CLOSE-MA(CLOSE,7))/MA(CLOSE,7)*480,2)*5;SH:=EMA( (CLOSE-MA(CLOSE,11))/MA(CLOSE,11)*480,7)*5;BT1:=CROSS(RSI1,25);BT2:=CROSS(ZL,SH) AND ZL<-10;BT:=FILTER(COUNT(BT1 OR BT2,3)>=2,3);BIAS:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;VARC:=LOW;VARD:=REF(LOW,1);VARE:=SMA(ABS(VARC-VARD),3,1)/SMA(MAX(VARC-VARD,0),3,1)*100; VARF:=MA(VARE/10,3);VAR10:=LLV(LOW,30);VAR11:=HHV(VARF,30);MA(IF(LOW<=VAR10,(VARF+VAR11*2)/5,0),3);VAR1B:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);VAR2B:=SMA(ABS(LOW-VAR1B),13,1)/SMA(MAX(LOW-VAR1B,0),10,1);VAR3B:=EMA(VAR2B,10);VAR4B:=LLV(LOW,33);VAR5B:=EMA(IF(LOW<=VAR4B,VAR3B,0),3);{主力进场:IF(VAR5B>REF(VAR5B,1),VAR5B,0),COLORRED;}STICKLINE(VAR5B>REF(VAR5B,1),0,VAR5B*2,2,0 ),COLORYELLOW;洗盘:IF(VAR5B<REF(VAR5B,1),VAR5B,0),COLORLIGREEN;VARR1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);VARR2:=SMA(ABS(LOW-VARR1),13,1)/SMA(MAX(LOW-VARR1,0),10,1); VARR3:=EMA(VARR2,10);VARR4:=LLV(LOW,33);VARR5:=EMA(IF(LOW<=VARR4,VARR3,0),3);STICKLINE(VARR5>REF(VARR5,1),0,VARR5,2,0 ),COLORGREEN; STICKLINE(VARR5<REF(VARR5,1),0,VARR5*2,2,0),COLORRED;找主力吸筹提款:VARR5>REF(VARR5,4) {AND C>REF(C,1)},COLORMAGENTA; VAR2C:=(HIGH+LOW+CLOSE*2)/4;VAR3C:=EMA(VAR2C,7);VAR4C:=STD(VAR2C,7);VAR5C:=(VAR2C-VAR3C)*100/VAR4;VAR6C:=EMA(VAR5C,3);{WW:(EMA(VAR6C,5)+100)/2-3,COLORFF00FF;MM:HHV(WW,3),COLORFF3333;}AAA:=AMOUNT/VOL/100;主力进场:IF(VAR5B>REF(VAR5B,1),VAR5B*1.5,0),COLORRED,LINETHICK2; {吸筹}VAR2Q:=REF(LOW,1);VAR3Q:=SMA(ABS(LOW-VAR2Q),3,1)/SMA(MAX(LOW-VAR2Q,0),3,1)*100; VAR4Q:=EMA(IF(CLOSE*1.3,VAR3Q*10,VAR3Q/10),3);VAR5Q:=LLV(LOW,30);VAR6Q:=HHV(VAR4Q,30);VAR7Q:=IF(MA(CLOSE,58),1,0);VAR8Q:=EMA(IF(LOW<=VAR5Q,(VAR4Q+VAR6Q*2)/2,0),3)/618*VAR7Q;VAR9Q:=IF(VAR8Q>100,100,VAR8Q);吸筹:STICKLINE(VAR9Q>-120,0,VAR9Q,6,1),COLORRED;VARY2:=REF(LOW,1);VARY3:=SMA(ABS(LOW-VARY2),3,1)/SMA(MAX(LOW-VARY2,0),3,1)*100;VARY4:=EMA(IF(CLOSE*1.3,VARY3*10,VARY3/10),3);VARY5:=LLV(LOW,30);VARY6:=HHV(VARY4,30);VARY7:=IF(MA(CLOSE,58),1,0);VARY8:=EMA(IF(LOW<=VARY5,(VARY4+VARY6*2)/2,0),3)/618*VARY7;VARY9:=IF(VARY8>100,100,VARY8);吸筹2:STICKLINE(VARY9>-120,0,VARY9/3,2,1),COLORMAGENTA;LCC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LCC,0),4.1,1)/SMA(ABS(CLOSE-LCC),4.1,1)*100,COLORY ELLOW,LINETHICK1;黄买:FILTER((REF(CLOSE,2)<CLOSE AND RSI<25),7),COLORYELLOW; STICKLINE(黄买,0,-40,10,1),COLORYELLOW;黄卖:=FILTER((REF(CLOSE,2)>CLOSE AND RSI>80),7);STICKLINE(黄卖,100,82,10,0),COLORBLUE;红买:FILTER(CROSS(RSI,11),7),COLORRED;STICKLINE(红买,0,-30,6,0),COLORRED;红卖:=FILTER(CROSS(89,RSI),7);STICKLINE(红卖,100,88,8,0),COLORCYAN;绿买:FILTER(CROSS(RSI,20),7),COLOR00FF00;STICKLINE(绿买,0,-20,6,0),COLORMAGENTA;绿卖:=FILTER(CROSS(80,RSI),7);STICKLINE(绿卖,100,94,6,0),COLOR00FF00;★遵守纪律★:100,COLORRED;★交易之魂★:100,COLORRED;ZLC:= EMA((WINNER(CLOSE) * 70),3);SHC:= EMA(((WINNER((CLOSE * 1.1)) - WINNER((CLOSE * 0.9))) * 80),3); 主力控盘: ((ZLC / (ZLC+ SHC)) * 100),COLOR00FFFF,LINETHICK2;上限: HHV(主力控盘,20),COLORGREEN,LINETHICK2;下限: LLV(主力控盘,20),COLORRED,LINETHICK2;中线:(上限 + 下限)/2,COLORYELLOW,POINTDOT,LINETHICK2;{60,LINETHICK4,POINTDOT,COLORYELLOW;}{10,LINETHICK4,POINTDOT,COLORFF00FF;}VAR200:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;VAR300:=SMA(SMA(VAR200,3,1),3,1)/28.57;VAR400:=EMA(VAR300,5);操盘:=3*VAR300-2*VAR400;A1:=CROSS(操盘,VAR300) AND VAR300<2.1 AND C>O;STICKLINE(A1,30,0,4,0),COLOR770077;STICKLINE(A1,30,0,3,0),COLOR990099;STICKLINE(A1,30,0,2,0),COLORBB00BB;STICKLINE(A1,30,0,1,0),COLORWHITE;STICKLINE(A1,30,0,0.3,0),COLORFF00FF;DRAWTEXT(A1,36,'满仓'),COLORRED;DRAWTEXT(A1,36,'满仓'),COLORRED;AK: EMA(VAR6,2)*1.22;AD1: EMA(AK,2);AJ: 3*AK-2*AD1;DRAWTEXT(CROSS(AK,AD1),AK,'*'),COLORRED;DRAWTEXT(CROSS(AD1,AK),AK,'*'),COLORWHITE;WW:(EMA(VAR6C,5)+100)/2-3,COLORFF00FF;MM:HHV(WW,3),COLORFF3333;DRAWTEXT(BT1,0,'□'),COLORYELLOW;DRAWTEXT(BT,0,'■'),COLORYELLOW;DRAWICON(CROSS(85,RSI1),102,15);{饭跑跑}DRAWICON(CROSS(RSI1,25),10,26);{金钻}DRAWICON(CROSS(ZL,SH) AND ZL<-10,20,24);{蓝钻}DRAWICON(CROSS(BIAS,-12),-10,13);{BIAS买点};【通达信】超强组合(波段线、金手指)-指标公式效果图(文档来源:若水财经社区)。
通达信指标公式源码 把CCI指标合并到主图一目了然 主题源码
{CCI-金}DRAWGBKlast(DATE>900101,strip(RGB(0,0,255),RGB(40,0,0),0)); {K线}STICKLINE(CLOSE>OPEN or CLOSE=OPEN andCLOSE>REF(CLOSE,1),LOW,HIGH,0.1,0),colorred;STICKLINE(CLOSE>OPEN or CLOSE=OPEN andCLOSE>REF(CLOSE,1),OPEN,CLOSE,0,0),colorred;STICKLINE(CLOSE<OPEN or CLOSE=OPEN andCLOSE<=REF(CLOSE,1),LOW,HIGH,0.1,0),colorcyan; STICKLINE(CLOSE<OPEN or CLOSE=OPEN andCLOSE<=REF(CLOSE,1),OPEN,CLOSE,0,0),colorcyan; STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,8,0 ),COLOR006600; STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,7,0 ),COLOR008800; STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,6,0 ),COLOR00AA00; STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,5,0 ),COLOR00BB00; STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,4,0 ),COLOR00CC00; STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3,0 ),COLOR00DD00; STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2,0 ),COLOR00EE00; STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0 ),COLOR00FF00; STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,0,0 ),COLOR00FF00; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,8,0) ,COLOR000066; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,7,0) ,COLOR000088; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,6,0) ,COLOR0000AA; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,5,0) ,COLOR0000BB; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0) ,COLOR0000CC; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0) ,COLOR0000DD; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0) ,COLOR0000EE; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0) ,COLOR0000FF; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0,0) ,COLOR0000FF;MA5:WMA(C,5),PRECIS2;PARTLINE(ma5,(ma5>REF(ma5,1))-1,rgb(0,255,0),1,rgb(255,0,0) ),LINETHIC K2,LAYER0;{CCI-金}现价:if (DYNAINFO(4)=0,C,DYNAINFO(7)),color0077FF,linethick0;TYB:= (HIGH + LOW + 2*CLOSE)/4;CCIA:=(TYB-MA(TYB,14))/(0.015*AVEDEV(TYB,14));CCIB:=(TYB-MA(TYB,28))/(0.015*AVEDEV(TYB,28));CCIC:=(TYB-MA(TYB,42))/(0.015*AVEDEV(TYB,42));CCI:=WMA((CCIA+2*CCIB+CCIC)/4,5);{叠加前N天显示图象}N:=100;W:=barslast(cross(BACKSET(BARSTATUS=2,N),0)); {叠加区间(从最后周期往前N天)}J:=W*0; {只在叠加区间才显示图象}PK:=4;BX:=IF(BARSCOUNT(C)=500,0,500);CCIS:=abs(hhv(CCI,BX)-llv(CCI,BX))/(HHV(C,BX)-llv(C,BX))*PK;CCIK:CCI/CCIS+现价+J,COLOR00FF00,LAYER0;PARTLINE(CCIK,CCIK>REF(CCIK,1),rgb(255,200,0) ),LINETHICK3,LAYER0; {二九宽带}上18H:WMA(SMA(hhv(HIGH,18),9/2,1),3),COLOR00FF00;下18L:WMA(SMA(llv(LOW,18),9/2,1),3),COLOR009900;通道:(上18H+下18L)/2,COLOR0598FF;FILLRGN(上18H,通道,上18H>通道,RGB(60,0,60)),LAYER7;FILLRGN(下18L,通道,下18L<通道,RGB(0,40,0)),LAYER7;{高抛.低吸}LC := REF(CLOSE,1);RSI:=WMA(SMA(MAX(CLOSE-LC,0),14,1)/SMA(ABS(CLOSE-LC),14,1)*100,3); RSI5:=WMA(RSI,8);DRAWTEXT(CROSS(RSI,RSI5) ,L-0.1,'←低吸'),COLOR00fffF,LINETHICK1; DRAWTEXT(CROSS(RSI5,RSI) ,H+0.1,'←高抛'),COLOR0099FF,LINETHICK1; XP:=BARSLAST(DISPSTATUS=1)+1;AH1:hhv(h,Xp),COLOR0077FF,DOTLINE,LINETHICK1;AL2:llv(l,Xp),COLORFF9900,DOTLINE,LINETHICK1;HLZ:(AH1+AL2)/2,COLOR00FFFF,DOTLINE,LINETHICK1;下跌:LAST(AH1>H),PRECIS0 ,LINETHICK0;上涨:LAST(Al2<L),PRECIS0 ,LINETHICK0;DRAWTEXT(DISPSTATUS=2,AH1,'----【'+NUMTOSTRN(AH1,2)+'元:跌'+NUMTOSTRN((C-AH1)/AH1*100,1)+'%.'+NUMTOSTRN(下跌,0)+'天】---- '),ALIGN1,Color00FFFF,linethick3,LAYER0;DRAWTEXT(DISPSTATUS=2,Al2,'----【'+NUMTOSTRN(AL2,2)+'元:涨'+NUMTOSTRN((C-AL2)/AL2*100,1)+'%.'+NUMTOSTRN(上涨,0)+'天】----'),ALIGN1,VALIGN2,Color00ff00,linethick3,LAYER0;。
【股票指标公式下载】-【通达信】五线谱操作法(疯狂、超买、轴心、超卖)
【通达信】五线谱操作法(疯狂、超买、轴心、超卖)-指标公式源码MA1:=MA(C,20);JX1:=IF(CAPITAL=0,IF(PERIOD=7,1.11,IF(PERIOD=8,1.30,1.06)),IF(PERIOD= 7,1.20,IF(PERIOD=8,1.38,1.14)));JX2:=IF(CAPITAL=0,IF(PERIOD=7,1.09,IF(PERIOD=8,1.25,1.05)),IF(PERIOD= 7,1.15,IF(PERIOD=8,1.33,1.11)));JX3:=IF(CAPITAL=0,IF(PERIOD=7,0.985,IF(PERIOD=8,1.01,0.985)),IF(PERIO D=7,0.99,1.01));JX4:=IF(CAPITAL=0,IF(PERIOD=7,0.88,IF(PERIOD=8,0.75,0.93)),IF(PERIOD= 7,0.85,IF(PERIOD=8,0.75,0.90)));JX5:=IF(CAPITAL=0,IF(PERIOD=7,0.85,IF(PERIOD=8,0.70,0.92)),IF(PERIOD= 7,0.80,IF(PERIOD=8,0.70,0.86)));疯狂:MA1*JX1,COLOR0000DD,LINETHICK2;超买:MA1*JX2,COLOR00DDDD,LINETHICK2;轴心:MA1*JX3,COLOR0000FF;IF(轴心<REF(轴心,1),轴心,DRAWNULL),COLOR00FF00;超卖:MA1*JX4,COLOR00DDDD,LINETHICK2;恐慌:MA1*JX5,COLOREEDD00,LINETHICK2;STICKLINE(C>O,CLOSE,O,2.8,0),COLOR000055;STICKLINE(C>O,CLOSE,O,2,0),COLOR000088;STICKLINE(C>O,CLOSE,O,1.5,0),COLOR0000AA;STICKLINE(C>O,CLOSE,O,1,0),COLOR0000CC;STICKLINE(C>O,CLOSE,O,0.5,0),COLOR0000EE;STICKLINE(C>O,H,L,0,0),COLOR0000EE;STICKLINE(C<O,CLOSE,O,2.8,0),COLOR555500;STICKLINE(C<O,CLOSE,O,2,0),COLOR888800;STICKLINE(C<O,CLOSE,O,1.5,0),COLORAAAA00;STICKLINE(C<O,CLOSE,O,1,0),COLORCCCC00;STICKLINE(C<O,CLOSE,O,0.5,0),COLOREEEE00;STICKLINE(C<O,H,L,0,0),COLOREEEE00;FD:=(H/疯狂-1)*100;BL:=(H/C-1)*100;FK:=IF(CAPITAL=0,COUNT(H>疯狂,3)=3,COUNT(H>疯狂,3)>=2 AND FD>8 AND BL<0.4);DRAWICON(CROSS(H,超买) OR CROSS(C,超买),H*1.02,2);DRAWICON(L<超卖 AND C>=超卖,L*0.99,1);DRAWICON(FK,H*1.01,15);一【通达信】五线谱操作法(疯狂、超买、轴心、超卖)-指标公式效果图(文档来源:若水财经社区)。
【股票指标公式下载】-【通达信】合并K线(主图)
STICKLINE(CA=OA AND CA>REF(CA,1),HA ,LA ,0.1,1),COLOR0000FF;
STICKLINE(CA=OA,HA ,LA ,0.1,1),COLORFF00FF,LINETHICK1;
开1:OA,POINTDOT,COLOR000000;高1:HA ,POINTDOT,COLOR000000;低1:LA,POINTDOT,COLOR000000;收1:CA ,POINTDOT,COLOR000000;
【通达信】合并K线(主图)-指标公式效果图
下载次数: 0
2010-12-11 11:43
STICKLINE(CA>CH,CA,OA,3,0),COLOR0000FF;
STICKLINE(CA<OA,HA,LA,0.1,1),COLOR38FC3A,LINETHICK1;
STICKLINE(CA<OA,CA,OA,3,0),COLOR38FC3A,LINETHICK1;
EXP50:EMA(CA,40),COLOR00FFFF;
k线指标公式通达信大盘k线通达信k线颜色通达信指标公式源码通达信boll指标公式通达信指标公式通达信分时指标公式通达信指标公式编写通达信指标公式supv慧眼k线公式
【通达信】合并K线(主图)-指标公式源码
{合并K线2日-标注形态}
CA:=C;OA:=REF(MIN(C,O),1);HA:=H;LA:=REF(L,1);CH:=REF(MAX(C,O),1);
STICKLINE(CA>CH,HA,LA,0.1,1),COLOR0000FF;
STICKLINE(CA>OA,CA,OA,3,0),COLORFF00FF;
通达信妖股起爆主图指标公式
通达信妖股起爆主图指标公式DRAWGBK(CLOSE>0,RGB(1,1,1),RGB(1,1,1),0,1,0);DRAWNULL,COLORCCCCCC;{板块市值业绩}所属板块:=STRCAT('【所属板块】:',STRCAT(STRCAT(' [行业]—',HYBLOCK),STRCAT(' [概念]—',GNBLOCK)));风格板块:=STRCAT('【风格板块】:',STRCAT(STRCAT(' [地域]—',DYBLOCK),STRCAT(' [风格]—',FGBLOCK)));总股本:=STRCAT(STRCAT(' 总股本:',CON2STR(TOTALCAPITAL/1000000,2)),'亿');流通盘:=STRCAT(STRCAT(' 流通盘:',CON2STR(CAPITAL/1000000,2)),'亿');全流通:=STRCAT(STRCAT(' 流通比:',CON2STR(CAPITAL/TOTALCAPITAL*100,2)),'%');市值:=STRCAT(STRCAT(' 流通市值:',CON2STR((CAPITAL/1000000)*C,2)),'亿');股本市值:=STRCAT('【股本市值】:',STRCAT(STRCAT(STRCAT(总股本,流通盘),全流通),市值));市盈率:=STRCAT(' 市盈率:',CON2STR(C/FINANCE(33),2));净资收益率:=STRCAT(' 净资收益率:',CON2STR(FINANCE(33)/FINANCE(34)*100,2));主营利润率:=STRCAT(' 主营利润率:',CON2STR(FINANCE(23)/FINANCE(20)*100,2));当前业绩:=STRCAT('【当前业绩】:',STRCAT(STRCAT(市盈率,净资收益率),主营利润率));DRAWTEXT_FIX(ISLASTBAR,0.005,0.02,0,所属板块),COLORYELLOW;DRAWTEXT_FIX(ISLASTBAR ,0.005,0.07,0,风格板块),COLORYELLOW;DRAWTEXT_FIX(ISLASTBAR,0.005,0.12,0,股本市值),COLORMAGENTA;DRAWTEXT_FIX(ISLASTBAR,0.005,0.17,0,当前业绩),COLORMAGENTA;获利盘%:=100*WINNER(C);短期压力:=HHV(H,15);短期支撑:=LLV(L,20);X11:=(FINANCE(11)-FINANCE(15))/FINANCE(10)*1.2;X12:=(FINANCE(31)+FINANCE(17))/FINANCE(10)*1.4;{盈余公积用资本公积金代替};X13:=FINANCE(23)/FINANCE(10)*3.3;X14:=FINANCE(19)/FINANCE(15)*0.6;{缺长期负债或负债总额} X15:=FINANCE(20)/FINANCE(15)*0.999;Z值:=X11+X12+X13+X14+X15;DRAWTEXT_FIX(Z值<1.2,0.312,0.22,0,' 【●财务重警●】'),COLORLIRED;DRAWTEXT_FIX( BETWEEN(Z值,1.2,2.6),0.312,0.22,0,' 【○财务轻警○】'),COLOR0099FF;DRAWTEXT_FIX(Z值>2.6,0.312,0.22,0,' 【◎财务无警◎】'),COLORLIGREEN;DRAWTEXT_FIX(C>0,0.005 ,0.22,0,'【获利盘%】:'),COLORRED;DRAWTEXT_FIX(C>0,0.105,0.22,0,'【短期压力】:'),COLOR00FF00;DRAWTEXT_FIX(C>0,0.21,0.22,0,'【短期支撑】:'),COLORYELLOW;DRAWNUMBER_FIX(C>0,0.075,0.22,0,CONST(获利盘%)),COLORRED;DRAWNUMBER_FIX(C>0,0.175,0.22,0,CONST(短期压力)),COLOR00FF00;DRAWNUMBER_FIX(C>0,0.28,0.22,0,CONST(短期支撑)),COLORYELLOW;{涨停统计}STG:=NAMELIKE('S') OR NAMELIKE('*');涨停:=((C/REF(C,1)>=1.095 AND C=H) OR (C/REF(C,1)>=1.09 AND C=O AND O=L AND H=L) OR (C/REF(C,1)>=1.048 AND STG=1 AND C=H) OR (C/REF(C,1)>=1.045 AND C=O AND O=L AND H=L AND STG=1)) AND CURRBARSCOUNT<=120;ZTCS:=COUNT(涨停,BARSSINCE(涨停)+1);GZT1:=STRCAT(' 半年內涨停次数:',CON2STR(ZTCS,0));GZT2:=STRCAT(GZT1,'次');SSTS1:=STRCAT(' 上市天数:',CON2STR(FINANCE(42),0));SSTS2:=STRCAT(SSTS1,'天');NTZZT1:=STRCAT('距今:',CON2STR(CONST(BARSLAST(涨停)),0));NTZZT2:=STRCAT(NTZZT1,'天有涨停');ZTTJ1:=STRCAT(SSTS2,GZT2);ZTTJ2:=STRCAT(ZTTJ1,NTZZT2);ZTTJ:=STRCAT('【涨停统计】:',ZTTJ2);DRAWTEXT_FIX(CURRBARSCOUNT=1,0.005,0.265,0,ZTTJ),C OLORYELLOW;DRAWKLINE(H,O,L,C);N:=2;M:=30;MA(H,M) * (1 + 13 / 100) * 1.0382,LINETHICK1,COLORYELLOW ;MA(H,M) * (1 + 13 / 100),LINETHICK1,COLORYELLOW ;EMA(L,30) * (1 - 15 / 100),COLORGREEN , NODRAW ;EMA(L,30) * (1 - 15 / 100) * 0.82,NODRAW, COLORYELLOW;GUAIXIANTAITOU:(EMA(C,5) * 7 + EMA(C,10) * 3) /10,LINETHICK2,COLORWHITE;A1:=(H + L + O + C) / 4;A2:=EMA(A1,13) - EMA(A1,34);A3:=EMA(A2,5);A4:=(A2 - A3) * 5;A5:=IF(A4 >= 1000,1000,IF(A4 <= A1,A1,A4));A6:=FORCAST(FORCAST(A5,32),10);A7:=(C - EMA(C,13)) / EMA(C,13) * (0 - 100);A8:=EMA(A7 / 10 + EMA(C,13),8);A9:=EMA(C,3);A10:=EMA(SLOPE(C,22) * 20 + C,45);A11:=IF(PERIOD >8 AND PERIOD < 11,MA(A10,1),IF(PERIOD = 8,MA(A10,4),IF(PERIOD = 7,MA(A10,8),IF(PERIOD = 6,MA(A10,16),IF(PERIOD = 5,MA(A10,32),0)))));A12:=A11 * 0.865;A13:=IF(A9 > A11,A9,A12);A14:=C * V;A15:=EMA((EMA(A14,3) / EMA(V,3) + EMA(A14,6) / EMA(V,6) + EMA(A14,12) / EMA(V,12) + EMA(A14,24) / EMA(V,24)) / 4,13);A16:=1.06 * A15;A17:=(C - REF(C,1)) / REF(C,1) * 100 > 8.5;A18:=EMA(H,10) * (1 + 5 / 100);捉妖:CROSS(GUAIXIANTAITOU,MA(H,30) * (1 + 13 / 100)) * 10,NODRAW;A19:=(C - O) / REF(C,1) * 100;A20:=REF(H,N) = HHV(H,2 * N + 1);A21:=FILTER(A20,N);A22:=BACKSET(A21,N + 1);A23:=FILTER(A22,N);A24:=REF(L,N) = LLV(L,2 * N + 1);A25:=FILTER(A24,N);A26:=BACKSET(A25,N + 1);A27:=FILTER(A26,N);A28:=(REF(LLV(L,2 * N),1) + REF(HHV(H,2 * N),1)) / 2;A29:=(H + L) / 2;A30:=(A23 AND NOT(A27 AND A28 >= A29)) OR ISLASTBAR OR BARSCOUNT(C) = 1;A31:=A27 AND NOT(A23 AND A28 <A29);A32:=REF(BARSLAST(A30),1) + 1;A33:=BACKSET(A30 AND COUNT(A31,A32) > 0,LLVBARS(IF(A31,L,10000),A32));A34:=A33 > REF(A33,1);A35:=BACKSET(A34,2);A36:=A35 > REF(A35,1);A37:=A36 OR ISLASTBAR OR BARSCOUNT(C) = 1;A38:=REF(BARSLAST(A37),1) + 1;A39:=BACKSET(A37 AND COUNT(A23 AND NOT(A27 AND A28 >= A29),A38) > 0,HHVBARS(IF(A23 AND NOT(A27 AND A28 >= A29),H,0),A38));A40:=A39 > REF(A39,1);A41:=BACKSET(A40,2);A42:=A41 > REF(A41,1);A43:=BACKSET(ISLASTBAR,BARSLAST(A42) + 1);A44:=A43 > REF(A43,1);A45:=BACKSET(A44,REF(BARSLAST(A42),1) + 2);A46:=A45 > REF(A45,1);短齐压力:DRAWLINE(A46,H,A44,H,1),COLORGREEN,NODRAW;{真妖显身}A0:=((L+H+C*2)/4);上F:=EMA(A0,14)*1.1382;A1KX:=(上F-REF(上F,1)) / REF(上F,1) * 100;GD1:=BARSLAST(CROSS(A1KX,0));真妖显身:IF(H>=REF(A0,BARSLAST(CROSS(A1KX,0)))*1.3,REF(A0,BARSL AST(CROSS(A1KX,0)))*1.3,DRAWNULL),COLORFFB5FF,LINETHICK 9;DRAWTEXT(ISLASTBAR,真妖显身,' 妖股显身'),COLORFFB5FF;DRAWTEXT(FILTER(CROSS(GUAIXIANTAITOU,MA(H,30) * (1 + 13 / 100)),5),MA(H,30) * (1 + 13 / 100) * 0.88,' 捉大妖'),COLORGREEN;{============================== =======}VAR22:=IF(((YEAR) >= (2039)) AND ((MONTH) > 3),0,1);VAR33:=(MA(C,3) + MA(C,6) + MA(C,12) + MA(C,24)) / 4 + ((1.88) * (STD((MA(C,3) + MA(C,6) + MA(C,12) + MA(C,24)) / 4,9))) * (VAR22);急拉涨停线:((MA(VAR33,12)) * (1.06)) * (VAR22),LINETHICK2,COLORCYAN ;VAR55:=(EMA(H,10)) * (1 + 5 / (100));VAR6:=C * V;VAR7:=EMA(((EMA(VAR6,3)) / (EMA(V,3)) + (EMA(VAR6,6)) / (EMA(V,6)) + (EMA(VAR6,12)) / (EMA(V,12)) + (EMA(VAR6,24)) / (EMA(V,24))) / 4,13);VAR8:=(1.06) * (VAR7);VAR9:=(L / ((H + REF(C,1) + O) / 3)) * C;DRAWTEXT(((CROSS(VAR9,VAR8)) AND (C > (VAR55))) AND (C > (急拉涨停线)),L,'▲'),LINETHICK1,COLORYELLOW;{==========开口捉妖多彩K线========}NN:=5;MM:=3;VAR0:=((EMA(C,5)) * 7 + (EMA(C,10)) * 3) / 10;VAR1:=IF((YEAR) >= (2025),0,1);VAR2:=EMA(EMA(L,21) + (6.8) * (STD(L,2)),55);VAR3:=EMA(((C / (VAR2)) * ((1.88) * C + L + O)) / (2.75),3);VAR4:=(((VAR3) - (VAR2)) / (VAR2)) / 2;VAR5:=(EMA((VAR3) - ((VAR4) * (VAR3)),5)) * (VAR1);黄金轨道:(IF((VAR0) > (VAR5),VAR0,VAR5)) * (VAR1),NODRAW ,COLORRED ;{红线}上轨:IF(((VAR5) < (VAR0)) AND ((VAR5) < (C * (0.15))),(EMA(C,300)) - (3 * (STD(C,300))),VAR5),NODRAW ,COLORYELLOW;{黄线}IF((VAR5) > (VAR0),上轨,DRAWNULL),COLORCYAN ,NODRAW ;{中轴}VAR10:=(((SMA(MAX(C - (REF(C,1)),0),24,1)) / (SMA(ABS(C - (REF(C,1))),24,1))) * (100)) * (VAR1);VAR13:=((SMA(MAX(C -(REF(C,1)),0),14,1)) / (SMA(ABS(C - (REF(C,1))),14,1))) * (100);VAR14:=(EMA(C,60) + EMA(C,120) + EMA(C,240) + EMA(C,480)) / 4;VAR15:=VAR14 + (1.91) * (STD(VAR14,3));VAR16:=(EMA(VAR15,12)) * (1.23);{红色中线} STICKLINE((((VAR10) > 65) AND ((VAR13) >= 65)) AND ((MA(C,1)) > (VAR16)),H,L,0,0),COLORRED;{红色}STICKLINE((((VAR10) >= (64.5)) AND ((VAR13) >= 65)) AND ((MA(C,1)) > (VAR16)),C,O,3,0),COLORRED;VAR37:=((L + H) / 2);VAR39:=(EMA((C + L + H) / 3,1));{黄色}STICKLINE(((((VAR10) >= (64.5)) AND ((VAR13) >= 65)) AND ((MA(C,1)) > (VAR16))) AND ((MA(C,1)) > ((MA(H,30)) * (1 + 15 / (100)))),O,(VAR37 + L) / 2,3,0),COLORYELLOW;{白色}STICKLINE(((C > ((MA(H,30)) * (1 + 18 / (100)))) AND (C > (VAR5))) AND ((VAR10) > (64.5)),VAR39,VAR37,3,0),COLORWHITE;{=============== =超牛=================}转强:=100*(C-REF(C,12))/REF(C,12);超强:=((H+L+C)/3-MA((H+L+C)/3,88))/(0.015*AVEDEV((H+L+C)/3,88));通道:=1.07*DMA(C,ABS((2*C+H+L)/4-MA(C,26))/MA(C,26));趋势:=MA(ATAN(通道-REF(通道,1)),3);QS1:=IF((C>O OR C<O) AND H>=REF(C,1),ATAN(MA(H,5)*1.02-REF(MA(C,5)*1.02,1)),0);QS2:=IF((C>O OR C<O) AND H<REF(C,1),-ATAN(REF(MA(C,5)*1.02,1)-MA(H,5)*1.02),0);分界:=MA(REF((QS1+QS2),1),26);强势:=趋势>分界 AND 趋势>REF(趋势,1);超级牛股:=强势AND 超强>200 AND 转强>20 AND C>REF(C,1);DRAWTEXT(超级牛股,L*0.95,' 龙'),COLORRED; {================走强线 ================};。
【股票指标公式下载】-【通达信】优化组合(获利线、动态成本、主力成本、取舍线)
【通达信】优化组合(获利线、动态成本、主力成本、取舍线)-指标公式源码利:WINNER(CLOSE)*100,NODRAW,COLORRED;马:DRAWLINE(HIGH>=HHV(HIGH,10),HIGH,LOW<=LLV(LOW,3),HHV(HIGH,3),1),CO LORYELLOW,LINETHICK2;获利线:COST(98);动态成本:COST(50),COLORBLUE;主力成本:COST(5),COLORGREEN;KDJ_K:="KDJ.K"(9,3,3);KDJ_D:="KDJ.D"(9,3,3);KDJ_J:="KDJ.J"(9,3,3); 买1:=CROSS(KDJ_J,0) OR (CROSS(KDJ_J,KDJ_K) AND KDJ_D<26);买2:=CROSS("RSI.RSI1"(6,2,2),20) ORCROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));买3:=CROSS("MACD.DIF","MACD.DEA") OR CROSS("MACD.MACD",0);买0:=买1+买2+买3;买:=IF(买0>1,买0,0);掏底:IF(买,L*0.9978-0.03,DRAWNULL),POINTDOT,COLOR00FFFF,LINETHICK5; 选股:=FILTER(CROSS("KDJ.K","KDJ.D")&&CROSS("MACD.DIF","MACD.DEA"),50); 低吸:IF(选股,L*0.988-0.01,DRAWNULL),POINTDOT,COLORFF00FF,LINETHICK7; MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;取舍线:(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15 *REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+1 0*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14) +5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20)) /210,LINETHICK1,COLORYELLOW;生命线:MA(取舍线,6),LINETHICK1,COLORRED;五日线:MA(CLOSE,5),COLORLIBLUE;水平面:MA(CLOSE,60),COLORGREEN;MA1:=MA(CLOSE,5);MA2:=MA(CLOSE,10);MA3:=MA(CLOSE,30);MA4:=MA(CLOSE,60);WYA001:=(2*CLOSE+HIGH+LOW)/4;WYA002:=EMA(WYA001,4);WYA003:=EMA(WYA002,4);WYA004:=EMA(WYA003,4);WYA柱:=(WYA004-REF(WYA004,1))/REF(WYA004,1)*100;WYA线1:=MA(WYA柱,2);WYA线2:=MA(WYA柱,1);WY分时1线:=MA(CLOSE,1);WY分时21线:=MA(CLOSE,21);DRAWICON(WYA线1>0.25 AND WYA线2>0.25 AND CROSS(WYA线1,WYA线2),HIGH*1.0128,6);DRAWICON(WYA线1<0 AND WYA线2<0 AND CROSS(WYA线1,WYA线2),HIGH*1.0128,6);DRAWICON( CROSS(WY分时21线,WY分时1线),HIGH*1.0128,6) ; DRAWICON(WYA线1<-0.25 AND WYA线2<-0.25 AND CROSS(WYA线2,WYA线1),LOW*0.99,5);DRAWICON(WYA线1>0 AND WYA线2>0 AND CROSS(WYA线2,WYA线1),LOW*0.99,5),COLORYELLOW;DRAWICON(CROSS(WY分时1线,WY分时21线),LOW*0.99,5),COLORYELLOW; {蓝}STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,3,0),COLORFF7700;STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,2.2,0),COLORFF9900;STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,1.5,0),COLORFFBB00;STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,0.5,0),COLORCYAN;{红}STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0),COLOR000099;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.2,0),COLOR0000CC;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1.5,0),COLOR0000FF;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0.5,0),COLORCC66FF;VAR1:=AMOUNT/VOL/100;VAR2:=(2*CLOSE+HIGH+LOW)/4;VAR3:=IF(YEAR>=2099 AND MONTH>2,0,1);VAR4:=LLV(LOW,5); VAR5:=HHV(HIGH,4);散户:=EMA((VAR2-VAR4)/(VAR5-VAR4)*100,4)*VAR3;庄家:=EMA(0.667*REF(散户,1)+0.333*散户,2)*VAR3;DRAWTEXT(CROSS(散户,庄家) AND 散户<30,L-0.05,'←低吸'),COLORLIRED; DRAWTEXT(CROSS(庄家,散户) AND 散户>70,H+0.05,'←高抛'),COLORGREEN; DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA); DRAWICON(FILTER(B1>0,5),L*0.94,10);DRAWTEXT(FILTER(B1>0,5),L*0.94,'M底'),COLORGREEN;{MACD底背离}A2:=BARSLAST(REF(CROSS("KDJ.K","KDJ.D"),1));B2:=REF(C,A2+1)>C AND REF("KDJ.K",A2+1)<"KDJ.K" ANDCROSS("KDJ.K","KDJ.D");DRAWICON(FILTER(B2>0,5),L*0.96,10);DRAWTEXT(FILTER(B2>0,5),L*0.96,'K底'),COLORYELLOW;{KDJ底背离}C1:=BARSLAST(REF(CROSS(DEA,DIFF),1));D1:=REF(C,C1+1)<C AND REF(DIFF,C1+1)>DIFF AND CROSS(DEA,DIFF); DRAWICON(FILTER(D1>0,5),H*1.07,12);DRAWTEXT(FILTER(D1>0,5),H*1.07,'M顶'),COLOR0066FF;{MACD顶背离}C2:=BARSLAST(REF(CROSS("KDJ.D","KDJ.K"),1));D2:=REF(C,C2+1)<C AND REF("KDJ.K",C2+1)>"KDJ.K" ANDCROSS("KDJ.D","KDJ.K");DRAWICON(FILTER(D2>0,5),H*1.05,12);DRAWTEXT(FILTER(D2>0,5),H*1.05,'K顶'),COLORRED;{KDJ顶背离}C3:=BARSLAST(REF(CROSS("RSI.RSI2","RSI.RSI1"),1));D3:=REF(C,C3+1)<C AND REF("RSI.RSI1",C3+1)>"RSI.RSI1" ANDCROSS("RSI.RSI2","RSI.RSI1");DRAWICON(FILTER(D3>0,5),H*1.03,12),;DRAWTEXT(FILTER(D3>0,5),H*1.03,'R顶'),COLORMAGENTA,;{RSI顶背离}; ST:="MCST";QQ:=FILTER(C>ST,22);IF(QQ,L*0.998-0.01,DRAWNULL),POINTDOT,LINETHICK5,COLORRED;IF(QQ,L*0.998-0.04,DRAWNULL),POINTDOT,LINETHICK5,COLOR55FF33;IF(QQ,L*0.998-0.07,DRAWNULL),POINTDOT,LINETHICK5,COLORFF00FF;{RSI底背}A3:=BARSLAST(REF(CROSS("RSI.RSI1","RSI.RSI2"),1));B3:=REF(C,A3+1)>C AND REF("RSI.RSI1",A3+1)<"RSI.RSI1" ANDCROSS("RSI.RSI1","RSI.RSI2");IF(B3,L*0.9978-0.05,DRAWNULL),POINTDOT,COLORCYAN,LINETHICK5;Z1:=REF(H,8)=HHV(H,2*8+1);Y1:=FILTER(Z1,8);X1:=BACKSET(Y1,8+1);W1:=FILTER(X1,8);{高点}R11:=BACKSET(ISLASTBAR,BARSLAST(W1)+1); S11:=R11>REF(R11,1); DRAWLINE(W1,H,S11,H,1),COLORBLUE;Z2:=REF(L,8)=LLV(L,2*8+1);Y2:=FILTER(Z2,8);X2:=BACKSET(Y2,8+1);W2:=FILTER(X2,8);{低点}T11:=BACKSET(ISLASTBAR,BARSLAST(W2)+1); U11:=T11>REF(T11,1); DRAWLINE(W2,L,U11,L,1),COLORBLUE;M:=INTPART(3*8/5);Z12:=REF(H,M)=HHV(H,2*M+1);Y12:=FILTER(Z12,M);X12:=BACKSET(Y12,M+1);W12:=FILTER(X12,M);{高点}R112:=BACKSET(ISLASTBAR,BARSLAST(W12)+1); S112:=R112>REF(R112,1); DRAWLINE(W12,H,S112,H,1),COLORRED;Z22:=REF(L,M)=LLV(L,2*M+1);Y22:=FILTER(Z22,M);X22:=BACKSET(Y22,M+1);W22:=FILTER(X22,M);{低点}T112:=BACKSET(ISLASTBAR,BARSLAST(W22)+1); U112:=T112>REF(T112,1); DRAWLINE(W22,L,U112,L,1),COLORRED;VAR1111:=BACKSET(REF(HIGH,2)=HHV(HIGH,5),3);VAR2222:=CROSS(VAR1111,0.9);VAR3333:=BACKSET(REF(LOW,2)=LLV(LOW,5),3);VAR4444:=CROSS(VAR3333,0.9);压力:= REF(HIGH,BARSLAST(VAR2222));STICKLINE(CLOSE,REF(HIGH,BARSLAST(VAR2222)),REF(HIGH,BARSLAST(VAR2222 )),0.5,1),COLOREA91B5,LINETHICK3;支撑:= REF(LOW,BARSLAST(VAR4444));STICKLINE(CLOSE,REF(LOW,BARSLAST(VAR4444)),REF(LOW,BARSLAST(VAR4444)) ,0.5,1),COLOR00B4FF,LINETHICK3;下档线:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100); RRRSV:=SMA(下档线,3,1);KKK:=SMA(RRRSV,3,1);DDD:=((3 * RRRSV) - (2 * KKK));JJ12:=(((CLOSE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100); RSV24:=SMA(JJ12,3,1);K24:=SMA(RSV24,3,1);W24:=((3 * RSV24) - (2 * K24));压力2:=IF(CROSS(W24,DDD),HIGH,REF(HIGH,BARSLAST(CROSS(W24,DDD)))),COLORFF FFFF;压力位:=IF(ISLASTBAR,压力2,DRAWNULL);STICKLINE(ISLASTBAR ,压力位,压力位,120,0),LINETHICK4,COLORFFFFFF;底部:=LLV(HIGH,30),COLOR00FF00;底部位:=IF(ISLASTBAR,底部,DRAWNULL);STICKLINE(ISLASTBAR ,底部位,底部位,100,0),LINETHICK4,COLOR00FF00;【通达信】优化组合(获利线、动态成本、主力成本、取舍线)-指标公式效果图(文档来源:若水财经社区)。
通达信真正的主升浪主图指标公式
通达信真正的主升浪主图指标公式A:=MAX(MA(C,60),MA(C,120));E:=MAX(MA(C,45),MA(C,90));J:=MAX(MA(C,30),MA(C,60));A1:=DATE <= 13181231;生命线:(MA(C,25)) * A1,LINETHICK2,COLORMAGENTA;牛线1:(MA(C,40)) * A1,COLORCYAN;FL:=MA(CLOSE,17)+ABS(MA(CLOSE,17)-REF(MA(CLOSE,17),1));FS:=MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1); 趋势:IF(MA(CLOSE,17)<FS,FS,MA(CLOSE,17)),COLORWHITE,LI NETHICK2;年线:=EMA(C,250);LA:=趋势-(EMA(C,3)-趋势);反线:EMA((年线-(EMA(C,3)-年线)),5),LINETHICK2,COLORBLUE;IF(趋势=FS,趋势,趋势),COLORWHITE,LINETHICK3;追涨:EMA(COST(81),10),COLORRED,LINETHICK2;牛熊线:EMA(COST(27),120),DOTLINE;做空68: HHV((HIGH+LOW+OPEN+2*CLOSE)/5*2-L,5),COLORRED,DOTLINE;平衡点:LLV((HIGH+LOW+OPEN+2*CLOSE)/5,3),COLORGRAY,DOTLI NE;XG:=CROSS(做空68,牛熊线);DRAWTEXT(XG,L*0.99,'主'),COLOR00FF00;DRAWTEXT(XG,L*0.96,'升'),COLOR00FF00;DRAWTEXT(XG,L*0.93,'浪'),COLOR00FF00;M2:=EMA(C,2);M18:=EMA(C,18);买:=IF(CROSS(M18,M2),5,0*10000),COLORFF00FF,LINETHICK2;RSVV:=(CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100;VARB2:=(RSVV/2+22)*1;Q:=EMA(VOL,13);Y:=EMA(AMOUNT,13);S:=((Y /Q) / 100);X:=(((CLOSE -S) / S) * 100);F:=((X < (0)) AND ZXNH);XQ:=F AND RSVV<VARB2-2;收阴买:=买AND XQ ,STICK,COLORYELLOW,LINETHICK3;DRAWTEXT(收阴买,L*0.950,'收'),COLORYELLOW; DRAWTEXT(收阴买,L*0.920,'阴'),COLORYELLOW; DRAWTEXT(收阴买,L*0.890,'买'),COLORYELLOW;。
【股票指标公式下载】-【通达信】综合主图(中期大底、短期底部)
【通达信】综合主图(中期大底、短期底部)-指标公式源码MA20:=MA(CLOSE,20);MA120:=MA(CLOSE,120);MA30:=MA(CLOSE,37);MAP:=MA(CLOSE,8);AA5:=MA(CLOSE,21);AA10:=MA(CLOSE,8),COLORFF0000;AA12:=MA(CLOSE,12),COLORFF0000;BB10:=((ATAN((AA10 - REF(AA10,1))) * 3.1416) * 10);BB12:=((ATAN((AA12 - REF(AA12,1))) * 3.1416) * 10);MA13:=MA(CLOSE,13);VAR01:=((((OPEN + LOW) + HIGH) + CLOSE) / 4);中期大底:LLV(LOW,30),COLORCDFFBB;短期底部0:=LLV(HIGH,30);短底:=EMA(VAR01,5);支撑:=HHV(短底,60);压力1:HHV(LOW,20),COLORFAABEC;压力:=SMA(LOW,5,1);中线:=MA(CLOSE,3);DRAWTEXT(FILTER(((((HIGH > 支撑) AND (CLOSE < 支撑)) AND ((CLOSE / OPEN) > (0 - 1.06))) AND (CLOSE < OPEN)),5),(HIGH + 0.02),'逃'),COLORFFFF00;中轨道:=(MA(HIGH,15) * 1.05);天:=(MA(LOW,15) * 0.985);人:=(MA(LOW,15) * 0.96);地:=(((HIGH + LOW) + CLOSE) / 3);B1:=HHV(地,(4 * 15));B6:=LLV(地,(4 * 15));B7:=(B1 - B6);B8:=(MA(((地 - B6) / B7),2) * 80);VAR1:=(((CLOSE - LLV(LOW,100)) / (HHV(HIGH,100) - LLV(LOW,100))) * 200); 飞龙顶底线1:=SMA(VAR1,3,1);VAR2:=SMA(飞龙顶底线1,3,1);VAR3:=((3 * 飞龙顶底线1) - (2 * VAR2));VAR4:=LLV(LOW,5);VAR5:=HHV(HIGH,5);VAR6:=(EMA((((CLOSE - VAR4) / (VAR5 - VAR4)) * 100),4) * 2);VAR7:=EMA(((0.667 * REF(VAR6,1)) + (0.333 * VAR6)),2);VAR8:=((3 * VAR6) - (2 * VAR7));VAR9:=(POW(MA(CLOSE,5),2) + MA(CLOSE,5));VARA:=(POW(MA(LOW,5),2) + MA(LOW,5));VARB:=(POW(MA(HIGH,5),2) + MA(HIGH,5));VARC:=(((((VAR9 - LLV(VARA,64)) / (HHV(VARB,64) - LLV(VARA,64))) * 150) + 65) - 10);VARD:=((SMA(VARC,3,1) * 1.5) - 100);VARE:=SMA(VARD,3,1);VARF:=((3 * VARD) - (2 * VARE));VAR10:=(((HIGH + LOW) + (CLOSE * 2)) / 4);VAR11:=EMA(VAR10,13);VAR12:=STD(VAR10,13);VAR13:=(((VAR10 - VAR11) * 100) / VAR12);VAR14:=EMA(VAR13,5);VAR15:=EMA(VAR14,13);VAR16:=((EMA(VAR14,13) + 200) - 100);VAR17:=EMA(VAR16,10);VAR18:=((3 * VAR16) - (2 * VAR17));VAR19:=(((飞龙顶底线1 + VAR6) + VARD) + VAR16);VAR1A:=(((VAR2 + VAR7) + VARE) + VAR17);VAR1B:=(((VAR3 + VAR8) + VARF) + VAR18);VAR1C:=(((HIGH + LOW) + CLOSE) / 3);VAR1D:=((AMOUNT / VOL) / 100);VAR1E:=((SUM(AMOUNT,5) / SUM(VOL,5)) / 100);VAR1F:=((VAR1C - MA(VAR1C,34)) / (0.015 * AVEDEV(VAR1C,34)));VAR21:=((((HIGH + LOW) + CLOSE) + VAR1C) / 4);VAR22:=EMA(VAR21,24);VAR23:=STD(VAR21,24);VAR24:=(((VAR21 - VAR22) / VAR23) * 100);VAR25:=((VAR1C - MA(VAR1C,24)) / (0.015 * AVEDEV(VAR1C,24)));VAR26:=EMA(VAR24,5);VAR27:=((VAR1D - MA(VAR1D,21)) / (0.015 * AVEDEV(VAR1D,21)));VAR28:=((VAR1E - MA(VAR1E,90)) / (0.015 * AVEDEV(VAR1E,90)));VAR29:=(((((((VAR28 + VAR27) + VAR26) + VAR25) + VAR1F) / 5) + 165) / 4); VAR2A:=(((((VAR19 + VAR1A) + (VAR1B * 30)) / 32) / 5) - 15);VAR2B:=(((VAR29 + VAR2A) / 2) / 1.1);VAR2C:=VAR2B;短线:=MA(VAR2C,26);MID:=(短线 + (2 * STD(VAR2C,26)));UPPER:=(短线 - (2 * STD(VAR2C,26)));LOWER:=IF((VAR2C > 短线),短线,VAR2C);XY:=MA(CLOSE,5);M80:=MA(CLOSE,80);短期底部:(LLV(HIGH,30) * 0.93),COLOR0000FF;MA80:=LLV(HIGH,30);短期底部2:=SMA(CLOSE,2,1);趋势:=(MA(LOW,10) * 0.96);趋:=(EMA(OPEN,107) * 0.897);超跌位2:=MA(CLOSE,15);GF:=MA(CLOSE,10);MAN:=(SMA(HIGH,21,2) * 1.05);上1:=(HHV(短底,60) * 0.92);压力2:=(SMA(HIGH,21,2) * 1.035);阻挡线:=(SMA(LOW,21,2) * 0.96);下档线:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100); RSV:=SMA(下档线,3,1);K:=SMA(RSV,3,1);D:=((3 * RSV) - (2 * K));J:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);VAR2P:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);VAR3P:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);VAR4P:=(((J + (2 * VAR2P)) + (3 * VAR3P)) / 6);VAR5P:=MA(VAR4P,3);VAR6P:=(((CLOSE - LLV(LOW,34)) / (HHV(HIGH,34) - LLV(LOW,34))) * 100); RSV12:=SMA(VAR6P,3,1);K12:=SMA(RSV12,3,1);D12:=((3 * RSV12) - (2 * K12));J12:=(((CLOSE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100); RSV24:=SMA(J12,3,1);K24:=SMA(RSV24,3,1);D24:=((3 * RSV24) - (2 * K24));J24:=IF(CROSS(D,D24),LOW,REF(LOW,BARSLAST(CROSS(D,D24))));压力位:IF(CROSS(D24,D),HIGH,REF(HIGH,BARSLAST(CROSS(D24,D)))),COLORFFFFFF ;支撑位:=IF((CLOSE >= MA(CLOSE,20)),80,50);U2L:=IF((CLOSE >= MA(CLOSE,20)),50,20);L2L:=IF(((D < 支撑位) AND (REF(D,1) >= 支撑位)),HHV(REF(HIGH,1),(BARSLAST(((D >= 支撑位) AND (REF(D,1) < 支撑位))) - 1)),REF(HHV(REF(HIGH,1),(BARSLAST(((D >= 支撑位) AND (REF(D,1) < 支撑位))) - 1)),BARSLAST(((D < 支撑位) AND REF(D,1)))));RH1:=IF((HIGH > L2L),LOW,REF(LOW,BARSLAST((HIGH > L2L))));RH4:=IF((HIGH > L2L),D,REF(D,BARSLAST((HIGH > L2L))));RH42:=IF((((HIGH > RH1) AND (D < RH4)) AND (D <D24)),HIGH,REF(HIGH,BARSLAST((((HIGH > RH1) AND (D < RH4)) AND (D <D24)))));RH5:=IF(((D > U2L) AND (REF(D,1) <= U2L)),LLV(REF(LOW,1),(BARSLAST(((D <= U2L) AND (REF(D,1) > U2L))) - 1)),REF(LLV(REF(LOW,1),(BARSLAST(((D <= U2L) AND (REF(D,1) > U2L))) - 1)),BARSLAST(((D > U2L) AND REF(D,1))))); RL1:=IF((LOW < RH5),HIGH,REF(HIGH,BARSLAST((LOW < RH5))));RL4:=IF((LOW < RH5),D,REF(D,BARSLAST((LOW < RH5))));RL42:=IF((((LOW < RL1) AND (D > RL4)) AND (D >D24)),LOW,REF(LOW,BARSLAST((((LOW < RL1) AND (D > RL4)) AND (D > D24))))); 长期底部:LLV(HIGH,30),COLORFF0000;DRAWTEXT(FILTER(((((RL42 = J24) AND (CLOSE > OPEN)) AND (CLOSE > 长期底部)) AND (LOW <= J24)),20),(LOW - 0.12),'底成'),COLOR0EABFF;RL5:=(SMA(HIGH,5,2) * 1.05);上:=(SMA(LOW,5,2) * 0.96);下:=SMA(LOW,2,1);中:=(((((3 * CLOSE) + HIGH) + LOW) + OPEN) / 6);X1:=EMA(中,10);X2:=REF(X1,1);X3:=((REF(HIGH,1) + REF(LOW,1)) / 2);X4:=(MA(CLOSE,21) + (2 * STD(CLOSE,21)));X5:=REF(CLOSE,1);X6:=((SMA(MAX((CLOSE - X5),0),7,1) / SMA(ABS((CLOSE - X5)),7,1)) * 100); X7:=CROSS(79,X6);X8:=FILTER(X7,4);X9:=MA(CLOSE,115);VAR001:=EMA(CLOSE,8);飞龙顶底线:=EMA(VAR001,20);VAR002:=CROSS(VAR001,飞龙顶底线);VAR003:=(VAR001 < MA(CLOSE,20));VAR004:=(((HHV(HIGH,36) - CLOSE) / (HHV(HIGH,36) - LLV(LOW,36))) * 100); VAR005:=SMA(VAR004,5,1);VAR006:=SMA(VAR005,8,1);VAR007:=(CROSS(VAR005,VAR006) AND (VAR006 < 5));VAR008:=((CLOSE > (LLV(CLOSE,60) + (0.3 * LLV(CLOSE,60)))) AND VAR007); VAR009:=IF((CLOSE > 1000),VAR007,VAR008);VAR00F:=CROSS(X1,X2);MA115:=VAR00F;低买:=(VAR002 AND VAR003);黑马起步:=VAR009;DRAWTEXT(X8,(HIGH * 1.03),'出货'),COLOR9000F5;DRAWTEXT((黑马起步 > 0),(HIGH * 1.04),'逃命'),COLORFF0000;逃遁:=(SMA(HIGH,21,2) * 1.05);阻挡:=(SMA(LOW,21,2) * 0.94);DRAWTEXT(FILTER(((((((((CLOSE / OPEN) > 1.03) AND ((超跌位2 - REF(超跌位2,1)) > 0)) AND ((CLOSE - REF(CLOSE,1)) > 0)) AND (HIGH < 压力1)) AND (CLOSE < 压力1)) AND ((压力2 - REF(压力2,1)) > 0)) AND (CLOSE < MAN)),3),LOW,'出击'),COLOR646E69;DRAWTEXT((((((低买 > 0) AND ((X1 - REF(X1,1)) > 0)) AND (HIGH < 压力位)) AND (HIGH < X9)) AND ((X2 - REF(X2,1)) > 0)),LOW,'黑马'),COLOR00FF00;DRAWTEXT((((((CROSS(VAR2C,短线) AND ((CLOSE - REF(HIGH,1)) > 0)) AND ((中线 - REF(中线,1)) > 0)) AND (HIGH <= 压力1)) AND (CLOSE < MA20)) AND (LOW <= 中线)),(LOW - 0.06),'关注'),COLOR00FF00;DRAWTEXT((((CROSS(VAR2C,UPPER) AND (HIGH < 压力1)) AND ((XY -REF(XY,1)) > 0)) AND (HIGH < 支撑)),LOW,'买'),COLORFFFFFF; DRAWTEXT(FILTER(((((((LOW <= 天) AND (CLOSE >= MA20)) AND (HIGH < 压力1)) AND ((天 - REF(天,1)) > 0)) AND (CLOSE < 压力1)) AND ((MA20 - REF(MA20,1)) > 0)),6),(LOW - 0.12),'全仓'),COLOR00FFFF;DRAWTEXT(FILTER((((((MA115 AND (CLOSE < 压力位)) AND ((人 - REF(人,1)) >0)) AND ((X1 - REF(X1,1)) > 0)) AND (HIGH < 上1)) AND ((CLOSE / OPEN) >1.03)),5),LOW,'●买'),COLOR93EE7D;DRAWTEXT(((((LOW <= 上) AND (HIGH >= 短期底部)) AND (CLOSE >= 长期底部)) AND ((CLOSE / OPEN) > 1.03)),(LOW - 0.08),'★抄底'),COLOR0000FF; DRAWTEXT(FILTER((((((LOW <= 阻挡线) AND ((MA20 - REF(MA20,1)) > 0)) AND (OPEN <= 上1)) AND (HIGH > 上1)) AND (CLOSE > 阻挡线)),5),LOW,'涨10%'),COLORFFFFFF;DRAWTEXT(FILTER((((((B8 <= 1) AND (LOW <= 阻挡)) AND (CLOSE > OPEN)) AND (LOW <= 中期大底)) AND (CLOSE >= 长期底部)),3),(LOW - 0.08),'短抄E'),COLORA100FF;DRAWTEXT((((CROSS(D,0) AND (HIGH < 压力位)) AND (VAR5P <= (0 - 7))) AND (CLOSE < XY)),(LOW - 0.11),'半仓'),COLORFFFF00;DRAWTEXT(FILTER((((CROSS(趋势,趋) AND (HIGH < M80)) AND (HIGH < 压力1)) AND LLV(LOW,0)),10),LOW,'果断买'),COLOR668800;DRAWTEXT(FILTER(((CROSS(中线,人) AND (LOW <= 人)) AND (CLOSE >= 人)),4),(LOW - 0.06),'买'),COLOR00FF00;DRAWTEXT(((CROSS(阻挡,长期底部) AND (BB10 > 1)) AND (HIGH < 支撑)),LOW,'出击'),COLORA04F00;DRAWTEXT(FILTER((((((((MA20 - REF(MA20,1)) > 0) AND (HIGH < 支撑)) AND ((AA10 - REF(AA10,1)) > 0)) AND (HIGH < 压力1)) AND (VOL >= REF(VOL,1))) AND CROSS(CLOSE,MA20)),57),LOW,'突破生命线'),COLOR0000FF; DRAWTEXT(FILTER(((((LOW <= MA80) AND (CLOSE > MA80)) AND (CLOSE > OPEN)) AND (短期底部2 <= MA80)),8),LOW,'底'),COLORFFFF00;DRAWTEXT(((CROSS(MA20,压力位) AND (LOW <= MA20)) AND ((MA20 -REF(MA20,1)) > 0.02)),(LOW - 0.03),'●绝佳买点'),COLORAFA0AF;DRAWTEXT((((((((CROSS(CLOSE,MA20) AND (HIGH < 压力位)) AND (OPEN < MA20)) AND (HIGH < 支撑)) AND ((MAN - REF(MAN,1)) > 0)) AND ((X1 - REF(X1,1)) > 0)) AND (D < 63)) AND ((MA20 - REF(MA20,1)) > 0)),(LOW - 0.05),'●大牛浮水'),COLOR73777F;DRAWTEXT(CROSS(中期大底,短期底部),(LOW - 0.02),'短线买');短趋势线:MA(CLOSE,13),COLORRED,LINETHICK3;中趋势线1:=MA(CLOSE,33),LINETHICK1;中趋势线:MA(CLOSE,55),LINETHICK1,COLORGRAY;涨:IF(短趋势线>REF(短趋势线,1),短趋势线,DRAWNULL),COLORRED,LINETHICK3;平:IF(短趋势线=REF(短趋势线,1),短趋势线,DRAWNULL),COLOR00FFFF,LINETHICK3;跌:IF(短趋势线<REF(短趋势线,1),短趋势线,DRAWNULL),COLORGREEN,LINETHICK3;STICKLINE(CROSS(MA(CLOSE,13),C) AND MA(CLOSE,13)>REF(MA(CLOSE,13) ,1) AND V<REF(V,1) ANDMA(CLOSE,13)>MA(CLOSE,55) ,L,L*0.98,3,0),COLORYELLOW;DRAWTEXT(CROSS(MA(CLOSE,13),C) AND INDEXC>MA(INDEXC,13) ANDMA(CLOSE,13)>REF(MA(CLOSE,13) ,1) AND V<REF(V,1) ANDMA(CLOSE,13)>MA(CLOSE,55) ,L*0.95,'买'),COLORRED,LINETHICK2; DRAWTEXT(CROSS(CLOSE,(((C-REF(MA(CLOSE,20),1))/20+MA(CLOSE,13))*1.20)) AND MA(CLOSE,13)>REF(MA(CLOSE,13) ,1),H*1.04,'减仓'),COLORGREEN,LINETHICK2;STICKLINE(CROSS(CLOSE,(((C-REF(MA(CLOSE,20),1))/20+MA(CLOSE,13))*1.20 )) ANDMA(CLOSE,13)>REF(MA(CLOSE,13) ,1),H,H*1.02,3,0),COLORYELLOW,LINETHICK 2;VAR011:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA( CLOSE,24)*100+(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100)/3;DRAWTEXT(VAR011>9 AND FILTER(VAR011<REF(VAR011,1),5),H*1.06,'洗盘'),COLORGREEN,LINETHICK2;DRAWTEXT(VAR011>20 AND FILTER(VAR011<REF(VAR011,1),5),H*1.02,'卖出'),COLORYELLOW,LINETHICK2;{DRAWTEXT((VAR011>9 AND FILTER(VAR011<REF(VAR011,1),5)) AND (VAR011>20 AND FILTER(VAR011<REF(VAR011,1),5)),H*1,'一定清仓'),COLORBLUE,LINETHICK2;}VAR012:=HHV(VAR011>20,10);DRAWTEXT(FILTER(VAR011<-9 AND VAR011>REF(VAR011,1),18),L*0.95,'反弹'),COLORRED,LINETHICK2;DRAWTEXT(VAR011<-20 AND INDEXC<MA(INDEXC,13) AND FILTER(VAR011>REF(VAR011,1),5),L*0.93,'抄底'),COLORYELLOW,LINETHICK2;DRAWTEXT(VAR012 ANDCROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20)),H*1.1, '危险'),COLORYELLOW;VAR013:=IF(MA(CLOSE,13)>REF(MA(CLOSE,13),1),MA(CLOSE,13),DRAWNULL); DRAWTEXT((IF(CLOSE>MA(CLOSE,13) ANDOPEN<CLOSE,-0.1,0))AND((C-REF(C,1))/(REF(C,1))>0.061)AND(MA(CLOSE,13)=VAR013) AND (MA(CLOSE,1),MA(CLOSE,13)) AND(VOL>REF(HHV(VOL,3),1)*2),L*0.98,'主力介入'),COLORMAGENTA;X:=EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),68);Y:=EMA(CLOSE,10);DRAWTEXT(CROSS(X,Y),(LOW * 0.96),'回买'),LINETHICK2,COLOR00FF00; 【通达信】综合主图(中期大底、短期底部)-指标公式效果图(文档来源:若水财经社区)。
通达信 量化暴涨 指标公式
通达信量化暴涨指标公式摘要:1.通达信简介2.量化暴涨指标公式的概念与组成3.通达信量化暴涨指标公式的应用与实践4.通达信量化暴涨指标公式的优缺点分析5.结语正文:一、通达信简介通达信是一款深受广大投资者喜爱的股票分析软件。
它不仅能够提供实时的股票行情信息,还支持多种股票指标的计算和显示。
投资者可以通过通达信对股票进行全面的技术分析,为自己的投资决策提供有力的支持。
二、量化暴涨指标公式的概念与组成量化暴涨指标公式是通达信中的一种技术指标,主要用于预测股票价格的短期波动。
它主要由以下几个部分组成:1.移动平均线(MA):用于衡量股价在一段时间内的平均走势,通常用于预测股价的短期趋势。
2.相对强弱指数(RSI):用于衡量股价在一段时间内的超买或超卖程度,通常用于预测股价的短期转折点。
3.成交量:用于衡量股票的交易活跃程度,通常与股价的短期波动有密切关系。
三、通达信量化暴涨指标公式的应用与实践在实际应用中,投资者可以结合多种技术指标,如移动平均线、相对强弱指数和成交量等,来预测股票价格的短期波动。
通达信量化暴涨指标公式的具体应用步骤如下:1.选择合适的技术指标:投资者可以根据自己的投资风格和经验,选择适合自己的技术指标,如移动平均线、相对强弱指数和成交量等。
2.设置技术指标参数:投资者可以根据自己的投资目标和市场情况,设置合适的技术指标参数,如移动平均线的周期、相对强弱指数的计算周期等。
3.绘制技术指标图:投资者可以在通达信中绘制技术指标图,以便更直观地观察股票价格的短期波动。
4.分析技术指标图:投资者可以根据技术指标图的走势,预测股票价格的短期波动,并据此制定相应的投资策略。
四、通达信量化暴涨指标公式的优缺点分析通达信量化暴涨指标公式的优点在于,它可以帮助投资者更准确地预测股票价格的短期波动,从而提高投资者的投资收益。
然而,它也存在一定的缺点,如下:1.预测结果受市场情况影响较大:技术指标的预测结果受市场情况影响较大,因此在市场行情不稳定时,预测结果可能会出现较大的误差。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
【通达信】合成主图(暴涨)-指标公式源码
N:(MA(L,1))*0.97;
M:(MA(L,3)*0.97)*0.97;
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)));
STICKLINE((((((((((((VAR2 OR VAR3) OR VAR4) OR VAR5) OR VAR6) OR VAR7) OR VAR8) OR VAR9) OR VARA) OR VARB) OR VARC) OR
VARD),CLOSE,REF(CLOSE,1),3,1),COLORRED;
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)));
STICKLINE((((((((((((VARE OR VARF) OR VAR10) OR VAR11) OR VAR12) OR VAR13) OR VAR14) OR VAR15) OR VAR16) OR VAR17) OR VAR18) OR
VAR19),CLOSE,REF(CLOSE,1),3,1),COLORGREEN;
VAR1A:=(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(VAR1A,REF(CLOSE,1),REF(CLOSE,2),5,0)COLORYELLOW,LINETHICK2; STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),3,0)COLORRED;
AA:=(REF((((((((((((VAR2 OR VAR3) OR VAR4) OR VAR5) OR VAR6) OR VAR7) OR VAR8) OR VAR9) OR VARA) OR VARB) OR VARC) OR VARD),1) AND VARE); STICKLINE(AA,REF(CLOSE,1),REF(CLOSE,2),5,1)COLORYELLOW;
STICKLINE(AA,REF(CLOSE,1),REF(CLOSE,2),3,0)COLORBLUE;{蓝压顶}
HH2:=MA(CLOSE,14);
HH3:=MEMA(CLOSE,4);
AA1:=AMOUNT/VOL;
BB1:=L<AA1*0.9;
CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;
DD1:=L<MA(C,5)*0.921;
EE1:=VOL<MA(V,5)*1.5;
FF1:=BB1 AND CC1 AND DD1 AND EE1;
DRAWTEXT(FF1,L*0.99,'涨'),COLORRED;
ZF:=(C/REF(C,1)-1)*100;
AAA:=SUM(ZF,3);
暴涨:=IF(AAA>=18,18,0);
DRAWTEXT(COUNT(AAA<-6,3)=2 AND CROSS(AAA,-6),L,'暴'),COLORWHITE;
【通达信】合成主图(暴涨)-指标公式效果图
(文档来源:若水财经社区)。