【股票指标公式】-【通达信】黑马通道(副图)
【炒股必看】通达信机构抓黑马主图指标公式
通达信机构抓黑马主图指标公式V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);V2:=(1-7/100)*(DMA(CLOSE,V1));V3:=(1+7/100)*(DMA(CLOSE,V1));V5:=MA((LOW+HIGH+CLOSE)/3,5);支撑:RE FDATE(V2,DATE),POINTDOT,LINETHICK3,COLORCC66FF;阻力:REFDATE(V3,DATE),POINTDOT,LINETHICK3,COLORGREEN;VAR1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);VAR2:=REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR3:=REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR4:=REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR5:=REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR6:=REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR7:=REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR8:=REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR9:=REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VARA:=REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VARB:=REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VARC:=REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VARD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);VARE:=REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VARF:=REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR10:=REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR11:=REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR12:=REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR13:=REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR14:=REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR15:=REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR16:=REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR17:=REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR18:=REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR19:=REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 ORVAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1) AND VAR1;STICKLINE(VAR19,L,L*0.98,3,0),COLORYELLOW;VAR1A:=REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,1) AND VARD;STICKLINE(VAR1A,H*1.01,H,3,0),COLOR00FF00{98FD};MA3:MA(C,3);MA5:MA(C,5),COLORWHITE;MA10:=MA(C,10),NODRAW;MA30:MA(C,34),NODRAW;五日乖离率:=(C-MA5)/MA5*100;BB5:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416;IF(BB5>30 AND MA5>REF(MA5,1), MA5,DRAWNULL),LINETHICK1,COLORRED;BB10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;IF(BB5<0 AND MA5<REF(MA5,1), MA5,DRAWNULL),LINETHICK1,COLORGREEN; DD5:=MA5<REF(MA5,1);IF(DD5,MA5,DRAWNULL),COLOR00FF00;X:=(3*C+L+O+H)/6;多空线:(20*X+19*REF(X,1)+18*REF(X,2)+17*REF(X,3)+16*REF(X,4)+15*REF(X,5)+14*REF( X,6)+13*REF(X,7)+12*REF(X,8)+11*REF(X,9)+10*REF(X,10)+9*REF(X,11)+8*REF(X,12)+7*REF(X,13)+6*REF(X,14)+5*REF(X,15)+4*REF(X,16)+3*REF(X,17)+2*REF(X,18)+ REF(X,20))/210,COLORFF00FF,LINETHICK1;{用法:黄托底买进,绿压顶买出。
通达信指标公式源码 黑马王子 副图源码
黑马王子(源码、副图、附图)一切看图,一目了然!黑马王子源码RSV1:=(CLOSE-LLV(LOW,28))/(HHV(HIGH,28)-LLV(LOW,28))*100;RSV2:=(CLOSE-LLV(LOW,39))/(HHV(HIGH,39)-LLV(LOW,39))*100;短跳:SMA(SMA(RSV1,3,1),3,1)+3*STD(CLOSE,28),COLOR00FF00;中跳:SMA(RSV2,6,1)+2*STD(CLOSE,39),COLORRED;RSV3:=(CLOSE-LLV(LOW,89))/(HHV(HIGH,89)-LLV(LOW,89))*100;长跳:SMA(RSV3,6,1),COLORYELLOW;探试底:STICKLINE(中跳<17,中跳,17,6,0),COLORF00FF0;黄金坑:STICKLINE(短跳<28 AND 中跳<28 AND 长跳<28,MAX(长跳,MAX(短跳,中跳)),28,3,0),COLOR00CCFF;探顶:STICKLINE(中跳>80,80,中跳,3,0),COLORFFF000;DRAWICON(CROSS(长跳,17),中跳,1);DRAWTEXT(LONGCROSS(中跳,28,17),28,'追涨');DRAWTEXT(CROSS(短跳,长跳)AND 长跳<18 AND 长跳>REF(长跳,1)OR CROSS(长跳,6),28,'跑道起跳');短中长粘合:DRAWTEXT(ABS(中跳-长跳)<2 AND 中跳>REF(中跳,1),中跳,'**'),COLORBLUE;中跳1:=-100*(HHV(HIGH,50)-CLOSE)/(HHV(HIGH,50)-LLV(LOW,50));底:DRAWTEXT(CROSS(中跳1,-90) AND (长跳<中跳AND 长跳>REF(长跳,1)OR 短跳<28 AND 中跳<28 AND 长跳<28),长跳,'底'),COLORFF00FF;IF(COUNT(CROSS(中跳1,-90),12)=3,40,6);。
【通达信】黑马王子成交量副图公式加用法
【通达信】黑马王子成交量副图公式加用法{VOL_量柱}{看图说明:黄色为倍量柱,白色为并肩平量柱,紫色为缩倍柱,绿色为10天低量柱,蓝色为50天低量柱,灰色为百日低量柱,高量柱容易看无标记,!为长阴短柱, 内有红实线为假阴柱。
红色箭头(的前三天)为黄金柱。
次黄金柱难判,不标记}在大盘或个股上,我们都可以通过黄金柱,黄金线,黄金梯,黄金仓,黄金劫,和黄金道六大层面复合,相互配对,求证,以便找到最佳买卖点。
那如何找到黄金柱,再找到黄金线,黄金梯,黄金劫,黄金仓,黄金道呢?一:首先要找到黄金柱1、倍量柱+倍量柱=黄金柱----(单独倍量柱的出现不是最明显的,但却是最重要的,后期走势体现了主庄的主动行为,有预谋的,攻击性多余试探性。
此组合后的黄金柱在阶段性底部较好,往往是主庄控盘比较好,急于拉升的一种体现,可做防守线。
如连续三根倍量柱时最好是持币观望,不宜仓促进入)2、倍量柱+缩量柱=黄金柱----(此组合后的黄金柱关键在于缩量柱的优劣,缩量柱最好是三根左右价涨量却要缩的越大越好,其三日收盘价必须保持在倍量柱所对应的K线的最低价上方,且量柱是步步为阳的,K线与量柱形成一个喇叭形为真黄金柱,可做防守线。
)3、低量柱+梯量柱=黄金柱---(如在低量柱杀入后,出现了高量柱,形成明显的梯量柱拉升,这是因为上升的力度太大,速度太急,主力很可能制造打劫,所以在高量柱出现腰即使退出应是最明智的)4、低量柱+倍量柱=黄金柱---(凡是有低量柱的位置,肯定是回升的始点,是培育黄金柱的土壤。
具有休克机制,收集机制,测幅机制,又称停战柱,反攻柱,庄家的成本底线。
此组合是主庄采用|休克疗法探底之后,心中有数的主动拉升行为,是底部与底气相结合的标志,其后市必然大涨。
其单低量柱后期走势多数向上,少数向下。
可做攻防线)5、高量柱+缩量柱=黄金柱---(同上2,另:单独高量柱是最明显的,可能不是最重要的,后期走势多数向下,少数向上。
如有连续两根超级倍量柱递增的高量柱时,此为“发烧柱|”,是主力极力出货的标志。
通达信黑马决策辅助主图指标公式
通达信黑马决策辅助主图指标公式黄金柱B:=V/REF(V,1)>=2.0;K1B:=SUMBARS(黄金柱B,1) ;K2B:=SUMBARS(黄金柱B,2);K3B:=SUMBARS(黄金柱B,3);K4B:=SUMBARS(黄金柱B,4);K5B:=SUMBARS(黄金柱B,5);K6B:=SUMBARS(黄金柱B,6);K7B:=SUMBARS(黄金柱B,7);K8B:=SUMBARS(黄金柱B,8);K9B:=SUMBARS(黄金柱B,9);K10B:=SUMBARS(黄金柱B,10);AABB:STICKLINE(K1B,REFV(L,K1B-1)*1.002,REFV(L,K1B-1),2,0),COLORYELLOW;T60B:=V=HHV(V,60);T100B:=V=HHV(V,100);T2B:=V/REF(VOL,1)>=3;T3B:=REF(C,1)/REF( O,1)<3;MA5:=MA(CLOSE,M1),LINETHICK1,COLORYELLOW;MA10:=MA(CLOSE,M2),LINETHICK1,COLORWHITE;MA20:=MA(CLOSE,M3),LINETHICK1,COLORYELLOW;稳健操盘线:MA(CLOSE,M4),POINTDOT,COLORRED;MA60:=MA(CLOSE,M5),POINTDOT,LINETHICK1,COLORGREE N;TR1:=SMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),N1,1);HD:=HIGH-REF(HIGH,1);LD:=REF(LOW,1)-LOW;DMP:=SMA(IF(HD>0 AND HD>LD,HD,0),N1,1);DMM:=SMA(IF(LD>0 AND LD>HD,LD,0),N1,1);PDI:=DMP*100/TR1,COLORRED;MDI:=DMM*100/TR1,COLORGREEN;ADX:=SMA(ABS(MDI-PDI)/(MDI+PDI)*100,N1,1),COLORYELLOW;阶段线1:=16;阶段线2:=30;DMI1:=PDI>MDI AND ADX>=30;DMI2:=PDI<MDI AND ADX>=30;DMI3:=PDI>MDI AND 16<ADX<30;DMI4:=PDI<MDI AND 16<ADX<30;DMI5:=ADX<=16 AND (PDI>MDI OR PDI<MDI);DMI6:=ADX>60;ZT:=C/REF(C,1)>1.097;XH:=FILTER(ZT,13);BH:=BARSLAST(ZT);CZ:=REF(H,BH)-REF(L,BH);STICKLINE(ZT,O,C,3,0),COLORRED;DRAWTEXT(ZT,L*0.98,' '),COLORF00FF0;VARZT:=BARSLAST(C/REF(C,1)>1.097);{涨跌停显示}涨停:=IF((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(O,1)),1,0);STICKLINE(涨停,O,C,3,0),COLORRED;ZDF:=(C-REF(C,1))/REF(C,1)*100;STICKLINE(ZDF<-9.9,O,C,3,0),COLORGREEN;VAR111:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));买:=IF(CLOSE>OPEN,VAR111*(HIGH-LOW),IF(CLOSE<OPEN,VAR111*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),COLORRED;卖:=IF(CLOSE>OPEN,0-VAR111*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR111*(HIGH-LOW),0-VOL/2)),COLOR00FF00 ;买卖差:=(买+卖);买卖比:=ABS(买/卖);水平面:=MA(CLOSE,89),COLORFF00FF;BBI:=(MA(CLOSE,M1)+MA(CLOSE,M2)+MA(CLOSE,M3)+MA (CLOSE,M4))/4;MA1:=MA(CLOSE,24),COLOR00E300,LINETHICK1;V2:=IF(CURRBARSCOUNT=1,VOL*240/FROMOPEN/REF(VOL ,1)-1,VOL/REF(VOL,1)-1);MA13:=MA(CLOSE,13);X1:=(C+L+H)/3;BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;EMA8:=EMA(C,8);A1:=MIN(O,C);B1:=ABS(O-C);T1:=FILTER(BB13>1 AND EMA(X1,13)>REF(EMA(X1,8),1),10);LC:=REF(CLOSE,1);RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);T2:=COUNT(CROSS(BBI,3),3)=1 AND CROSS(C,BBI);T12:=V2>=1;T0:=BARSLAST(T12);L1:=REF(L,T0);H1:=REF(H,T0);L11:=MIN(REF(L,1),L);L10:=MIN(L11,REF(L,2));L21:=MAX(REF(L,1),L);L20:=MAX(L21,REF(L,2));T111:=(REF(V2>=1,3) OR REF(V2>=1,2) OR REF(V2>=1,1)) AND((L10>L1 AND L20>H1) OR (L11>L1 AND L21>H1));T11:=T111 AND REF(T111,1)=0;V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);V2X:=(1-7/100)*(DMA(CLOSE,V1));V3:=(1+7/100)*(DMA(CLOSE,V1));V5:=MA((LOW+HIGH+CLOSE)/3,5);A1XX:=CROSS(MA(C,1),MA(C,3));XG:=A1XX;VAR1:=EMA(EMA(CLOSE,13),13);控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;A10:=CROSS(控盘,0);无庄控盘:=IF(控盘<0,控盘,0),COLORGRAY,NODRAW;短线:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*20,LINETHICK0,COLORWHITE;中线:=(CLOSE-MA(CLOSE,4))/MA(CLOSE,4)*20,LINETHICK0,COLORYELLOW;红柱:=SMA(短线,3,1),LINETHICK0,COLORFF00FF;绿柱:=SMA(中线,3,1),COLORSTICK,COLOR00FF00;开始控盘:=IF(A10,5,0),LINETHICK1,COLORWHITE;有庄控盘:=IF(控盘>REF(控盘,1) AND 控盘>0,控盘,0),COLORRED,NODRAW;VAR2:=100*WINNER(CLOSE*0.95);高度控盘:=IF(VAR2>50 AND COST(85)<CLOSE AND 控盘>0,控盘,0),COLORFF00FF,NODRAW;主力出货:=IF(控盘<REF(控盘,1) AND 控盘>0,控盘,0),COLOR00FF00,NODRAW;DIF1:=EMA(DCLOSE,12)-EMA(DCLOSE,26);DEA1:=EMA(DIF1,9);{柱状线}AAA1:=(DIF1-DEA1)*2*60;买入线:=10;绝密:=AAA1-REF(AAA1,1),COLORMAGENTA;金叉:=CROSS(EMA(C,1),EMA(C,3));AAA上:=IF(AAA1>REF(AAA1,1),AAA1,DRAWNULL);AAA下:=IF(AAA1<REF(AAA1,1),AAA1,DRAWNULL);选股王:=CROSS(绝密,买入线);突破买点:=有庄控盘 AND 选股王;XXBB:= EMA((CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*4,5)*100;抄牛底:=REF(XXBB,1)<50 AND XXBB-REF(XXBB,1)>25;蓝宝石:=抄牛底 AND 金叉;追拉升:=REF(XXBB,1)>50 AND XXBB-REF(XXBB,1)>40;回踩买点:=主力出货 AND 选股王;DRAWTEXT(回踩买点,L*0.995,'↖牛回踩'),COLORYELLOW;DRAWICON(回踩买点,L*0.985,26);抄底王:=金叉 AND 选股王,COLORGRAY;DRAWTEXT(抄底王,L*0.985,'↖抄底王'),COLORWHITE;DRAWICON(抄底王,L*0.975,27);VV1:=(C*2+H+L)/4*10;VV2:=EMA(VV1,13)-EMA(VV1,34);VV3:=EMA(VV2,5); V4:=2*(VV2-VV3)*5.5;主力撤:=IF(V4<=0,V4,0),COLORGREEN;主力进:=IF(V4>=0,V4,0);VV5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;V6:=EMA(3*VV5-2*SMA(VV5,18,1),5);V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;V8:=(INDEXC*2+INDEXH+INDEXL)/4;V9:=EMA(V8,13)-EMA(V8,34);VA:=EMA(V9,3);VB:=(V9-VA)/2;大盘资金进场:=IF(VB>=0,VB,0),COLORYELLOW;大盘资金撤走:=IF(VB<=0,VB,0),COLORRED;V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);趋势线:=EMA(V11,3);V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;准备现金:=STICKLINE(趋势线<=13,0,20,5,0),COLORCC9900;AA:=(趋势线<=13) AND FILTER((趋势线<=13),15);{DRAWTEXT (AA,30,'准备现金'),COLORCC9900;}买入股票:=STICKLINE(趋势线<=13 AND V12>13,0,50,5,0),COLOR0099FF;BB:=(趋势线<=13 AND V12>13) AND FILTER((趋势线<=13 AND V12>13),10) ;{DRAWTEXT (BB,60,'买入股票'),COLOR0099FF;}红宝石:=BB AND 金叉;MTM:=C-REF(C,1);DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);YXF:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0);加仓:=IF(FILTER(YXF=1,5),1,0),STICK,COLORFFFFFF,LINETHICK3;A51:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1);FY:=EMA(A51,5);A54:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;QS:=(MA(3*SMA(A54,6,1)-2*SMA(SMA(A54,5,1),5,1),2));绿宝石:=加仓 AND 金叉;{DRAWTEXT (绿宝石,L*0.945,'绿宝石'),COLORFF00FF;}LC20:=REF(CLOSE,1);RSI20:=SMA(MAX(CLOSE-LC20,0),4.1,1)/SMA(ABS(CLOSE-LC20),4.1,1)*100;底线买阳:=CROSS(RSI20,11)*1,COLORRED;黄宝石:=底线买阳 AND 金叉;{DRAWTEXT (黄宝石,L*0.935,'黄宝石'),COLOR0099FF;}控盘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;{股价与均线偏离买卖条件}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,L*0.993,23);}{追买}; {DRAWICON(BTJ811,L*0.980,5);}{DRAWICON(绿宝石,L*0.988,27);DRAWICON(黄宝石,L*0.986,26);}{DRAWICON(蓝宝石,L*0.982,24);DRAWICON(红宝石,L*0.980,25);}DRAWICON(追拉升,L*0.985,23);{DRAWICON(突破买点,L*0.985,21);}VAR1A:=EMA(EMA(CLOSE,9),9);专用:=(VAR1A-REF(VAR1A,1))/REF(VAR1A,1)*1000; VAR2A:=100*WINNER(CLOSE*0.95);高手专用:=VAR2A>50 AND COST(85)<CLOSE AND 专用>0;CV:=CLOSE;BBIBOLL:=(MA(CV,3)+MA(CV,6)+MA(CV,12)+MA(CV,24))/4;UPR:=BBIBOLL+6*STD(BBIBOLL,11);DWN:=BBIBOLL-6*STD(BBIBOLL,11);QJJ:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));XVL:=(IF(CLOSE>OPEN,QJJ*(HIGH-LOW),IF(CLOSE<OPEN,QJJ*(HIGH-OPEN+CLOSE-LOW),VOL/2))+IF(CLOSE>OPEN,0-QJJ*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,0-QJJ*(HIGH-LOW),0-VOL/2)));HSL:=(XVL/20)/1.15;强势股:=((HSL*0.55+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22))>1500;绝杀前十:=高手专用 AND 高度控盘,COLORFF00FF;{机构增仓}JA1:=(DVOL/C)/2;A2:=SUM(IF(JA1>100 AND CLOSE>REF(CLOSE,1),JA1,0),0);A3:=SUM(IF(JA1>100 AND CLOSE<REF(CLOSE,1),JA1,0),0);A4:=SUM(IF(JA1<100 AND CLOSE>REF(CLOSE,1),JA1,0),0);A5:=SUM(IF(JA1<100 AND CLOSE<REF(CLOSE,1),JA1,0),0);A6:=A2+A3+A4+A5;机买:=(A2/A6)*100;机卖:=(A3/A6)*100;主力差:=机买-机卖;机构加仓:=(主力差>=REF(主力差,1)+1.5)*50 AND 机买>机卖;机构抄底:=金叉 AND 机构加仓;DRAWTEXT (机构抄底,L*0.97,'↖机构入驻'),COLORCYAN;机构追买:=机构加仓 AND 追拉升;DRAWTEXT (机构追买,L*0.97,'↖机构吃单'),COLORFF00FF;{猎庄}LVAR2:=(CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100;LVAR3:=SMA(LVAR2,20,1);LVAR4:=SMA(LVAR3,15,1);猎庄:=LVAR3-LVAR4;多空分界:=1;抓庄:=CROSS(猎庄,多空分界) AND 猎庄>=REF(MA(猎庄,多空分界),1);跟庄抄底:=金叉 AND 抓庄;{DRAWTEXT (跟庄抄底,L*0.97,'跟庄'),COLORCYAN;}{稳健追涨}WMA1:=EMA(CLOSE,5);WMA2:=EMA(CLOSE,10);WMA3:=EMA(CLOSE,20);WMA4:=EMA(CLOSE,30);WMA5:=EMA(CLOSE,60);WVAR1:=MAX(WMA1,MAX(WMA2,MAX(WMA3,WMA4)));WVAR2:=MIN(WMA1,MIN(WMA2,MIN(WMA3,WMA4)));WVAR3:=(WVAR1-WVAR2)/WVAR2*1000;WVAR4:=WMA1>REF(WMA1,1) AND WMA2>REF(WMA2,1) AND WMA3>REF(WMA3,1) AND WMA4>REF(WMA4,1) AND WMA5>REF(WMA5,1);WVAR5:=WVAR3<5;WVAR6:=COUNT(WVAR5=1,5)>0;WVAR7:=CROSS(WMA1,WMA4);稳健追涨:=WVAR4 AND WVAR6 AND WVAR7;稳健抄底:=金叉 AND 稳健追涨;{DRAWTEXT (稳健抄底,L*0.97,'稳健'),COLORCYAN;}{均线粘合}JDIF:=EMA(CLOSE,12)-EMA(CLOSE,26);JDEA:=EMA(JDIF,9);JMACD:=(JDIF-JDEA)*2;JBOLL:=MA(CLOSE,20);JUPPER:=JBOLL+2*STD(CLOSE,20);JLOWER:=JBOLL-2*STD(CLOSE,20);JK1:=CLOSE>OPEN ;JK2:=VOL>=2*REF(VOL,1);JK3:=CROSS(JDIF,JDEA) AND JDIF<=0 ;JK4:=CROSS(CLOSE,JBOLL);均线粘合:=JK1 AND JK2 AND JK3 AND JK4 ;机构拉升:=机构加仓 AND 均线粘合;DRAWTEXT (机构拉升,L*0.97,'↖机构拉升'),COLORFF00FF;VARC:=SMA(MAX(C-REF(C,1),0),6,1)/SMA(ABS(C-REF(C,1)),6,1)*100;DRAWICON(CROSS(82,VARC),H*1.02,2);{DRAWTEXT(CROSS(82,VARC),2,'|逃庄'),COLORWHITE ;}VAR34:=(INDEXC-REF(INDEXC, 1))/REF(INDEXC, 1);VAR35:=(CLOSE-REF(CLOSE, 1))/REF(CLOSE, 1);VAR36:=IF(VAR34>0.010, 0.900, 1) AND IF(VAR34>(-0.025), 1, 1.200);VAR37:=VAR36*(VAR35-VAR34)*100;VAR38:=SUM(VAR37, 10);VAR310:=VAR38>20;VAR326:=IF(CLOSE AND MA(VOL, 5)/240 AND CLOSE>REF(CLOSE, 1)*1.0 AND CLOSE,1,0);{VAR38>VAR39;} VAR327:=IF(CLOSE/REF(CLOSE, 1)>1.050 AND VOL/CAPITAL*100<10 AND CLOSE<17 AND HIGH/CLOSE<1.010 AND VAR326>0, 1, 0);{STICKLINE(VAR327=1,0,1,2,0),COLORYELLOW;}DRAWICON(VAR327=1,L*0.95,1);{DRAWTEXT(VAR327=1,-1,'|杀庄'),COLORWHITE;}HZ:=EMA(CLOSE,13);短波:=EMA(HZ,1);中波:=EMA(HZ,26);均线148天:=EMA(C,148);成本:=SUM(AMOUNT,0)/SUM(VOL,0)/100;HZ2:=EMA(HZ,8);拉升一号:=CROSS(短波,HZ2);DRAWICON(拉升一号,L*0.99,11);DRAWTEXT (拉升一号,L*0.97,'↖黑马拉升'),COLORFF00FF;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)+10*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, COLORRED,LINETHICK2;绿线下熊股出:MA(红线上牛股起,6),COLORGREEN,LINETHICK2;涨停紫色:STICKLINE((C-REF(C,1))/REF(C,1)>0.095,C,O,3.05,0),COLORMAGENTA;。
通达信交易决策公式新黑马必抓副图 重要牛股指标
公式源码:VARX:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;VARX1:=SMA(VARX,3,1);VARX2:=SMA(VARX1,3,1);VARX3:=REF(LOW,1);VARX4:=SMA(ABS(LOW-VARX3),3,1)/SMA(MAX(LOW-VARX3,0),3,1)*100; VARX5:=EMA(IF(CLOSE*1.2,VARX4*10,VARX4/10),3);VARX6:=LLV(LOW,30);VARX7:=HHV(VARX5,30);VARX8:=IF(LLV(LOW,58),1,0);A9:= DATETODAY(DATE);DS:=IF(A9<9966,1,DRAWNULL);CMSHORT:=DMA((3*HIGH+LOW+OPEN+2*CLOSE)/7,VOL/(SUM(AMOUNT,8)/(AMOUNT/VOL/100)/100));CMMID:=DMA((3*HIGH+LOW+OPEN+2*CLOSE)/7,VOL/(SUM(AMOUNT,13) /(AMOUNT/VOL/100)/100));CMLONG:=DMA((3*HIGH+LOW+OPEN+2*CLOSE)/7,VOL/(SUM(AMOUNT,2 0)/(AMOUNT/VOL/100)/100));DIF:=EMA(EMA(CLOSE,18)-EMA(CLOSE,34), 11);XSR:=1150501;XS:=IF(DATE<XSR,1,DRAWNULL);MACD:=EMA(EMA(DIF,11),11),COLOR58FF58;DEF:=2*(DIF-MACD),COLORFFFF00,LINETHICK0;MMS:=((100)*(EMA(EMA(MTM,6),6)))/(EMA(EMA(ABS(MTM),6),6)); MMM:=((100)*(EMA(EMA(MTM,12),12)))/(EMA(EMA(ABS(MTM),12),12)); MML:=((100)*(EMA(EMA(MTM,26),26)))/(EMA(EMA(ABS(MTM),26),26)); VARR1:=(HHV(HIGH,24)-CLOSE)/(HHV(HIGH,24)-LLV(LOW,24))*100; VARR2:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100; VARR3:=(2*CLOSE+HIGH+LOW)/4;VARR4:=LLV(LOW,26);VARR5:=HHV(HIGH,34);VARR6:=EMA((VARR3-VARR4)/(VARR5-VARR4)*100,16);VARR7:=SMA((SMA(VARR2,3,1)+3),3,1),LINETHICK3;VARR8:=EMA(VARR6,7);VARR9:=SMA(VARR1,3,1);VARR10:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;VARR11:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;VARR12:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;VARR13:=(VARR10+VARR11+VARR12)/3;VARR14:=IF(VARR13<=-20,10,0);VARR15:=HHV(VARR14,10);VARR24:=LLV(LOW,36);VARR25:=HHV(HIGH,30);VARR26:=EMA((CLOSE-VARR24)/(VARR25-VARR24)*4,4)*25;VARB27:=(((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100)/2+22)*1 ;VARB28:=(((CLOSE -(((EMA(AMOUNT,13) /EMA(VOL,13)) / 100))) / (((EMA(AMOUNT,13) /EMA(VOL,13)) / 100))) * 100);VARB29:=IF(A9<15366,1,DRAWNULL);AA05:=MA(C,5);AA30:=MA(C,30);MA05:=MA(C,5);MA10:=MA(C,13);MA30:=MA(C,34);BB05:=ATAN((MA05/REF(MA05,1)-1)*100)*180/3.1416;BB10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;BB30:=ATAN((MA30/REF(MA30,1)-1)*100)*180/3.1416;速度5:=SMA(EMA((MA05-REF(MA05,1))/REF(MA05,1),3)*100,3,1)*XS; 加速度5:=EMA((速度5-REF(速度5,1)),3)*VARB29;五日乖离率:=(C-AA05)/AA05*VARB29*100*DS;三拾日乖离率:=(C-MA30)/MA30*100*VARB29;。
散户黑马副图指标 源码 通达信
散户黑马副图指标源码通达信LC:=REF(CLOSE,1);RSI5:=((SMA(MAX((CLOSE - LC),0),5,1) / SMA(ABS((CLOSE - LC)),5,1)) * 100);TR1:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),10);HD:=(HIGH - REF(HIGH,1));LD:=(REF(LOW,1) - LOW);DMP:=SUM(IF(((HD > 0) AND (HD > LD)),HD,0),10);DMM:=SUM(IF(((LD > 0) AND (LD > HD)),LD,0),10);PDI:=((DMP * 100) / TR1);MDI:=((DMM * 100) / TR1);ADX:=MA(((ABS((MDI - PDI)) / (MDI + PDI)) * 100),5);AV:=(RSI5 + ADX);DXR:=(((ADX + REF(ADX,5)) / 2) + RSI5);0,COLORFF00FF;WR10:=((100 * (HHV(HIGH,10) - CLOSE)) / (HHV(HIGH,10) - LLV(LOW,10))); NEWVOL:=(RSI5 - WR10);阶段底部:=(AV + NEWVOL);STICKLINE((阶段底部< 0),0,-10,0.8,1),LINETHICK6,COLORYELLOW;趋势线:=LLV(阶段底部,1),COLORWHITE,LINETHICK0;STICKLINE(CROSS(阶段底部,0),0,-10,0.8,1),LINETHICK6,COLORRED; STICKLINE((趋势线>230 ),100,90,0.3,1),LINETHICK6,COLORGREEN; LOWV:=LLV(LOW,9);HIGHV:=HHV(HIGH,9);RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,3);K:EMA(RSV,3);D:MA(K,3);STICKLINE(K>D , K,D ,2.5,0),COLORRED,LINETHICK2;STICKLINE(D>K,K,D,2.5,0),COLORGREEN,LINETHICK2;逃顶线:90,COLORGREEN;中轴线: 50,COLORRED;抄底线:10,COLORGREEN;DRAWICON(CROSS(K,D),12,1)COLORRED;DRAWICON(CROSS(D,K),88,2)COLORGREEN;警戒:阶段底部< 0,LINETHICK0,COLORYELLOW;出击:CROSS(阶段底部,0),LINETHICK0,COLORRED;AA1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*200-100;AA2:=SMA(AA1,3,1);AA3:=SMA(AA2,3,1);AA4:=(3*AA2-2*AA3)/5+50;AA5:=DRAWLINE(AA4<REF(AA4,1),AA4,AA4>REF(AA4,1),AA4,0);AA6:=AA4>REF(AA4,1);AA7:=DRAWLINE(AA6,AA4,AA4<REF(AA4,1),AA4,0);AA8:=(EMA(CLOSE,12) - EMA(CLOSE,26));AA9:=EMA(AA8,9);AA0:=HHV(MAX(AA2,MAX(AA3,AA4)),250);BB1:=HHV(MAX(AA8,AA9),250);BB2:=INTPART(AA0/BB1)/2;BB3:=BB2*AA8+50;BB4:=BB2*AA9+50;BB5:=1.5*(BB3-BB4)>REF(1.5*(BB3-BB4),1); STICKLINE(BB5,0,AA5,0,-1),COLOR77FFFF; STICKLINE(AA4<REF(AA4,1),0,AA5,0,1),COLORFF00FF; STICKLINE(AA6,0,AA7,0,1),COLOR00FF00; STICKLINE(CLOSE>0,4,-1,5,0),COLORBBBBBB; MAC:AA5,COLOR0000FF,LINETHICK5;。
通达信黑马启动副图指标
发一个黑马买点指标--绝大部分牛股在这指标启动C11:=(ATAN((C-REF(C,1))/REF(C,1)/0.1));C12:=(ATAN((C-REF(C,2))/REF(C,2)/0.2));C13:=(ATAN((C-REF(C,3))/REF(C,3)/0.3));C4:=(ATAN((C-REF(C,4))/REF(C,4)/0.4));C5:=(ATAN((C-REF(C,5))/REF(C,5)/0.5));C6:=(ATAN((C-REF(C,6))/REF(C,6)/0.6));C7:=(ATAN((C-REF(C,7))/REF(C,7)/0.7));C8:=(ATAN((C-REF(C,8))/REF(C,8)/0.8));C9:=(ATAN((C-REF(C,9))/REF(C,9)/0.9));C10:=(ATAN((C-REF(C,10))/REF(C,10)/1));CJD:=MA((C11+C12+C13+C4+C5+C6+C7+C8+C9+C10)/10/6.28*360,1);O1:=(ATAN((O-REF(O,1))/REF(O,1)/0.1));O2:=(ATAN((O-REF(O,2))/REF(O,2)/0.2));O3:=(ATAN((O-REF(O,3))/REF(O,3)/0.3));O4:=(ATAN((O-REF(O,4))/REF(O,4)/0.4));O5:=(ATAN((O-REF(O,5))/REF(O,5)/0.5));O6:=(ATAN((O-REF(O,6))/REF(O,6)/0.6));O7:=(ATAN((O-REF(O,7))/REF(O,7)/0.7));O8:=(ATAN((O-REF(O,8))/REF(O,8)/0.8));O9:=(ATAN((O-REF(O,9))/REF(O,9)/0.9));O10:=(ATAN((O-REF(O,10))/REF(O,10)/1));OJD:=MA((O1+O2+O3+O4+O5+O6+O7+O8+O9+O10)/10/6.28*360,1),COLORBLUE; CO差:MA(CJD-OJD,3),COLORRED;CO和:MA(REF(CJD+OJD,1),3),COLORGREEN;CD3:MA(CJD,3),COLORYELLOW;强势:10,COLORWHITE;0,COLORCYAN,POINTDOT;Z1:=MA(C,13);{}ZX:=REF(Z1,13/2+1);A1:=SMA(H,21,2)*1.05;A2:=SMA(L,21,2)*0.95;A3:=SMA(L,5,1);A4:=SMA(C,2,1);波段买入:=IF(CROSS(A4,A3),A1*1.05,A3);龙头:=IF(CROSS(A4,A1),A1*1.10,A2);A11:=AMOUNT/VOL/1000;B2:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;D3:=SUM(AMOUNT,13)/A11/1000;E4:=DMA(B2,VOL/D3);抄底高手:=(CLOSE-E4)/E4*1000,COLORYELLOW;XGD:=CROSS(EMA(C,2),EMA(SLOPE(C,21)*20+C,42))&&(CD3>CO和)&&CO差>CO和&&C>MA(C,20)&&CCI>0;黑马:DRAWTEXT(FILTER(XGD,10)&&MA(C,60)/REF(MA(C,60),1)>0.02&&抄底高手>0,CO 和,'←黑马'),COLORYELLOW;涨停:STICKLINE(龙头>A2 OR 波段买入>A3 AND CROSS(CJD,ZX) ,-5,5,2,0),COLORLIMAGENTA;。
黑马预警通达信指标公式源码
一个黑马预警副图指标。
指标只是辅助,决策在人。
VAR1:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;VAR2:=2*ABS(VAR1);VAR3:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2* SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);VAR4:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*S MA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);VAR5:=(HIGH+LOW+CLOSE)/3;VAR6:=(VAR5-MA(VAR5,14))/(0.015*AVEDEV(VAR5,14));VAR7:=(VAR5-MA(VAR5,70))/(0.015*AVEDEV(VAR5,70));VAR8:=IF(VAR6>=150 AND VAR6<200 AND VAR7>=150 AND VAR7<200,10,0);VAR9:=IF(VAR6<=-150 AND VAR6>-200 AND VAR7<=-150 AND VAR7>-200,-10,VAR8); VARA:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;VARB:=100-ABS(VARA);VARC:=3*SMA((INDEXC-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20,1 )-2*SMA(SMA((INDEXC-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20,1), 15,1);VARD:=3*SMA((INDEXO-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20,1)-2*SMA(SMA((INDEXO-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20,1) ,15,1);VARE:=REF(LOW,1)*0.9;VARF:=LOW*0.9;VAR10:=(VARF*VOL+VARE*(CAPITAL-VOL))/CAPITAL;VAR11:=EMA(VAR10,30);VAR12:=VAR11-CLOSE;VAR13:=REF(CLOSE,1);VAR14:=SMA(MAX(CLOSE-VAR13,0),7,1)/SMA(ABS(CLOSE-VAR13),7,1)*100;VAR15:=SMA(MAX(CLOSE-VAR13,0),13,1)/SMA(ABS(CLOSE-VAR13),13,1)*100;VAR16:=BARSCOUNT(CLOSE);VAR17:=SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*1 00;VAR18:=((-100)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+50)*2;VAR19:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;VAR1A:=(SMA(VAR19,4,1)-50)*2;VAR1B:=SMA(VAR1A,3,1);VAR1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;VAR1D:=SMA(VAR1C,4,1);VAR1E:=SMA(VAR1D,3,1);VAR1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;VAR20:=IF(VAR17<=25 AND VAR18<-95 AND VAR1F>20 AND VAR1B<-30 ANDVAR1E<30 AND VAR12>=-0.25 AND VAR14<22 AND VAR15<28 AND VAR16>50,80,0); {情报:=VAR3;}情报:ABS(100-VAR3),LINETHICK3;天线: IF(VARB<90,VARB,100);红军: IF(VAR1>0,VAR1,0),COLORRED, LINESTICK;绿军: IF(VAR1<0,VAR2,0),COLORGREEN,LINESTICK;导弹: VAR20;预警系统: IF(VAR7>=200 AND VAR6>=150,15,IF(VAR7<=-200 ANDVAR6<=-150,-15,VAR9))+60;{STICKLINE(VAR3>=REF(VAR4,1),VAR3,VAR4,8,0);STICKLINE(VAR3<REF(VAR4,1),VAR3,VAR4,8,0);}VAR21:=CLOSE>MA(CLOSE,20) AND MA(CLOSE,20)>=REF(MA(CLOSE,20),1);VAR22:=CLOSE<MA(CLOSE,20) AND MA(CLOSE,20)<REF(MA(CLOSE,20),1);VAR23:=红军>50 AND 预警系统>60 AND 天线=100;VAR24:=红军>48 AND 预警系统>60 AND 天线<100;VAR25:=绿军>38 AND 预警系统<55;VAR26:=导弹>50 AND 天线<90;VAR27:=VAR3<REF(VAR4,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);VAR28:=VAR3>=REF(VAR4,1) AND CLOSE<REF(CLOSE,1) AND 预警系统=60 AND 导弹=0 AND 绿军>=REF(绿军,1) AND VARC<REF(VARD,1);DRAWTEXT(VAR21 AND COUNT(VAR21,30)=1,100,'上升通道,持股待升或高抛低吸!'); DRAWTEXT(VAR22 AND COUNT(VAR22,30)=1,90,'下降通道,小心无量阴跌!'); DRAWTEXT(VAR23 AND COUNT(VAR23,30)=1,70,'上涨过急,需要调整,短线先抛出!')COLORRED;DRAWTEXT(VAR24 AND COUNT(VAR24,30)=1,80,'庄家出货,大跌在即,中线抛出!')COLORGREEN;DRAWTEXT(VAR25 AND COUNT(VAR25,30)=1,50,'不必杀跌,应有小反弹,跌停除外!'); DRAWTEXT(VAR26 AND COUNT(VAR26,30)=1,30,'');DRAWTEXT(VAR27 AND COUNT(VAR27,30)=1,60,' 红牛'),COLORYELLOW; DRAWTEXT(VAR27 AND COUNT(VAR27,30)=1,50,' 大资金入场!'),COLORYELLOW; DRAWTEXT(VAR28 AND COUNT(VAR28,30)=1,20,'见顶回落');买入:IF(VAR27 AND COUNT(VAR27,30)=1,100,0),STICK,LINETHICK7,COLORRED; {STICKLINE(买入,0,100,3,0),COLORRED;};。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
【通达信】黑马通道(副图)-指标公式源码
短线止损线:=EMA(CLOSE,17);
A:=(3*C+L+O+H)/6;
X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+ 14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A, 11)+8*REF(A,12)
+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A, 18)+
REF(A,20))/210;
中线止损线:=EMA(X,13);
上涨天数:=BARSLAST(短线止损线<中线止损线);
下跌天数:=BARSLAST(短线止损线>中线止损线);
KKA:=EMA(C,5);
KKB:=EMA(KKA,8);
KKC:=EMA(KKB,13);
长线止损线:=EMA(KKC,50);
AAA:=(3*C+L+O+H)/6;
C2:=EMA(AAA,6);
C3:=EMA(AAA,5);
SHORT:=12;
LONG:=26;
MID:=9;
DIF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:=EMA(DIF,MID);
MACD:=(DIF-DEA)*2;
N:=9;
M1:=3;
M2:=3;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,M1,1);
D:=SMA(K,M2,1);
J:=3*K-2*D;
KAAA:=J<D AND DIF>DEA;
KDDD:=C/中线止损线<1.2;
KCCC:=上涨天数<20;
KBBB:=IF(REF(J,3)>REF(D,3) AND KAAA AND KDDD AND KCCC,30,0);
N1:=5;
N4:=34;
CQ:=100*(C-LLV(L,N4))/(HHV(C,N4)-LLV(L,N4));
SAT:=(AMOUNT/C)/(HHV(AMOUNT,N4)/HHV(C,N4));
饱和度:=IF(SAT>1,1,SAT)*100;
持
股:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*S MA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1); 支撑:=LLV(持股,3);
中期线:=MA(持股,12);
VAR1:=1;
VAR2:=LLV(LOW,10);
VAR3:=HHV(HIGH,25);
短期线:=EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,4)*VAR1*30;
中期:=100*(C-LLV(L,N4))/(HHV(C,N4)-LLV(L,N4));
KDD:=REF(中期,1)<1 AND 中期>1;
AA:=C/REF(C,1)>1.09;
KMMM:=REF(中期,1)<1 AND 中期>1;
KDDDD:=饱和度>=97 AND CQ>90 AND 中期线<50;
KEEEE:=C/O>1.015;
KFFFF:=BARSLAST(CROSS(短期线,中期线))<10;
KAAX:=KDDDD AND KEEEE AND KFFFF;
KAAY:=IF(REF(KAAX,1) OR REF(KAAX,2),0,1);
KAAB:=KAAX AND KAAY;
W1:=C=HHV(C,20);
W2:=BARSLAST(W1);
W3:=IF(W2>0,REF(C,W2),REF(C,W2));
W4:=CROSS(C,REF(W3,1));
KL:=饱和度>=97 AND CQ>90;
KK:=W4 AND COUNT(W4,5)=1;
KKKK:=KL OR KK;
KKAA:=IF(AA,0,1);
KKBB:=IF(C/中线止损线>1.15,1,0);
KMA:=KKKK AND KKAA;
KMB:=REF(KKKK,1) AND KKAA AND REF(AA,1);
KMC:=KMA OR KMB;
KYA:=CROSS(C2,C3);
KYB:=上涨天数<30;
KYD:=EXIST(KAAB,20);
KYC:=KYA AND KYB AND KYD;
KAAA1:=EXIST(KDD,3);
KBBB1:=C/REF(C,1)>1+0.01*9;
KAAA2:=支撑>中期线 AND 持股=支撑;
KBBB2:=CROSS(C2,C3);
KCCC2:=EXIST(C/REF(C,1)>1+0.01*9,10);
KDDD2:=BARSLAST(中期线>短期线)<10;
KAAA3:=REF(C,1)<REF(中线止损线,1) AND C>中线止损线; KBBB3:=C/REF(C,1)>1.09;
KCCC3:=中线止损线/长线止损线<1.1;
KA1:=KAAA1 AND KBBB1;
KA2:=KAAA2 AND KBBB2 AND KCCC2;
KA3:=KAAA3 AND KBBB3 AND KCCC3;
抄底先锋:IF(KMMM AND 下跌天数>下跌 AND 中线止损线/C>1+0.01*离
线,70,0),COLORYELLOW,LINETHICK2;
抄底先锋A:=KMMM AND 下跌天数>下跌 AND 中线止损线/C>1+0.01*离线;
行情线:=EMA(A,1);
黑马启动:IF(CROSS(行情线,中线止损线) AND C/REF(C,1)>1+0.01*涨幅 AND 中线止损线<长线止损线,70,0),COLORRED,LINETHICK2;
黑马启动A:=CROSS(行情线,中线止损线) AND C/REF(C,1)>1+0.01*涨幅 AND 中线止损线<长线止损线;
AAAA:=C/REF(C,1)>1+0.01*涨幅1;
资金3:=支撑>中期线 AND 持股=支撑 AND REF(支撑,2)<REF(持股,2);
资金4:=J<D AND DIF>DEA AND REF(J,1)>REF(D,1),COLORYELLOW;
资金5:=EXIST(AAAA,10);
资金6:=BARSLAST(短期线<中期线)<力道;
短线快枪:IF(资金3 AND 资金4 AND 资金5 AND 资金6 AND KCCC3 AND 上涨天数<20 AND C>中线止损线,70,0),COLORMAGENTA,LINETHICK2;
短线快枪A:=资金3 AND 资金4 AND 资金5 AND 资金6 AND KCCC3 AND 上涨天数<20 AND C>中线止损线;
{}
DRAWTEXT(
抄底先锋A,80,'抄底'),COLORRED;
DRAWTEXT(
抄底先锋A,60,'先锋'),COLORRED;
DRAWTEXT(
抄底先锋A,40,'软件'),COLORWHITE;
DRAWTEXT(
抄底先锋A,20,'初选'),COLORWHITE;
DRAWTEXT(
黑马启动A,80,'黑马'),COLORYELLOW;
DRAWTEXT(
黑马启动A,60,'启动'),COLORYELLOW;
DRAWTEXT(
黑马启动A,40,'软件'),COLORWHITE;
DRAWTEXT(
黑马启动A,20,'初选'),COLORWHITE;
DRAWTEXT(
短线快枪A,80,'短线'),COLORYELLOW;
DRAWTEXT(
短线快枪A,60,'快枪'),COLORYELLOW;
DRAWTEXT(
短线快枪A,40,'软件'),COLORWHITE;
DRAWTEXT(
短线快枪A,20,'初选'),COLORWHITE;
STICKLINE(KMMM,0,20,2,0),COLORWHITE;
STICKLINE(KMC,80,100,2,0),COLORGREEN;
STICKLINE(KMC AND 上涨天数>30,80,100,2,0),COLORRED;
短线反弹:KMMM,STICK,COLORWHITE;
短线风险:KMC,STICK,COLORGREEN;
【通达信】黑马通道(副图)-指标公式效果图
(文档来源:好股票网)。