通达信多周期KD及买卖点指标(源码)
XG4:=(D1D AND NOT(REF(D1D,1)) AND (AA1<50 OR BB1<50));
N:=5;{可调}
BB:=REF(CLOSE,N);
CC:=SMA(MAX(CLOSE-BB,0),2,1)/SMA(ABS(CLOSE-BB),2,1)*100-50;
线:=CC;
XG5:=线>REF(线,1) AND REF(线,1)<=REF(线,2) AND C/REF(C,1)>1;
宝:IF(XG1+XG2+XG3+XG4+XG5>=4,50,0),COLORWHITE,NODRAW;
STICKLINE(XG1+XG2+XG3+XG4+XG5>=4,0,70,1,1),COLORWHITE ;
不输2:IF(CROSS(买了不输,-88) AND K3>REF(K3,1),30,0),COLORFF00FF,NODRAW;
STICKLINE(CROSS(买了不输,-88) AND K3>REF(K3,1),0,40,1,0),COLORFF00FF ;
不输3:IF(CROSS(买了不输,-120),30,0),COLOR0066FF,NODRAW;
STICKLINE(CROSS(买了不输,-120),0,50,1,0),COLOR0066FF ;
F:=(EMA(CLOSE,12)-EMA(CLOSE,26))*200,COLORMAGENTA;
E:=EMA(F,9),COLORGREEN;
AMOV:=VOL*(OPEN+CLOSE)/2;
S1:=SUM(AMOV,5)/SUM(VOL,5);
S2:=SUM(AMOV,13)/SUM(VOL,13);
S3:=SUM(AMOV,34)/SUM(VOL,34);
S4:=SUM(AMOV,60)/SUM(VOL,60);
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
WR1:=EMA(100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14)),5),LINETHICK1;
B:IF(CROSS(CCI,0) AND K1>REF(K1,1) AND D1>REF(D1,1),70,0),STICK,COLORFF00FF;
{STICKLINE(CROSS(CCI,0) AND K1>REF(K1,1) AND K1<40 AND D1>REF(D1,1) ,
0,70,0,0),COLORFF00FF;}
绝点:IF(K1>K2 AND K1>REF(K1,1) AND K2>K3 AND K2>K4 AND CROSS(K1,D1) AND K1<50
AND K2>REF(K2,1) AND K3>REF(K3,1) AND K4>REF(K4,1) ,70,0),COLORYELLOW,STICK,LINETHICK2;
{红买}
VA:=(C+2*H+L)/4;
VB:=LLV(L,8);
VC:=HHV(H,8);
VD:=EMA(((VA-VB)/(VC-VB)-VC/VB)*81,5)*-1;
红线上穿买:=REVERSE(VD)+100,COLORRED;
RSV:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100);
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
XQ:=LLV(J,2)=LLV(J,8);
AA:=DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND XQ AND J<19,红线上穿买*0.9,"短"),COLORLIRED;
红买:IF(AA,60,0),COLORRED,LINETHICK2;
{买了就涨}
短卖:DM,COLORGREEN,LINETHICK1;
卖:MAI,COLORGREEN,LINETHICK3;
- 上一篇公式:通达信涨停小收割指标(源码)
- 下一篇公式:通达信呯凡游资攻击及选股指标(源码)