通达信指标公式源码概况:

指标类别: 通达信指标公式

授权方式: 免费版

指标评级: ★★★★★

指标分类: 策略

画线方法: 副图

一、通达信操盘指标公式

  

七天线:EMA(C,7),COLORWHITE;  

黄金线:(EMA(C,18)),POINTDOT,LINETHICK4,COLORYELLOW;  

生命线:(MA(C,28)),COLORMAGENTA;  

姊妹线:(EMA(C,56)),COLORCYAN;  

多空线:(MA(C,120)),COLOR0099FF;  

A3:=EMA((((SLOPE(C,21))*20)+C),68);  

A4:=EMA(C,10);  

A5:=REF(C,2);  

A6:=((SMA((MAX((C-A5),0)),6,1))/(SMA(ABS((C-A5)),6,1)))*100;  

A7:=IF(((A6<(REF(A6,1)))AND(A6>79)),A6,0);  

A8:=LLV(L,21);  

A9:=HHV(H,21);  

A10:=EMA((((CLOSE-A8)/(A9-A8))*100),5);  

A11:=EMA((((CLOSE-A8)/(A9-A8))*50),13);  

A12:=EMA(((0.667*(REF(A10,1)))+(0.333*A10)),2);  

A13:=LLV(L,55);  

A14:=HHV(H,34);  

A15:=EMA((((C-A13)/(A14-A13))*100),3);  

A16:=(A11+A15)/2;  

A17:=EMA(((0.667*(REF(A15,1)))+(0.333*A10)),2);  

A18:=EMA(A16,5);  

A19:=EMA(((0.667*(REF(A18,1)))+(0.333*A18)),2);  

A20:=CROSS(A10,A11);  

A21:=(CROSS(A10,A19))AND(A19<30);  

A22:=A21*0.6;  

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

A24:=EMA(A23,6);  

A25:=EMA(A24,5);  

A26:=CROSS(A24,A25);  

DRAWICON(A26,(LOW/1.030),1),LINETHICK2,COLORMAGENTA;  

DRAWTEXT(CROSS(A4,A3),L*0.88,'买!'),LINETHICK4,COLORYELLOW;  

STICKLINE(((C>=黄金线)AND(C>=O)),H,L,0,1),COLORRED;  

STICKLINE(((C>=黄金线)AND(C>=O)),O,C,2,1),COLORRED;  

STICKLINE(((C>=黄金线)AND(C<=O)),H,L,0,0),COLORRED;  

STICKLINE(((C>=黄金线)AND(C<=O)),O,C,2,0),COLORRED;  

STICKLINE(((C<黄金线)AND(C>=O)),H,L,0,1),COLORGREEN;  

STICKLINE(((C<黄金线)AND(C>=O)),O,C,2,1),COLORGREEN;  

STICKLINE(((C<黄金线)AND(C<=O)),H,L,0,0),COLORGREEN;  

STICKLINE(((C<黄金线)AND(C<=O)),O,C,2,0),COLORGREEN;  

回归斜率线A:=EMA(SLOPE(C,4)*20+C,42);  

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

经典K:=SMA(经典RL,3,1);经典D:=SMA(经典K,3,1);  

经典J:=3*经典K-2*经典D;  

MAHL1:=100*((EMA((H+L)/2,3)-LLV(EMA((H+L)/2,5),30)-(EMA(H,20)-EMA(L,20)))/(LLV(EMA((H+L)/2,5),30)-(EMA(H,20)-EMA(L,20))));  

MAHL2:=IF(EMA(C,2)>回归斜率线AANDMAHL1>0,EMA(C,3),LLV(EMA((H+L)/2,5),30));{A}  

MAHL3:=IF(EMA(C,2)>回归斜率线AANDMAHL1>0,LLV(EMA((H+L)/2,5),30),EMA(C,5));{A}  

回归斜率带:DRAWBAND(回归斜率线A,RGB(235,0,230),REF(回归斜率线A,2),RGB(0,104,154));  

