{副圖指標源碼} 1; GSKZ1:=MAX(DYNAINFO(3),DYNAINFO(5)); GSKZ2:=MIN(DYNAINFO(3),DYNAINFO(6)); GSKZ3:=GSKZ1-GSKZ2; GSKZ4:=GSKZ2+GSKZ3*7/8; GSKZ5:=GSKZ2+GSKZ3*0.5/8; GSKZ6:=(GSKZ5+GSKZ4)/2; GSKZ7:=3*SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,5,1),3,1); GSKZ8:=EMA(GSKZ7,3); GSKZ9:=(GSKZ8-REF(GSKZ8,1))/REF(GSKZ8,1)*100; GSKZ10:=STICKLINE(GSKZ8<11,GSKZ8,11,5,0); GSKZ11:=GSKZ8<11 AND FILTER(GSKZ8<=11,15) AND CLOSE<GSKZ6; GSKZ12:=REF(GSKZ8,1)<11 AND CROSS(GSKZ8,11) AND CLOSE<GSKZ6; GSKZ13:=REF(GSKZ8,1)<11 AND REF(GSKZ8,1)>6 AND CROSS(GSKZ8,11); GSKZ14:=REF(GSKZ8,1)<6 AND REF(GSKZ8,1)>3 AND CROSS(GSKZ8,6); GSKZ15:=REF(GSKZ8,1)<3 AND REF(GSKZ8,1)>1 AND CROSS(GSKZ8,3); GSKZ16:=REF(GSKZ8,1)<1 AND REF(GSKZ8,1)>0 AND CROSS(GSKZ8,1); GSKZ17:=REF(GSKZ8,1)<0 AND CROSS(GSKZ8,0); GSKZ18:=GSKZ13=1 OR GSKZ14=1 OR GSKZ15=1 OR GSKZ16=1 OR GSKZ17=1; GSKZ19:=STICKLINE(GSKZ8>89,GSKZ8,89,5,0); GSKZ20:=GSKZ8>89 AND FILTER(GSKZ8>89,15) AND CLOSE>GSKZ6; GSKZ21:=REF(GSKZ8,1)>89 AND CROSS(89,GSKZ8) AND CLOSE>GSKZ6; GSKZ22:=REF(GSKZ8,1)>89 AND REF(GSKZ8,1)<94 AND CROSS(89,GSKZ8); GSKZ23:=REF(GSKZ8,1)>94 AND REF(GSKZ8,1)<97 AND CROSS(94,GSKZ8); GSKZ24:=REF(GSKZ8,1)>97 AND REF(GSKZ8,1)>99 AND CROSS(97,GSKZ8); GSKZ25:=REF(GSKZ8,1)>99 AND REF(GSKZ8,1)<100 AND CROSS(99,GSKZ8); GSKZ26:=REF(GSKZ8,1)>100 AND CROSS(100,GSKZ8); GSKZ27:=GSKZ22=1 OR GSKZ23=1 OR GSKZ24=1 OR GSKZ25=1 OR GSKZ26=1; 金波:GSKZ12,NODRAW; STICKLINE(GSKZ12,20,0,3,0),COLORYELLOW; STICKLINE(GSKZ21,90,70,3,0),COLORGREEN; DRAWICON(GSKZ21,100,13); DRAWICON(GSKZ12,30,28);公:DRAWNULL,COLORCCCCCC;眾:DRAWNULL,COLORCCCCCC;號:DRAWNULL,COLORCCCCCC;股市客棧:DRAWNULL,COLORCCCCCC; {選股指標源碼} GSKZ1:=MAX(DYNAINFO(3),DYNAINFO(5)); GSKZ2:=MIN(DYNAINFO(3),DYNAINFO(6)); GSKZ3:=GSKZ1-GSKZ2; GSKZ4:=GSKZ2+GSKZ3*7/8; GSKZ5:=GSKZ2+GSKZ3*0.5/8; GSKZ6:=(GSKZ5+GSKZ4)/2; GSKZ7:=3*SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,5,1),3,1); GSKZ8:=EMA(GSKZ7,3); GSKZ9:=(GSKZ8-REF(GSKZ8,1))/REF(GSKZ8,1)*100; GSKZ10:=STICKLINE(GSKZ8<11,GSKZ8,11,5,0); GSKZ11:=GSKZ8<11 AND FILTER(GSKZ8<=11,15) AND CLOSE<GSKZ6; GSKZ12:=REF(GSKZ8,1)<11 AND CROSS(GSKZ8,11) AND CLOSE<GSKZ6; GSKZ13:=REF(GSKZ8,1)<11 AND REF(GSKZ8,1)>6 AND CROSS(GSKZ8,11); GSKZ14:=REF(GSKZ8,1)<6 AND REF(GSKZ8,1)>3 AND CROSS(GSKZ8,6); GSKZ15:=REF(GSKZ8,1)<3 AND REF(GSKZ8,1)>1 AND CROSS(GSKZ8,3); GSKZ16:=REF(GSKZ8,1)<1 AND REF(GSKZ8,1)>0 AND CROSS(GSKZ8,1); GSKZ17:=REF(GSKZ8,1)<0 AND CROSS(GSKZ8,0); GSKZ18:=GSKZ13=1 OR GSKZ14=1 OR GSKZ15=1 OR GSKZ16=1 OR GSKZ17=1; GSKZ19:=STICKLINE(GSKZ8>89,GSKZ8,89,5,0); GSKZ20:=GSKZ8>89 AND FILTER(GSKZ8>89,15) AND CLOSE>GSKZ6; GSKZ21:=REF(GSKZ8,1)>89 AND CROSS(89,GSKZ8) AND CLOSE>GSKZ6; GSKZ22:=REF(GSKZ8,1)>89 AND REF(GSKZ8,1)<94 AND CROSS(89,GSKZ8); GSKZ23:=REF(GSKZ8,1)>94 AND REF(GSKZ8,1)<97 AND CROSS(94,GSKZ8); GSKZ24:=REF(GSKZ8,1)>97 AND REF(GSKZ8,1)>99 AND CROSS(97,GSKZ8); GSKZ25:=REF(GSKZ8,1)>99 AND REF(GSKZ8,1)<100 AND CROSS(99,GSKZ8); GSKZ26:=REF(GSKZ8,1)>100 AND CROSS(100,GSKZ8); GSKZ27:=GSKZ22=1 OR GSKZ23=1 OR GSKZ24=1 OR GSKZ25=1 OR GSKZ26=1; 金波:GSKZ12; |
|