通达信公式编写教程 通达信关注买点出现指标公式
N:=27;M1:=3;M2:=3;
短J5:"KDJ.J"(5,3,3),COLORGRAY,LINETHICK1;
RSV27:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K27:SMA(RSV27,M1,1),COLOR00FFFF,LINETHICK3;
中K27:K27,COLOR00FFFF,LINETHICK3;
D27:=SMA(K27,M2,1),COLORWHITE,LINETHICK3;
IF( K27>REF(K27,1),K27,REF(K27,1)),LINETHICK1,COLOR00FFFF;
STICKLINE(K27>REF(K27,1) AND K27>50,50,K27,1,0),COLORRED;
STICKLINE(K27>REF(K27,1) AND K27>50,50,K27-4,1,0),COLORRED;
STICKLINE(K27>REF(K27,1) AND K27<50,50,K27,1,0),COLORRED;
STICKLINE(K27>REF(K27,1) AND K27<50,50,K27+4,1,0),COLORRED;
STICKLINE(K27<REF(K27,1) AND K27>50,K27,K27-5,1,-1),COLORGREEN;
STICKLINE(K27<REF(K27,1) AND K27<50,K27,K27+5,1,-1),COLORGREEN;
长D89:"KDJ.D"(89,13,3),COLORFFFF00,LINETHICK3;
V0:0,COLOR00FF00;
V20:20,COLOR00FF00,POINTDOT;
V50:50,COLOR00FF00;
V80:80,POINTDOT,COLOR00FF00;
V100:100,COLOR00FF00;
{MDCX买点出现}
HLM1:=MA(HHV(H,485),17);
HLM2:=MA(HHV(H,222),17);
HLM3:=MA(HHV(H,96),17);
HLM4:=MA(LLV(L,485),17);
HLM5:=MA(LLV(L,222),17);
HLM6:=MA(LLV(L,96),17);
HLM7:=MA((HLM1*0.558+HLM2*0.558+HLM3*0.558+HLM4*0.96+HLM5*0.96+HLM6*0.96)/6,17);
HLM8:=MA((HLM1*0.55+HLM2*0.55+HLM3*0.65+HLM4*1.25+HLM5*1.23+HLM6*1.2)/6,17);
HLM9:=MA((HLM1*0.68+HLM2*0.68+HLM3*0.68+HLM4*1.3+HLM5*1.3+HLM6*1.3)/6,17);
HLM10:=MA((HLM7*3+HLM8*2+HLM9)/6*1.738,17);
HLM11:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1)*100;
HLM12:=MA(IF(C*1.35<=HLM10,HLM11*10,HLM11/10),3);
HLMH:=HHV(HLM12,30);
关注:MA(IF(L<=LLV(L,13),(HLMH+HLM11*2)/2,0),3)/200,COLORFFFFFF;
DRAWTEXT(CROSS(关注,1.2),关注*0.5-6,'↑▲'),COLORFF00FF;
DRAWTEXT(CROSS(关注,4.5),关注,'买点出现'),COLOR00FFFF;
DRAWICON(CROSS(关注,7.0),关注*0.5-20,14);