上线:=SMA(C,6.5,1);  

一号支撑线:SMA(C,14.5,1);  

上线1:=SMA(C,3,1);  

一号支撑线1:=SMA(C,8,1);  

上线2:=SMA(C,3.5,1);  

DRAWTEXT(CROSS(一号支撑线1,上线1),H*1.08,'压力'),COLOR00FF00;  

BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,25))/4;  

UPR:=BBI+3*STD(BBI,13),LINETHICK2;  

DWN:=BBI-3*STD(BBI,13);  

安全:=MA(CLOSE,55),LINETHICK2;  

LC:=REF(CLOSE,1);  

RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;  

DRAWTEXT(CROSS(82,RSI)ANDCLOSE<上线1,HIGH*1.04,'压力线'),COLORFF9966,LINETHICK2;  

A7:=(2*C+H+L)/4;  

操作:MA(A7,5),COLORBLUE,LINETHICK2;  

操作1:=MA(A7,5)*1.03,LINETHICK2;  

操作2:=MA(A7,5)*0.97,LINETHICK2;  

DRAWTEXT(CROSS(上线1,上线)AND上线1>操作,LOW*0.92,'买进'),COLORYELLOW;  

VAR1:LLV(A7,21);  

VAR2:HHV(A7,30);  

DRAWTEXT(CROSS(上线1,操作)AND上线1<一号支撑线AND上线1<一号支撑线1AND上线1<上线ANDCLOSE>VAR1,LOW*0.98,'见底'),COLORYELLOW;  

YCX:=操作>=REF(操作,1);  

H1:=MAX(MAX(上线,一号支撑线1),一号支撑线);  

L1:=MIN(MIN(上线,一号支撑线1),一号支撑线);  

DRAWTEXT(CROSS(上线1,一号支撑线1)AND上线1>操作,LOW*0.98,'全仓'),COLORYELLOW;  

SK:=EMA((A7-VAR1)/(VAR2-VAR1)*100,7);  

SD:=EMA(0.667*REF(SK,1)+0.333*SK,5);  

M1:=1000*操作/一号支撑线<=1015AND1000*操作/一号支撑线>=975;  

M2:=1000*一号支撑线1/一号支撑线<=1020AND一号支撑线1/一号支撑线>=980;  

M3:=1000*上线/一号支撑线<=1015AND上线/一号支撑线>=985;  

DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),13)/13>6/10AND  

COUNT(SK>SD,6)ANDREF(LOW,5)=LLV(LOW,120)ANDREF(CLOSE>=OPEN,4)AND  

REF(CLOSE>OPEN,3)ANDREF(CLOSE>OPEN,2)ANDREF(OPEN>CLOSE,1)AND  

OPEN>REF(CLOSE,1),1,0),LOW*0.94,'买进'),COLORYELLOW;  

D:=MA(CLOSE,89)-MA(CLOSE,10)/3;  

DRAWTEXT(IF(CLOSE<DANDVOL/240>MA(VOL,5)/240ANDCLOSE>REF(CLOSE,1)*1.08  

ANDCLOSE<MA(CLOSE,13)*1.3,1,0),LOW*0.88,'抄底'),COLORBROWN;  

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

K:=SMA(RSV,3,1);  

D1:=SMA(K,3,1);  

J:=3*K-2*D1;  

VAR3:=(2*CLOSE+HIGH+LOW)/3;{可将3该为4,信号少点}  

VAR4:=EMA(EMA(EMA(VAR3,4),4),4);{可将3该为4,信号少点}  

E:=(VAR4-REF(VAR4,1))/REF(VAR4,1)*100;  

F:=MA(E,3)+0.03;  

G:=MA(E,1);  

DRAWICON(CROSS(F,G)ANDJ>65,HIGH*1.02,15),COLORGREEN;  

DRAWICON(CROSS(G,F),LOW*0.9,9),COLORYELLOW;  

