通达信波段纵横指标公式

通达信一箭回马选股指标公式

通达信波段纵横指标公式:

{主力出货}

VAR1A:=DYNAINFO(5);

VAR2A:=BARSCOUNT(HIGH);

VAR3A:=(SMA((HIGH / HHV(CLOSE,120)),3,1) * 100);

VAR4A:=IF((VAR2A > 20),VAR3A,0);

VAR5A:=IF((HIGH < VAR1A),0,IF((LOW > VAR1A),1,(((VAR1A - HIGH) + 0.009) / ((LOW - HIGH) + 0.009))));

VAR6A:=(DMA(VAR5A,(vol / CAPITAL)) * 60);

VAR7A:=IF((((VAR6A > 0) AND (VAR6A > REF(VAR6A,1))) AND (VAR4A >= 88)),VAR6A,0);

VAR8A:=((3 * SMA((((CLOSE - HHV(HIGH,27)) / (LLV(LOW,27) - HHV(HIGH,27))) * 100),5,1)) - (2 * SMA(SMA((((HIGH - HHV(HIGH,27)) / (LLV(LOW,27) - HHV(HIGH,27))) * 100),5,1),3,1)));

VAR9A:=EMA(VAR8A,8);

VAR10A:=((3 * SMA((((HIGH - HHV(HIGH,55)) / (LLV(LOW,55) - HHV(HIGH,55))) * 100),5,1)) - (2 * SMA(SMA((((HIGH - HHV(HIGH,55)) / (LLV(LOW,55) - HHV(HIGH,55))) * 100),5,1),3,1)));

VAR11A:=(EMA(VAR10A,3) - 10);

stICKLINE(((VAR7A > 0) AND ((VAR11A < 20) OR ((VAR11A > REF(VAR11A,1)) AND (VAR11A < 50)))),0,-VAR7A,2,0),COLORGREEN;

{顶底}

RSVA1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;

RSVA2:=100*(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9));

VAR21:=SMA(RSVA2,9,1)+100;

VAR11:=SMA(RSVA1,3,1);

VAR51:=SMA(VAR11,3,1)+100;

顶底线:=VAR51-VAR21+50;

VAR2:=LLV(LOW,33);

VAR3:=HHV(HIGH,21);

VAR4:=EMA((CLOSE-VAR2)/(VAR3-VAR2)*100,10)*-1+100;

趋势:=100-EMA(0.191*REF(VAR4,1)+0.809*VAR4,1);

STICKLINE(顶底线>REF(顶底线,1),20,80,4,0),COLOR001050;

STICKLINE(顶底线<REF(顶底线,1),20,80,4,0),COLOR404050;

{强拉升}

Y1:=LLV(L,17);

Y2:=SMA(Abs(L-REF(L,1)),17,1);

Y3:=SMA(MAX(L-REF(L,1),0),17,2);

Q:=-(EMA(IF(L<=Y1,Y2/Y3,-3),1));

强拉升: IF(crOSS(Q,0),1,0),COLORYELLOW;

