优化KDJ(源码 副图 通达信 贴图)
2015-9-8 11:32:27点击:
n 2 90 3 m1 2 30 3 m2 2 30 3 RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,LINETHICK2; K:SMA(RSV,M1,1),COLORF00FF0; D:SMA(K,M2,1),COLORYELLOW; J:3*K-2*D,COLOR00FF00; 0,COLORRED,LINETHICK2;20,COLORLIMAGENTA; 80,COLORGREEN;100,COLORGREEN,LINETHICK2; DRAWTEXT(ISLASTBAR,0,'高安全区'),COLORRED; DRAWTEXT(ISLASTBAR,20,'安 全 区'),COLORLIMAGENTA; DRAWTEXT(ISLASTBAR,80,'风 险 区'),COLORGREEN; DRAWTEXT(ISLASTBAR,100,'高风险区'),COLORGREEN; 日K:=KDJ.K,COLORWHITE; 日D:=KDJ.D,COLORYELLOW; 日J:=KDJ.J,COLORMAGENTA; STICKLINE(日K>=日D,-10,-15,9,0),COLORMAGENTA; STICKLINE(日K< 日D,-10,-15,13,0),COLORCYAN;