【股票指标公式下载】-【通达信】综合神针解盘(加速度、乖离率)
准确率超高通达信指标公式源码
经过实盘操作,准确率很高的指标里有具体的使用说明;VAR1S:=(CLOSE*2+HIGH+LOW)/4;VAR2S:=(EMA(VAR1S,13)-EMA(VAR1S,34))/EMA(VAR1S,34)*100;VAR3S:=EMA(VAR2S,5);主力控盘:=2*(VAR2S-VAR3S)*3.8;SA1:= 主力控盘,COLORWHITE,NODRAW;SA2:=SA1-REF(SA1,1);SA3:=MA(SA1,3),COLORGREEN;SAA3:=MA(SA1,7),COLORCYAN;SAA4:=MA(SA1,13),COLORRED;MM1:=MA(CLOSE,5);Q5:(MM1-REF(MM1,1))/REF(MM1,1)*100,NODRAW,COLORMAGENTA;MTR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-L OW)),14);HD2 :=HIGH-REF(HIGH,1);LD2 :=REF(LOW,1)-LOW;DMP2:=EXPMEMA(IF(HD2>0&&HD2>LD2,HD2,0),14);DMM2:=EXPMEMA(IF(LD2>0&&LD2>HD2,LD2,0),14);PDI2:=DMP2*100/MTR;MDI2:=DMM2*100/MTR;ADX:=EXPMEMA(ABS(MDI2-PDI2)/(MDI2+PDI2)*100,6);ADXR:=EXPMEMA(ADX,6);SAA31:=SAA3-REF(SAA3,1);ADXR12:=MA(ADX,3);ADXR13:=ADX-ADXR12;ADXR14:=ADX-ADXR;ZK2:=ADX<16;ZK3:=(ADXR<16&&ADX<20);ZK31:=ADXR<20&&ADXR>ADX;ZK4:=(ADX<MDI2&&ADXR<MDI2&&ADX<30);ZK41:=(ADX<PDI2&&ADXR<PDI2&&PDI2>MDI2&&ADX<30&&ADX<REF(ADX,1));ZK5:=(ZK2 OR ZK3 OR ZK31);SWQ1:=MAX(ADX,ADXR);AD1:=ADX-REF(ADX,1);Y:=(H+O+L+3*C)/6;X:=EMA(100-(100/(1+SUM(IF(Y>REF(Y,1),Y*VOL,0),13)/SUM(IF(Y<REF(Y,1),Y*VOL,0), 13))),5),COLOR00FFFF,LINETHICK2;AA:=30>X,LINETHICK0;BB:=X>80,LINETHICK0;VAR1:=(C-MA(C,6))/MA(C,6)*100;VAR2:=(C-MA(C,24))/MA(C,24)*100;VAR3:=(C-MA(C,32))/MA(C,32)*100;VAR4:=(VAR1+VAR2+VAR3)/3;VAR5:=EMA(VAR4,5);VAR6:=MA(100*(C-LLV(C,34))/(HHV(H,34)-LLV(L,34)),5)-20;VAR7:=SMA(SMA(100-3*(C-LLV(C,75))/(HHV(H,75)-LLV(L,75))*100,20,1)+SMA(2*(C-LL V(C,75))/(HHV(H,75)-LLV(L,75))*100,20,1),15,1);VAR8:=VAR7<REF(VAR7,1) AND V>REF(V,1) AND C>REF(C,1);K:EMA(VAR5,5)*4;D:EMA(K,5),NODRAW,COLOR38B0DE;J:K*3-D*2,NODRAW,COLORCC66FF;MACD:EMA(EMA(VAR1,5),5)*6,NODRAW,COLORWHITE;{DRAWBAND(J,RGB(238,238,6),K,RGB(256,150,60));}DRAWBAND(K,RGB(238,238,6),D,RGB(256,150,60));按短线卖:IF(EXIST(Q5>2.5,5),-60,DRAWNULL),LINETHICK7,COLORGREEN;按短线卖2:IF(EVERY(Q5<2.5,5)&&MACD>8,-60,DRAWNULL),LINETHICK7,COLORYELLOW;按短线买:IF(EXIST(Q5<-2.5,5),-60,DRAWNULL),LINETHICK7,COLORRED;中线股:IF(SA1>0,-40,DRAWNULL),LINETHICK7,COLORMAGENTA;中线币:IF(SA1<0,-40,DRAWNULL),LINETHICK7,COLORGREEN;盘整币:IF(MDI2>ADXR OR ZK5,-30,DRAWNULL),LINETHICK7,COLORGREEN; DRAWTEXT(EVERY(Q5<1,4)&&Q5>0&&MACD>REF(MACD,1)&&REF(MACD,1)<REF(MAC D,2)&&EVERY(Q5>-0.5,4),MACD*1.04,'P卖'),COLORGREEN;STICKLINE(SA1<REF(SA1,1),0,MACD*1.03,2,1),COLORGREEN;STICKLINE(SA1>REF(SA1,1)&&SA1>0,0,MACD*1.03,2,1),COLORRED;STICKLINE(Q5>5&&SA1>0&&MACD>REF(MACD,1),0,MACD*1.03,2,1),COLORRED; DRAWTEXT(AA&&SA1>REF(SA1,1),MACD*1.1,'吸货'),COLOR0066FF;DRAWTEXT(BB&&SA1<REF(SA1,1),MACD*1.1,'派发'),COLORFFFF00;DRAWTEXT(CROSS(3,Q5)&&EXIST(Q5>4,6),MACD*1.1,'卖4'),COLORGREEN; DRAWTEXT(CROSS(4,Q5)&&EXIST(Q5>5,6),MACD*1.1,'卖5'),COLORGREEN; DRAWTEXT(CROSS(5,Q5)&&EXIST(Q5>6,6),MACD*1.1,'卖6'),COLORGREEN; DRAWTEXT(CROSS(6,Q5)&&EXIST(Q5>7,5),MACD*1.1,'卖7'),COLORGREEN; STICKLINE(MACD>0,0,MACD,1,0),COLORRED;STICKLINE(MACD>0 AND MACD<REF(MACD,1),0,MACD,1,0),COLORFFFF00; STICKLINE(MACD<0,0,MACD,1,0),COLORFF9900;STICKLINE(MACD<0 AND MACD>REF(MACD,1),0,MACD,1,0),COLORFF00FF;MA3:=MA(CLOSE,3);YTSL:=(3*CLOSE+LOW+OPEN+HIGH)/6;辰星线:=(20*YTSL+19*REF(YTSL,1)+18*REF(YTSL,2)+17*REF(YTSL,3)+16*REF(YTSL,4)+1 5*REF(YTSL,5)+14*REF(YTSL,6)+13*REF(YTSL,7)+12*REF(YTSL,8)+11*REF(YTSL,9)+1 0*REF(YTSL,10)+9*REF(YTSL,11)+8*REF(YTSL,12)+7*REF(YTSL,13)+6*REF(YTSL,14)+ 5*REF(YTSL,15)+4*REF(YTSL,16)+3*REF(YTSL,17)+2*REF(YTSL,18)+REF(YTSL,20))/21 1,COLOR0000FF;牵牛线:=MA(CLOSE,26),COLORFF00FF;CX1:=辰星线;QN1:=牵牛线;IF(CX1>REF(CX1,1)&&CX1>QN1,-50,DRAWNULL),LINETHICK7,COLORRED;IF(CX1>REF(CX1,1)&&CX1<QN1,-50,DRAWNULL),LINETHICK7,COLORMAGENTA;IF(CX1<REF(CX1,1)&&CX1<QN1,-50,DRAWNULL),LINETHICK7,COLORGREEN;IF(CX1<REF(CX1,1)&&CX1>QN1,-50,DRAWNULL),LINETHICK7,COLORCYAN; DRAWTEXT(NDAY(SA1,0,2)&&CX1>REF(CX1,1)&&MACD>REF(MACD,1)&&REF(MACD,1) <REF(MACD,2),MACD*1.1,'BBB'),COLORMAGENTA;DA:=(3*CLOSE+OPEN+LOW+HIGH)/6,POINTDOT;X2:=(20*DA+19*REF(DA,1)+18*REF(DA,2)+17*REF(DA,3)+16*REF(DA,4)+15*REF(DA, 5)+14*REF(DA,6)+13*REF(DA,7)+12*REF(DA,8)+11*REF(DA,9)+10*REF(DA,10)+9*RE F(DA,11)+8*REF(DA,12)+7*REF(DA,13)+6*REF(DA,14)+5*REF(DA,15)+4*REF(DA,16)+ 3*REF(DA,17)+2*REF(DA,18)+REF(DA,20))/210,COLORF0F000;X3:=(MA(X2,3)+MA(X2,2))/2,COLORYELLOW,LINETHICK1;DRAWTEXT(SA1>REF(SA1,1)&&SA1>0&&REF(SA1,1)<REF(SA1,2)&&X2>X3,MACD*1.1,'信号1'),COLORMAGENTA;DRAWTEXT(Q5>5&&SA1>0&&MACD>REF(MACD,1)&&REF(MACD,1)<REF(MACD,2)&&X2 >X3,MACD*1.1,'信号2'),COLORRED;DRAWTEXT(MACD>0&&MACD>REF(MACD,1)&&REF(MACD,1)<REF(MACD,2)&&X2>X3,-3,'信号3'),COLORRED;DRAWTEXT(MACD<0 ANDMACD>REF(MACD,1)&&REF(MACD,1)<REF(MACD,2)&&X2>X3,MACD*1.1,'信号4'),COLORWHITE;-60;-50;-40;-30;。
通达信指标公式源码大全
【通达信】魔鬼操盘(主图)-指标公式源码均5:MA(CLOSE,5) COLORYELLOW;均10:MA(CLOSE,10)COLORGREEN;均30: MA(CLOSE,30) COLORMAGENTA ;均60: MA(CLOSE, 60) COLORRED POINTDOT LINETHICK3;均250: MA(CLOSE, 250) COLORBLUE LINETHICK2 ;魔鬼通道上:均30 + 2*STD(CLOSE,60) COLORYELLOW POINTDOTLINETHICK2 ;魔鬼通道下:均30 - 2*STD(CLOSE,60) COLORYELLOW POINTDOT LINETHICK2; VAR1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;VAR2:=SMA(VAR1,3,1);VAR3:=SMA(VAR2,3,1);VAR4:=VAR1*1 、05;VAR5:=MA(CLOSE,5);VAR6:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;VAR7:=SMA(VAR6,5,1);VAR8:=VOL>REF(VOL,1);VAR9:=MA(VOL/CAPITAL,30)*MA(VOL,60)/10000+MA(CLOSE,30);【通达信】平均价格(主图)-指标公式源码A:=(3*C+H+L+O)/6;XJ:=(A+0 、618*REF(A,1)+0 、382*REF(A,2)+0 、236*REF(A,3)+0146*REF(A,4))/2 、382;YCZXH:=(MA(HHV(A,2),5)+MA(HHV(A,2),13)+MA(HHV(A,2),21)+MA(HHV(A,2),32))/4;YCZXL:=(MA(LLV(A,2),5)+MA(LLV(A,2),13)+MA(LLV(A,2),21)+MA(LLV(A, 2),32))/4;SMH:EMA(YCZXH,21),COLOR004000;SML:EMA(YCZXL,21),COLOR004000;SMJ:(SML+SMH)/2,COLOR004000;PJ:=(10*A+9*REF(A,1)+8*REF(A,2)+7*REF(A,3)+6*REF(A,4)+5*REF(A,5) +4*REF(A,6)+3*REF(A,7)+2*REF(A,8)+REF(A,9))/55;A1:=EMA(PJ,3),COLOR004000;A2:=EMA(PJ,5),COLOR004000;A3:=EMA(PJ,7),COLOR004000;A4:=EMA(PJ,9),COLOR004000;A5:=EMA(PJ,11),COLOR004000;LX:=REF(XJ,1);ZD:=(SMA(MAX(XJ-LX,0),5,1)/SMA(ABS(XJ-LX),5,1))*100;KX1:=(CLOSE>=OPEN) AND ZD>=50;KX2:=(CLOSE<OPEN) AND ZD>=50;KX3:=(CLOSE>=OPEN) AND ZD<50;KX4:=(CLOSE<OPEN) AND ZD<50;IF(A5<REF(A5,1),A5,DRAWNULL),COLOR820000,LINETHICK2;IF(A5>REF(A5,1),A5,DRAWNULL),COLOR00005B,LINETHICK2;IF(A4<REF(A4,1),A4,DRAWNULL),COLOR8C0000,LINETHICK1;IF(A4>REF(A4,1),A4,DRAWNULL),COLOR000055,LINETHICK1;IF(A3<REF(A3,1),A3,DRAWNULL),COLOR9B0000,LINETHICK1;IF(A3>REF(A3,1),A3,DRAWNULL),COLOR00006C,LINETHICK1;IF(A2<REF(A2,1),A2,DRAWNULL),COLORBB0000,LINETHICK1;IF(A2>REF(A2,1),A2,DRAWNULL),COLOR00007D,LINETHICK1;IF(A1<REF(A1,1),A1,DRAWNULL),COLORCC0000,LINETHICK1;IF(A1>REF(A1,1),A1,DRAWNULL),COLOR00009B,LINETHICK1;STICKLINE(KX1,C,O,4,1),COLOR4440FF;STICKLINE(KX1,C,H,0 、5,1),COLOR4440FF;STICKLINE(KX1,O,L,0 、5,1),COLOR4440FF;STICKLINE(KX2,C,O,4,0),COLOR4440FF;STICKLINE(KX2,O,H,0 、5,0),COLOR4440FF;STICKLINE(KX2,C,L,0 、5,0),COLOR4440FF;STICKLINE(KX3,C,O,4,1),COLORFFFF33;STICKLINE(KX3,C,H,0 、5,1),COLORFFFF33;STICKLINE(KX3,O,L,0 、5,1),COLORFFFF33;STICKLINE(KX4,C,O,4,0),COLORFFFF33;STICKLINE(KX4,O,H,0 、5,0),COLORFFFF33;STICKLINE(KX4,C,L,0 、5,0),COLORFFFF33;【通达信】牛劲十足(副图)-指标公式源码VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));ZM:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),COLORRED,POINTDOT;ZM1:=IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-VOL/2)),COLOR00FF00,POINTDOT;MMB:=(SUM(ZM,30)+SUM(ZM1,30))/10,COLORYELLOW;SG:=MMB>0 AND REF(MMB,1)<MMB;上攻周期:COUNT(SG,5),LINESTICK,COLORWHITE;JSC:= 上攻周期<1;DBQD:=FILTER(COUNT(JSC,5)>3 AND NOT(JSC),10);DRAWICON(DBQD,2,1);DRAWBAND( 上攻周期,RGB(255,120,120),3,RGB(0,0,0)); DRAWBAND(JSC,RGB(0,0,255),0 、5,RGB(0,0,0));STICKLINE(COUNT( 上攻周期>3,5)>=3 AND SG,0, 上攻周期,1 、5,0),COLORRED;XG: COUNT(COUNT( 上攻周期>3,5)>=3 AND SG,20)>4;【通达信】魔鬼K 线(副图)-指标公式源码VAR1:=REF(OPEN,1);VAR2:=SMA(MAX(OPEN-VAR1,0),6,1)/SMA(ABS(OPEN-VAR1),6,1)*100VAR3:=REF(CLOSE,1);VAR4:=SMA(MAX(CLOSE-VAR3,0),6,1)/SMA(ABS(CLOSE-VAR3),6,1)*100;VAR5:=REF(HIGH,1);VAR6:=SMA(MAX(HIGH-VAR5,0),6,1)/SMA(ABS(HIGH-VAR5),6,1)*100; VAR7:=REF(LOW,1);VAR8:=SMA(MAX(LOW-VAR7,0),6,1)/SMA(ABS(LOW-VAR7),6,1)*100; STICKLINE(VAR4<VAR2,VAR2,VAR4,5,0),COLORGREEN , ; STICKLINE(VAR4>VAR2,VAR2,VAR4,5,0),COLORRED , ;STICKLINE(VAR4>VAR2 AND VAR6>VAR8 ANDVAR8>VAR4,VAR4,VAR6,0 、5,1),COLORRED , ;STICKLINE(VAR4>VAR2 AND VAR6>VAR8 ANDVAR8<VAR4,VAR4,VAR6,0 、5,1),COLORRED ,;STICKLINE(VAR4>VAR2 AND VAR6<VAR8 ANDVAR6>VAR4,VAR4,VAR8,0 、5,1),COLORRED , ;STICKLINE(VAR4>VAR2 AND VAR6>VAR8 ANDVAR6<VAR2,VAR2,VAR8,0 、5,1),COLORRED , ;STICKLINE(VAR4>VAR2 AND VAR6>VAR8 ANDVAR6>VAR2,VAR2,VAR8,0 、5,1),COLORRED , ;STICKLINE(VAR4>VAR2 AND VAR6<VAR8 ANDVAR8<VAR2,VAR2,VAR6,0 、5,1),COLORRED , ;STICKLINE(VAR4>VAR2 AND VAR6<VAR8 ANDVAR8>VAR2,VAR2,VAR6,0 、5,1),COLORRED , ;STICKLINE(VAR4<VAR2 AND VAR6>VAR8 ANDVAR6<VAR4,VAR4,VAR8,0 、5,1),COLORGREEN , ;STICKLINE(VAR4<VAR2 AND VAR6<VAR8 ANDVAR8<VAR4,VAR4,VAR6,0 、5,1),COLORGREEN , ; STICKLINE(VAR4<VAR2 AND VAR6<VAR8 AND VAR6>VAR4,VAR4,VAR8,0 、5,1),COLORGREEN , ; STICKLINE(VAR4<VAR2 AND VAR6>VAR8 ANDVAR6<VAR4,VAR2,VAR8,0 、5,1),COLORGREEN ,; STICKLINE(VAR4<VAR2 AND VAR6>VAR8 AND VAR6>VAR4,VAR2,VAR8,0 、5,1),COLORGREEN , ; STICKLINE(VAR4<VAR2 AND VAR6<VAR8 AND VAR8<VAR2,VAR2,VAR6,0 、5,1), COLORGREEN , ; STICKLINE(VAR4<VAR2 AND VAR6<VAR8 ANDVAR8>VAR2,VAR2,VAR6,0 、5,1),COLORGREEN , ;【通达信】牛熊分界(立桩量、中线)-指标公式源码AAA:=(3*C+H+L+O)/6;VAR1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5* REF(AAA,3)+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;VAR2:=(HHV(VAR1,5)+HHV(VAR1,10)+HHV(VAR1,20))/3;VAR3:=(LLV(VAR1,5)+LLV(VAR1,10)+LLV(VAR1,20))/3;VAR4:=(HHV(VAR2,5)+HHV(VAR2,10)+HHV(VAR2,20))/3;VAR5:=(LLV(VAR3,5)+LLV(VAR3,10)+LLV(VAR3,20))/3;VAR6:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3; DRAWBAND(VAR1,RGB(155,50,50),VAR6,RGB(250,250,0)); 短线:VAR1,COLORWHITE; 中线:VAR6,COLORYELLOW; 金叉:短线>中线AND REF( 短线,1)=REF( 中线,1),NODRAW; 下跌:IF(VAR1=VAR6,VAR6,DRAWNULL),COLORGREEN;TJ1:=VOL=HHV(VOL,10)AND VOL>2*REF(VOL,1)AND CLOSE>VAR1; 立桩量 )),REF(LOW,BARSLAST( 立桩量)),1,0),COLORYELLOW;STICKLINE(C>=O,C,O,3,0),COLOR000045;STICKLINE(C>=O,C,O,2 、5,0),COLOR000065;STICKLINE(C>=O,C,O,2,0),COLOR000085;STICKLINE(C>=O,C,O,1 、5,0),COLOR0000A5;STICKLINE(C>=O,C,O,1,0),COLOR0000C5;STICKLINE(C>=O,C,O,0 、5,0),COLOR0000E5;STICKLINE(C>=O,H,L,0,0),COLOR0000F5;STICKLINE(C<O,C,O,3,0),COLOR353500;STICKLINE(C<O,C,O,2 、5,0),COLOR454500;STICKLINE(C<O,C,O,2,0),COLOR555500;STICKLINE(C<O,C,O,1 、5,0),COLOR656500;STICKLINE(C<O,C,O,1,0),COLOR757500;STICKLINE(C<O,C,O,05,0),COLOR858500;STICKLINE(C<O,H,L,0,0),COLOR959500;ZRR:=(Y 量:=FILTER(TJ1,5);TJ2:=IF(BARSLAST (CLOSE>REF(HIGH,1),1,IF(BARSLAST(CLOSE>REF(HIGH,2),1,IF(BARSLAST(CLOSE>REF(HIGH,3),1,0))); 突立桩量)=1 AND立桩量)=2 AND立桩量)=3 AND立桩 立桩破:TJ2=1,NODRAW;STICKLINE(CLOSE,REF(HIGH,BARSLAST(量 )),REF(HIGH,BARSLAST( 立桩量)),1,0),COLORCYAN;STICKLINE(CLOSE,REF(LOW,BARSLAST(EAR-1992)*365+INTPART((YEAR-1989)/4)+IF(MONTH<=2,DAY+(MONTH-1)*31,DAY+INTPART(13*(MONTH+1)/5)-7+(MONTH-1)*28+IF(INTPART(YEAR/4)=YEAR/4,1,0)),NODRAW;T:=BARSLAST(ZRR-REF(ZRR,1)>WEEKDAY-REF(WEEKDAY,1))+1,NODRAW;T1:=REF(T,T)+T,NODRAW;T2:=REF(T,T1)+T1,NODRAW;T3:=REF(T,T2)+T2,NODRAW;T4:=REF(T,T3)+T3,NODRAW;T5:=REF(T,T4)+T4,NODRAW;T6:=REF(T,T5)+T5,NODRAW;T7:=REF(T,T6)+T6,NODRAW;T8:=REF(T,T7)+T7,NODRAW;周10:(REF(CLOSE,T)+REF(CLOSE,T1)+REF(CLOSE,T2)+REF(CLOSE,T3)+REF(CLOSE,T4)+REF(CLOSE,T5)+REF(CLOSE,T6)+REF(CLOSE,T7)+REF(CLOSE,T8)+CLOSE)/10,LINETHICK2;【通达信】牛准反弹(快线、慢线)- 指标公式源码N:=9;M1:=3;M2:=3;P:=9;快线:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;慢线:=SMA( 快线,M1,1);ELI 空:=SMA( 慢线,M2,1);ELI 牛股:=IF(BARSLAST(CROSS( 慢线,ELI 空))<P AND CROSS( 慢线,ELI 空) AND 慢线<20,90,0);LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),4 、1,1)/SMA(ABS(CLOSE-LC),4 、1,1)*100; 牛准反弹:=CROSS(RSI,11)*80;XG: 牛准反弹OR ELI 牛股;【通达信】启动提示(平台线、启动线)- 指标公式源码启动线:SUM(EMA((C+L)/2,2),5)/10 、158,COLORRED;平衡线:LLV(SUM( EMA((C+L)/2,2),5)/10 、158,4),COLORFF00FF; 平台线:LLV(SUM( EMA((C+L)/2,2),5)/10 、158,10),COLORFFFFFF; 强弱线:EMA( 启动线,21),COLORYELLOW;STICKLINE( 平台线<启动线,启动线,平台线,0 、1,0),COLORFFCCAA; STICKLINE( 平衡线<启动线,启动线,平衡线,0 、1,0),COLORRED;VAR1:=2*MA(LLV((C+L)/2,8)*1 、1,13)-EMA((C+L)/2,3)-((C+L)/2)*0 、1; VAR2:=IF((EMA((C+L)/2,3)-VAR1)*5>0,POW((EMA((C+L)/2,3)-VAR1)*5, 2)/10,-1*POW((EMA((C+L)/2,3)-VAR1)*5,2)/10);VAR3:=IF(VAR2>0,VAR2-0,0);STICKLINE(VAR3>0 AND REF(VAR3,1)=0 AND (C+L)/2>MA((C+L)/2,8), 强弱线,强弱线+0、2,4,0),COLORFFAACC;DRAWTEXT(VAR3>0 AND REF(VAR3,1)=0 AND (C+L)/2>MA((C+L)/2,8),强弱线+0 、35,' 注意控制'),LINETHICK3,COLORFFAACC;【通达信】平台启动(主图)-指标公式源码圣:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;灵:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;石:=SMA( 灵,13,8);仙:=CEILING(SMA( 石,13,8));编著:=SMA( 圣,21,8);AABB:=IF(L,CONST(L),DRAWNULL);平台启动:STICKLINE( 仙-编著>75,AABB,AABB*0 、99,15,1),COLOR0000FF;VARZT:=BARSLAST( 平台启动);DRAWTEXT(VARZT=1,0 、99*(AABB+AABB*0 、98)/2,' 平台启动'),COLORYELLOW;【通达信】牛熊线分水岭(中线强弱拐点)- 指标公式源码JJ:=(CLOSE+HIGH+LOW)/3;A:=EMA(JJ,10);B:=REF(A,1);M1:=EMA(CLOSE,3);M2:EMA(CLOSE,8);分水岭:SMA(M2,2 、5,1 、5),LINETHICK2,COLORRED;牛线:3*M2-2* 分水岭,LINETHICK2,COLORFF00FF ;熊线:4* 分水岭-3*M2,LINETHICK2,COLORGREEN;通达信指标公式源码大全IF (牛线<= 熊线,牛线,熊线),COLORGREEN,LINETHICK2;IF (分水岭<=熊线,分水岭,熊线),COLORGREEN,LINETHICK2;IF(牛线>REF(熊线,1), 熊线,DRAWNULL),COLORFF2200,LINETHICK2;M3:EMA(M2,13);M4:EMA(M2,55);VAR1:=EMA(M3,55);M5:EMA(M4,81), COLORRED,LINETHICK1;股道:=(1-C/SMA(C,13,1))*100;基础:=EMA(C,43);中线强弱拐点:EMA( 股道*C/100+ 基础,3),COLORGRAY,LINETHICK1;。
【股票指标公式下载】-【通达信】波段阻击(加速度、乖离率)
【通达信】波段阻击(加速度、乖离率)-指标公式源码AA05:MA(C,5),LINETHICK3,COLOR00CCFF;五日乖离率:=(C-AA05)/AA05*100;BB05:=ATAN((AA05/REF(AA05,1)-1)*100)*180/3.1416;速度5:=SMA(EMA((AA05-REF(AA05,1))/REF(AA05,1),3)*100,3,1);加速度5:EMA((速度5-REF(速度5,1)),3),NODRAW;IF(BB05>30 AND AA05>REF(AA05,1), AA05,DRAWNULL),LINETHICK3,COLORRED; AA10:MA(C,10);AA20:=MA(C,20);BB10:=ATAN((AA10/REF(AA10,1)-1)*100)*180/3.1416;IF(BB05<0 AND AA05<REF(AA05,1), AA05,DRAWNULL),LINETHICK3,COLORGREEN; AA30:MA(C,30);三拾日乖离率:(C-AA30)/AA30*100,NODRAW;VAR1:=(AA20-AA30)>REF((AA20-AA30),1) AND AA20>REF(AA20,1) ANDAA30>REF(AA30,1);VAR2:=(AA30-AA20)<REF((AA30-AA20),1) AND AA20<REF(AA20,1) ANDAA30<REF(AA30,1);BB30:=ATAN((AA30/REF(AA30,1)-1)*100)*180/3.1416;IF(BB30>15 AND AA30>REF(AA30,1),AA30,DRAWNULL),LINETHICK3,COLORFF00FF;波段狙击:=FILTER(BB30>30 AND BB10>45 AND CROSS(BB05,60),10);加仓:=FILTER(COUNT(CROSS(BB05,30),5)>=1 AND AA05>REF(AA05,1) AND 三拾日乖离率>REF(三拾日乖离率,1) AND AA10>REF(AA10,1)AND 加速度5>REF(加速度5,1) AND 速度5>REF(速度5,1) ,10) ;清仓:=FILTER(COUNT(CROSS(30,BB05),5)>=1 AND (C>AA30 OR O>AA30) ANDAA05<REF(AA05,1) AND 三拾日乖离率<REF(三拾日乖离率,1) ANDAA10<REF(AA10,1),10);DRAWTEXT(加仓 ,LOW*0.98,'←加仓'),COLORRED;JC:=CROSS(0,五日乖离率) AND 三拾日乖离率<REF(三拾日乖离率,1) ANDAA10>REF(AA10,1) ;减仓:=FILTER(JC,10);MR:=COUNT(CROSS(五日乖离率,0),3)>=1 AND 三拾日乖离率>REF(三拾日乖离率,1) AND AA05>REF(AA05,1) AND (C/REF(C,1)-1)*100>5 AND REF(C,1)<AA30; 买入:=FILTER(MR,10);DRAWTEXT(减仓,HIGH*1.02,'←减仓'),COLORCYAN;DRAWTEXT(买入,LOW*0.98,'←买入'),COLORYELLOW;DRAWTEXT(清仓 ,HIGH*1.02,'←清仓'),COLORGREEN;DRAWTEXT(波段狙击,LOW*0.98,'←波段狙击'),COLORYELLOW;VAR21:=MAX(ABS(HIGH-AMOUNT/VOL/100),ABS(AMOUNT/VOL/100-LOW));VAR3:=ABS((OPEN+CLOSE)/2-AMOUNT/VOL/100);MV:=(VAR21+VAR3)/AMOUNT*VOL*100*50;【通达信】波段阻击(加速度、乖离率)-指标公式效果图(文档来源:若水财经社区)。
【股票指标公式】-【通达信】单阳不破整合(主图)
【通达信】单阳不破整合(主图)-指标公式源码今天周末学习了一下单阳不破这个指标感觉理念很好。
成功系数大,风险还小。
尤其是它很适合在周线和月线上使用。
当然日线级别使用起来更灵活。
于是我就整合进去一些周线月线的买卖点还有L2的DDE,再加上抄底的筹码类的。
呵呵,是不是听起来有点乱。
不怕,我把它们做在一张主图上,感觉很清爽,而且一目了然,至少一眼就可以看出自己的票票现在所处的位置是该抛还是该留。
比如一只股票横盘或者震荡当中,周线或者月线级别的买点出现了,那么。
再或者股票下跌但是机构在大笔的吃货,呵呵。
就是该下手的时候了。
用法要用心体会,有不懂的我会跟帖回答。
{n,1,300,1}{s,0,3,1}DRAWTEXT_FIX(ISLASTBAR,0,0,0,'形态一旦有效成立,其调整时间不会超过8根K线,通常运行的第6根K线便进入启动期,行情随时会拉升而起。
'),COLOR00C5FF;DRAWTEXT_FIX(ISLASTBAR,0,0.05,0,'形态上升放量时介入,跌破前大阳线最低价坚决止损出局,最后的上升时间不能拖过第9根K线, '),COLORD6BA63;阳涨幅:=4;阳倍量:=1.5;单阳:=C>O*(1+阳涨幅/100) AND VOL>REF(VOL,1)*阳倍量;DRAWTEXT(CURRBARSCOUNT<100 AND 单阳,L*0.98,'阳'),COLOR00FFFF;高不破价:=REF(C,BARSLAST(单阳));中不破价:=REF((C+L)/2,BARSLAST(单阳));低不破价:=REF(L,BARSLAST(单阳));单阳不破:=CURRBARSCOUNT<100 AND BARSLAST(单阳)<11 AND(LLV(L,BARSLAST(单阳))>低不破价 OR LLV(L,BARSLAST(单阳))=低不破价); STICKLINE(单阳不破,低不破价-低不破价*0.003,低不破价,4,0),COLORRED;DRAWTEXT(BARSLAST(单阳)=1 AND 单阳不破,低不破价*0.98,'1'),COLORGREEN; DRAWTEXT(BARSLAST(单阳)=2 AND 单阳不破,低不破价*0.98,'2'),COLORGREEN; DRAWTEXT(BARSLAST(单阳)=3 AND 单阳不破,低不破价*0.98,'3'),COLORGREEN; DRAWTEXT(BARSLAST(单阳)=4 AND 单阳不破,低不破价*0.98,'4'),COLORGREEN; DRAWTEXT(BARSLAST(单阳)=5 AND 单阳不破,低不破价*0.98,'5'),COLORGREEN; DRAWTEXT(BARSLAST(单阳)=6 AND 单阳不破,低不破价*0.98,'6'),COLORGREEN; DRAWTEXT(BARSLAST(单阳)=7 AND 单阳不破,低不破价*0.98,'7'),COLORGREEN; DRAWTEXT(BARSLAST(单阳)=8 AND 单阳不破,低不破价*0.98,'8'),COLORGREEN; DRAWTEXT(BARSLAST(单阳)=9 AND 单阳不破,低不破价*0.98,'9'),COLORGREEN; DRAWTEXT(BARSLAST(单阳)=10 AND 单阳不破,低不破价*0.98,'10'),COLORGREEN;两天:=LLV(L,BARSLAST(单阳))>低不破价 OR LLV(L,BARSLAST(单阳))=低不破价;一般:=LLV(L,BARSLAST(单阳)-2)>低不破价 OR LLV(L,BARSLAST(单阳)-2)=低不破价;一般选股:STICKLINE(CURRBARSCOUNT<100 AND BARSLAST(单阳)<9 AND 两天 AND 一般,低不破价,低不破价,2,0),COLORWHITE;较强:=LLV(L,BARSLAST(单阳)-2)>中不破价 OR LLV(L,BARSLAST(单阳)-2)=中不破价;较强选股:STICKLINE(CURRBARSCOUNT<100 AND BARSLAST(单阳)<9 AND 两天 AND 较强,中不破价,中不破价,2,0),COLORMAGENTA;最强:=LLV(L,BARSLAST(单阳)-3)>高不破价 OR LLV(L,BARSLAST(单阳)-2)=高不破价;最强选股:STICKLINE(CURRBARSCOUNT<100 AND BARSLAST(单阳)<9 AND 两天 AND 最强,高不破价,高不破价,4,0),COLORYELLOW;现价:DRAWLINE(CURRBARSCOUNT=TOTALBARSCOUNT,CONST(C),CURRBARSCOUNT=1,C,3 )DOTLINE;VARR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));买盘:=IF(CLOSE>OPEN,VARR1*(HIGH-LOW),IF(CLOSE<OPEN,VARR1*((HIGH-OPEN)+( CLOSE-LOW)),VOL/2));成交量比:=买盘/VOL*100;主力持仓:=EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3); 主力筹码集中度:=WINNER(C)*100;散筹筹码集中度:=(WINNER(C*1.1)-WINNER(C*0.9))*100;量筹买点:=主力筹码集中度>主力持仓 AND 主力持仓>散筹筹码集中度AND 成交量比>89.9 AND FINANCE(7)<2500000000 AND DYNAINFO(7)>0;DRAWTEXT(量筹买点,REF(CLOSE,1),'量筹'),COLOR000055;STICKLINE(量筹买点,CLOSE,O,2.8,0),COLOR000055;STICKLINE(量筹买点,CLOSE,O,2,0),COLOR000088;STICKLINE(量筹买点,CLOSE,O,1.5,0),COLOR0000AA;STICKLINE(量筹买点,CLOSE,O,1,0),COLOR0000CC;STICKLINE(量筹买点,CLOSE,O,0.5,0),COLOR0000EE;D7:="MACD.DIF#WEEK"-"MACD.DEA#WEEK";D8:="MACD.DIF#MONTH"-"MACD.DEA#MONTH";黑马抄底:=CROSS("KDJ.J#WEEK"(9,3,3),0) AND D8>0 ORCROSS("KDJ.J#MONTH"(9,3,3),0) AND D7>0;STICKLINE(黑马抄底,CLOSE,OPEN,3,0),COLORYELLOW;{KDJ和MACD的周月之间的配合}DRAWTEXT(黑马抄底,LOW-0.03,'黑马'),COLORMAGENTA;STICKLINE(黑马抄底,CLOSE,OPEN,3.2,0),COLOR000099;STICKLINE(黑马抄底,CLOSE,OPEN,2.6,0),COLOR0000AA;STICKLINE(黑马抄底,CLOSE,OPEN,2.2,0),COLOR0000CC;STICKLINE(黑马抄底,CLOSE,OPEN,1.8,0),COLOR0000DD;STICKLINE(黑马抄底,CLOSE,OPEN,1.3,0),COLOR0000FF;STICKLINE(黑马抄底,CLOSE,OPEN,0.5,0),COLORCC66FF;FH11:=REF(MACD,1)<REF(MACD,2) AND REF(MACD,2)<REF(MACD,3) ANDREF(MACD,3)<REF(MACD,4);FH21:=MACD>=0 AND COUNT(MACD>REF(MACD,1),1)=1;FH3:=EMA(C,30)>=REF(EMA(C,30),1) AND COUNT(EMA(C,5)>EMA(C,10) AND EMA(C,10)>EMA(C,30),1)=1;FH4:=CROSS(C,EMA(C,30)) OR C>EMA(C,30);FH5:=FH11 AND FH21 AND FH3 AND FH4;FH6:=FH11 AND FH21 AND FH3 AND FH4 AND ABS((MACD.DIF-MACD.DEA)/C)<0.018; FH7:=FH11 AND FH21 AND FH3 AND FH4 AND MACD<0.10;腾:=FH5 OR FH6 OR FH7;DRAWTEXT(腾,(LOW * 0.985),'腾'),COLOR00FFFF;STICKLINE(腾,CLOSE,O,2.8,0),COLOR00FFFF;STICKLINE(腾,CLOSE,O,2,0),COLOR0077FF;STICKLINE(腾,CLOSE,O,1.5,0),COLOR0099FF;STICKLINE(腾,CLOSE,O,1,0),COLOR00AAFF;STICKLINE(腾,CLOSE,O,0.5,0),COLOR00CCFF;M月:=CROSS("MACD.DIF#MONTH","MACD.DEA#MONTH");DRAWTEXT(M月,LOW-0.04,'M月'),COLORMAGENTA;K月:DRAWTEXT(CROSS("KDJ.K#MONTH"(9,3,3),"KDJ.D#MONTH"(9,3,3)) ,LOW-0.0 5,'K月'),COLORMAGENTA;K周:DRAWTEXT(CROSS("KD.K#WEEK"(9,3,3),"KD.D#WEEK"(9,3,3)) ,LOW-0.08,'K 周'),COLORRED;M周:=CROSS("MACD.DIF#WEEK","MACD.DEA#WEEK");DRAWTEXT(M周,LOW-0.1,'M周'),COLORRED;月叉:DRAWTEXT(CROSS("KDJ.D#MONTH"(9,3,3),"KDJ.K#MONTH"(9,3,3)) ,H+0.05, 'K20'),COLORGREEN;周叉:DRAWTEXT(CROSS("KDJ.D#WEEK"(9,3,3),"KDJ.K#WEEK"(9,3,3)) ,H+0.08,'K 5'),COLORGREEN;M5:=CROSS("MACD.DEA#WEEK","MACD.DIF#WEEK");DRAWTEXT(M5,H+0.10,'M5'),COLORGREEN;M20:=CROSS("MACD.DEA#MONTH","MACD.DIF#MONTH");DRAWTEXT(M20,(H+0.15),'M20'),COLORGREEN;STICKLINE(月叉 OR 周叉 OR M5 OR M20,HIGH,LOW,0.2,0),COLORGREEN; STICKLINE(月叉 OR 周叉 OR M5 OR M20,OPEN,CLOSE,0.2, 0),COLORGREEN;STICKLINE(M月 OR K月 OR K周 OR M周,OPEN,CLOSE,2.8,0),COLOR808080; STICKLINE(M月 OR K月 OR K周 OR M周,OPEN,CLOSE,2.5,0),COLOR919890; STICKLINE(M月 OR K月 OR K周 OR M周,OPEN,CLOSE,2.2,0),COLORB4B5AF; STICKLINE(M月 OR K月 OR K周 OR M周,OPEN,CLOSE,1.7,0),COLORCCCCCC; STICKLINE(M月 OR K月 OR K周 OR M周,OPEN,CLOSE,1.2,0),COLORDDDDDD; STICKLINE(M月 OR K月 OR K周 OR M周,OPEN,CLOSE,0.8,0),COLOREEEEEE; STICKLINE(M月 OR K月 OR K周 OR M周,OPEN,CLOSE,0.4,0),COLORF5F1F1; STICKLINE(M月 OR K月 OR K周 OR M周,OPEN,CLOSE,0.1,0),COLORFFFAFA;T0:=BARSCOUNT(CLOSE)>12;T1:=CLOSE=LLV(CLOSE,12);T2:=RSI.RSI1>LLV(RSI,12);T3:=RSI.RSI1<21;TRSI:=T0 AND T1 AND T2 AND T3 AND CLOSE/HHV(CLOSE,120)<0.7;RSI成W底:=IF(REF(TRSI,1) AND CLOSE>REF(CLOSE,1),1,0);DRAWTEXT(RSI成W底,(L*0.98),'W'),COLORLIMAGENTA;{RSI在低位上穿且收盘价是12来最低}STICKLINE(RSI成W底,OPEN,CLOSE,2,0),COLORLIMAGENTA;WR:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));WR反向:=(0-WR)-100,COLORYELLOW;RSI买点:=RSI.RSI1<20 AND RSI.RSI1>REF(RSI.RSI1,1);WR反向买点:=WR反向>-80 AND WR反向<REF(WR反向,1);梁队长选股:=RSI买点 AND WR反向买点;DRAWTEXT(梁队长选股,LOW-0.03,'梁')COLORRED;{WR和RSI的双重买点}STICKLINE(梁队长选股,OPEN,CLOSE,3,0)COLORRED;STICKLINE(梁队长选股,HIGH,LOW,0,1),COLORYELLOW,LINETHICK2; STICKLINE(梁队长选股,OPEN,CLOSE,2.5,0),COLOR0033FF;STICKLINE(梁队长选股,OPEN,CLOSE,2.1,0),COLOR00BEFF;STICKLINE(梁队长选股,OPEN,CLOSE,1.7,0),COLOR13BCFF;STICKLINE(梁队长选股,OPEN,CLOSE,1.3,0),COLOR13D1FF;STICKLINE(梁队长选股,OPEN,CLOSE,0.9,0),COLOR00D6FF;STICKLINE(梁队长选股,OPEN,CLOSE,0.4,0),COLOR13E5FF;STICKLINE(梁队长选股,OPEN,CLOSE,0,0),COLOR00F6FC;LC:=REF(CLOSE,1);AG:=REF(RSI.RSI1<45,1) AND RSI.RSI1>45;TYP:=(HIGH+LOW+CLOSE)/3;CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));B:=REF(CCI<-100,1) AND CCI>=-100;MMS:=MA(3*RSI.RSI2-2*SMA(MAX(CLOSE-LC,0),16,1)/SMA(ABS(CLOSE-LC),16,1 )*100,3);W:=REF(MMS<39,1) AND MMS>=39;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);JG:=3*K-2*D;F:=REF(JG<10,1) AND JG>=10;牛股:=AG AND B AND W AND F;STICKLINE(牛股,OPEN,CLOSE,2.5,0),COLORMAGENTA;{3个指标会和而成其中RSI强势KDJ低位}DRAWTEXT(牛股,(L-0.08),'牛股'),COLORMAGENTA;BIAS0:= (C-MA(C,2))/MA(C,2)*100;D1:=INDEXC;D2:=MA(D1,13);DR2:=D2>1.050*D1;E2:=(C-REF(C,26))/REF(C,26)*10;SJ1:=DR2;SJ2:=E2<-2.30;SJ3:=BIAS0<-2.7;SJ5:=SJ1 AND SJ2 AND SJ3;SJ6:=CROSS(0.5,SJ5);JS1:=CROSS(SJ6,0.5);JS2:=BARSLAST(JS1=1);JS3:=JS2<=5 AND C<REF(C,JS2);赛:=SJ6 OR JS3;DRAWTEXT(赛,(L*0.97),'赛'),COLORRED;{大赛排名第一}STICKLINE(赛,OPEN,CLOSE,1,0)COLORRED;AA05:=MA(C,5);五日乖离率:=(C-AA05)/AA05*100;AA30:=MA(C,30);三拾日乖离率:=(C-AA30)/AA30*100;MR:=COUNT(CROSS(五日乖离率,0),3)>=1 AND 三拾日乖离率>REF(三拾日乖离率,1) AND AA05>REF(AA05,1) AND (C/REF(C,1)-1)*100>5 AND REF(C,1)<AA30; 买入:=FILTER(MR,10);BIAS1:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;BIAS2:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;BIAS3:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;乖离:=MA(BIAS,3);接近底部:=(乖离<-12 AND 乖离>=-18);乖离抄底:=IF(乖离<-18,1,0);乖离信号:=乖离抄底 OR 买入;DRAWTEXT(乖离信号,(L*0.93),'乖'),COLOR7FFF00;VAR41:=CLOSE/MA(CLOSE,30)*100<75;VAR42:=CLOSE/MA(CLOSE,50)*100<78;VAR43:=HIGH>LOW*1.053;VAR44:=VAR43 AND COUNT(VAR43,5)>2;VAR45:=VAR44 AND (VAR41 OR VAR42);VAR46:=DMA(EMA(CLOSE,5),SUM(VOL,8)/2.8/CAPITAL);VAR47:=(CLOSE-VAR46)/VAR46*100;赢:=REF(VAR47,1)<-34 AND VAR47>REF(VAR47,1) ANDREF(VAR47,1)<REF(VAR47,2)AND VAR47-REF(VAR47,1)>1.76 OR VAR45;DRAWTEXT(赢,(L*0.88),'赢'),COLORMAGENTA;获利:=WINNER(CLOSE)*100;{}获利盘:=WINNER(C)*100;近邻筹码:=(WINNER(C*1.07)-WINNER(C*0.93))*85;获利纵横:=获利盘-近邻筹码,NODRAW;换手率:=V/CAPITAL*100;AGA:=IF(DYNAINFO(8)>0.01,0.01*DYNAINFO(10)/DYNAINFO(8),DYNAINFO(3)); AGB:=(DYNAINFO(5)<0.01 || DYNAINFO(6)<0.01);AGC:=IF(AGB,1,(AGA<(DYNAINFO(5)+0.01) && AGA>(DYNAINFO(6)-0.01))); MA21:=IF(AGC,0.01*EXPMA(AMOUNT,21)/EXPMA(VOL,21),EMA((HIGH+LOW+CLOSE) /3,21));MA60:=IF(AGC,0.01*EXPMA(AMOUNT,60)/EXPMA(VOL,60),EMA((HIGH+LOW+CLOSE) /3,60));MA∞:=IF(AGC,DMA(AMOUNT/(100*VOL),100*VOL/FINANCE(7)),EMA((HIGH+LOW+CLO SE)/3,120));收盘价:=CLOSE;TJ1:=获利>40;TJ2:=MA60>MA∞ AND MA21>MA60;TJ3:=收盘价<MA∞;受伤庄股:=TJ1 AND TJ2 AND TJ3 STICK;DRAWTEXT(受伤庄股,(L*0.99),'伤'),COLORCYAN;跟进:=COUNT(获利纵横>REF(获利纵横,1),5)=5 AND 获利盘>REF(获利盘,1)STICK;DRAWTEXT(跟进,(L*0.995),'横'),COLORRED;锁仓:=获利盘>=85 AND 近邻筹码<30 AND 换手率<5 STICK; DRAWTEXT(锁仓,(L*0.99),'锁'),COLORWHITE;强庄:=CROSS(获利盘,近邻筹码)AND 获利盘>50 AND 获利纵横>30 STICK COLORRED;DRAWTEXT(强庄,(L*0.97),'强'),COLORRED;启动:=REF(获利盘,1)<50 AND 获利盘>60 AND 近邻筹码<REF(近邻筹码,1)STICK;DRAWTEXT(启动,LOW-0.03,'启'),COLOR5555FF;STICKLINE(启动,CLOSE,O,2.8,0),COLOR4444FF;STICKLINE(启动,CLOSE,O,2,0),COLOR5555FF;STICKLINE(启动,CLOSE,O,1.5,0),COLOR7777FF;STICKLINE(启动,CLOSE,O,1,0),COLOR9999FF;博弈K线长:=100*(WINNER(CLOSE)-WINNER(OPEN));博弈K线收盘差:=博弈K线长>=20;大单动向:(LARGEINTRDVOL-LARGEOUTTRDVOL)*10000/FINANCE(7),NODRAW; HSL:=100*VOL/(FINANCE(7)/100);换手:=MA(HSL,1)<3;博弈长阳:=博弈K线收盘差 AND 换手 COLORMAGENTA;DRAWTEXT(博弈长阳,LOW-0.03,'博弈'),COLORMAGENTA;STICKLINE(博弈长阳,CLOSE,O,2.8,0),COLOR770077;STICKLINE(博弈长阳,CLOSE,O,2,0),COLOR990099;STICKLINE(博弈长阳,CLOSE,O,1.5,0),COLORBB00BB;STICKLINE(博弈长阳,CLOSE,O,1,0),COLORDD00DD;STICKLINE(博弈长阳,CLOSE,O,0.5,0),COLORFF00FF;三日:=SUM(大单动向,3);五日:=SUM(大单动向,5);十日:=SUM(大单动向,10);二十日:=SUM(大单动向,20);三十日:=SUM(大单动向,30);六十日:=SUM(大单动向,60);涨:=大单动向>0 AND 三日>0 AND 五日>0 AND 十日>0 AND 二十日>0 AND 三十日>0 AND 六十日>0;DRAWTEXT(涨,(LOW * 0.99),'资'),COLORRED;K1:=REF(C,1)=DYNAINFO(3) AND O=DYNAINFO(4) AND C=DYNAINFO(7) ANDH=DYNAINFO(5) AND L=DYNAINFO(6);K2:=BARSLAST(V=HHV(V,20));K3:=BACKSET(K1,K2+1);STICKLINE(K2=0 AND K3=1,H,H*1.003,8*N,0),COLORYELLOW;收:C,NODRAW;DRAWTEXT(S=1&&K2=0&&K3=1,H*1.02,'20天内的最高量'),COLORYELLOW;【通达信】单阳不破整合(主图)-指标公式效果图(文档来源:好股票网)。
通达信_指标公式源码大全
【通达信】魔鬼操盘(主图)-指标公式源码均5:MA(CLOSE,5) COLORYELLOW;均10:MA(CLOSE,10)COLORGREEN;均30: MA(CLOSE,30) COLORMAGENTA ;均60: MA(CLOSE, 60) COLORRED POINTDOT LINETHICK3;均250: MA(CLOSE, 250) COLORBLUE LINETHICK2 ;魔鬼通道上:均30 + 2*STD(CLOSE,60) COLORYELLOW POINTDOT LINETHICK2 ;魔鬼通道下:均30 - 2*STD(CLOSE,60) COLORYELLOW POINTDOT LINETHICK2; VAR1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;VAR2:=SMA(VAR1,3,1);VAR3:=SMA(VAR2,3,1);VAR4:=VAR1*;VAR5:=MA(CLOSE,5);VAR6:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;VAR7:=SMA(VAR6,5,1);VAR8:=VOL>REF(VOL,1);VAR9:=MA(VOL/CAPITAL,30)*MA(VOL,60)/10000+MA(CLOSE,30);【通达信】平均价格(主图)-指标公式源码A:=(3*C+H+L+O)/6;XJ:=(A+*REF(A,1)+*REF(A,2)+*REF(A,3)+*REF(A,4))/;YCZXH:=(MA(HHV(A,2),5)+MA(HHV(A,2),13)+MA(HHV(A,2),21)+MA(HHV(A,2),32 ))/4;YCZXL:=(MA(LLV(A,2),5)+MA(LLV(A,2),13)+MA(LLV(A,2),21)+MA(LLV(A,2),32 ))/4;SMH:EMA(YCZXH,21),COLOR004000;SML:EMA(YCZXL,21),COLOR004000;SMJ:(SML+SMH)/2,COLOR004000;PJ:=(10*A+9*REF(A,1)+8*REF(A,2)+7*REF(A,3)+6*REF(A,4)+5*REF(A,5)+4*RE F(A,6)+3*REF(A,7)+2*REF(A,8)+REF(A,9))/55;A1:=EMA(PJ,3),COLOR004000;A2:=EMA(PJ,5),COLOR004000;A3:=EMA(PJ,7),COLOR004000;A4:=EMA(PJ,9),COLOR004000;A5:=EMA(PJ,11),COLOR004000;LX:=REF(XJ,1);ZD:=(SMA(MAX(XJ-LX,0),5,1)/SMA(ABS(XJ-LX),5,1))*100;KX1:=(CLOSE>=OPEN) AND ZD>=50;KX2:=(CLOSE<OPEN) AND ZD>=50;KX3:=(CLOSE>=OPEN) AND ZD<50;KX4:=(CLOSE<OPEN) AND ZD<50;IF(A5<REF(A5,1),A5,DRAWNULL),COLOR820000,LINETHICK2;IF(A5>REF(A5,1),A5,DRAWNULL),COLOR00005B,LINETHICK2;IF(A4<REF(A4,1),A4,DRAWNULL),COLOR8C0000,LINETHICK1;IF(A4>REF(A4,1),A4,DRAWNULL),COLOR000055,LINETHICK1;IF(A3<REF(A3,1),A3,DRAWNULL),COLOR9B0000,LINETHICK1;IF(A3>REF(A3,1),A3,DRAWNULL),COLOR00006C,LINETHICK1;IF(A2<REF(A2,1),A2,DRAWNULL),COLORBB0000,LINETHICK1;IF(A2>REF(A2,1),A2,DRAWNULL),COLOR00007D,LINETHICK1;IF(A1<REF(A1,1),A1,DRAWNULL),COLORCC0000,LINETHICK1;IF(A1>REF(A1,1),A1,DRAWNULL),COLOR00009B,LINETHICK1;STICKLINE(KX1,C,O,4,1),COLOR4440FF;STICKLINE(KX1,C,H,,1),COLOR4440FF;STICKLINE(KX1,O,L,,1),COLOR4440FF;STICKLINE(KX2,C,O,4,0),COLOR4440FF;STICKLINE(KX2,O,H,,0),COLOR4440FF;STICKLINE(KX2,C,L,,0),COLOR4440FF;STICKLINE(KX3,C,O,4,1),COLORFFFF33;STICKLINE(KX3,C,H,,1),COLORFFFF33;STICKLINE(KX3,O,L,,1),COLORFFFF33;STICKLINE(KX4,C,O,4,0),COLORFFFF33;STICKLINE(KX4,O,H,,0),COLORFFFF33;STICKLINE(KX4,C,L,,0),COLORFFFF33;【通达信】牛劲十足(副图)-指标公式源码VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));ZM:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CL OSE-LOW)),VOL/2)),COLORRED,POINTDOT;ZM1:=IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-V AR1*(HIGH-LOW),0-VOL/2)),COLOR00FF00,POINTDOT;MMB:=(SUM(ZM,30)+SUM(ZM1,30))/10,COLORYELLOW;SG:=MMB>0 AND REF(MMB,1)<MMB;上攻周期:COUNT(SG,5),LINESTICK,COLORWHITE;JSC:=上攻周期<1;DBQD:=FILTER(COUNT(JSC,5)>3 AND NOT(JSC),10);DRAWICON(DBQD,2,1);DRAWBAND(上攻周期,RGB(255,120,120),3,RGB(0,0,0));DRAWBAND(JSC,RGB(0,0,255),,RGB(0,0,0));STICKLINE(COUNT(上攻周期>3,5)>=3 AND SG,0,上攻周期,,0),COLORRED; XG: COUNT(COUNT(上攻周期>3,5)>=3 AND SG,20)>4;【通达信】魔鬼K线(副图)-指标公式源码VAR1:=REF(OPEN,1);VAR2:=SMA(MAX(OPEN-VAR1,0),6,1)/SMA(ABS(OPEN-VAR1),6,1)*100;VAR3:=REF(CLOSE,1);VAR4:=SMA(MAX(CLOSE-VAR3,0),6,1)/SMA(ABS(CLOSE-VAR3),6,1)*100;VAR5:=REF(HIGH,1);VAR6:=SMA(MAX(HIGH-VAR5,0),6,1)/SMA(ABS(HIGH-VAR5),6,1)*100;VAR7:=REF(LOW,1);VAR8:=SMA(MAX(LOW-VAR7,0),6,1)/SMA(ABS(LOW-VAR7),6,1)*100; STICKLINE(VAR4<VAR2,VAR2,VAR4,5,0),COLORGREEN , ;STICKLINE(VAR4>VAR2,VAR2,VAR4,5,0),COLORRED , ;STICKLINE(VAR4>VAR2 AND VAR6>VAR8 ANDVAR8>VAR4,VAR4,VAR6,,1),COLORRED , ;STICKLINE(VAR4>VAR2 AND VAR6>VAR8 ANDVAR8<VAR4,VAR4,VAR6,,1),COLORRED ,;STICKLINE(VAR4>VAR2 AND VAR6<VAR8 ANDVAR6>VAR4,VAR4,VAR8,,1),COLORRED , ;STICKLINE(VAR4>VAR2 AND VAR6>VAR8 ANDVAR6<VAR2,VAR2,VAR8,,1),COLORRED , ;STICKLINE(VAR4>VAR2 AND VAR6>VAR8 ANDVAR6>VAR2,VAR2,VAR8,,1),COLORRED , ;STICKLINE(VAR4>VAR2 AND VAR6<VAR8 ANDVAR8<VAR2,VAR2,VAR6,,1),COLORRED , ;STICKLINE(VAR4>VAR2 AND VAR6<VAR8 ANDVAR8>VAR2,VAR2,VAR6,,1),COLORRED , ;STICKLINE(VAR4<VAR2 AND VAR6>VAR8 ANDVAR6<VAR4,VAR4,VAR8,,1),COLORGREEN , ;STICKLINE(VAR4<VAR2 AND VAR6<VAR8 ANDVAR8<VAR4,VAR4,VAR6,,1),COLORGREEN , ;STICKLINE(VAR4<VAR2 AND VAR6<VAR8 ANDVAR6>VAR4,VAR4,VAR8,,1),COLORGREEN , ;STICKLINE(VAR4<VAR2 AND VAR6>VAR8 ANDVAR6<VAR4,VAR2,VAR8,,1),COLORGREEN ,;STICKLINE(VAR4<VAR2 AND VAR6>VAR8 ANDVAR6>VAR4,VAR2,VAR8,,1),COLORGREEN , ;STICKLINE(VAR4<VAR2 AND VAR6<VAR8 AND VAR8<VAR2,VAR2,VAR6,,1), COLORGREEN , ;STICKLINE(VAR4<VAR2 AND VAR6<VAR8 ANDVAR8>VAR2,VAR2,VAR6,,1),COLORGREEN , ;【通达信】牛熊分界(立桩量、中线)-指标公式源码AAA:=(3*C+H+L+O)/6;VAR1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3 )+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;VAR2:=(HHV(VA R1,5)+HHV(VAR1,10)+HHV(VAR1,20))/3;VAR3:=(LLV(VAR1,5)+LLV(VAR1,10)+LL V(VAR1,20))/3;VAR4:=(HHV(VAR2,5)+HHV(VAR2,10)+HHV(VAR2,20))/3;VAR5:=( LLV(VAR3,5)+LLV(VAR3,10)+LLV(VAR3,20))/3;VAR6:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3;DRAWBAND(VAR1,RGB(155,50,50),VAR6,RGB(250,250,0));短线:VAR1,COLORWHITE;中线:VAR6,COLORYELLOW;金叉:短线>中线 AND REF(短线,1)=REF(中线,1),NODRAW;下跌:IF(VAR1=VAR6,VAR6,DRAWNULL),COLORGREEN;TJ1:=VOL=HHV(VOL,10)AND VOL>2*REF(VOL,1)AND CLOSE>VAR1;立桩量:=FILTER(TJ1,5);TJ2:=IF(BARSLAST(立桩量)=1 ANDCLOSE>REF(HIGH,1),1,IF(BARSLAST(立桩量)=2 ANDCLOSE>REF(HIGH,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(HIGH,3),1,0)));突破:TJ2=1,NODRAW;STICKLINE(CLOSE,REF(HIGH,BARSLAST(立桩量)),REF(HIGH,BARSLAST(立桩量)),1,0),COLORCYAN;STICKLINE(CLOSE,REF(LOW,BARSLAST(立桩量)),REF(LOW,BARSLAST(立桩量)),1,0),COLORYELLOW;STICKLINE(C>=O,C,O,3,0),COLOR000045;STICKLINE(C >=O,C,O,,0),COLOR000065;STICKLINE(C>=O,C,O,2,0),COLOR000085;STICKLINE (C>=O,C,O,,0),COLOR0000A5;STICKLINE(C>=O,C,O,1,0),COLOR0000C5;STICKLI NE(C>=O,C,O,,0),COLOR0000E5;STICKLINE(C>=O,H,L,0,0),COLOR0000F5;STICK LINE(C<O,C,O,3,0),COLOR353500;STICKLINE(C<O,C,O,,0),COLOR454500;STICK LINE(C<O,C,O,2,0),COLOR555500;STICKLINE(C<O,C,O,,0),COLOR656500;STICK LINE(C<O,C,O,1,0),COLOR757500;STICKLINE(C<O,C,O,,0),COLOR858500;STICK LINE(C<O,H,L,0,0),COLOR959500;ZRR:=(YEAR-1992)*365+INTPART((YEAR-1989 )/4)+IF(MONTH<=2,DAY+(MONTH-1)*31,DAY+INTPART(13*(MONTH+1)/5)-7+(MONT H-1)*28+IF(INTPART(YEAR/4)=YEAR/4,1,0)),NODRAW;T:=BARSLAST(ZRR-REF(ZR R,1)>WEEKDAY-REF(WEEKDAY,1))+1,NODRAW;T1:=REF(T,T)+T,NODRAW;T2:=REF(T ,T1)+T1,NODRAW;T3:=REF(T,T2)+T2,NODRAW;T4:=REF(T,T3)+T3,NODRAW;T5:=RE F(T,T4)+T4,NODRAW;T6:=REF(T,T5)+T5,NODRAW;T7:=REF(T,T6)+T6,NODRAW;T8:=REF(T,T7)+T7,NODRAW;周10:(REF(CLOSE,T)+REF(CLOSE,T1)+REF(CLOSE,T2)+REF(CLOSE,T3)+REF(CLOSE, T4)+REF(CLOSE,T5)+REF(CLOSE,T6)+REF(CLOSE,T7)+REF(CLOSE,T8)+CLOSE)/10 ,LINETHICK2;【通达信】牛准反弹(快线、慢线)-指标公式源码N:=9;M1:=3;M2:=3;P:=9;快线:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;慢线:=SMA(快线,M1,1);ELI空:=SMA(慢线,M2,1);ELI牛股:=IF(BARSLAST(CROSS(慢线,ELI空))<P AND CROSS(慢线,ELI空) AND 慢线<20,90,0);LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),,1)/SMA(ABS(CLOSE-LC),,1)*100;牛准反弹:=CROSS(RSI,11)*80;XG:牛准反弹 OR ELI牛股;【通达信】启动提示(平台线、启动线)-指标公式源码启动线:SUM(EMA((C+L)/2,2),5)/,COLORRED;平衡线:LLV(SUM( EMA((C+L)/2,2),5)/,4),COLORFF00FF;平台线:LLV(SUM( EMA((C+L)/2,2),5)/,10),COLORFFFFFF;强弱线:EMA(启动线,21),COLORYELLOW;STICKLINE(平台线<启动线,启动线,平台线,,0),COLORFFCCAA;STICKLINE(平衡线<启动线,启动线,平衡线,,0),COLORRED;VAR1:=2*MA(LLV((C+L)/2,8)*,13)-EMA((C+L)/2,3)-((C+L)/2)*;VAR2:=IF((EMA((C+L)/2,3)-VAR1)*5>0,POW((EMA((C+L)/2,3)-VAR1)*5,2)/10, -1*POW((EMA((C+L)/2,3)-VAR1)*5,2)/10);VAR3:=IF(VAR2>0,VAR2-0,0);STICKLINE(VAR3>0 AND REF(VAR3,1)=0 AND (C+L)/2>MA((C+L)/2,8),强弱线,强弱线+,4,0),COLORFFAACC;DRAWTEXT(VAR3>0 AND REF(VAR3,1)=0 AND (C+L)/2>MA((C+L)/2,8),强弱线+,'注意控制'),LINETHICK3,COLORFFAACC;【通达信】平台启动(主图)-指标公式源码圣:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;灵:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;石:=SMA(灵,13,8);仙:=CEILING(SMA(石,13,8));编著:=SMA(圣,21,8);AABB:=IF(L,CONST(L),DRAWNULL);平台启动:STICKLINE(仙-编著>75,AABB,AABB*,15,1),COLOR0000FF;VARZT:=BARSLAST(平台启动);DRAWTEXT(VARZT=1,*(AABB+AABB*/2,'平台启动'),COLORYELLOW;【通达信】牛熊线分水岭(中线强弱拐点)-指标公式源码JJ:=(CLOSE+HIGH+LOW)/3;A:=EMA(JJ,10);B:=REF(A,1);M1:=EMA(CLOSE,3);M2:EMA(CLOSE,8);分水岭:SMA(M2,,,LINETHICK2,COLORRED;牛线:3*M2-2*分水岭,LINETHICK2,COLORFF00FF ;熊线:4*分水岭-3*M2,LINETHICK2,COLORGREEN;IF (牛线<=熊线,牛线,熊线),COLORGREEN,LINETHICK2;IF (分水岭<=熊线,分水岭,熊线),COLORGREEN,LINETHICK2;IF(牛线>REF(熊线,1),熊线,DRAWNULL),COLORFF2200,LINETHICK2;M3:EMA(M2,13);M4:EMA(M2,55);VAR1:=EMA(M3,55);M5:EMA(M4,81), COLORRED,LINETHICK1;股道:=(1-C/SMA(C,13,1))*100;基础:=EMA(C,43);中线强弱拐点:EMA(股道*C/100+基础,3),COLORGRAY,LINETHICK1;炒股不亏钱(散户必看)炒股入门口诀一、赢家重在观念正确1 一年做一股!忠告,轻易不抛牛股,毕业。
通达信成功率高的选股指标公式
通达信成功率高的选股指标公式代码集{逆势买入}Var1b:=DMA(CLOSE,VOL/MA(VOL,4)/4);Var2b:=DMA(CLOSE,VOL/MA(VOL,32)/32);Var3b:=(CLOSE-Var1b)/Var1b*100<-8;Var4b:=(Var1b-Var2b)/Var2b*100<-21;逆势买入:if(V ar3b AND Var4b AND (OPEN-REF(CLOSE,1))/REF(CLOSE,1)>-0.05,45,0),stick,linethick3,col orf00ff0;drawtext(逆势买入,40,'逆势买入'),colorf0f000;============================{龙战四海:99%成功率,选股条件:龙战四海=65}Var1c:=REF(OPEN,1)<REF(OPEN,2);Var2c:=REF(CLOSE,1)<REF(CLOSE,2);Var3c:=REF(LOW,1)<REF(LOW,2);Var4c:=OPEN>REF(CLOSE,1) AND OPEN/REF(CLOSE,1)>=1.03; Var5c:=CLOSE>OPEN AND CLOSE/OPEN>1.03;Var6c:=Var1c AND Var2c AND Var3c AND Var4c AND Var5c;Var7c:=CLOSE/MA(CLOSE,3)>=1.07 AND CLOSE=HHV(CLOSE,3) AND MA(VOL,2)/MA(VOL,40)>=3 AND MA(VOL,2)=HHV(MA(VOL,2),3) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);Var8c:=REF(CLOSE,1);Var9c:=SMA(MAX(CLOSE-Var8c,0),5,1)/SMA(ABS(CLOSE-Var8c),5, 1)*100;VarA:=COUNT(Var9c<20,20)>=1;VarB:=Var7c AND VarA;龙战四海:if(VarB AND Var6c,65,0),colorf0f000;drawtext(龙战四海,55,'龙战四海'),colorf00ff0;{股价经历了相当长一段时间下跌后,做空能量逐渐消耗。
【股票指标公式下载】【通达信】波段K线解盘(中短波、早晨之星、黄昏之星、大阴烛)
【通达信】波段K线解盘(中短波、早晨之星、黄昏之星、大阴烛)-指标公式源码{中短波}短波:EMA(EMA(CLOSE,13),1),COLOR00DD00;中波:EMA(EMA(CLOSE,13),26),COLORRED;HZ2:EMA(EMA(CLOSE,13),8),COLORGREEN,LINETHICK2;HZ4:EMA(EMA(CLOSE,13),39),COLORFF00FF,LINETHICK2;STICKLINE(HZ2<HZ4,短波,HZ4,1,0),COLORBLUE ;STICKLINE(短波>HZ2,短波,HZ2,1,0),COLORGREEN;STICKLINE(中波>HZ4,中波,HZ4,1,0),COLORFF00FF;DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);{红}STICKLINE(MACD>0,C,O,2.8,0),COLOR000080;STICKLINE(MACD>0,H,L,0,0),COLOR0000E5;{淡蓝}STICKLINE(MACD<0 AND MACD<REF(MACD,1),C,O,2.8,0),COLORFF9900; STICKLINE(MACD<0 AND MACD<REF(MACD,1),H,L,0,0),COLORFFFF00;{黄}STICKLINE(MACD<0 AND MACD>REF(MACD,1),C,O,2.8,0),COLOR0099FF; STICKLINE(MACD<0 AND MACD>REF(MACD,1),H,L,0,0),COLOR00FFFF;T1{早晨之星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) < 0.95 AND REF(OPEN,1) < REF(CLOSE,2) AND ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.03 AND CLOSE/OPEN>1.05 AND CLOSE>REF(CLOSE,2)),1,0));T2{黄昏之星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) > 1.03 AND REF(OPEN,1) > REF(CLOSE,2) AND ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.02 AND CLOSE/OPEN<0.97 AND CLOSE<REF(CLOSE,2)),1,0));T3{长十字}:=CONST(IF((CLOSE=OPEN AND HIGH/LOW >1.03),1,0));T4{垂死十字}:=CONST(IF((CLOSE=OPEN AND CLOSE=LOW ANDCLOSE!=HIGH),1,0));T5{早晨十字星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) < 0.95 ANDREF(OPEN,1)< REF(CLOSE,2) AND REF(OPEN,1)=REF(CLOSE,1) ANDCLOSE/OPEN>1.05 AND CLOSE>REF(CLOSE,2)),1,0));T6{黄昏十字星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) > 1.05 ANDREF(OPEN,1)> REF(CLOSE,2) AND REF(OPEN,1)=REF(CLOSE,1) ANDCLOSE/OPEN<0.95 AND CLOSE<REF(CLOSE,2)),1,0));T7{射击之星}:=CONST(IF((MIN(OPEN,CLOSE)=LOW AND HIGH-LOW >3*(MAX(OPEN,CLOSE)-LOW) AND CLOSE > MA(CLOSE,5)),1,0));T8{倒转锤头}:=CONST(IF((MIN(OPEN,CLOSE)=LOW AND HIGH-LOW >3*(MAX(OPEN,CLOSE)-LOW) AND CLOSE < MA(CLOSE,5)),1,0));T9{锤头}:=CONST(IF((HIGH = MAX(OPEN,CLOSE) AND HIGH-LOW >3*(HIGH-MIN(OPEN,CLOSE)) AND CLOSE < MA(CLOSE,5)),1,0));T10{吊颈}:=CONST(IF((HIGH = MAX(OPEN,CLOSE) AND HIGH-LOW >3*(HIGH-MIN(OPEN,CLOSE)) AND CLOSE>MA(CLOSE,5)),1,0));T11{穿头破脚}:=CONST(IF(((REF(CLOSE,1)/REF(OPEN,1)>1.03 ANDCLOSE/OPEN<0.96AND CLOSE<REF(OPEN,1)AND OPEN>REF(CLOSE,1))OR (REF(CLOSE,1)/REF(OPEN,1)<0.97 ANDCLOSE/OPEN>1.04AND CLOSE>REF(OPEN,1) AND OPEN<REF(CLOSE,1))),1,0));T12{乌云盖顶}:=CONST(IF((REF(CLOSE,1)/REF(OPEN,1)>1.03 ANDCLOSE/OPEN<0.97AND OPEN>REF(CLOSE,1) AND CLOSE<REF(CLOSE,1)),1,0));T13{曙光初现}:=CONST(IF((REF(CLOSE,1)/REF(OPEN,1)<0.97 ANDCLOSE/OPEN>1.03AND OPEN<REF(CLOSE,1) AND CLOSE>REF(CLOSE,1)),1,0));T14{身怀六甲}:=CONST(IF((ABS(REF(CLOSE,1)-REF(OPEN,1))/REF(CLOSE,1) > 0.04AND ABS(CLOSE-OPEN)/CLOSE<0.005 ANDMAX(CLOSE,OPEN) < MAX(REF(CLOSE,1),REF(OPEN,1)) AND MIN(CLOSE,OPEN) > MIN(REF(CLOSE,1),REF(OPEN,1))),1,0));T15{十字胎}:=CONST(IF((ABS(REF(CLOSE,1)-REF(OPEN,1))/REF(CLOSE,1) > 0.04AND CLOSE=OPEN ANDCLOSE < MAX(REF(CLOSE,1),REF(OPEN,1)) AND CLOSE > MIN(REF(CLOSE,1),REF(OPEN,1))),1,0));T16{平顶}:=CONST(IF((ABS(HIGH-REF(HIGH,1))/HIGH<0.001),1,0));T17{平底}:=CONST(IF(((ABS(LOW-REF(LOW,1))/LOW<0.001 AND ABS(REF(LOW,1)-REF(LOW,2))/REF(LOW,1)<=0.001)),1,0));T18{大阳烛}:=CONST(IF((CLOSE/OPEN>1.05 AND HIGH/LOW <CLOSE/OPEN+0.018),1,0));T19{三个白武士}:=CONST(IF((REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1) >REF(OPEN,1) AND CLOSE>OPENAND REF(CLOSE,1)>REF(CLOSE,2) AND CLOSE>REF(CLOSE,1)),1,0));T20{双飞乌鸦}:=CONST(IF((REF(CLOSE,1)<REF(OPEN,1) AND CLOSE<OPENAND CLOSE/OPEN<0.98),1,0));T21{孕育线}:=CONST(IF((REF(CLOSE,2)>REF(OPEN,2) AND (REF(CLOSE,2)-REF(OPEN,2))/REF(OPEN,2)>=2/100 AND REF(OPEN,1)>=REF(CLOSE,1)AND (REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<=2/100 AND REF(OPEN,1)<=REF(CLOSE,2) AND REF(CLOSE,1)>=REF(OPEN,2) AND C>=OPENAND (CLOSE-OPEN)/OPEN>=2/100 AND CLOSE>=REF(OPEN,1) ANDOPEN<=REF(CLOSE,1)AND(MAX(CLOSE,REF(C,2))-MIN(CLOSE,REF(CLOSE,2)))/MIN(CLOSE,REF(CLOSE,2)) <=1/100),1,0));T22{多方炮}:=CONST(IF((REF(CLOSE,2)>REF(OPEN,2) ANDREF(CLOSE,1)<REF(OPEN,1)AND CLOSE>OPEN),1,0));T23{出水芙蓉}:=CONST(IF(((OPEN<EMA(C,20) OR OPEN<EMA(C,40) OR OPEN< EMA(C,60)) AND (C>MAX(EMA(C,20),MAX(EMA(C,40),EMA(C,60))))AND(V/MA(V,30)>1.2 AND C/REF(C,1)>1.049)),1,0));T24{上升三部曲}:=CONST(IF((REF(CLOSE,4)/REF(OPEN,4)>1.03 ANDREF(CLOSE,3)<REF(OPEN,3) AND REF(CLOSE,2)<REF(OPEN,2) AND REF(CLOSE,1)<REF(OPEN,1) AND REF(LOW,4)<REF(LOW,3) AND REF(LOW,4)<REF(LOW,2) AND REF(LOW,4)<REF(LOW,1) AND REF(HIGH,4)>REF(HIGH,3) AND REF(HIGH,4)>REF(HIGH,2) AND REF(HIGH,4)>REF(HIGH,1) AND CLOSE/OPEN>1.03 ANDCLOSE>REF(CLOSE,4)),1,0));T25{下跌三部曲}:=CONST(IF(( REF(CLOSE,4)/REF(OPEN,4)<0.97 ANDREF(CLOSE,3)>REF(OPEN,3) AND REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)>REF(OPEN,1) AND REF(LOW,4)<REF(LOW,3) AND REF(LOW,4)<REF(LOW,2) AND REF(LOW,4)<REF(LOW,1) AND REF(HIGH,4)>REF(HIGH,3) AND REF(HIGH,4)>REF(HIGH,2) AND REF(HIGH,4)>REF(HIGH,1) AND CLOSE/OPEN<0.97 ANDCLOSE<REF(CLOSE,4)),1,0));T26{跳空缺口}:=CONST(IF(HIGH<REF(LOW,1) OR LOW>REF(HIGH,1),1,0));T27{三只乌鸦}:=CONST(IF((REF(CLOSE,2)<REF(OPEN,2) AND REF(CLOSE,1)<REF(OPEN,1) AND CLOSE<OPEN AND REF(CLOSE,1)<REF(CLOSE,2)AND CLOSE<REF(CLOSE,1)),1,0));T28{光脚阴线}:=CONST(IF((LOW=CLOSE AND HIGH!=LOW),1,0));T29{光头阳线}:=CONST(IF((HIGH=CLOSE AND HIGH!=LOW),1,0));T30{分离}:=CONST(IF((OPEN=REF(OPEN,1) AND (CLOSE-OPEN)*(REF(CLOSE,1) -REF(OPEN,1))<0),1,0));T31{长下影}:=CONST(IF(((MIN(CLOSE,OPEN)-LOW)/(HIGH-LOW)>0.667),1,0)); T32{长上影}:=CONST(IF(((HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)>0.667),1,0));T33{十字星}:=CONST(IF((CLOSE=OPEN AND HIGH!=LOW),1,0));T34{大阴烛}:=CONST(IF((OPEN/CLOSE > 1.05 AND HIGH/LOW <OPEN/CLOSE+0.018),1,0));T35{好友反攻}:=CONST(IF(((REF(CLOSE,1)<REF(OPEN,1) AND CLOSE>OPEN AND ABS(CLOSE-REF(CLOSE,1))/CLOSE<0.002) OR (REF(CLOSE,1)>REF(OPEN,1) AND CLOSE<OPEN AND ABS(CLOSE-REF(CLOSE,1))/CLOSE<0.002)),1,0));T36{倾盆大雨}:=CONST(IF((REF(C,1)/REF(O,1)>=1.03 AND O<REF(C,1) AND O >REF(O,1) AND C<REF(O,1)),1,0));N:=0.04;TS1:=IF(T1=1,0+N,0);TS2:=IF(T2=1,TS1+N,TS1);TS3:=IF(T3=1,TS2+N,TS2);TS4:=IF(T4=1,TS3+N,TS3);TS5:=IF(T5=1,TS4+N,TS4);TS6:=IF(T6=1,TS5+N,TS5);TS7:=IF(T7=1,TS6+N,TS6);TS8:=IF(T8=1,TS7+N,TS7);TS9:=IF(T9=1,TS8+N,TS8);TS10:=IF(T10=1,TS9+N,TS9);TS11:=IF(T11=1,TS10+N,TS10);TS12:=IF(T12=1,TS11+N,TS11);TS13:=IF(T13=1,TS12+N,TS12);TS14:=IF(T14=1,TS13+N,TS13);TS15:=IF(T15=1,TS14+N,TS14);TS16:=IF(T16=1,TS15+N,TS15);TS17:=IF(T17=1,TS16+N,TS16);TS18:=IF(T18=1,TS17+N,TS17);TS19:=IF(T19=1,TS18+N,TS18);TS20:=IF(T20=1,TS19+N,TS19);TS21:=IF(T21=1,TS20+N,TS20);TS22:=IF(T22=1,TS21+N,TS21);TS23:=IF(T23=1,TS22+N,TS22);TS24:=IF(T24=1,TS23+N,TS23);TS25:=IF(T25=1,TS24+N,TS24);TS26:=IF(T26=1,TS25+N,TS25);TS27:=IF(T27=1,TS26+N,TS26);TS28:=IF(T28=1,TS27+N,TS27);TS29:=IF(T29=1,TS28+N,TS28);TS30:=IF(T30=1,TS29+N,TS29);TS31:=IF(T31=1,TS30+N,TS30);TS32:=IF(T32=1,TS31+N,TS31);TS33:=IF(T33=1,TS32+N,TS32);TS34:=IF(T34=1,TS33+N,TS33);TS35:=IF(T35=1,TS34+N,TS34);TS36:=IF(T36=1,TS35+N,TS35);AAA:=CONST(HHV(H,90));DRAWTEXT(T1=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS1),'早晨之星,见底回升'); DRAWTEXT(T2=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS2),'黄昏之星,见顶回落'); DRAWTEXT(T3=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS3),'长十字,重要的警告信号,原趋势停顿或反转');DRAWTEXT(T4=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS4),'垂死十字,下跌信号'); DRAWTEXT(T5=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS5),'早晨十字星,上涨信号,见底回升');DRAWTEXT(T6=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS6),'黄昏十字星,趋势停顿或反转,下跌或,见顶回落');DRAWTEXT(T7=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS7),'射击之星,市场顶部就在眼前,可能见顶回落,可靠性低');DRAWTEXT(T8=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS8),'倒转锤头构成一个看涨信号,可能见底回升');DRAWTEXT(T9=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS9),'锤头,可能见底回升,如有量配合,信号强烈');DRAWTEXT(T10=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS10),'吊颈,上升行情中见顶回落,顶部出现,见顶信号');DRAWTEXT(T11=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS11),'穿头破脚,顶部出现,见顶回落信号');DRAWTEXT(T12=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS12),'乌云盖顶,见顶回落信号');DRAWTEXT(T13=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS13),'曙光初现,将演化为V型反转或横盘。
通达信 大智慧 钱龙 公式 指标 条件 选股(2)
UPN-连涨数天连续数天的涨势显示了多方上攻的痕迹。
DOWNN-连跌数天连续数天的跌势显示了空方下挫的痕迹。
RIAS-乖离率买入乖离率跌破买入线后,再上穿买入线,为买入时机。
(蓝色字体代表该注解是由钱龙拷贝而来) KD买入KD指标中线K向上突破线D,且K值在20以下,买进信号。
MSTAR-早晨之星K线模式早晨之星,指示见底反弹。
W&R威廉指标买入威廉指标高于买入上限,属于超卖,行情即将见底,为买进信号MTM买入MTM均线向上突破零为买入信号。
KDJ买入KDJ指标J线向上突破买入线,买入信号。
SWORD-剑出鞘利剑,冲破了空头束缚的阴影TLFZ-天量法则量于价先行,冲天大量,预示了行情的好转GREEN4-四串阴连续数天的跌势显示了空方下挫的痕迹。
RED4-四串阳连续数天的涨势显示了多方上攻的痕迹。
CSFR-出水芙蓉阳线穿过20、40、60日季均线,展示了多方上功的实力和决心NHIGH-近日创历史新高历史的新高,既反映了行情的火爆,也提醒投资者小心见顶回落的必要NLOW-近日创历史新低历史新低,既反映了行情的冷淡,也提醒投资者关注市场底部的到来XRDS-旭日初升长期潜伏于年线之下的股票,终于露出了行动的痕迹QTDS-蜻蜓点水个股跌破年线后并未大幅下滑,仅仅在年线处短暂停留便如弹簧般迅速弹起,犹如蜻蜓般掠过湖面,这是一个可靠的买入信号A001-低市盈率选择市盈率较小的股票A003-主营业务利润率A004-市净率市净率=市价/每股净资产市净率越低公司股价越有被低估的可能,这类股票从理论上讲具有更高的安全性。
A005-次新股上市时间在n个交易日内的股票.A011-可能的指标股或标的股B003-内外盘(上涨) 选择(委买量-委卖量)的差为正数并且大于N手的股票,差值越大买盘越强.B004-内外盘(下跌) 内盘大于外盘,股票仍上涨。
这类股票存在一定异动,有庄家活动的可能. DTPL-均线多头排列均线系统呈多头排列,多方占据一定优势.(系统:C>5>10>20>30 我:C>5>20>60) KTPL-均线空头排列均线系统呈空头排列,这时的形势不利与多方迅速组织起强有力的反攻QSZL-强势整理强势整理:一根实体超过5%的长阳,后面跟2个振幅不超过1.5%的K线W-103 高开大阴线收盘为高开大阴线:跳空高开m%,当日股价较开盘价跌幅大于n%W-104 低开大阳线收盘为低开大阳线:今日低开m% 且收盘价相对开盘价上涨大于n%,W-105 跳空缺口K线图在参数N日内存在向上(下)的跳空缺口,跳空缺口数量由参数M来确定,缺省为5日内出现2个跳空缺口。
通达信20个高准确率选股指标代码
通达信20个高准确率选股指标代码本文档将介绍通达信平台上的20个高准确率选股指标代码。
这些指标可帮助投资者在股市中作出更明智的投资决策。
1. MACD(Moving Average Convergence Divergence):MACD 指标根据股票价格的短期和长期移动平均线之间的关系,判断股票的买卖信号。
2. KDJ(Stochastic Oscillator):KDJ指标通过统计一定时间内最高价、最低价和收盘价的比例,判断股票的超买和超卖情况。
3. RSI(Relative Strength Index):RSI指标根据股票一段时间内的上涨和下跌幅度,评估股票的强弱势。
4. BOLL(Bollinger Bands):BOLL指标通过计算股票价格的标准差,判断股票的价格波动情况。
5. VR(Volume Ratio):VR指标根据成交量的变化,判断市场的强弱。
6. MA(Moving Average):MA指标通过计算股票价格的移动平均线,判断股票的趋势。
7. WR(Williams %R):WR指标通过统计一定时间内的最高价和最低价与收盘价的关系,判断股票的买卖信号。
8. PSY(Psychological Line):PSY指标通过统计投资者买卖决策的心理指标,判断股票价格的变动。
9. DMA(Different of Moving Average):DMA指标通过计算不同周期移动平均线之间的差值,判断股票价格的趋势。
10. DMI(Directional Movement Index):DMI指标根据股票价格的波动幅度和趋势,判断股票的买卖信号。
12. ROC(Rate of Change):ROC指标通过计算股票价格的变动百分比,判断股票的涨跌趋势。
13. CR(Ease of Movement):CR指标通过计算股票价格和成交量的综合指标,判断股票的趋势和买卖信号。
14. OBV(On-Balance Volume):OBV指标根据股票成交量的累计变动情况,判断市场的买卖力量。
好的指标只要一个就够了(高低点无一漏过)通达信指标公式
好的指标只要一个就够了(高低点无一漏过),剩下的只是执行纪律一个好的指标应具备直观,简洁,实用,不漂移的特点那么一个直观的指标也就不需要太多的用法说明关注:1.压力,支撑线处; 2.变色线趋势转向现发图如下老规矩,不刻意寻找,并只做区域抓图,觉得那存在片面引导的味道随机做今日61前3股抓图MA5:MA(C,5)LINETHICK3,COLOR00CCFF;MA10:=MA(C,10);MA20:=MA(C,20);MA30:=MA(C,30);五日乖离率:=(C-MA5)/MA5*100;BB5:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416;速度5:=SMA(EMA((MA5-REF(MA5,1))/REF(MA5,1),3)*100,3,1);加速度5:=EMA((速度5-REF(速度5,1)),3),NODRAW;IF(BB5>30 AND MA5>REF(MA5,1), MA5,DRAWNULL),LINETHICK3,COLORRED; BB10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;IF(BB5<0 AND MA5<REF(MA5,1),MA5,DRAWNULL),LINETHICK3,COLORGREEN;三拾日乖离率:=(C-MA30)/MA30*100,NODRAW;VAR1:=(MA20-MA30)>REF((MA20-MA30),1) AND MA20>REF(MA20,1) AND MA30>REF(MA30,1);VAR2:=(MA30-MA20)<REF((MA30-MA20),1) AND MA20<REF(MA20,1) AND MA30<REF(MA30,1);BB30:=ATAN((MA30/REF(MA30,1)-1)*100)*180/3.1416;强势狙击:=FILTER(BB30>30 AND BB10>45 AND CROSS(BB5,60),10);加仓:=FILTER(COUNT(CROSS(BB5,30),5)>=1 AND MA5>REF(MA5,1) AND 三拾日乖离率>REF(三拾日乖离率,1) AND MA10>REF(MA10,1)AND 加速度5>REF(加速度5,1) AND 速度5>REF(速度5,1),10);清仓:=FILTER(COUNT(CROSS(30,BB5),5)>=1 AND (C>MA30 OR O>MA30) AND MA5<REF(MA5,1) AND 三拾日乖离率<REF(三拾日乖离率,1) ANDMA10<REF(MA10,1),10);DRAWTEXT(加仓,LOW*0.98,'←加仓'),COLORYELLOW;JC:=CROSS(0,五日乖离率) AND 三拾日乖离率<REF(三拾日乖离率,1) ANDMA10>REF(MA10,1) ;减仓:=FILTER(JC,10);MR:=COUNT(CROSS(五日乖离率,0),3)>=1 AND 三拾日乖离率>REF(三拾日乖离率,1) AND MA5>REF(MA5,1) AND (C/REF(C,1)-1)*100>5 ANDREF(C,1)<MA30;买入:=FILTER(MR,10);DRAWTEXT(减仓,HIGH*1.02,'←风险'),COLORCYAN;DRAWTEXT(买入,LOW*0.98,'←买入'),COLORYELLOW;DRAWTEXT(清仓,HIGH*1.02,'←清仓'),COLORGREEN;DRAWTEXT(强势狙击,LOW*0.95,'←狙击'),COLORYELLOW;VAR21:=MAX(ABS(HIGH-AMOUNT/VOL/100),ABS(AMOUNT/VOL/100-LOW)); VAR3:=ABS((OPEN+CLOSE)/2-AMOUNT/VOL/100);MV:=(VAR21+VAR3)/AMOUNT*VOL*100*50;压力:MA(REF(HHV(C,30),1),2),COLOR9DFFFF;支撑:MA(REF(LLV(C,30),1),2),COLORABFF46;。
通达信指标公式源码决策阶梯【抓牛指标、源码、主图、说明】
通达信指标公式源码决策阶梯【抓⽜指标、源码、主图、说明】奉献精品决策阶梯【抓⽜指标、源码、主图、说明】说明:决策深筹,亮箭必胜!把这个本⼈认为⾮常好的珍藏指标发上来供坛友们参考和使⽤。
只有经过长期实践和在⽜、熊市中经得起时间考验的指标才是好指标。
此指标红梯出现坚决持股,绿梯出现坚决空仓。
公式简单实⽤,配合成交量⼀起使⽤会起到事半功倍的效果。
{决策深筹,亮箭必胜!}DRAWGBK(OPEN>0,RGB(8,88,188),RGB(0,0,0),0,'02',0);VAR3:=LLV(HIGH,240);VAR4:=100*(CLOSE-VAR3)/VAR3;VAR5:=(CLOSE-LLV(LOW,528))/(HHV(HIGH,528)-LLV(LOW,528))*100;VAR6:=(CLOSE-LLV(CLOSE,530))/(HHV(CLOSE,530)-LLV(CLOSE,530))*100;VAR7:=0;VAR8:=SMA(MAX(CLOSE-REF(CLOSE,1),0),34,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),7,1)*1 00;VAR9:=SMA(MAX(CLOSE-REF(CLOSE,1),0),13,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),13,1)* 100;VAR10:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0);VAR11:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) ANDREF(ZIG(3,6),2)<=REF(ZIG(3,6),3);VAR12:=ZIG(3,6)=REF(ZIG(3,6),2) ANDREF(ZIG(3,6),2)>=REF(ZIG(3,6),3);VAR13:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)<=REF(ZIG(3,22),3);VAR14:=ZIG(3,22)=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)>=REF(ZIG(3,22),3);VAR15:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)<=REF(ZIG(3,51),3);VAR16:=ZIG(3,51)=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)>=REF(ZIG(3,51),3);VAR17:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)<=REF(ZIG(3,72),3);VAR18:=ZIG(3,72)=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);VAR19:=EMA(CLOSE,2)-EMA(CLOSE,150);买1:=VAR10;买2:=(VAR11+VAR13+VAR15+VAR17);卖1:=(VAR12+VAR14+VAR16+VAR18);B:IF(买1>0 OR 买2>0,LOW*0.99,DRAWNULL),CROSSDOT,LINETHICK5,COLOR0800FF; DRAWTEXT(买1>0 OR 买2>0,LOW*0.98,'↖深筹'),COLORRED;S:IF(卖1>0,HIGH*1.03,DRAWNULL),CROSSDOT,LINETHICK5,COLOR008800; DRAWTEXT(卖1>0,HIGH*1.03,'↙卖出'),COLORGREEN;DRAWICON((ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)<=REF(ZIG(3,5),3)),LOW*0.97,34) ;DRAWICON((ZIG(3,5)=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)>=REF(ZIG(3,5),3)),HIGH*1.01,35);ZB:=EMA(EMA(VAR3,5),5)*3, COLORSTICK;VARA:=IF(VAR9 AND CROSS(MA(CLOSE,3),MA(CLOSE,5)),20,0);K:=EMA(VAR7,5)*2, , COLORFF00FF;D:=EMA(K,5), , COLORWHITE;J:=K*3-D*2, ,COLORYELLOW;VARB:=BETWEEN(CLOSE,MA(CLOSE,3),MA(CLOSE,5)) AND J>10;HS:=VOL/CAPITAL*100, , COLORGREEN;VARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20; VARF:=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); DRAWTEXT(VAR11 AND COUNT(VAR11,30)=1,LOW*0.96,'↖股海'),LINETHICK1,COLORFF00FF;VAR1A:=IF(VARE>0,VARE,0);VAR1B:=IF(VAR14>=200 AND VAR13>=150,15,IF(VAR14<=-200 ANDVAR13<=-150,-15,VAR16))+60;VAR1C:=VAR1A>48 AND VAR1B>60 AND VAR19<100;DRAWTEXT(VAR1C AND COUNT(VAR1C,30)=1,LOW*0.95,'关注') COLORWHITE;N:=IF(BARSCOUNT(C)>=8,8,BARSCOUNT(C));AMOV:=VOL*(C+L+H)/3;MN:=SUM(AMOV,N)/SUM(VOL,N);NOTEXT1:IF(C>=MN,MN,DRAWNULL),LINETHICK3,COLORRED;NOTEXT2:IF(CDRAWBAND(MA(CLOSE,3),RGB(188,0,43),MA(CLOSE,24),RGB(0,72,46));QQ2:=(CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100;QQ3:=SMA(QQ2, 9, 1);QQ4:=SMA(QQ3, 3, 1);长趋势:=3*QQ3-2*QQ4,COLORWHITE,LINETHICK3;趋势线:=EMA(QQ3, 3),COLORRED,LINETHICK3;⾦叉:= CROSS(长趋势,趋势线);AAAA1:=AMOUNT/V;BBB1:=LCCC1:=(C-REF(C,1))/REF(C,1)*100>1.2;DDD1:=LEEE1:=V⽼⿏仓:=BBB1 AND CCC1 AND DDD1 AND EEE1,,NODRAW;DRAWICON(⽼⿏仓OR ⾦叉,(LOW - (LOW * 0.01)),9);AA05:=MA(C,5),COLOR0099CC;BB05:=ATAN((AA05/REF(AA05,1)-1)*100)*180/3.1416;速度5:=SMA(EMA((AA05-REF(AA05,1))/REF(AA05,1),3)*100,3,1);加速度5:=EMA((速度5-REF(速度5,1)),3),NODRAW;AA10:=MA(C,10);AA20:=MA(C,20);BB10:=ATAN((AA10/REF(AA10,1)-1)*100)*180/3.1416;AA30:=MA(C,30);三拾⽇乖离率:=(C-AA30)/AA30*100;加仓:=FILTER(COUNT(CROSS(BB05,30),5)>=1 ANDAA05>REF(AA05,1) AND 三拾⽇乖离率>REF(三拾⽇乖离率,1) ANDAA10>REF(AA10,1)AND 加速度5>REF(加速度5,1) AND 速度5>REF(速度5,1) ,10) ;DRAWICON(加仓,L*0.99,23);DRAWKLINE(H,O,L,C);TJ:=VOL>=REF(V,1)*1.91 AND C>REF(C,1)*1.01;DRAWTEXT(TJ,L,'↖亮箭'),COLORYELLOW;STICKLINE(TJ,OPEN,CLOSE,1.5,0),COLORYELLOW;K1:=SUMBARS(TJ,1);STICKLINE(K1,REF(C,K1-1),REF(C,K1-1),10,0),COLORYELLOW;MA30:=MA(C,30);⽀撑价:MA(REF(LLV(C,30),1),2),DOTLINE,COLORFF00FF;DRAWTEXT(ISLASTBAR,⽀撑价,'↖⽀撑'),COLORFF00FF;压⼒价:MA(REF(HHV(C,30),1),2),DOTLINE,COLORGREEN;DRAWTEXT(ISLASTBAR,压⼒价,'↖压⼒'),COLORGREEN;短线交易:MA(REF(LLV(C,3),1),2),DOTLINE,COLORRED;DRAWTEXT(ISLASTBAR,短线交易,'↖交易'),COLORRED;B1:=REF(CLOSE,1);B2:=REF(CLOSE,2);B3:=REF(CLOSE,3);B4:=REF(CLOSE,4);CMAX:=MAX(MAX(MAX(CLOSE,B1),B2),B3);CMIN:=MIN(MIN(MIN(CLOSE,B1),B2),B3);持股:=(CLOSE=CMAX AND (B1>=B2 OR B1>=B3)) OR ((B1=CMAX AND (B2=CMIN OR B3=CMIN)) AND CLOSE>=B2) OR(B2=CMAX AND B3=CMIN AND CLOSE>=B1) OR (B3=CMAX AND CLOSE>=B1 AND CLOSE>=B2);变盘:=CLOSE=CMAX AND B1=CMIN;STICKLINE(变盘,B2,CLOSE,2,0),COLORFF88FF;下跌:=(CLOSE=CMIN AND (B1B3=CMAX)) AND CLOSE(B2=CMIN AND B3=CMAX AND CLOSE买⼊:=(B1=CMIN AND CLOSE>=B2) OR ((B2=CMIN AND B1<=B3) OR(B3=CMIN AND B1<=B2) AND B2=B1);STICKLINE(买⼊,B1,B2,3.0,0),COLOR000033;STICKLINE(买⼊,B1,B2,2.5,0),COLOR000055;STICKLINE(买⼊,B1,B2,2.0,0),COLOR000077;STICKLINE(买⼊,B1,B2,1.5,0),COLOR0000BB;STICKLINE(买⼊,B1,B2,1.0,0),COLOR0000DD;STICKLINE(买⼊,B1,B2,0.5,0),COLORCC66FF;DRAWTEXT(HIGH>=REF(CLOSE,1)*1.095,H*1.02,'←涨停'),COLORMAGENTA;STICKLINE(V/REF(V,1)>2,OPEN,CLOSE,1,0),COLOR00FFFF;DRAWTEXT(REF(CLOSE,1)>=LOW*1.095,LOW,'←跌停'),COLORGREEN; DRAWTEXT_FIX(1,0,0,0,'【KS】㊣千股千评:'),COLORYELLOW;DRAWTEXT_FIX(C>0,0.12,0,0,EXTERNSTR(0,1)),COLORRED,LINETHICK2; DRAWTEXT_FIX(1,0,0.05,0,'【总股本(万股)】'),COLORWHITE;DRAWNUMBER_FIX(1,0.12,0.05,0,CONST(FINANCE(1)/10000)),COLORMAGENTA; DRAWTEXT_FIX(1,0,0.1,0,'【所属板块】'),COLORWHITE;DRAWTEXT_FIX(1,0.12,0.1,0,HYBLOCK),COLORYELLOW;DRAWTEXT_FIX(1,0.21,0.1,0,DYBLOCK),COLOR0080FF;DRAWTEXT_FIX(1,0,0.25,0,'【莸利⽐例】'),COLORWHITE;DRAWNUMBER_FIX(1,0.12,0.25,0,CONST(WINNER(C )*100)),COLORYELLOW; DRAWTEXT_FIX(1,0,0.30,0,'【每股收益(元)】'),COLORWHITE;DRAWNUMBER_FIX(1,0.12,0.30,0,CONST(FINANCE(33))),COLORYELLOW; DRAWTEXT_FIX(1,0,0.2,0,'【市盈率】'),COLORWHITE;DRAWNUMBER_FIX(1,0.12,0.20,0,CONST(DYNAINFO(39))),COLORYELLOW;{量能饱和}SAT:=IF((AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100>100,100,(AMOUNT/C)/(HHV (AMOUNT,20)/HHV(C,20))*100); DRAWTEXT_FIX(1,0,0.15,0,'【量能饱和度】')COLORWHITE;DRAWNUMBER_FIX(1,0.12,0.15,0,CONST(SAT)),COLORYELLOW;。
【股票指标公式下载】-【通达信】波段K线解盘(中短波、早晨之星、黄昏之星、大阴烛)
【通达信】波段K线解盘(中短波、早晨之星、黄昏之星、大阴烛)-指标公式源码{中短波}短波:EMA(EMA(CLOSE,13),1),COLOR00DD00;中波:EMA(EMA(CLOSE,13),26),COLORRED;HZ2:EMA(EMA(CLOSE,13),8),COLORGREEN,LINETHICK2;HZ4:EMA(EMA(CLOSE,13),39),COLORFF00FF,LINETHICK2;STICKLINE(HZ2<HZ4,短波,HZ4,1,0),COLORBLUE ;STICKLINE(短波>HZ2,短波,HZ2,1,0),COLORGREEN;STICKLINE(中波>HZ4,中波,HZ4,1,0),COLORFF00FF;DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);{红}STICKLINE(MACD>0,C,O,2.8,0),COLOR000080;STICKLINE(MACD>0,H,L,0,0),COLOR0000E5;{淡蓝}STICKLINE(MACD<0 AND MACD<REF(MACD,1),C,O,2.8,0),COLORFF9900; STICKLINE(MACD<0 AND MACD<REF(MACD,1),H,L,0,0),COLORFFFF00;{黄}STICKLINE(MACD<0 AND MACD>REF(MACD,1),C,O,2.8,0),COLOR0099FF; STICKLINE(MACD<0 AND MACD>REF(MACD,1),H,L,0,0),COLOR00FFFF;T1{早晨之星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) < 0.95 AND REF(OPEN,1) < REF(CLOSE,2) AND ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.03 AND CLOSE/OPEN>1.05 AND CLOSE>REF(CLOSE,2)),1,0));T2{黄昏之星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) > 1.03 AND REF(OPEN,1) > REF(CLOSE,2) AND ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.02 AND CLOSE/OPEN<0.97 AND CLOSE<REF(CLOSE,2)),1,0));T3{长十字}:=CONST(IF((CLOSE=OPEN AND HIGH/LOW >1.03),1,0));T4{垂死十字}:=CONST(IF((CLOSE=OPEN AND CLOSE=LOW ANDCLOSE!=HIGH),1,0));T5{早晨十字星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) < 0.95 ANDREF(OPEN,1)< REF(CLOSE,2) AND REF(OPEN,1)=REF(CLOSE,1) ANDCLOSE/OPEN>1.05 AND CLOSE>REF(CLOSE,2)),1,0));T6{黄昏十字星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) > 1.05 ANDREF(OPEN,1)> REF(CLOSE,2) AND REF(OPEN,1)=REF(CLOSE,1) ANDCLOSE/OPEN<0.95 AND CLOSE<REF(CLOSE,2)),1,0));T7{射击之星}:=CONST(IF((MIN(OPEN,CLOSE)=LOW AND HIGH-LOW >3*(MAX(OPEN,CLOSE)-LOW) AND CLOSE > MA(CLOSE,5)),1,0));T8{倒转锤头}:=CONST(IF((MIN(OPEN,CLOSE)=LOW AND HIGH-LOW >3*(MAX(OPEN,CLOSE)-LOW) AND CLOSE < MA(CLOSE,5)),1,0));T9{锤头}:=CONST(IF((HIGH = MAX(OPEN,CLOSE) AND HIGH-LOW >3*(HIGH-MIN(OPEN,CLOSE)) AND CLOSE < MA(CLOSE,5)),1,0));T10{吊颈}:=CONST(IF((HIGH = MAX(OPEN,CLOSE) AND HIGH-LOW >3*(HIGH-MIN(OPEN,CLOSE)) AND CLOSE>MA(CLOSE,5)),1,0));T11{穿头破脚}:=CONST(IF(((REF(CLOSE,1)/REF(OPEN,1)>1.03 ANDCLOSE/OPEN<0.96AND CLOSE<REF(OPEN,1)AND OPEN>REF(CLOSE,1))OR (REF(CLOSE,1)/REF(OPEN,1)<0.97 ANDCLOSE/OPEN>1.04AND CLOSE>REF(OPEN,1) AND OPEN<REF(CLOSE,1))),1,0));T12{乌云盖顶}:=CONST(IF((REF(CLOSE,1)/REF(OPEN,1)>1.03 ANDCLOSE/OPEN<0.97AND OPEN>REF(CLOSE,1) AND CLOSE<REF(CLOSE,1)),1,0));T13{曙光初现}:=CONST(IF((REF(CLOSE,1)/REF(OPEN,1)<0.97 ANDCLOSE/OPEN>1.03AND OPEN<REF(CLOSE,1) AND CLOSE>REF(CLOSE,1)),1,0));T14{身怀六甲}:=CONST(IF((ABS(REF(CLOSE,1)-REF(OPEN,1))/REF(CLOSE,1) > 0.04AND ABS(CLOSE-OPEN)/CLOSE<0.005 ANDMAX(CLOSE,OPEN) < MAX(REF(CLOSE,1),REF(OPEN,1)) AND MIN(CLOSE,OPEN) > MIN(REF(CLOSE,1),REF(OPEN,1))),1,0));T15{十字胎}:=CONST(IF((ABS(REF(CLOSE,1)-REF(OPEN,1))/REF(CLOSE,1) > 0.04AND CLOSE=OPEN ANDCLOSE < MAX(REF(CLOSE,1),REF(OPEN,1)) AND CLOSE > MIN(REF(CLOSE,1),REF(OPEN,1))),1,0));T16{平顶}:=CONST(IF((ABS(HIGH-REF(HIGH,1))/HIGH<0.001),1,0));T17{平底}:=CONST(IF(((ABS(LOW-REF(LOW,1))/LOW<0.001 AND ABS(REF(LOW,1) -REF(LOW,2))/REF(LOW,1)<=0.001)),1,0));T18{大阳烛}:=CONST(IF((CLOSE/OPEN>1.05 AND HIGH/LOW <CLOSE/OPEN+0.018),1,0));T19{三个白武士}:=CONST(IF((REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1) >REF(OPEN,1) AND CLOSE>OPENAND REF(CLOSE,1)>REF(CLOSE,2) AND CLOSE>REF(CLOSE,1)),1,0));T20{双飞乌鸦}:=CONST(IF((REF(CLOSE,1)<REF(OPEN,1) AND CLOSE<OPENAND CLOSE/OPEN<0.98),1,0));T21{孕育线}:=CONST(IF((REF(CLOSE,2)>REF(OPEN,2) AND (REF(CLOSE,2)-REF(OPEN,2))/REF(OPEN,2)>=2/100 AND REF(OPEN,1)>=REF(CLOSE,1)AND (REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<=2/100 AND REF(OPEN,1)<=REF(CLOSE,2) AND REF(CLOSE,1)>=REF(OPEN,2) AND C>=OPENAND (CLOSE-OPEN)/OPEN>=2/100 AND CLOSE>=REF(OPEN,1) ANDOPEN<=REF(CLOSE,1)AND(MAX(CLOSE,REF(C,2))-MIN(CLOSE,REF(CLOSE,2)))/MIN(CLOSE,REF(CLOSE,2)) <=1/100),1,0));T22{多方炮}:=CONST(IF((REF(CLOSE,2)>REF(OPEN,2) ANDREF(CLOSE,1)<REF(OPEN,1)AND CLOSE>OPEN),1,0));T23{出水芙蓉}:=CONST(IF(((OPEN<EMA(C,20) OR OPEN<EMA(C,40) OR OPEN< EMA(C,60)) AND (C>MAX(EMA(C,20),MAX(EMA(C,40),EMA(C,60))))AND(V/MA(V,30)>1.2 AND C/REF(C,1)>1.049)),1,0));T24{上升三部曲}:=CONST(IF((REF(CLOSE,4)/REF(OPEN,4)>1.03 ANDREF(CLOSE,3)<REF(OPEN,3) AND REF(CLOSE,2)<REF(OPEN,2) AND REF(CLOSE,1)<REF(OPEN,1) AND REF(LOW,4)<REF(LOW,3) AND REF(LOW,4)<REF(LOW,2) AND REF(LOW,4)<REF(LOW,1) AND REF(HIGH,4)>REF(HIGH,3) AND REF(HIGH,4)>REF(HIGH,2) AND REF(HIGH,4)>REF(HIGH,1) AND CLOSE/OPEN>1.03 ANDCLOSE>REF(CLOSE,4)),1,0));T25{下跌三部曲}:=CONST(IF(( REF(CLOSE,4)/REF(OPEN,4)<0.97 ANDREF(CLOSE,3)>REF(OPEN,3) AND REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)>REF(OPEN,1) AND REF(LOW,4)<REF(LOW,3) AND REF(LOW,4)<REF(LOW,2) AND REF(LOW,4)<REF(LOW,1) AND REF(HIGH,4)>REF(HIGH,3) AND REF(HIGH,4)>REF(HIGH,2) AND REF(HIGH,4)>REF(HIGH,1) AND CLOSE/OPEN<0.97 ANDCLOSE<REF(CLOSE,4)),1,0));T26{跳空缺口}:=CONST(IF(HIGH<REF(LOW,1) OR LOW>REF(HIGH,1),1,0));T27{三只乌鸦}:=CONST(IF((REF(CLOSE,2)<REF(OPEN,2) AND REF(CLOSE,1)<REF(OPEN,1) AND CLOSE<OPEN AND REF(CLOSE,1)<REF(CLOSE,2)AND CLOSE<REF(CLOSE,1)),1,0));T28{光脚阴线}:=CONST(IF((LOW=CLOSE AND HIGH!=LOW),1,0));T29{光头阳线}:=CONST(IF((HIGH=CLOSE AND HIGH!=LOW),1,0));T30{分离}:=CONST(IF((OPEN=REF(OPEN,1) AND (CLOSE-OPEN)*(REF(CLOSE,1) -REF(OPEN,1))<0),1,0));T31{长下影}:=CONST(IF(((MIN(CLOSE,OPEN)-LOW)/(HIGH-LOW)>0.667),1,0)); T32{长上影}:=CONST(IF(((HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)>0.667),1,0));T33{十字星}:=CONST(IF((CLOSE=OPEN AND HIGH!=LOW),1,0));T34{大阴烛}:=CONST(IF((OPEN/CLOSE > 1.05 AND HIGH/LOW <OPEN/CLOSE+0.018),1,0));T35{好友反攻}:=CONST(IF(((REF(CLOSE,1)<REF(OPEN,1) AND CLOSE>OPEN AND ABS(CLOSE-REF(CLOSE,1))/CLOSE<0.002) OR (REF(CLOSE,1)>REF(OPEN,1) AND CLOSE<OPEN AND ABS(CLOSE-REF(CLOSE,1))/CLOSE<0.002)),1,0));T36{倾盆大雨}:=CONST(IF((REF(C,1)/REF(O,1)>=1.03 AND O<REF(C,1) AND O >REF(O,1) AND C<REF(O,1)),1,0));N:=0.04;TS1:=IF(T1=1,0+N,0);TS2:=IF(T2=1,TS1+N,TS1);TS3:=IF(T3=1,TS2+N,TS2);TS4:=IF(T4=1,TS3+N,TS3);TS5:=IF(T5=1,TS4+N,TS4);TS6:=IF(T6=1,TS5+N,TS5);TS7:=IF(T7=1,TS6+N,TS6);TS8:=IF(T8=1,TS7+N,TS7);TS9:=IF(T9=1,TS8+N,TS8);TS10:=IF(T10=1,TS9+N,TS9);TS11:=IF(T11=1,TS10+N,TS10);TS12:=IF(T12=1,TS11+N,TS11);TS13:=IF(T13=1,TS12+N,TS12);TS14:=IF(T14=1,TS13+N,TS13);TS15:=IF(T15=1,TS14+N,TS14);TS16:=IF(T16=1,TS15+N,TS15);TS17:=IF(T17=1,TS16+N,TS16);TS18:=IF(T18=1,TS17+N,TS17);TS19:=IF(T19=1,TS18+N,TS18);TS20:=IF(T20=1,TS19+N,TS19);TS21:=IF(T21=1,TS20+N,TS20);TS22:=IF(T22=1,TS21+N,TS21);TS23:=IF(T23=1,TS22+N,TS22);TS24:=IF(T24=1,TS23+N,TS23);TS25:=IF(T25=1,TS24+N,TS24);TS26:=IF(T26=1,TS25+N,TS25);TS27:=IF(T27=1,TS26+N,TS26);TS28:=IF(T28=1,TS27+N,TS27);TS29:=IF(T29=1,TS28+N,TS28);TS30:=IF(T30=1,TS29+N,TS29);TS31:=IF(T31=1,TS30+N,TS30);TS32:=IF(T32=1,TS31+N,TS31);TS33:=IF(T33=1,TS32+N,TS32);TS34:=IF(T34=1,TS33+N,TS33);TS35:=IF(T35=1,TS34+N,TS34);TS36:=IF(T36=1,TS35+N,TS35);AAA:=CONST(HHV(H,90));DRAWTEXT(T1=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS1),'早晨之星,见底回升'); DRAWTEXT(T2=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS2),'黄昏之星,见顶回落'); DRAWTEXT(T3=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS3),'长十字,重要的警告信号,原趋势停顿或反转');DRAWTEXT(T4=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS4),'垂死十字,下跌信号'); DRAWTEXT(T5=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS5),'早晨十字星,上涨信号,见底回升');DRAWTEXT(T6=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS6),'黄昏十字星,趋势停顿或反转,下跌或,见顶回落');DRAWTEXT(T7=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS7),'射击之星,市场顶部就在眼前,可能见顶回落,可靠性低');DRAWTEXT(T8=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS8),'倒转锤头构成一个看涨信号,可能见底回升');DRAWTEXT(T9=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS9),'锤头,可能见底回升,如有量配合,信号强烈');DRAWTEXT(T10=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS10),'吊颈,上升行情中见顶回落,顶部出现,见顶信号');DRAWTEXT(T11=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS11),'穿头破脚,顶部出现,见顶回落信号');DRAWTEXT(T12=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS12),'乌云盖顶,见顶回落信号');DRAWTEXT(T13=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS13),'曙光初现,将演化为V型反转或横盘。
【指标公式源码下载】通达信伏击涨停主图指标公式【五日乖离、黄托底买进,绿压顶买出、金叉、涨停】
通达信伏击涨停主图指标公式【支撑、多空线、五日乖离、黄托底买进,绿压顶买出、金叉、死叉、涨停】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);支撑:REFDATE(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:=REF(VARC,1) AND 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;多空线:SMA((CLOSE+HIGH+LOW)/3,9,1);{用法:黄托底买进,绿压顶买出。
通达信专用高成功率股票公式集合
通达信专用高成功率公式集合针对一些朋友提出的关于第一条公式的疑问的问题,思考再三后还是决定推出这个整合贴对前三期的内容做了一些整合,弃用dclose函数的选股,用其他较好的的无未来函数对于鱼龙混杂的名目繁多的公式,我从很早前久开始关注了。
当然用了很多,也受益良多。
但是如何将这些公式有效整合应用于实际却使人头痛。
经过两个月的应用改进。
现在推出我的一些应用性较强的公式组合重新整合!整合版全图!看图!这是目前为止我觉得最好的实战全图,为了论坛的贡献与进步,奉献了!内容包括:1 “飞翔1”老师的立桩图主图改进版2 副图1是fwh3358老师的地量买点。
我做了修改,结合了立桩图的立桩量3 副图2是资金流向,这样就不愁没人买了,量价配合很重要!4 副图3是逃顶指标,用于及时获利了结的,小心使得万年船!5 副图4是macd的改进版,通过均价平台可以及时的捕抓大牛股,如果你想做长线,可以结合该指标哦!主图(立桩量主图自编改进版)用法看:一旦成立翻番不是梦想(立桩量副图立桩量能立桩量选股)注意设置参数水平面:MA(CLOSE,89),COLORFFA2FF;BBI:(MA(CLOSE,M1)+MA(CLOSE,M2)+MA(CLOSE,M3)+MA(CLOSE,M4))/4;IF(BBI>REF(BBI,1),BBI,DRAWNULL),COLORRED,LINETHICK2;IF(BBI<REF(BBI,1),BBI,DRAWNULL),COLORYELLOW,LINETHICK2;MA1:MA(CLOSE,24),COLOR00E300,LINETHICK1;V2:=IF(CURRBARSCOUNT=1,VOL*240/FROMOPEN/REF(VOL,1)-1,VOL/REF(VOL,1)-1); STICKLINE(V2>=1,O,C,2,0),COLORYELLOW;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);STICKLINE(T1,A1,A1+B1/4,2,0),COLOR007575;STICKLINE(T1,A1+B1/4,A1+B1/2,2,0),COLORFF0000;STICKLINE(T1,A1+B1/2,A1+B1*3/4,2,0),COLOR007575;STICKLINE(T1,A1+B1*3/4,A1+B1,2,0),COLORFF0000;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);{DRAWTEXT(CROSS(FF,MA15),(LOW * 0.97),'底背离'),COLORA6E500; DRAWTEXT(CROSS(88,RSI),(HIGH * 1.04),'顶背离'),COLOR1880FF;}STICKLINE(CROSS(FF,MA15),A1,A1+B1/2,2,0),COLOR7F017F;STICKLINE(CROSS(88,RSI),A1+B1,A1+B1/2,2,0),COLORGREEN;T2:=COUNT(CROSS(BBI,3),3)=1 AND CROSS(C,BBI);DRAWTEXT(T2,H*1.05,'反转'),COLORWHITE;STICKLINE(T2,O,C,2,0),COLORRED;T12:=V2>=1;T0:=BARSLAST(T12);L1:=REF(L,T0);H1:=REF(H,T0);STICKLINE(REF(T12,1) OR REF(T12,2) OR REF(T12,3),H1,H1,4,-1),COLORWHITE; STICKLINE(REF(T12,1) OR REF(T12,2) OR REF(T12,3),L1,L1,4,-1),COLORWHITE; {T11:=REF(T12,3) AND COUNT(L<L1,4)=0 AND COUNT(L>H1,4)>1; DRAWTEXT(T11,H*1.05,'三天'),COLORWHITE;STICKLINE(T11,O,C,2,0),COLORFF00FF;}{(REF(V2>=1,3) OR REF(V2>=1,2) OR REF(V2>=1,1)) };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;STICKLINE(T11,O,C,2,0),COLORFF00FF;高:=REF(HHV(H,N),M);低:=REF(LLV(L,N),M);H19:=高-(高-低)*0.191;H38:=高-(高-低)*0.382;H中:=高-(高-低)*0.5;H61:=高-(高-低)*0.618;H80:=高-(高-低)*0.809;顶点:REFDATE(高,DATE),POINTDOT,LINETHICK2,COLORWHITE;%19.8:REFDATE(H19,DATE),POINTDOT,LINETHICK2,COLORYELLOW;%38.2:REFDATE(H38,DATE),POINTDOT,LINETHICK2,COLORGREEN;%50:REFDATE(H中,DATE),POINTDOT,LINETHICK2,COLORRED;%61.8:REFDATE(H61,DATE),POINTDOT,LINETHICK2,COLORMAGENTA;%80.9:REFDATE(H80,DATE),POINTDOT,LINETHICK2,COLORBLUE;低点:REFDATE(低,DATE),POINTDOT,LINETHICK2,COLORWHITE;DRAWTEXT(ISLASTBAR,顶点,'顶点'),COLORWHITE;DRAWTEXT(ISLASTBAR,低点,'低点'),COLORWHITE;STICKLINE(T1,A1,A1+B1/2,2,0),COLOR007575;STICKLINE(T1,A1+B1/2,A1+B1,2,0),COLORBLUE;STICKLINE(T11 AND T12,A1,A1+B1/2,2,0),COLORFF00FF;STICKLINE(T11 AND T12,A1+B1/2,A1+B1,2,0),COLORYELLOW;STICKLINE(T1 AND T12,A1+B1/3,A1+B1,2,0),COLORYELLOW;STICKLINE(T1 AND T12,A1,A1+B1/3,2,0),COLOR007575;STICKLINE(T1 AND T12,A1+B1/3,A1+B1*2/3,2,0),COLORBLUE;STICKLINE(T2 AND T12,A1+B1/2,A1+B1,2,0),COLORRED;STICKLINE(T2 AND T12,A1,A1+B1/2,2,0),COLORYELLOW;副图1(地量买点fwh58老师的地量买点与飞翔1老师立桩图结合)(使用方法:1成交量上:在主图水平面下,在上涨途中出现立桩量,会在副图中出现;2箭头上:是fwh558老师地量买点;总结:如果同时出现立桩量与箭头并出现,在逃顶指标0.6左右可以及时介入){FWH58地量买点}VOLUME:VOL,VOLSTICK;MAVOL1:MA(VOLUME,5);MAVOL2:MA(VOLUME,35);MAVOL3:MA(VOLUME,135);IF(CROSS(0.9,1/VOL*1000>0.01 AND "KDJ.J"<0),VOLUME*5,0),COLORYELLOW,LINETHICK2;V2:IF(CURRBARSCOUNT=1,VOL*240/FROMOPEN/REF(VOL,1)-1,VOL/REF(VOL,1)-1),NODRAW,COLORRED;STICKLINE(V2>=1,0,VOL,2,0),COLORYELLOW;副图2(资金流向)(使用方法:应该介入不断有资金流入的票,比较容易拉升){资金流向}ZC_1:=IF(L<DYNAINFO(7),0,IF(H>DYNAINFO(7),DYNAINFO(7)-(DYNAINFO(7)-H+0.02)/(H-L+0.02),0));ZC_2:=DMA(ZC_1,V/CAPITAL)*100;出货:=IF(ZC_2>0 AND ZC_2>REF(ZC_2,1),ZC_2/20,0);轴:0,COLOR00FF00;PJJ:=DMA((H + L + C * 2) / 4,0.9);JJ:=REF(EMA(PJJ,3),1);QJJ:=VOL / ((H - L) * 2 - ABS(C - O));XVL:=IF(C > O,QJJ * (H - L),IF(C < O,QJJ * (H - O + (C - L)),VOL / 2)) + IF(C > O,0 - QJJ * (H - C + (O - L)),IF(C < O,0 - QJJ * (H - L),0 - VOL / 2));ZLL:=VOL / CAPITAL;HSL1:=IF(ZLL > 10,10,ZLL);HSL:=XVL / 20 / 1.15;攻击流量:=HSL * 0.55 + REF(HSL,1) * 0.33 + REF(HSL,2) * 0.22;GJJ:=EMA(攻击流量,8);LLJX:=EMA(攻击流量,3);流量:LLJX,COLORC875B7,COLORRED,NODRAW;STICKLINE(流量> 0,流量,0,2,0)COLOR0000FF;STICKLINE(流量< 0,流量,0,2,0),COLORFF4242;流量基线:GJJ,COLOR00BBBB,COLORGREEN;STICKLINE(HSL * 0.4 >= 0,HSL * 0.4 * 1,0,0,1)COLORYELLOW;STICKLINE(HSL * 0.4 < 0,HSL * 0.4 * 1,0,0,1)COLORWHITE;ZJLL:=REF(LLJX,1);QZJJ:=(((LLJX - ZJLL) / ZJLL) * 100);流量幅%:IF(((LLJX > 0) AND (ZJLL < 0)),ABS(QZJJ),IF((((LLJX < 0) AND (ZJLL < 0)) AND (LLJX < ZJLL)),(0 - QZJJ),QZJJ))COLORMAGENTA,NODRAW;力度:HSL / 1000,COLOR9B37FF,COLORRED,NODRAW;周流量:SUM(LLJX,5),COLORFFBFDF,COLORMAGENTA,NODRAW;BB:=REF(周流量,1);ZQZJJ:=(周流量-BB)/BB*100;周幅%:IF(周流量>0 AND BB<0,ABS(ZQZJJ),IF(周流量<0 AND BB<0 AND 周流量<BB,-ZQZJJ,ZQZJJ))COLORMAGENTA,NODRAW;VARQ1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);VARQ2:=SMA(ABS(LOW-VARQ1),13,1)/SMA(MAX(LOW-VARQ1,0),10,1);VARQ3:=EMA(VARQ2,10);VARQ4:=LLV(LOW,33);VARQ5:=EMA(IF(LOW<=VARQ4,VARQ3,0),3)*100;副图3(逃顶指标)(使用:在0.5左右进在3.5和3.5以上高位出)VAR2:=LLV(LOW,10);VAR3:=HHV(HIGH,25);阶段卖出: 3.2,COLORC6C600;3.5,COLOR0088FF;清仓卖出: 3.5,COLORFF75FF;动力线:= EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,4);STICKLINE(动力线>REF(动力线,1) ,动力线,REF(动力线,1),3 ,1),COLORRED; STICKLINE(动力线<=REF(动力线,1) ,动力线,REF(动力线,1),3 ,1),COLOR00FF00; 底部:0.2,COLOR70DB93;关注:0.5,COLORYELLOW;DRAWICON( FILTER(CROSS(动力线,关注),20),动力线+0.02 ,1);DRAWICON( FILTER(CROSS(清仓卖出,动力线),20),动力线+0.02,2); DRAWICON( FILTER(CROSS(动力线,底部),20),动力线+0.02 ,1);DRAWICON( FILTER(CROSS(阶段卖出,动力线),20),动力线+0.02,2);强弱分界线:1.75,POINTDOT,LINETHICK2,COLOR70DB93;数值:动力线,COLORA8A8A8;副图4(改进macd)在经过一段明显的下降区间后,出现了了立桩量。
通达信指标公式源码 乖离率一种 副图源码
{乖离率是标示当下股价对某一个均线的偏差,过远就会向均线靠拢,所以看走势的时候必须明了股价和均线的位置,这个公式就是对K线做短时平滑,设置需要选择的均线值} {M1:2 M2:60}MID1:=(3*CLOSE+LOW+OPEN+HIGH)/6;乖离率:(SMA(MID1,M1,1)-MA(SMA(MID1,2,1),M2))/MA(SMA(MID1,2,1),M2)*100,C OLOR999999;MID:=乖离率;MA1:(10*MID+9*REF(MID,1)+8*REF(MID,2)+7*REF(MID,3)+6*REF(MID,4) +5*REF(MID,5)+4*REF(MID,6)+3*REF(MID,7)+2*REF(MID,8)+1*REF(MID,9))/55,COLOR00 00DD;MA2:EMA(MA1,8),COLORWHITE; {MA1取普通平均值}IF(MA1<=REF(MA1,1) ,MA1,DRAWNULL),COLOR22FF22;IF(MA2<=REF(MA2,1),MA2,DRAWNULL),COLOR33FF33;{长中短周期把握}N1A:=BARSLAST(CROSS(C,MA(C,13)));N2A:=BARSLAST(CROSS(MA(C,13),C));短线跟踪:IF(N1A<N2A,N1A+1,N2A+1)*0.01,COLORYELLOW,NODRAW;{上穿或下穿13线计时};N1B:=BARSLAST(CROSS(C,MA(C,60)));N2B:=BARSLAST(CROSS(MA(C,60),C));中线跟踪:IF(N1B<N2B,N1B+1,N2B+1)*0.01,COLORRED,NODRAW;{上穿或下穿60线计时};N1C:=BARSLAST(CROSS(C,MA(C,250)));N2C:=BARSLAST(CROSS(MA(C,250),C));长线跟踪:IF(N1C<N2C,N1C+1,N2C+1)*0.01,COLORGRAY,NODRAW;{上穿或下穿250线计时};V0:0,COLOR666666;{零轴};。
最牛最准指标公式通达信公式指标源码.docx
木指标是木人使用多年的指标,由多种指标修改整编而成,为初级指标爱好者的首选。
朋友 们喜欢的话下载后,可以根据自己的需要可再任意组合成''二合一〃或''三合一〃等,如不喜欢 有未来的,可以不把这段源码安装进出。
源码里已分好段落,按需复制安装。
''公共均线〃 已设置成向上和向下转折时自动变色。
用法说明: 该指标为【五合一】日K 线主图,由一下组成:1 •离进场参考线;2•解盘;3、4.BS 提示(无 未来和有未来);5•财务和板块显示。
一、 该图近四天的K 线间有一条红绿线,也就是离场进场线,红线上持股,绿线下持币。
二、 解盘文字为当前K 线走势情况,作参考!三、 该图买卖BS 指标无未来和有未来结合使用:1、 该图淡红\B 、淡绿/S 无未来,也就是''右侧交易〃,虽滞后但稳妥!2、 该图红tB 、绿! S 有未来:含红绿波段,当出现提示可在第二天确认后再操作! 波段用法:红色K 线持股!青色K 线持币!四、 财务和板块行业提示:财务显示:市盈率、市净率和每股收益,以供参考。
有未来的其实并不可怕,你就当作参考就是。
{共用均线}MA5:MA(CLOSE <5)Z COLORWHITE;IF(MA5<REF(MA5,1)<MA5,DRAWNULL),COLORLIGRAY; MA10:MA(CLOSE,10),COLORYELLOW;IF(MA10vREF(MA10,l),MAIO,DRAWNULL),COLOR99FFCC;{MA20:MA(CLOSE,20)Z COLOR3366FF;IF(MA20<REF(MA20Z 1),MA20,DRAWNULL);}MA30:MA(CLOSE,30),COLORMAGENTA;IF(MA30<REF(MA30,1)Z MA30,DRAWNULL),COLORCC99FF;:-6»29g: 5.59I 关注区\4( WX*: 1.84 M*>: 16.74• tfi 如度走"在豪愉仗卖.・■ ・ 七於05 ______________________用咖HfK 紈冬孤0.00MA60:MA(CLOSE,60),COLORGREEN;IF(MA60<REF(MA60,1),MA60Z DRAWNULL)Z COLOR99 FFOO;MA180:MA(CLOSE,180),COLORFF9933;IF(MA180<REF(MA180Z1),MA180Z DRAWNULL),CO LORFFFF33;{1 •离进场线}JRH:=HHV(C,2);JRL:=LLV(C,2);MA3: = MA(C,3);YTSL:=(3 *C+L+O+H)/6;Z1D:=C>=REF(C,1);Z1X:=C<=REF(C Z1);Z2D:=C>=REF(C z2);Z2X:=C< = REF(C z2);X1D2:=Z1X AND Z2D;D1X2:=Z1D AND Z2X;R1:=Z1D AND Z2D;R2: = REF(R1,1) ANDX1D2;R3: = REF(R2,1) AND D1X2;R4: = REF(R3Z1) AND X1D2;R5:=REF(R4,1) AND D1X2;R6: = REF(R5Z1) AND X1D2;R7: = REF(R6,1) AND D1X2;R8: = REF(R7,1) ANDX1D2;R9: = REF(R8,1) AND D1X2;RA: = REF(R9,1) ANDX1D2;RB: = REF(RA,1) AND D1X2;RC:=REF(RB,1) ANDX1D2;RD:=Z1X AND Z2X;RE:=REF(RD,1) AND D1X2;RF:=REF(RE,1) ANDX1D2;R1O:=REF(RF,1) AND D1X2;Rll:=REF(R10,l) ANDX1D2;R12:=REF(R11,1) AND D1X2;R13:=REF(R12,1) AND X1D2;R14:=REF(R13Z1) AND D1X2;R15:=REF(R14Z1) ANDX1D2;R16:=REF(R15Z1) AND D1X2;R17:=REF(R16,1) ANDX1D2;R18:=REF(R17,1) AND D1X2;R19:=((REF(RD OR RE OR RF OR RIO OR Rll OR R12 OR R13 OR R14 OR R15 OR R16 ORR17 OR R18,l)) AND Rl);R1A:=((REF(R1 OR R2 OR R3 OR R4 OR R5 OR R6 OR R7 OR R8 OR R9 OR RA OR RB OR RC Z1)) AND RD);红色持股:二R1 OR R2 OR R3 OR R4 OR R5 OR R6 OR R7 OR R8 OR R9 OR RA OR RB OR RC,COLOROOOOFF,NODRAW;离场:=IF(红色持股,JRL,DRAWNULL);明离场价:二离场,COLORFF99FF,NODRAW;今离场价:REF(离场,1)COLORGREEN,NODRAW;青色观望:二RD OR RE OR RF OR RIO OR RU OR R12 OR R13 OR R14 OR R15 OR R16 OR R17 OR R18,COLORFFFFOO Z NODRAW;进:=IF(青色观望,JRH,DRAWNULL);明进场价:二进,COLOR33AACC,NODRAW;今进场价:REF(明进场价,1),COLORRED,NODRAW;短买:R19,COLORLIRED,NODRAW;STICKLINE(ISU\STBAR AND (红色持股OR REF(红色持股,1)=1),今离场价,今离场价,30,1),COLOROOOOFF;STICKLINE(ISLASTBAR AND (青色观望OR REF(青色观望」)=1),今进场价,今进场价,30,1),COLOROOFFOO;{2 •解盘}QLIFE:=(EMA(CLOSE,60)+EMA(CLOSE,90))/2,POINTDOT,COLORGREEN 丄INETHICK4; TT:=240/FROMOPEN;比:=TT;J12:=(HIGH ・((HIGH ・ LOW) / 3));J23:=(LOW + ((HIGH ・ LOW) / 3));AAA:=CONST(HHV(H,90));BBB:=CONST(LLV(L Z100));DRAWKLINE(HQ 丄,C);口{早晨之星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) < 0.95 AND REF(OPENJ)<REF(CLOSE,2) AND ABS(REF(OPEN Z1)-REF(CLOSE,1))/REF(CLOSE Z1)<0.03 AND CLOSE/OPEN>1.05 AND CLOSE>REF(CLOSE z2)),l z O));丁2{黄昏之星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) > 1.03 AND REF(OPEN,1)> REF(CLOSE,2) AND ABS(REF(OPEN Z1)-REF(CLOSE,1))/REF(CLOSE Z1)<0.02AND CLOSE/OPEN<0.97 AND CLOSE<REF(CLOSE,2)),l z O));T3{长十字}:=CONST(IF((CLOSE=OPEN AND HIGH/LOW >1.03)z l,0));丁4{垂死十字}:=CONST(IF((CLOSE=OPEN AND CLOSE=LOW AND CLOSE!二HIGH)」,。
通达信一劳永逸指标源码
通达信一劳永逸指标源码(原创实用版)目录1.通达信一劳永逸指标的概述2.通达信一劳永逸指标的原理3.通达信一劳永逸指标的源码实现4.通达信一劳永逸指标的应用案例5.总结正文一、通达信一劳永逸指标的概述通达信一劳永逸指标是一款在股票市场中广泛应用的技术指标,它可以帮助投资者在投资过程中提供有效的参考依据。
该指标集合了多种技术分析方法,包括趋势线、支撑线、压力线等,能够清晰地反映股票价格的走势和变化。
二、通达信一劳永逸指标的原理通达信一劳永逸指标的原理是通过对股票价格的历史数据进行分析,找出价格走势的关键点,如支撑位、压力位等,然后在图表上绘制出相应的线条,从而揭示股票价格的走势规律。
三、通达信一劳永逸指标的源码实现通达信一劳永逸指标的源码实现主要涉及到以下几个方面:1.数据获取:从股票数据源获取历史价格数据。
2.数据处理:对价格数据进行分析,找出支撑位、压力位等关键点。
3.图表绘制:根据关键点在图表上绘制出相应的线条。
四、通达信一劳永逸指标的应用案例通达信一劳永逸指标在股票市场中的应用非常广泛,下面以一个具体的案例来说明其应用方法:假设某投资者在 2021 年 1 月 1 日买入了一只股票,此时通达信一劳永逸指标显示该股票的价格正处于一个上升趋势中。
随着时间的推移,该股票的价格开始下跌,并在某一天达到了一个支撑位,此时通达信一劳永逸指标显示出一个买入信号。
投资者根据这个信号进行了买入操作,随后该股票的价格又开始上涨,并在另一个支撑位出现了卖出信号,投资者根据这个信号进行了卖出操作,从而实现了盈利。
五、总结通达信一劳永逸指标是股票市场中一种有效的技术指标,可以帮助投资者在投资过程中提供有效的参考依据。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
【通达信】综合神针解盘(加速度、乖离率)-指标公式源码AA05:MA(C,5),COLORFFFFFF;五日乖离率:=(C-AA05)/AA05*100;BB05:=ATAN((AA05/REF(AA05,1)-1)*100)*180/3.1416;速度5:=SMA(EMA((AA05-REF(AA05,1))/REF(AA05,1),3)*100,3,1);加速度5:EMA((速度5-REF(速度5,1)),3),NODRAW;{IF(BB05>30 AND AA05>REF(AA05,1), AA05,DRAWNULL),LINETHICK3,COLORRED;} AA10:MA(C,10);AA20:=MA(C,20);BB10:=ATAN((AA10/REF(AA10,1)-1)*100)*180/3.1416;{IF(BB05<0 AND AA05<REF(AA05,1),AA05,DRAWNULL),LINETHICK3,COLORGREEN;}AA30:MA(C,30);三拾日乖离率:(C-AA30)/AA30*100,NODRAW;VAR1:=(AA20-AA30)>REF((AA20-AA30),1) AND AA20>REF(AA20,1) ANDAA30>REF(AA30,1);VAR2:=(AA30-AA20)<REF((AA30-AA20),1) AND AA20<REF(AA20,1) ANDAA30<REF(AA30,1);BB30:=ATAN((AA30/REF(AA30,1)-1)*100)*180/3.1416;{IF(BB30>15 AND AA30>REF(AA30,1),AA30,DRAWNULL),LINETHICK3,COLORFF00FF;}强势狙击:=FILTER(BB30>30 AND BB10>45 AND CROSS(BB05,60),10);加仓:=FILTER(COUNT(CROSS(BB05,30),5)>=1 AND AA05>REF(AA05,1) AND 三拾日乖离率>REF(三拾日乖离率,1) AND AA10>REF(AA10,1)AND 加速度5>REF(加速度5,1) AND 速度5>REF(速度5,1) ,10) ;清仓:=FILTER(COUNT(CROSS(30,BB05),5)>=1 AND (C>AA30 OR O>AA30) ANDAA05<REF(AA05,1) AND 三拾日乖离率<REF(三拾日乖离率,1) ANDAA10<REF(AA10,1),10);DRAWTEXT(加仓 ,LOW*0.98,'←加仓'),COLORRED;JC:=CROSS(0,五日乖离率) AND 三拾日乖离率<REF(三拾日乖离率,1) ANDAA10>REF(AA10,1) ;减仓:=FILTER(JC,10);MR:=COUNT(CROSS(五日乖离率,0),3)>=1 AND 三拾日乖离率>REF(三拾日乖离率,1) AND AA05>REF(AA05,1) AND (C/REF(C,1)-1)*100>5 AND REF(C,1)<AA30;买入:=FILTER(MR,10);DRAWTEXT(减仓,HIGH*1.02,'←减仓'),COLORCYAN;DRAWTEXT(买入,LOW*0.98,'←买入'),COLORYELLOW;DRAWTEXT(清仓 ,HIGH*1.02,'←清仓'),COLORGREEN;DRAWTEXT(强势狙击,LOW*0.98,'←强势狙击'),COLORYELLOW;VAR21:=MAX(ABS(HIGH-AMOUNT/VOL/100),ABS(AMOUNT/VOL/100-LOW));VAR3:=ABS((OPEN+CLOSE)/2-AMOUNT/VOL/100);MV:=(VAR21+VAR3)/AMOUNT*VOL*100*50;支撑价:LLV(LOW,19),LINETHICK3 , COLOR00FF00;阻力价:HHV(HIGH,19),COLORBLUE, LINETHICK3;VARB1:=EMA(CLOSE,12)-EMA(CLOSE,26);VARB2:=EMA(VARB1,9);VARB3:=(CLOSE*2.5/100+CLOSE);VAR4:EMA(C,3), LINETHICK3,COLORRED;VAR5:=LLV(HIGH,240);VAR6:=100*(CLOSE-VAR5)/VAR5;VAR7:=REF(LLV(CLOSE,480),1);VAR8:=REF(HHV(CLOSE,480),1);VAR9:=100*(CLOSE-VAR7)/(VAR8-VAR7);VARA:=(CLOSE-LLV(CLOSE,981))/(HHV(CLOSE,981)-LLV(CLOSE,981))*100; VARB:=(CLOSE-LLV(CLOSE,393))/(HHV(CLOSE,393)-LLV(CLOSE,393))*100; VARC:=(CLOSE-LLV(LOW,981))/(HHV(HIGH,981)-LLV(LOW,981))*100;VARD:=(CLOSE-LLV(LOW,393))/(HHV(HIGH,393)-LLV(LOW,393))*100;VARE:=VARC>98.5 OR VARD>98.5;VARF:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),5)/4; VAR13:=VARA=0 AND VARC=0 AND VAR6<0;VAR14:=VARA=100 AND VARC=100;VAR15:=VARB=0 OR VARD=0 AND VAR9<0;VAR16:=VARB=100 AND VARD=100;VAR17:=VAR6<0 AND VAR9<0;VAR18:=VAR13 AND VAR15;VAR19:=VAR14 AND VAR16;VAR1B:=SMA(MAX(CLOSE-REF(CLOSE,1),0),49,1)/SMA(ABS(CLOSE-REF(CLOSE,1) ),6,1)*100;VAR1C:=SMA(MAX(CLOSE-REF(CLOSE,1),0),14,1)/SMA(ABS(CLOSE-REF(CLOSE,1) ),14,1)*100;VAR1D:=BARSCOUNT(CLOSE);VAR1E:=VAR1B<20 AND VAR1C<23 AND VAR1D>35;VAR1F:=VAR1E AND COUNT(VAR1E,1)=1;VAR20:=REF(CLOSE,1);VARB21:=SMA(MAX(CLOSE-VAR20,0),34,1)/SMA(ABS(CLOSE-VAR20),7,1)*100; VAR22:=SMA(MAX(CLOSE-VAR20,0),13,1)/SMA(ABS(CLOSE-VAR20),13,1)*100; VAR23:=BARSCOUNT(CLOSE);VAR24:=VARB21<20 AND VAR22<23 AND VAR23>35;VAR25:=VARA=0 AND VARF<1.2 AND VAR17;VAR27:=VAR18 AND VARF<1.2 AND VAR17;VAR29:=SUM(HIGH-OPEN,77)/SUM(OPEN-LOW,77)*100;VAR2A:=SUM(MAX(0,HIGH-REF(CLOSE,1)),77)/SUM(MAX(0,REF(CLOSE,1)-LOW),7 7)*100;VAR2B:=CROSS(VAR29,69) AND CROSS(VAR2A,80)<150;VAR2C:=VAR24 AND VAR1F AND COUNT(VAR24,30)=1;买点:=VAR25 AND VAR2B;绝对卖点:=(VAR19 OR VARA)AND VARF>23 OR VARE ;VAR2D:=VAR1F AND VAR2C AND VAR25;股海万元户:=(CLOSE/REF(CLOSE,1)>1.04 AND (CLOSE>10.8 AND CLOSE<10.83 OR CLOSE>6.86 AND CLOSE<6.88 OR CLOSE>13.82 AND CLOSE<13.84 OR CLOSE>7.28 AND CLOSE<7.3 OR CLOSE>12.4 AND CLOSE<12.42 OR CLOSE>22.33 AND CLOSE<22.35 OR CLOSE>4.68 AND CLOSE<4.7 OR CLOSE>26.29 AND CLOSE<26.31 OR CLOSE>7.65 AND CLOSE<7.67 OR CLOSE>13.4 AND CLOSE<13.42 OR CLOSE>7.58 AND CLOSE<7.6 OR CLOSE>20.43 AND CLOSE<20.45 OR CLOSE>19.57 AND CLOSE<19.59 OR CLOSE>6.26 AND CLOSE<6.28 OR CLOSE>7.14 AND CLOSE<7.16 OR CLOSE>6.61 AND CLOSE<6.63 OR CLOSE>11.9 AND VOL<11.92 OR CLOSE>6.7 AND CLOSE<6.72 OR CLOSE>8.19 AND CLOSE<8.21));DRAWTEXT(FILTER(绝对卖点>0,3),H,'别贪'), COLOR00FF00;DRAWTEXT(股海万元户>0,L,'☆追涨'),COLORYELLOW ;DRAWICON(买点>0,L,4);DRAWTEXT(买点>0,L,'扫描神针'),COLORF00FF0;DRAWTEXT(VARF<0.7 AND VAR27 AND VAR25>0,L,'万元'),COLORYELLOW; STICKLINE(VAR2D>0,O,C,10,0), COLORYELLOW;DRAWTEXT(VAR2D>0,L,'大方神针'),COLORRED;DRAWICON(COUNT(REF(VAR4,1)<REF(VAR4,2),5)=5 ANDVAR4>REF(VAR4,1),L*0.98,4);DRAWICON(FILTER(COUNT(VAR6<0,5)AND CROSS(VAR6,0)ANDVARF>REF(VARF,1)AND C>O,3),L,1);DRAWICON(FILTER(REF(VAR4,1)>REF(VAR4,2)AND VAR4<REF(VAR4,1)AND VARF>17 AND VARB1>VARB2,5),H,2);DRAWICON(阻力价>REF(阻力价,1)AND CROSS(阻力价,VARB3)AND C<O,H*1.02,5); 【通达信】综合神针解盘(加速度、乖离率)-指标公式效果图(文档来源:若水财经社区)。