Q1:= (CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100,COLOR00FF00,LINETHICK2;

加强拉升:IF(CROSS(Q1,-24),1,0),COLORMAGENTA;

VAR22:=expma(EXPMA(EXPMA((2*CLOSE+HIGH+LOW)/4,4),4),4);

天:=( MA((VAR22-REF(VAR22,1))/REF(VAR22,1)*100,2));

地:=( MA((VAR22-REF(VAR22,1))/REF(VAR22,1)*100,1));

开始拉升:STICKLINE(地>天 AND 地<0,10,0,1,0)=1,COLOR262626;

VAR1B:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;

VAR2B:=SMA(VAR1B,9,1)+100;

VAR3B:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;

VAR4B:=SMA(VAR3B,3,1);

VAR5B:=SMA(VAR4B,3,1)+100;

VAR6B:=VAR5B-VAR2B;

趋势1: IF(VAR6B>45,VAR6B-45,0),NODRAW;

VAR2Q:=REF(LOW,1);

VAR3Q:=SMA(ABS(LOW-VAR2Q),3,1)/SMA(MAX(LOW-VAR2Q,0),3,1)*100;

VAR4Q:=EMA(IF(CLOSE*1.3,VAR3Q*10,VAR3Q/10),3);

VAR5Q:=LLV(LOW,30);

VAR6Q:=HHV(VAR4Q,30);

VAR7Q:=IF(MA(CLOSE,58),1,0);

VAR8Q:=EMA(IF(LOW<=VAR5Q,(VAR4Q+VAR6Q*2)/2,0),3)/999*VAR7Q;

火焰山:=IF(VAR8Q>100,100,VAR8Q);

STICKLINE(火焰山>0 AND 火焰山>REF(火焰山,1),0 ,-火焰山*1.2,3.5,0 ),COLOR4444FF;

STICKLINE(火焰山>0 AND 火焰山>REF(火焰山,1),0 ,-火焰山*1.2,2.5,0 ),COLOR5555FF;

STICKLINE(火焰山>0 AND 火焰山>REF(火焰山,1),0 ,-火焰山*1.2,1.5,0 ),COLOR7777FF;

STICKLINE(火焰山>0 AND 火焰山>REF(火焰山,1),0 ,-火焰山*1.2,0.5,0 ),COLOR9999FF;

STICKLINE(REF(趋势1,1)< 趋势1, 趋势1,REF(趋势1,1),3.5,0),COLOR000033;

STICKLINE(REF(趋势1,1)< 趋势1, 趋势1,REF(趋势1,1),2.8,0),COLOR000055;

STICKLINE(REF(趋势1,1)< 趋势1, 趋势1,REF(趋势1,1),2.0,0),COLOR000077;

STICKLINE(REF(趋势1,1)< 趋势1, 趋势1,REF(趋势1,1),1.2,0),COLOR000099;

STICKLINE(REF(趋势1,1)< 趋势1, 趋势1,REF(趋势1,1),0.4,0),COLOR0000DD;

STICKLINE(REF(趋势1,1)> 趋势1, 趋势1,REF(趋势1,1),3.5,0),COLOR000000;

STICKLINE(REF(趋势1,1)> 趋势1, 趋势1,REF(趋势1,1),2.8,0),COLOR000000;

STICKLINE(REF(趋势1,1)> 趋势1, 趋势1,REF(趋势1,1),2.0,0),COLOR9B9B00;

STICKLINE(REF(趋势1,1)> 趋势1, 趋势1,REF(趋势1,1),1.2,0),COLORDDDD00;

STICKLINE(REF(趋势1,1)> 趋势1, 趋势1,REF(趋势1,1),0.4,0),COLORFFFF00;

STICKLINE(CROSS(Q,0),-15,0,4,0), , COLORYELLOW;

STICKLINE(CROSS(Q1,-24),-20,0,4,0), , COLORMAGENTA;

STICKLINE(地>天 AND 地<0,-10,0,1,0),COLORRED;

DRAWTEXT(强拉升,-16,'强'),COLORYELLOW;

DRAWTEXT(强拉升,-19,'拉'),COLORYELLOW;

D1:=(C+L+H)/3;

D2:=EMA(D1,6);

D3:=EMA(D2,5);

BBUY:=CROSS(D2,D3);

强弱线:50,COLORC0C0C0,POINTDOT;

DRAWICON(BBUY,20,1);

VARR1:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100;

DRAWICON(CROSS(82,VARR1),10,15);

RSV:=(CLOSE-LLV(LOW,7))/(HHV(HIGH,7)-LLV(LOW,7))*100;

短多:SMA(RSV,3,1),COLOR2626FF,LINETHICK1;

短空:SMA(短多,3,1),COLORFFFF00,LINETHICK1;

DRAWBAND(短多,RGB(498,0,0),短空,RGB(0,188,198));

短期:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5)),COLORWHITE;

短期2:100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5)),COLORFFFFFF,LINETHICK1;

中期2:100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10)),NODRAW ,COLORC0C0C0;

中长期2:100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20)),NODRAW ,COLOR00A8A8;

长期2:100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30)),COLOR4D4DFF,LINETHICK1;

强市线:80,DOTLINE,COLOR000079;

弱市线:20,DOTLINE,COLORC08000;

分水岭:50,POINTDOT,COLORFFFFFF;

DRAWTEXT(FILTER(CLOSE>0,25),10,'吸筹区') COLORWHITE;

DRAWTEXT(FILTER(CLOSE>0,25),30,'建仓区') COLORWHITE;

DRAWTEXT(FILTER(CLOSE>0,25),65,'拉高区')COLORWHITE;

DRAWTEXT(FILTER(CLOSE>0,25),88,'出货区')COLORWHITE;

{抓主升}

N1:=3;

N2:=5;

N3:=9;

N4:=13;

DIFF:=EMA(CLOSE,N3)-EMA(CLOSE,N4);

DEA:=EMA(DIFF,N2);

A1:=DIFF>DEA;

RSV1:=(CLOSE-LLV(LOW,N3))/(HHV(HIGH,N3)-LLV(LOW,N3))*100;

K0:=SMA(RSV1,N1,1);

D0:=SMA(K0,N1,1);

A2:=K0>D0;

LC0:=REF(CLOSE,1);

rsi1:=(SMA(MAX(CLOSE-LC0,0),N2,1))/(SMA(ABS(CLOSE-LC0),N2,1))*100;

RSI2:=(SMA(MAX(CLOSE-LC0,0),N4,1))/(SMA(ABS(CLOSE-LC0),N4,1))*100;