DRAWTEXT(CLOSE>OPENANDH1<CANDO<L1ANDYCXANDCROSS(上线1,操作)ANDLOW>VAR1AND上线1>一号支撑线ANDJ<90,LOW*0.9,'主升'),COLORRED;  

DRAWTEXT(CROSS(上线1,操作)ANDM1ANDM2ANDM3,LOW*0.94,'买进'),COLORYELLOW;  

DRAWTEXT(CLOSE>OPENAND上线>一号支撑线1AND一号支撑线1>一号支撑线ANDCLOSE>MA(CLOSE,一号支撑线)AND操作>=REF(CLOSE,操作)ANDCROSS(上线1,操作)ANDLOW>VAR1ANDJ<90,LOW*0.9,'主升'),COLORRED;  

DRAWTEXT(CLOSE>OPENAND操作>上线AND上线>一号支撑线1AND一号支撑线1>一号支撑线ANDCROSS(上线1,操作)ANDLOW>VAR1ANDJ<90,LOW*0.86,'回踩买进'),COLORRED;  

DRAWTEXT(CLOSE>OPENANDCROSS(上线,一号支撑线)ANDLOW>VAR1ANDJ<90,LOW*0.86,'回踩买进'),COLORRED;  

STICKLINE(CLOSE>REF(CLOSE,1),HIGH,LOW,0,0),COLORRED;  

STICKLINE(C<OANDC>REF(C,1),C,O,3,0),COLORFFCC00;  

STICKLINE(CLOSE>REF(CLOSE,1)ANDC>O,OPEN,CLOSE,3,0),COLOR000055;{红K};  

STICKLINE(CLOSE>REF(CLOSE,1)ANDC>O,OPEN,CLOSE,2.7,0),COLOR000077;{红K};  

STICKLINE(CLOSE>REF(CLOSE,1)ANDC>O,OPEN,CLOSE,2.1,0),COLOR000099;  

STICKLINE(CLOSE>REF(CLOSE,1),OPEN,CLOSE,1.5,0),COLOR0000BB;  

STICKLINE(CLOSE>REF(CLOSE,1),OPEN,CLOSE,0.9,0),COLOR0000DD;  

STICKLINE(CLOSE>REF(CLOSE,1),OPEN,CLOSE,0.3,0),COLOR0000FF;  

STICKLINE(CLOSE=REF(CLOSE,1),H,L,3,1),COLOR999999;  

STICKLINE(CLOSE=REF(CLOSE,1),HIGH,LOW,0,0),COLORWHITE;  

STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,3,0),COLOR555555;  

STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,2.7,0),COLOR777777;  

STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,2.1,0),COLOR999999;  

STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,1.5,0),COLORBBBBBB;  

STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,0.9,0),COLORDDDDDD;  

STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,0.3,0),COLORFFFFFF;  

STICKLINE(CLOSE<REF(CLOSE,1),HIGH,LOW,0,1),COLORCYAN;  

STICKLINE(C<REF(C,1)ANDC>O,C,O,3,0),COLORFFCC00;  

STICKLINE(C<REF(C,1)ANDC<O,OPEN,CLOSE,3,0),COLOR990000;  

STICKLINE(C<REF(C,1)ANDC<O,OPEN,CLOSE,2.7,0),COLORCC0000;  

STICKLINE(CLOSE<REF(C,1),OPEN,CLOSE,2.1,0),COLORFF4400;  

STICKLINE(CLOSE<REF(C,1),OPEN,CLOSE,1.5,0),COLORFF8800;  

STICKLINE(CLOSE<REF(C,1),OPEN,CLOSE,0.9,0),COLORFFCC00;  

STICKLINE(CROSS(J,D1)ANDJ<70,CLOSE,OPEN,3.2,0),COLORBB00FF;  

STICKLINE(CROSS(J,D1)ANDJ<70,CLOSE,OPEN,2.7,0),COLORFF33FF;  

STICKLINE(CROSS(J,D1)ANDJ<70,CLOSE,OPEN,2.1,0),COLORFF66FF;  

