月N:=DAY;月HIGH:=IF(DAY=月N,HHV(H,30),0);月LOW:=IF(DAY=月N,LLV(L,30),0);月CLOSE:=IF(DAY=月N,CLOSE,0);月RSV:=(月CLOSE-LLV(月LOW,72))/(HHV(月HIGH,72)-LLV(月LOW,72))*100;月K:SMA(月RSV,3,1),COLORWHITE ;月D:SMA(月K,3,1),COLORYELLOW ;月J:=3*月K-2*月D ;DRAWBAND(月K,RGB(255,0,0),月D,RGB(0,100,200));周N:=WEEAY;周HIGH:=IF(WEEKDAY=周N,HHV(H,4),0);周LOW:=IF(WEEKDAY=周N,LLV(L,4),0);周CLOSE:=IF(WEEKDAY=周N,CLOSE,0);周RSV:=(周CLOSE-LLV(周LOW,45))/(HHV(周HIGH,45)-LLV(周LOW,45))*100;周K:SMA(周RSV,3,1),COLORWHITE ;周D:SMA(周K,3,1),COLORYELLOW ;周J:=3