对比KD
{对比kd,大智慧l2}
DRAWGBKLAST(CLOSE>0,STRIP(RGB(85,85,95),RGB(25,25,112),0));
aa:(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100,coloryellow,linethick2;
FILLRGN(aa,-33,C),color255000;
买卖:= EMA((-3)*(HHV(HIGH,30)-CLOSE)/(HHV(HIGH,30)-LLV(LOW,30))+2.7,9);
STICKLINE(买卖<0,-33,-27,3,0), COLORff00ff;
STICKLINE(买卖<0.1 and 买卖>0,-33,-27,3,0), COLORgreen;
STICKLINE(买卖<0.25 and 买卖>0.1,-33,-27,3,0), COLORyellow;
STICKLINE(买卖>1.95,100,97,11,1),colorgreen;
套牢盘:100*(1-WINNER(CLOSE)),linethick0;
DRAWICON(CROSS(10,套牢盘),-16,12);
RSVD:=(INDEXC-LLV(INDEXL,12))/(HHV(INDEXH,12)-LLV(INDEXL,12))*100;
KD:=SMA(RSVD,3,1);
DD:=SMA(KD,3,1);
STICKLINE(KD>=DD,KD,DD,5,0),COLOR8888ee;
STICKLINE(KD<DD,KD,DD,5,0),Color4B9521;
RSV:=(CLOSE-LLV(LOW,12))/(HHV(HIGH,12)-LLV(LOW,12))*100;
K:SMA(RSV,3,1),COLORWHITE;
D:SMA(K,3,1),COLORYELLOW;
ks:=ema(k,3);
if(ks>80 and cross(ks,ref(ks,1)),80,100);
STICKLINE(K>=D,K,D,2,0),COLORred;
STICKLINE(K<D,K,D,2,0),colorFFFF66;
VAR1:=IF((CLOSE > OPEN),((CLOSE - OPEN) * VOL),IF((CLOSE < OPEN),((CLOSE - OPEN) * VOL),0));
VAR2:=IF((CLOSE > REF(CLOSE,1)),((CLOSE - REF(CLOSE,1)) * VOL),IF((CLOSE < REF(CLOSE,1)),((CLOSE - REF(CLOSE,1)) * VOL),0));
VAR3:=IF((OPEN > REF(CLOSE,1)),((OPEN - REF(CLOSE,1)) * VOL),IF((OPEN < REF(CLOSE,1)),((OPEN - REF(CLOSE,1)) * VOL),0));
VAR4:=IF((CLOSE < OPEN),((OPEN - CLOSE) * VOL),IF((CLOSE > OPEN),((OPEN - CLOSE) * VOL),0));
VAR5:=IF((CLOSE < REF(CLOSE,1)),((REF(CLOSE,1) - CLOSE) * VOL),IF((CLOSE > REF(CLOSE,1)),((REF(CLOSE,1) - CLOSE) * VOL),0));
VAR6:=IF((OPEN < REF(CLOSE,1)),((REF(CLOSE,1)-OPEN) * VOL),IF((OPEN > REF(CLOSE,1)),((REF(CLOSE,1) - OPEN) * VOL),0));
VAR7:=(CLOSE > OPEN);
VAR8:=(CLOSE > REF(CLOSE,1));
VAR9:=(OPEN > REF(CLOSE,1));
VARA:=((VAR7 OR VAR8) OR VAR9);
机构:=(SUM(((((VAR1 + VAR2) + VAR3) / 3) / CAPITAL),5) * 1000);
散户:=(SUM(((((VAR4 + VAR5) + VAR6) / 3) / CAPITAL),10) * 1000);
系数:=EMA((((((((COUNT(VAR8,12) / 12) + (COUNT(VAR7,12) / 12)) + (COUNT(VAR9,12) / 12)) / 3) * MA(机构,5)) * 2) * 1.1),2);
买入:=cross(散户,机构) AND 系数>REF(系数,1);
STICKLINE(买入=50,-20,3,3,0),COLORyellow;
技术低位:-20,colorwhite;
超买线:80;
中间线:50;
超卖线:20,COLORFFCC00;
97;
LC:=REF(CLOSE,1);
RSI5:=SMA(MAX(CLOSE-LC,0),5,1)/SMA(ABS(CLOSE-LC),5,1)*100;
Rx:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
Ax:=SMA(Rx,3,1);
Bx:=SMA(Ax,3,1);
CCC:=(Bx/2+40)*1.1;
Dx:=SMA(CCC,3,1);
STICKLINE(CROSS(Dx,RSI5),100,97,11,0),COLORRED;
STICKLINE(CROSS(80,RSI5),100,97,11,0),COLORGREEN;
Var3:="KDJ.j#WEEK"(9,3,3);
周金叉: IF(var3<2,-15,-20),colorwhite;
0; |