STICKLINE(CROSS(J,D1)ANDJ<70,CLOSE,OPEN,1.5,0),COLORFF99FF;  

STICKLINE(CROSS(J,D1)ANDJ<70,CLOSE,OPEN,0.9,0),COLORFFBBFF;  

STICKLINE(CROSS(J,D1)ANDJ<70,CLOSE,OPEN,0.3,0),COLORFFDDFF;

image.png

二、通达信内外盘指标公式

  

MA5:EMA(CLOSE,5);  

MA10:EMA(C,10);  

MA20:EMA(CLOSE,20);  

VAR1A:=(REF(HIGH,1)+REF(LOW,1))/2;  

压力线:MA(CLOSE,20)+2*STD(CLOSE,20);  

支撑线:MA(CLOSE,21)-2.2*STD(CLOSE,21),COLORYELLOW;  

VAR2A:=CROSS(VAR1A,压力线);  

VAR3A:=REF(CLOSE,1);  

VAR4A:=SMA(MAX(CLOSE-VAR3A,0),7,1)/SMA(ABS(CLOSE-VAR3A),7,1)*100;  

VAR5A:=CROSS(79,VAR4A);  

VAR6A:=FILTER(VAR5A,4);  

DRAWICON(FILTER(VAR6AORVAR2A,5),HIGH*1.035,2);  

DRAWTEXT(FILTER(VAR6AORVAR2A,5),HIGH*1.02,'卖'),COLORYELLOW;  

VAR7A:=FILTER(MA5>REF(MA5,1)ANDMA10>REF(MA10,1)AND  

MA20>REF(MA20,1)ANDMA5<MA10,5);  

VAR8A:=FILTER(HHVBARS(H,13)/C>2ANDMA5>REF(MA5,1)ANDMA5<MA10,7);  

VAR9A:=REF(L,2)<支撑线ANDL>支撑线ANDC>OANDMA5>REF(MA5,1);  

DRAWICON(FILTER(VAR7AORVAR8AORVAR9A,5)ANDVAR4A<45,L,1);  

DRAWTEXT(FILTER(VAR7AORVAR8AORVAR9A,5)ANDVAR4A<45,L,'买'),COLORRED;  

DRAWICON(CROSS(10,VAR4A),L,3);  

VAR1:=CLOSE>REF(CLOSE,1)ANDCLOSE>REF(CLOSE,2);  

VAR2:=REF(VAR1,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);  

VAR3:=REF(VAR2,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);  

VAR4:=REF(VAR3,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);  

VAR5:=REF(VAR4,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);  

VAR6:=REF(VAR5,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);  

VAR7:=REF(VAR6,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);  

VAR8:=REF(VAR7,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);  

VAR9:=REF(VAR8,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);  

VARA:=REF(VAR9,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);  

VARB:=REF(VARA,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);  

VARC:=REF(VARB,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);  

涨:STICKLINE(VAR1ORVAR2ORVAR3ORVAR4ORVAR5ORVAR6ORVAR7ORVAR8  

ORVAR9ORVARAORVARBORVARC,CLOSE,REF(CLOSE,1),3,1),COLORRED;  

VARD:=CLOSE<REF(CLOSE,1)ANDCLOSE<REF(CLOSE,2);  

VARE:=REF(VARD,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);  

VARF:=REF(VARE,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);  

VAR10:=REF(VARF,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);  

VAR11:=REF(VAR10,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);  

VAR12:=REF(VAR11,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);  

VAR13:=REF(VAR12,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);  

VAR14:=REF(VAR13,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);  

VAR15:=REF(VAR14,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);  

VAR16:=REF(VAR15,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);  

VAR17:=REF(VAR16,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);  

VAR18:=REF(VAR17,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);  

跌:STICKLINE(VARDORVAREORVARFORVAR10ORVAR11ORVAR12ORVAR13  

ORVAR14ORVAR15ORVAR16ORVAR17OR  

VAR18,CLOSE,REF(CLOSE,1),3,0),COLORFF8080;  