A3:=RSI1>RSI2;

RSV0:=-(HHV(HIGH,N4)-CLOSE)/(HHV(HIGH,N4)-LLV(LOW,N4))*100;

Lwr1:=SMA(RSV0,N1,1);

LWR2:=SMA(LWR1,N1,1);

A4:=LWR1>LWR2;

bbi:=(MA(CLOSE,N1)+MA(CLOSE,N2)+MA(CLOSE,N3)+MA(CLOSE,N4))/4;

A5:=CLOSE>BBI;

mtm:=CLOSE-REF(CLOSE,1);

mms:=100*EMA(EMA(MTM,N2),N1)/EMA(EMA(ABS(MTM),N2),N1);

MMM:=100*EMA(EMA(MTM,N4),N3)/EMA(EMA(ABS(MTM),N4),N3);

A6:=MMS>MMM;

bias:=(C-MA(C,N2))/MA(C,N2);

DIF:=(BIAS-REF(BIAS,16));

DBCD:=SMA(DIF,76,1);

MM1:=MA(DBCD,5);

A7:=DBCD>MM1;

持股:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE -LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),LINETHICK0,COLORRED;

下跌:=MA(持股,12),COLOR6B8E23,LINETHICK0;

A8:=持股>下跌;

MT:=C-REF(C,1);

ZLGJ:=100*EMA(EMA(MT,N3),N3)/EMA(EMA(ABS(MT),N3),N3);

MAZL:=MA(ZLGJ,5);

A9:=ZLGJ>MAZL;

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

LLJX:=EMA(攻击流量,3);

资金流量:=LLJX,LINETHICK0,COLOR0000FF;

A10:=资金流量>0;

指导线:=(A1+A2+A3+A4+A5+A6+A7+A8+A9+A10),LINETHICK0,COLORFFFF00;

跟庄操作:IF(指导线 >6 ,33.38,0),LINETHICK1,COLOR0000FF;

{成交量比%}

AAY:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));

主买:=IF(CLOSE>OPEN,AAY*(HIGH-LOW),IF(CLOSE<OPEN,AAY*((HIGH-OPEN)+(CLOSE-LOW)),VOL /2));

量比%:主买/VOL*100,COLOR00FFFF,LINETHICK1,NODRAW;

量:=V/CONST(HHV(V,90))*30,LINETHICK0,VOLSTICK;

STICKLINE(CLOSE>=OPEN,0,量*1,0.5,0 ),COLOR8080FF;

STICKLINE(CLOSE>=OPEN,0,量*1,3.6,0 ),COLOR000033;

STICKLINE(CLOSE>=OPEN,0,量*1,2.2,0 ),COLOR000099;

STICKLINE(CLOSE>=OPEN,0,量*1,1.5,0 ),COLOR0000D2;

STICKLINE(CLOSE>=OPEN,0,量*1,0,0 ),COLOR0000FF;

STICKLINE(CLOSE<=OPEN,0,量*1,0.5,0 ),COLORFFFF00;

STICKLINE(CLOSE<=OPEN,0,量*1,3.6,0 ),COLOR000000;

STICKLINE(CLOSE<=OPEN,0,量*1,2.2,0 ),COLOR6A6A00;

STICKLINE(CLOSE<=OPEN,0,量*1,1.5,0 ),COLORDDDD00;

STICKLINE(CLOSE<=OPEN,0,量*1,0,0),COLORFFFF00;{立体青色};

{地量买点}

STICKLINE(CROSS(0.9,1/VOL*1000>0.01 AND "kdj.J"<0),量<0,-3,1.2,0),COLORGREEN,LINETHICK2;

DRAWTEXT(CROSS(0.9,1/VOL*1000>0.01 AND "kdJ.J"<0),量<0,'地量'),COLORFFFFFF,LINETHICK1;

{倍量}

倍量:(量/REF(量,1)>=1.91 AND COUNT(C>O,1)) OR (L>REF(H,1) AND COUNT(O>C,1) AND 量/REF(量,1)>=1.91),NODRAW,COLORYELLOW;

STICKLINE(倍量,0,量,0.0001,0),COLOR00FFFF;

DRAWTEXT(倍量,量*0.99,'倍'),COLORFFFFFF,LINETHICK1;

DRAWTEXT(COUNT(跟庄操作=33.38,10)=1 AND 跟庄操作=33.38 AND COUNT(开始拉升=1,10)=1 AND 开始拉升=1

,-18,''),COLORRED;

AA:=LLV(LOW,34);

BB:=HHV(HIGH,30);

DD:=(EMA(((CLOSE-AA)/(BB-AA))*(4),4))*(25);

谷:=(((DD-LLV(DD,21))/(HHV(DD,21)-LLV(DD,21)))*(4))*(25);

