多周期KDJ,同日线同图看盘
此指标根据:日周月KDJ三副 编写,仅做集合方便看盘,具体编写精神和使用方法见原帖。
DRAWGBK(CURRBARSCOUNT=1, RGB(110,108,108),RGB(88,30,0),0,'',0);AAA:=C>0;STICKLINE(AAA,40,80,5,0),COLORBLACK;STICKLINE(AAA,70,80,5,0),COLORBLUE;{月KDJ}月NGLLV:=MIN(LLV(L,BARSLAST(MONTH>REF(MONTH,1))+1),"KDJ引用.ZLLV#MONTH");月NGHHV:=MAX(HHV(H,BARSLAST(MONTH>REF(MONTH,1))+1),"KDJ引用.ZHHV#MONTH");月RSV:=(CLOSE-月NGLLV)/(月NGHHV-月NGLLV)*100;月K:(月RSV+2*"KDJ引用.WK#MONTH")/3,COLORWHITE;月D:(月K+2*"KDJ引用.WD#MONTH")/3,COLORWHITE;月J:=3*月K-2*月D,COLORWHITE;{周KDJ}周NGLLV:=MIN(LLV(L,BARSLAST(REF(WEEKDAY,1)=HHV(WEEKDAY,3))+1),"KDJ引用.ZLLV#WEEK");周NGHHV:=MAX(HHV(H,BARSLAST(REF(WEEKDAY,1)=HHV(WEEKDAY,3))+1),"KDJ引用.ZHHV#WEEK");周RSV:=(CLOSE-周NGLLV)/(周NGHHV-周NGLLV)*100;周K:(周RSV+2*"KDJ引用.WK#WEEK")/3,COLORMAGENTA;周D:(周K+2*"KDJ引用.WD#WEEK")/3,COLORMAGENTA;周J:=3*周K-2*周D;{日KDJ}日RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;日K:SMA(日RSV,3,1),COLORYELLOW;日D:SMA(日K,3,1),COLORYELLOW;日J:=3*日K-2*日D,COLORYELLOW;DRAWBAND(月K,RGB(0,150,50),月D,RGB(155,50,50));DRAWBAND(周K,RGB(255,200,96),周D,RGB(150,150,200));DRAWBAND(日K,RGB(100,224,224),日D,RGB(255,96,96));月J线:月J,COLORMAGENTA,LINETHICK2;周J线:周J,,COLORWHITE,LINETHICK2;日J线:日J,COLORYELLOW,LINETHICK2;
|