VAR19:=REF(VARDORVAREORVARFORVAR10ORVAR11ORVAR12ORVAR13OR  

VAR14ORVAR15ORVAR16ORVAR17ORVAR18,1)ANDVAR1;  

底:STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),3,0),COLORYELLOW;  

VAR1B:=REF(VAR1ORVAR2ORVAR3ORVAR4ORVAR5ORVAR6ORVAR7ORVAR8OR  

VAR9ORVARAORVARBORVARC,1)ANDVARD;  

顶:STICKLINE(VAR1B,REF(CLOSE,1),REF(CLOSE,2),3,0),COLORWHITE;  

A:=BARSCOUNT(C);  

AH:=HHV(H,72);  

AL:=LLV(L,72);  

A0:=(AH-AL)/21;  

B1:=L-A0;  

STICKLINE((A+0)/13=FLOOR((A+0)/13),B1,B1-3*A0,1,0);  

DRAWTEXT((A+0)/13=FLOOR((A+0)/13),B1-2.5*A0,'转向时间窗'),COLORWHITE;  

BS:(INVOL-OUTVOL)/VOL;  

STICKLINE(INVOL>OUTVOL,BS,0,10,0),colorred;  

STICKLINE(INVOL<OUTVOL,BS,0,10,0),colorgreen;  

股价离散0:5*(CLOSE-MA(CLOSE,5))/MA(CLOSE,5),DRAW,colorred,LINETHICK1;  

股价离散1:5*(CLOSE-MA(CLOSE,10))/MA(CLOSE,10),DRAW,colorgreen,LINETHICK1;  

股价离散2:5*(CLOSE-MA(CLOSE,20))/MA(CLOSE,20),DRAW,colorblue,LINETHICK1;  

A1:=(DVOL/CLOSE)/2;  

A2:=SUM(IF(A1>100ANDCLOSE>REF(CLOSE,1),A1,0),0);  

A3:=SUM(IF(A1>100ANDCLOSE<REF(CLOSE,1),A1,0),0);  

A4:=SUM(IF(A1<100ANDCLOSE>REF(CLOSE,1),A1,0),0);  

A5:=SUM(IF(A1<100ANDCLOSE<REF(CLOSE,1),A1,0),0);  

机构买盘:A2,LINETHICK8,COLOR5555FF;  

机构卖盘:A3,LINETHICK8,COLOR55FF55;  

散户买盘:A4,COLORFF55FF;  

散户卖盘:A5,COLORFFFF55;  

内盘:=DYNAINFO(22);  

外盘:=DYNAINFO(23);  

外内盘差:(外盘-内盘),NODRAW;  

STICKLINE(外内盘差>0,机构买盘,机构卖盘,0.000001,0),COLORRED;  

STICKLINE(外内盘差<0,机构买盘,机构卖盘,0.000001,0),COLORGREEN;  

STICKLINE(外内盘差>0AND机构买盘=机构卖盘,散户买盘,散户卖盘,0.000001,0),COLORRED;  

STICKLINE(外内盘差<0AND机构买盘=机构卖盘,散户买盘,散户卖盘,0.000001,0),COLORGREEN;

image.png

[源码注释]通达信公式动态翻译结果

 ZT赋值:(收盘价-1日前的收盘价)/1日前的收盘价*100>=9.9

DT赋值:(收盘价-1日前的收盘价)/1日前的收盘价*100<=-9.9

输出涨停:条件连续成立次数

输出跌停:条件连续成立次数

推荐阅读:通达信操盘提醒指标公式

  

VAR2:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;  

VAR3:=SMA(SMA(VAR2,3,1),3,1)/28.57;  

VAR4:=EMA(VAR3,5);  

VAR5:=3*VAR3-2*VAR4;  

AA:=CROSS(VAR5,VAR3)ANDVAR3<2.1ANDC>O;  

