DRAWGBK(c>0,colorRGB(42,76,88),colorRGB(42,76,88),0);
jj:=(H+L+C)/3;qj0:=vol/IF(H=L,4,H-L);j:="kdj.j";
qj1:=IF(CAPITAL=0,qj0*(jj-MIN(C,O)),qj0*(MIN(O,C)-L));
qj2:=IF(CAPITAL=0,qj0*(MIN(O,C)-L),qj0*(jj-MIN(C,O)));
qj3:=qj0*(H-MAX(O,C));qj4:=qj0*(MAX(C,O)-jj);
qj5:=qj1+qj2;qj6:=qj3+qj4;DD:=(qj5-qj6)/(qj5+qj6)*100;
ddx:=((qj1+qj2)-(qj3+qj4))/sum(VOL,10)*100,colorwhite;
DDY:=((qj2+qj4)-(qj1+qj3))/sum(vol,10)*100,colorffff00;
DDZ:=DD*17;
弄点钱玩:cross(j,0) and ((ddx>0 and ddy>0) or DDZ>400),colorgreen,linethick1;
天数1:if(弄点钱玩=0,barslast(弄点钱玩>0),0),linethick0;
收益1:if(弄点钱玩=0,(H-REF(C,barslast(弄点钱玩>0)))/REF(C,barslast(弄点钱玩>0))*100,0),LINETHICK0;
平仓1:=if(弄点钱玩=0 and 收益1>=5,1,0),colorwhite;
平仓:if(平仓1=1 and sum(平仓1,天数1)=1,1,0),colorred;
收益2:=if(sum(平仓1,天数1)=0,收益1,if(平仓=1,收益1,0)),color107fff;
收益:if(天数1<21,收益2,0),color107fff;
PARTLINE(收益=0 and ref(收益,1)>=5,收益),linethick2,COLORred;