VAR1Y:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;

VAR2Y:=SMA(VAR1Y,3,1);

VAR3Y:=SMA(VAR2Y,3,1);

VAR4Y:=SMA(VAR3Y,3,1);

波: VAR3Y,COLORWHITE;

段: VAR4Y,COLORYELLOW;

VAR6Y:=CROSS(VAR3Y,VAR4Y) AND VAR3Y<20;

DRAWTEXT(FILTER(VAR6Y,10)=1,40,'买'),LINETHICK1,COLOR00AAFF;

STICKLINE(FILTER(VAR6Y,10)=1,0,90,1,0),COLORRED;

VAR7Y:=CROSS(VAR4Y,VAR3Y) AND VAR3Y>80;

STICKLINE(FILTER(VAR7Y,5)=1,0,90,1,0),COLORGREEN ;

DRAWTEXT(FILTER(VAR7Y,5)=1,70,'卖'),LINETHICK1,COLORFFCC66;

趋势Y:3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),LINETHICK0,COLORWHITE;

VAR8Y:=CROSS(VAR2Y,VAR3Y) AND VAR3Y>80 AND VAR3Y>VAR4Y;

VAR9Y:=CROSS(趋势,VAR2Y) AND 趋势Y<20 AND 趋势Y<段;

分批卖出:STICKLINE(VAR8Y,50,90,1,0),COLOR008360,LINETHICK3;

分批买入:STICKLINE(VAR9Y,40,0,1,0),COLOR000080,LINETHICK3;

90,COLORGREEN ;

0,COLORYELLOW ;

VAR01:=EMA((CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100,5);

VAR02:=(HHV(HIGH,25)-LLV(LOW,25))/EMA((CLOSE-LLV(LOW,25)),5);

VAR03:=CROSS(VAR02,VAR01);

VAR04:=REF(VAR02,2)<REF(VAR02,1) AND VAR02<REF(VAR02,1);

VAR05:=COUNT(VAR03,7)>0 AND VAR04;

VAR06:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);

VAR07:=SMA(ABS(LOW-VAR06),13,1)/SMA(MAX(LOW-VAR06,0),10,1);

VAR08:=EMA(VAR07,10);

VAR09:=EMA(C,5);

VAR10:=LLV(LOW,33);

VAR11Y:=EMA(IF(LOW<=VAR10,VAR09,0),3)*40;

VAR12Y:=IF(VAR11Y>100,VAR11Y*0.312,VAR11Y);

资金入场:VAR02,COLORRED;

BAR1:=REF(LOW,1);

BAR2:=SMA(ABS(LOW-BAR1),13,1)/SMA(MAX(LOW-BAR1,0),13,1)*4;

BAR3:=EMA(BAR2,13);

BAR4:=LLV(LOW,34);

BAR5:=EMA(IF(LOW<=BAR4,BAR3,0),3);

BAR6:=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);

BAR7:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);

BAR8:=BAR6<REF(BAR7,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);

散户:STICKLINE(BAR5>REF(BAR5,1),0,BAR5,0.5,0),COLORGREEN,LINETHICK1;

STICKLINE(BAR8 AND COUNT(BAR8,30)=1,0,18,0.5,0),COLORBLUE,LINETHICK3;

STICKLINE(BAR8 AND COUNT(BAR8,30)=1,18,36,0.5,0),COLORFF7700,LINETHICK3;

STICKLINE(BAR8 AND COUNT(BAR8,30)=1,36,60,1,0),COLORYELLOW;

DRAWTEXT(BAR8 AND COUNT(BAR8,30)=1,90,'主力进场'),COLORYELLOW;

RE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;

R12:=(HIGH+LOW+CLOSE)/3;

R13:=(R12-MA(R12,14))/(0.015*AVEDEV(R12,14));

R14:=(R12-MA(R12,70))/(0.015*AVEDEV(R12,70));

R15:=IF(R13>=150 AND R13<200 AND R14>=150 AND R14<200,10,0);

R16:=IF(R13<=-150 AND R13>-200 AND R14<=-150 AND R14>-200,-10,R15);

R17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;

R18:=100-ABS(R17);

R19:=IF(R18<90,R18,100);

R1A:=IF(RE>0,RE,0);

R1B:=IF(R14>=200 AND R13>=150,15,IF(R14<=-200 AND R13<=-150,-15,R16))+60;

R1C:=R1A>48 AND R1B>60 AND R19<100;

DRAWTEXT(R1C AND COUNT(R1C,25)=1,80,'分批出货'),LINETHICK1,COLORFFCC66;

STICKLINE(R1C AND COUNT(R1C,25)=1,90,60,0.5,0),COLORFFCC66;

通达信主升浪回踩买点主图指标公式