VAR6:=(2*CLOSE+HIGH+LOW)/4;  

VAR7:=LLV(LOW,13);  

VAR8:=HHV(HIGH,21);  

VAR9:=EMA((VAR6-VAR7)/(VAR8-VAR7)*100,13);  

VARA:=EMA(0.667*REF(VAR9,1)+0.333*VAR9,2);  

趋势:VAR9,COLORFFFFFF;  

STICKLINE(VAR9>VARA,VAR9,VARA,8,0),COLOR0000FF;  

STICKLINE(VAR9<=VARA,VAR9,VARA,8,0),COLOR00FF00;  

奔牛:EMA(0.382*REF(VAR9,2)+0.618*VAR9,6),coloryellow;  

BU:=CROSS(趋势,奔牛);  

SEL:=CROSS(奔牛,趋势);  

DRAWTEXT(BU,12,'买'),coloryellow;  

DRAWTEXT(SEL,79,'卖'),colorwhite;  

B:=CROSS(MA(C,60),C)ANDMA(C,60)>MA(C,150)AND奔牛>趋势;  

S:=CROSS(C,MA(C,60));  

DRAWTEXT(B,72,'逃'),colormagenta;  

PARTLINE(奔牛,奔牛>REF(奔牛,1),RGB(255,0,0),奔牛<REF(奔牛,1),RGB(0,255,0)),LINETHICK2;  

PARTLINE(23,奔牛>REF(奔牛,1),RGB(255,0,0),奔牛<REF(奔牛,1),RGB(0,255,0)),POINTDOT,LINETHICK2;  

PARTLINE(51,奔牛>REF(奔牛,1),RGB(255,0,0),奔牛<REF(奔牛,1),RGB(0,255,0)),POINTDOT,LINETHICK2;  

PARTLINE(83,奔牛>REF(奔牛,1),RGB(255,0,0),奔牛<REF(奔牛,1),RGB(0,255,0)),POINTDOT,LINETHICK2  

A8A:=(C+O+L+H)/4;  

B8B:=REF(CLOSE,A8A);  

处女线:=SMA(MAX(CLOSE-B8B,0),2,1)/SMA(ABS(CLOSE-B8B),2,1)*100;  

DZ1:=处女线>REF(处女线,1)AND处女线>89;  

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

CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));  

CCI修正1:=EMA(EMA(EMA(CCI,2),2),2);  

CCI修正2:=EMA(EMA(EMA(CCI,3),2),2);  

DZ2:=CCI修正1>100;  

T:=CLOSE*1.0+LOW*0.0+HIGH*0.0;  

SL:=(T/REF(T,1)-1)*1000;  

快:=XMA(XMA(XMA(SL,3),3),3);  

慢:=XMA(XMA(XMA(SL,5),5),5);  

X:=快-慢;  

增速1:=X;  

WWW:=REF(增速1,1)<0;  

DZ4:=增速1>3ANDWWW;  

DZ:=DZ1ANDDZ2ANDDZ4;  

STICKLINE(DZ,0,10,3,0),COLORWHITE;  

DRAWTEXT(DZ,12,'强势'),COLORWHITE;  

ZLCM:=EMA(WINNER(CLOSE)*70,3);  

SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);  

ZZLKP:=ZLCM/(ZLCM+SHCM)*100;  

ZZLJJ:=EMA(ZZLKP,55);  

XGL:=(ZZLJJ>REF(ZZLJJ,1)ANDREF(ZZLJJ,1)<REF(ZZLJJ,2))*25;  

STICKLINE(ZZLJJ>REF(ZZLJJ,1),ZZLKP,ZZLJJ,1,0),COLORRED;  

VAR21:=REF(LOW,1);  

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

VAR41:=EMA(IF(CLOSE*1.3,VAR31*10,VAR31/10),3);  

VAR51:=LLV(LOW,30);  

VAR61:=HHV(VAR41,30);  

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

VAR81:=EMA(IF(LOW<=VAR51,(VAR41+VAR61*2)/2,0),3)/618*VAR71;  

