一、通达信抓牛资金指标公式
A1:=100-100*(HHV(HIGH,55)-CLOSE)/(HHV(HIGH,55)-LLV(LOW,55));
A2:=100*(HHV(HIGH,13)-CLOSE)/(HHV(HIGH,13)-LLV(LOW,13));
A3:=MA(A2,13);
STICKLINE(CROSS(A1,50),50,60,3,0),COLORGRAY;
DRAWBAND(A1,255,60,0);
资金:A1-A3,COLORYELLOW;
A4:=ATAN((资金/REF(资金,1)-1)*100)*180/3.1416;
STICKLINE(CROSS(资金,0),0,30,3,0),COLORLIRED;
0,COLORLIMAGENTA;
60;
A5:=531;
A6:=1510000;
A7:=A5+A6;
A8:=IF(DATE>A7,0,1);
A9:=REF(CLOSE,1);
A10:=EMA(HHV(HIGH,1),8);
A11:=EMA(CLOSE,8);
A12:=A11
A13:=IF(A10
A14:=SMA(MAX(CLOSE-A9,0),2,1)/SMA(ABS(CLOSE-A9),2,1)*100; A15:=45; A16:=20; A17:=A14 A18:=A14 DRAWTEXT(CURRBARSCOUNT=129,0.5,1032),COLOR889999; 抓牛:(COUNT(A13=1,4)=3 AND A13=0 AND OPEN DRAWTEXT(抓牛,抓牛*0.71,1033),COLORLIRED; A19:=240/FROMOPEN; A20:=A19; A21:=(HIGH-LOW)*1000000/(VOL*A20); A22:=EMA(CLOSE,12)-EMA(CLOSE,26); A23:=EMA(A22,9); A24:=A22-A23; A25:=IF(A24,LLV(LOW,21),DRAWNULL); A26:=HHV(HIGH,80)*0.99; A27:=CONST(A26); A28:=LLV(A25,80); A29:=CONST(A28); A30:=MA(CLOSE,20); A31:=CLOSE>MA(CLOSE,5); A32:=MA(CLOSE,5)>MA(CLOSE,10); A33:=CLOSE>MA(CLOSE,10); A34:=MA(CLOSE,5)>MA(CLOSE,20); A35:=CLOSE>MA(CLOSE,20); A36:=REF(A30,1); A37:=A30>A36; A38:=IF(A31,10,0-10)+IF(A32,10,0-10)+IF(A33,10,0-10)+IF(A34,10,0-10)+IF(A35,10,0-10)+IF(A37,10,0-10); A39:=CLOSE/INDEXC; A40:=MA(A39,5); A41:=MA(A39,10); A42:=MA(VOL,5); A43:=MA(VOL,10); A44:=CONST(IF(A38>0,200,100)); A45:=CONST(IF(A38>0,0,100)); A46:=CONST(IF(A38>0,100,100)); A47:=A27; A48:=A29; A49:=A27; A50:=CONST(IF(CROSS(A38,1) AND A42>=A43 AND A39>=A40,1,0)); A51:=CONST(IF(CROSS(A38,1) AND A42 A52:=CONST(IF(CROSS(A38,1) AND A42>A43 AND A39 A53:=CONST(IF(CROSS(A38,1) AND A42<=A43 AND A39 A54:=CONST(IF(CROSS(1,A38) AND A42>=A43 AND A39>=A40,1,0)); A55:=CONST(IF(CROSS(1,A38) AND A42 A56:=CONST(IF(CROSS(1,A38) AND A42>=A43 AND A39 A57:=CONST(IF(CROSS(1,A38) AND A42 A58:=CONST(IF(A38>=1 AND REF(A38,1)>0 AND A42 A59:=CONST(IF(A38>=1 AND REF(A38,1)>0 AND A42 A60:=CONST(IF(A38>=1 AND REF(A38,1)>0 AND A42>=A43 AND A39 A61:=CONST(IF(A38>=1 AND REF(A38,1)>0 AND A42 A62:=CONST(IF(A38<1 AND REF(A38,1)<0 AND A42>=A43 AND A39>=A40,1,0)); A63:=CONST(IF(A38<1 AND REF(A38,1)<0 AND A42 A64:=CONST(IF(A38<1 AND REF(A38,1)<0 AND A42>=A43 AND A39 A65:=CONST(IF(A38<1 AND REF(A38,1)<0 AND A42 A66:=CONST(IF(CROSS(A38,1) AND A42>=A43,1,0)); MA20:MA(C,20),COLORRED,LINETHICK2; MA55:MA(C,55),COLOR00FF00,LINETHICK2; IF(MA20
IF(MA55
BB:MA(MA(CLOSE,3),1),LINETHICK3,COLOR00FFFF; IF(BB>=REF(BB,1),BB,DRAWNULL),COLORFF00FF,LINETHICK3; TT:=IF(ISLASTBAR,240/FROMOPEN,1); NN:=120; HH:=HHV(V*TT,NN); LL:=LLV(V,NN); 最高:=CONST(HH); 最低:=CONST(LL); 最高2:=CONST(HHV(H,NN)); 最低2:=CONST(LLV(L,NN)); PP:=IF((最高2*0.9-(最高2-最低2)*0.5)>CONST(LLV(L,20)),0.9,IF((最高2*0.9-(最高2-最低2)*0.5)>CONST(LLV(L,50)),0.7,0.6)),NODRAW; RCC1:=最高2*0.9-(最高2-最低2)*PP; 最低3:=MIN(RCC1,最低2); AA:=最低3; 周J:=MA("KDJ.J#WEEK"(9,3,3) ,5),COLORFFFF00,LINETHICK2; AA1:=周J<0 AND 周J
FF1:=周J<0 AND 周J>REF(周J,1); BB1:=周J>=0 AND 周J<85 AND 周J>REF(周J,1); DD1:=周J>=REF(周J,1) AND 周J>=85 ; EE1:=周J0; ZJ1:=MA("KDJ.J#WEEK"(9,3,3) ,5); YK:=MA("KDJ.K#MONTH"(9,3,3),20),LINETHICK0; YD:=MA("KDJ.D#MONTH"(9,3,3),20),LINETHICK0; YJ:=MA("KDJ.J#MONTH"(9,3,3),20); ZK:=MA("KDJ.K#WEEK"(9,3,3) ,5),LINETHICK0; ZD:=MA("KDJ.D#WEEK"(9,3,3) ,5),LINETHICK0; RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; K:=SMA(RSV,3,1),LINETHICK0; D:=SMA(K,3,1),LINETHICK0; J:=3*K-2*D,LINETHICK0; GG1:=C>0; RJC:DRAWICON(CROSS(K,D),L*0.98,1); DRAWTEXT(RJC,L*0.98,'日金叉'),COLOR0000FF; RSC:DRAWICON(CROSS(D,K),H*1.03,2),; DRAWTEXT(RSC,H*1.03,'日死叉'),COLORFFFFFF; ZJC: DRAWICON (CROSS(ZK,ZD), L*0.98,1); DRAWTEXT(ZJC,L*0.98,'周金叉'),COLORFF00FF; ZSC: DRAWICON (CROSS(ZD,ZK), H*1.03,2),; DRAWTEXT(ZSC,H*1.03,'周死叉'),COLOR00FFFF; YJC: DRAWICON (CROSS(YK,YD), L*0.98,1); DRAWTEXT(YJC,L*0.98,'月金叉'),COLORFF0000; YSC: DRAWICON (CROSS(YD,YK), H*1.03,2),; DRAWTEXT(YSC,H*1.03,'月死叉'),COLORFFFF00; STICKLINE(AA1,AA-0.000*AA,AA-0.040*AA,2.5,1),COLOR6600BB; STICKLINE(FF1,AA-0.000*AA,AA-0.040*AA,2.5,0),COLOR0000FF; STICKLINE(BB1,AA-0.000*AA,AA-0.040*AA,2.5,0),COLORFF00FF; STICKLINE(DD1,AA-0.000*AA,AA-0.040*AA,2.5,0),COLOR00FF00; STICKLINE(EE1,AA-0.000*AA,AA-0.040*AA,2.5,1),COLORFFFF00; STICKLINE(GG1,AA-0.050*AA,AA-0.090*AA,2.5,1),COLORBB0000; STICKLINE(RJC,AA-0.050*AA,AA-0.090*AA,2.5,0),COLOR0000FF; STICKLINE(RSC,AA-0.050*AA,AA-0.090*AA,2.5,0),COLORFFFFFF; STICKLINE(ZJC,AA-0.050*AA,AA-0.090*AA,2.5,0),COLORFF00FF; STICKLINE(ZSC,AA-0.050*AA,AA-0.090*AA,2.5,0),COLOR00FFFF; STICKLINE(YJC,AA-0.050*AA,AA-0.090*AA,2.5,0),COLORFF0000; STICKLINE(YSC,AA-0.050*AA,AA-0.090*AA,2.5,0),COLORFFFF00;二、通达信KDJ多周期金叉主图指标公式