通达信指标公式源码概况:
指标类别: 通达信指标公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
JH:=VOL*CLOSE;
JHO:=SUM(JH,2)/SUM(VOL,2);
JH0:=EMA(JHO,10);
AAA:=(JHO-JH0)*20/JHO;
超:=STICKLINE(AAA0ANDAAA=REF(AAA,1),0,AAA,3,0),COLORLIRED;
级:=STICKLINE(AAA0ANDAAAREF(AAA,1),0,AAA,3,1),COLORLIRED;
好:=STICKLINE(AAA0ANDAAA=REF(AAA,1),0,AAA,3,1),COLORGREEN;
的:=STICKLINE(AAA0ANDAAAREF(AAA,1),0,AAA,3,0),COLORGREEN;
公:=EMA(IF(AAA0ANDAAAREF(AAA,1),0,AAA),3);
式:=CROSS(REF(公,1),公)AND公0;
谢:=EMA(IF(AAA0ANDAAAREF(AAA,1),0,AAA),3);
了:=CROSS(REF(谢,1),谢)AND谢0;
必买:=CROSS(C,DRAWLINE(HIGH=HHV(HIGH,30),HIGH,LOW=LLV(LOW,10),HHV(HIGH,6),1));
WY1001:=(2*CLOSE+HIGH+LOW)/4;
WY1002:=EMA(WY1001,4);
WY1003:=EMA(WY1002,4);
WY1004:=EMA(WY1003,4);
X:=(WY1004-REF(WY1004,1))/REF(WY1004,1)*2000;
X1:=IF(XREF(X,1),X,DRAWNULL),COLORWHITE,LINETHICK2;
XO:=MA(X,2),COLOR9932CD;
SI:=REF(X,1);
STICKLINE(XSI,X,SI,2.3,0),COLOR0000FF;
STICKLINE(XSI,X,SI,0.3,0),COLORCC66FF;
STICKLINE(XSI,X,SI,2.3,0),COLOR00BB00;
STICKLINE(XSI,X,SI,0.3,0),COLOR00FF00;
STICKLINE(式,X,SI,2.15,0),COLOR545454;
STICKLINE(了,X,SI,2.15,0),COLORDB7093;
VAR1:=EMA(EMA(CLOSE,9),9);
控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;
STICKLINE(控盘0,控盘,0,3,0),COLORWHITE;
AA1:=CROSS(控盘,0);
无庄控盘:IF(控盘0,控盘,0),COLORWHITE,NODRAW;
轻度控盘:STICKLINE(控盘0AND0.9*控盘REF(控盘,1),控盘,0,3,0),COLORYELLOW;
轻度出货:STICKLINE(控盘0AND1.1*控盘REF(控盘,1),控盘,0,3,0),COLORFFFF79;
开始控盘:=IF(AA1,5,0),LINETHICK1,COLORYELLOW;
有庄控盘:IF(控盘REF(控盘,1)AND控盘0,控盘,0),COLORRED,NODRAW;
STICKLINE(控盘REF(控盘,1)AND控盘0,控盘,0,3,0),COLORRED;
VAR2:=100*WINNER(CLOSE*0.95);
高度控盘:IF(VAR250ANDCOST(85)CLOSEAND控盘0,控盘,0),COLORFF00FF,NODRAW;
STICKLINE(VAR250ANDCOST(85)CLOSEAND控盘0,控盘,0,3,0),COLORFF00FF;
主力出货:IF(控盘REF(控盘,1)AND控盘0,控盘,0),COLOR00FF00,NODRAW;
STICKLINE(控盘1.2*REF(控盘,1)AND控盘0,控盘,0,3,0),COLOR00FF00;
DIF1:=EMA(DCLOSE,12)-EMA(DCLOSE,26);
DEA1:=EMA(DIF1,9);
{柱状线}
MACD1:=(DIF1-DEA1)*2*60;
MACD上:IF(MACD1REF(MACD1,1),MACD1,DRAWNULL),
STICK,COLORRED,LINETHICK1;
MACD下:IF(MACD1REF(MACD1,1),MACD1,DRAWNULL),
STICK,COLORFF9900,LINETHICK1;
{买点提示}
A1:=BARSLAST(REF(CROSS(DIF1,DEA1),1));
BL:=REF(CLOSE,A1+1)CLOSEANDDIF1REF(DIF1,A1+1)ANDCROSS(DIF1,DEA1);
{STICKLINE(BL,0,1,2,0),COLOR00FF00;}
买点:DRAWICON(BL,DEA1,23);
A2:=BARSLAST(REF(CROSS(DEA1,DIF1),1));
DBL:=REF(CLOSE,A2+1)CLOSEANDREF(DIF1,A2+1)DIF1ANDCROSS(DEA1,DIF1);
买点1:DRAWICON(DBL,DEA1,12);
低位:=CROSS(DIF1,DEA1)ANDDIF1-0.1;
DRAWTEXT(低位金叉,-0.36, #39;低位金叉 #39;);
JCCOUNT:=COUNT(CROSS(DIF1,DEA1),BARSLAST(DEA1=0));
二次金叉:=CROSS(DIF1,DEA1)ANDDEA10ANDCOUNT(JCCOUNT=2,21)=1;
DRAWICON(二次金叉,DEA1*1.04,13);
DRAWTEXT(二次金叉,-0.22, #39;二次金叉 #39;),COLORFF00FF;
A10:=BARSLAST(REF(CROSS(DIF1,DEA1),1));
底:=REF(CLOSE,A10+1)CLOSEANDDIF1REF(DIF1,A10+1)ANDCROSS(DIF1,DEA1);
DRAWLINE(A10=0,DEA1,底背离,DEA1,0),COLORRED,LINETHICK2;
DRAWTEXT(底背离,-0.50, #39;底背离 #39;),COLOR00FF00;
A20:=BARSLAST(REF(CROSS(DEA1,DIF1),1));
顶背离:=REF(CLOSE,A20+1)CLOSEANDREF(DIF1,A20+1)DIF1ANDCROSS(DEA1,DIF1);
DRAWLINE(A20=0,DEA1,顶背离,DEA1,0),COLORWHITE,LINETHICK2;
{STICKLINE(底背离,X,SI,1,0),COLORYELLOW;}
STICKLINE(低位金叉,X,SI,1,0),COLORWHITE;
STICKLINE(必买,X,(X+SI)/2,2.3,0),COLORFF9900;
STICKLINE(必买,X,(X+SI)/2,0.1,0),COLORWHITE;
STICKLINE(低位金叉AND底背离,X,(X+SI)/2,2.3,0),COLORYELLOW;
STICKLINE(低位金叉AND底背离,X,(X+SI)/2,0.1,0),COLORCC66FF;
STICKLINE(二次金叉,X,SI,2.0,0),COLORYELLOW;
{主力进场}
VAR12:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VAR13:=SMA(ABS(LOW-VAR12),13,1)/SMA(MAX(LOW-VAR12,0),10,1);
VAR14:=EMA(VAR13,10);
VAR15:=LLV(LOW,33);
VAR16:=EMA(IF(LOW=VAR15,VAR14,0),3);
主力进场:=IF(VAR16REF(VAR16,1),VAR16,0),COLORRED,NODRAW;
STICKLINE(主力进场,X,SI,0.1,0),COLORRED;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1),COLORWHITE;
D:=SMA(K,3,1),COLORYELLOW;
J:=3*K-2*D,COLORFF00FF;
X3:=LLV(J,2)=LLV(J,8);
A:=250;
JH1:=HHV(MAX(K,MAX(D,J)),A);
DH:=HHV(MAX(DIF1,DEA1),A);
SH:=INTPART(JH1/DH)/2;
DIFF50:=SH*DIF1+50,COLORFFFF00;
DEA50:=SH*DEA1+50,COLORBLUE;
诱空:=IF(1.5*(DIFF50-DEA50)0ANDREF(1.5*(DIFF50-DEA50),1)REF(1.5*(DIFF50-DEA50),2)AND1.5*(DIFF50-DEA50)REF(1.5*(DIFF50-DEA50),1),1,0);
低位:=CROSS(J,REF(J+0.01,1))ANDX3ANDJ19;
MTM:=C-REF(C,1);
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
值:=LLV(DX,2)=LLV(DX,7)ANDCOUNT(DX0,2)ANDCROSS(DX,MA(DX,2));
DRAWTEXT(FILTER(诱空,3)AND诱空,X, #39;洗盘 #39;),COLOR00FF00;
LT:=100;
LU:=0;
LV:=38.2;
卖出预警:IF(LT,100,100),COLORGREEN;
持股信心:IF(LU,0,0),COLORFFCC00;
把钱拿稳:IF(LU,38.2,38.2),COLORFFCCCC;
买入准备:IF(LU,0,0),COLORFFCC00;
LA:=REF(CLOSE,1);
LB:=((SMA(MAX((CLOSE-LA),0),5,1)/SMA(ABS((CLOSE-LA)),5,1))*100);
LC:=(HIGH-REF(HIGH,1));
LD:=(REF(LOW,1)-LOW);
LE:=SUM(MAX(MAX((HIGH-LOW),ABS((HIGH-REF(CLOSE,1)))),ABS((LOW-REF(CLOSE,1)))),10);
LF:=SUM(IF(((LC0)AND(LCLD)),LC,0),10);
LG:=SUM(IF(((LD0)AND(LDLC)),LD,0),10);
LH:=((LF*100)/LE);
LI:=((LG*100)/LE);
LJ:=MA(((ABS((LI-LH))/(LI+LH))*100),5);
AV:=(LB+LJ);
LK:=((100*(HHV(HIGH,10)-CLOSE))/(HHV(HIGH,10)-LLV(LOW,10)));
LL:=(LB-LK);
LM:=(AV+LL);
LO:=((((2*CLOSE)+HIGH)+LOW)/4);
LP:=LLV(LOW,34);
LQ:=HHV(HIGH,34);
LR:=EMA((((LO-LP)/(LQ-LP))*100),13);
LS:=EMA(((0.667*REF(LR,1))+(0.333*LR)),2);
向导线:=LLV(LM,1);
STICKLINE((向导线225),95,90,8,1),COLORGREEN;
STICKLINE((向导线235),100,95,8,1),COLORGREEN;
STICKLINE(CROSS(235,向导线),100,90,8,1),COLORYELLOW;
STICKLINE((LM(0-1)),0,5,8,1),COLORGREEN;
STICKLINE((LM(0-5)),5,10,8,1),COLORRED;
STICKLINE(CROSS(向导线,(0-3)),0,10,8,1),LINETHICK1;
STICKLINE(((LR-LS)0),LR,LS,8,0),COLORRED;
STICKLINE(((LR-LS)0),LR,LS,8,0),COLORGREEN;
DRAWICON(CROSS(ZIG(3,10),REF(ZIG(3,10),1)),LOW*0.98,1);
DRAWICON(CROSS(REF(ZIG(3,10),1),ZIG(3,10)),HIGH*1.02,2);
VA:=IF(CLOSEREF(CLOSE,1),VOL,-VOL);
OBV:SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0),COLOR00FFFF;
MAOBV:MA(OBV,14),COLOR996699;
箱顶:HHV(OBV,20),COLOR0000FF;
箱底:LLV(OBV,20),COLOR00FF00;
UPPER:MAOBV+2*STD(OBV,20),COLORFFFF00,POINTDOT;
LOWER:MAOBV-2*STD(OBV,20),COLORFF0000,POINTDOT;
XG:IF(OBV=箱底ANDOBV=LOWER,箱底*1.03,箱底),COLOR009900;
P1:=6;P2:=5;
SX1:=EMA(CLOSE,P1);
SX2:=EMA(CLOSE,P2);
牛:(CLOSE-SX1)*2/(5+1)+SX1,COLOR00F5FF;
SX3:=(CLOSE-SX2)*2/(10+1)+SX2,COLOR00F5FF;
DRAWICON(FILTER(CROSS(牛,SX3),20),牛,1);
DRAWICON(FILTER(CROSS(SX3,牛),20),牛,2);
熊:IF(牛SX3,SX3,牛),COLOR00670F;
零点:SX3,COLOR00FFFF;
DRAWBAND(牛,RGB(255,0,0),零点,RGB(0,0,0)),COLOR009DFC;
DRAWBAND(零点,RGB(0,255,0),熊,RGB(0,0,0)),COLOR26F8FC;
DK:=MA(((SLOPE(C,20)*5)+C),20);
STICKLINE(DK=CANDCLOSE=OPEN,HIGH,LOW,0.1,1),COLORRED,COLOREC0E00;
STICKLINE(DK=CANDCLOSE=OPEN,CLOSE,OPEN,3,1),COLORRED,COLOREC0E00;
STICKLINE(DK=CANDCLOSEOPEN,HIGH,LOW,0.1,0),COLORRED,COLOREC0E00;
STICKLINE(DK=CANDCLOSEOPEN,CLOSE,OPEN,3,0),COLORRED,COLOREC0E00;
STICKLINE(DKCANDCLOSE=OPEN,HIGH,LOW,0.1,1),COLORGREEN,COLOR002E13;
STICKLINE(DKCANDCLOSE=OPEN,CLOSE,OPEN,3,1),COLORGREEN,COLOR002E13;
STICKLINE(DKCANDCLOSEOPEN,HIGH,LOW,0.1,0),COLORGREEN,COLOR002E13;
STICKLINE(DKCANDCLOSEOPEN,CLOSE,OPEN,3,0),COLORGREEN,COLOR002E13;
DRAWTEXT(CROSS(C,DK),LOW*0.99, #39;B #39;),COLORLIBLUE,COLOR931A62;
DRAWTEXT(CROSS(DK,C),H*1.01, #39;S #39;),COLORLIGRAY,COLORC35B9A;