VAR91:=IF(VAR81>100,100,VAR81);  

吸筹:IF(VAR91>-120,VAR91,0),COLORMAGENTA,NODRAW;  

STICKLINE(VAR91>-120,0,VAR91,1,1),COLORMAGENTA;  

LC:=REF(CLOSE,1);  

RSI:=SMA(MAX(CLOSE-LC,0),4.1,1)/SMA(ABS(CLOSE-LC),4.1,1)*100,COLORYELLOW,LINETHICK1;  

红买:FILTER(CROSS(RSI,11),7),COLORRED;  

STICKLINE(红买,0,5,6,0),COLORRED;  

绿卖:=FILTER(CROSS(88,RSI),7),COLOR00FF00;  

STICKLINE(绿卖,100,88,6,0),COLOR00FF00;  

ZLC:=EMA((WINNER(CLOSE)*70),3);  

SHC:=EMA(((WINNER((CLOSE*1.1))-WINNER((CLOSE*0.9)))*80),3);  

主力控盘:((ZLC/(ZLC+SHC))*100),COLORRED,LINETHICK1;  

VAR2001:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;  

VAR3001:=SMA(SMA(VAR2001,3,1),3,1)/28.57;  

VAR4001:=EMA(VAR3001,5);  

操盘1:=3*VAR3001-2*VAR4001;  

A11:=CROSS(操盘1,VAR3001)ANDVAR3001<2.1ANDC>O;  

STICKLINE(A11,20,0,4,1),COLOR0000FF;  

DRAWTEXT(A11,23,'满仓'),COLORRED;  

VAR2:=(((CLOSE-REF(CLOSE,1))/REF(CLOSE,1))*100);  

VAR3:=(((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18)))*100);  

VAR4:=SMA(VAR3,9,1);  

VAR5:=SMA(VAR4,3,1);  

黄线在上持股:((3*VAR4)-(2*VAR5)),LINETHICK1,COLORYELLOW;  

VAR6:=(黄线在上持股>(1*REF(黄线在上持股,1)));  

VAR7:=LLVBARS(LOW,50);  

VAR8:=SUM(VOL,VAR7);  

VAR9:=HHVBARS(HIGH,50);  

VAR10:=SUM(VOL,VAR9);  

VAR11:=(((CLOSE-REF(OPEN,VAR9))/REF(OPEN,VAR9))*100);  

VAR12:=((VAR10/CAPITAL)*100);  

VAR13:=(((CLOSE-REF(OPEN,VAR7))/REF(OPEN,VAR7))*100);  

VAR14:=((VAR8/CAPITAL)*100);  

VAR15:=(MA(WINNER(CLOSE),3)*100);  

VAR16:=EMA(VAR4,3);  

回档不破洗盘:EMA(VAR4,3),COLORFFFFFF,LINETHICK1;  

红线下穿减仓:EMA(回档不破洗盘,3),COLORFFCC66;  

VAR200:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;  

VAR300:=SMA(SMA(VAR200,3,1),3,1)/28.57;  

VAR400:=EMA(VAR300,5);  

操盘:=3*VAR300-2*VAR400;  

A1:=CROSS(操盘,VAR300)ANDVAR300<2.1ANDC>O;  

STICKLINE(A1,10,0,4,0),COLOR770077;  

STICKLINE(A1,10,0,3,0),COLOR990099;  

STICKLINE(A1,10,0,2,0),COLORBB00BB;  

STICKLINE(A1,10,0,1,0),COLORDD00DD;  

STICKLINE(A1,10,0,0.3,0),COLORFF00FF;  

DRAWTEXT(A1,14,'全仓'),COLORRED;  

DRAWTEXT(REF("KDJ.J",1)<0AND"KDJ.J">0,17,'短'),COLORRED;  

STICKLINE(REF("KDJ.J",1)<0AND"KDJ.J">0,13,0,1,0),COLORRED;

image.png

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。