130; N:=9; M1:=3; M2:=3; RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100; K:=SMA(RSV,M1,1); D:=SMA(K,M2,1); J0:=3*K-2*D; J:=MA(J0,2); J,DOTLINE,COLORRED; MA(J,4),COLORBLUE; YMDF:=150115; YMDF1:=2710; YMDFZB:=9922; ZBXH:=22; YMD:=YMDF; YMD1:=YMDF1; YMD2:=YMDF1; YMD3:=YMDF1; YMDZB:=YMDFZB; YC:=MOD((YMD/10000),100); MC:=MOD((YMD/100),100); DC:=MOD((YMD),100); Y1:=POW(YC,2)*10+POW(MC,2)*10+POW(DC,2)*1+YC*MC*DC; Y2:=20000+POW(YC,2)*100+POW(MC,2)*10+POW(DC,2)*1000+YC*MC*DC; Y3:=30000+POW(YC,2)*10+POW(MC,2)*1000+POW(DC,2)*100+YC*MC*DC; YZB:=POW(YC,2)*ZBXH+POW(MC,2)*ZBXH+POW(DC,2)*ZBXH; YES1:=YMD1=Y1; YES2:=YMD2=Y2; YES3:=YMD3=Y3; YESZB:=YMDZB=YZB; QQ:2280279789:DRAWNULL,COLORRED; GQ0:DATE()<=(1000000+YC*10000+MC*100+DC) ; GQ:=IF(GQ0 AND YES1 AND YESZB,1,DRAWNULL),NODRAW; GQ10:=IF(GQ=DRAWNULL AND CURRBARSCOUNT<10,DRAWNULL,1); VGQ:=GQ+0.001; VV2:=(VGQ-1)*1000; MA20:=MA(C,13); 平均漲速:=(MA20-REF(MA20,1))/MA20*100*(GQ10-0.001),NODRAW; 溫和區(qū):平均漲速<0.5 AND 平均漲速>-0.5,COLORLIRED; 上漲沖動區(qū):平均漲速>=0.5,COLORMAGENTA; 下跌沖動區(qū):平均漲速<=-0.5,COLORGREEN; STICKLINE(溫和區(qū),0,平均漲速*10,3,0),COLORLIRED; STICKLINE(上漲沖動區(qū),0,3+(平均漲速-0.5)*10,3,0),COLORMAGENTA; STICKLINE(下跌沖動區(qū),0,-3+(平均漲速+0.5)*10,3,0),COLORGREEN; 頂部0:=J>REF(J,1) AND J>REF(J,2) {AND J>REFX(J,1) AND J>REFX(J,2) AND J>REFX(J,4)} AND J>85.1; 底部0:=J<REF(J,1) AND J<REF(J,2) {AND J<REFX(J,1) AND J<REFX(J,2) AND J<REF(J,4)} AND J<20.1; 頂部:=頂部0 AND COUNT(頂部0,5)=1; 底部:=底部0 AND COUNT(底部0,5)=1; STICKLINE(頂部,100,90,1,0),COLORGREEN; STICKLINE(底部,0,10,1,0),COLORRED; 頂部平均距離:=100/COUNT(頂部,100); 底部平均距離:=100/COUNT(底部,100); 頂部距離:=BARSLAST(頂部)+1; 底部距離:=BARSLAST(底部)+1; 準備賣0:=REF(頂部距離,1)>12 AND J>80; 準備買0:=EXIST(底部距離>15,3) AND J<20; 準備賣:=準備賣0 AND COUNT(準備賣0,5)=1; 準備買:=準備買0 AND COUNT(準備買0,5)=1; DRAWTEXT(準備賣,80,'★準備賣'),COLORMAGENTA; DRAWTEXT(準備買,20, '★準備買'),COLORRED; 頂部穩(wěn)定:=頂部平均距離>=15; 底部穩(wěn)定:=底部平均距離>=15; DRAWTEXT(頂部平均距離<=15 AND 頂部,95,' 可能新高'),COLORGREEN; DRAWTEXT(頂部平均距離<=20 AND 頂部平均距離>15 AND 頂部,95,' △快到頂'),COLORBLUE; DRAWTEXT(頂部平均距離>20 AND 頂部,95,' ★階段頂'),COLORRED; DRAWTEXT(底部平均距離<=15 AND 底部,-5,' 可能新低'),COLORGREEN; DRAWTEXT(底部平均距離<=20 AND 底部平均距離>15 AND 底部,-5,' △快到底'),COLORBLUE; DRAWTEXT(底部平均距離>20 AND 底部,-5,' ★階段底'),COLORRED; 強勢回調(diào):=COUNT(上漲沖動區(qū),10)>=8 AND 準備買*VV2; 就要大漲:=強勢回調(diào),COLORRED; STICKLINE(強勢回調(diào),0,50,1,0),COLORRED; DRAWTEXT(強勢回調(diào),40,' ★就要大漲'),COLORRED; 挖坑結(jié)束0:=CROSS(C,MA(C,5)) AND EXIST(下跌沖動區(qū),5)*VV2; 挖坑結(jié)束:=挖坑結(jié)束0 AND COUNT(挖坑結(jié)束0,15)=1; STICKLINE(挖坑結(jié)束,0,30,1,0),COLORBLUE; DRAWTEXT(挖坑結(jié)束,40,' ★挖坑結(jié)束'),COLORBLUE; 低買:=J>REF(J,1) AND REF(J,1)<0 AND (REF(J,1)<REF(J,2))*VV2; 上3買:=低買,COLORBLUE; DRAWICON(低買,0,11); DRAWTEXT(低買,5,' 上3買'),COLORBLUE; 高賣0:=J<REF(J,1) AND REF(J,1)>80 AND (REF(J,1)>REF(J,2))*VV2; 高賣:=高賣0 AND COUNT(高賣0,6)=1; 破3賣:=高賣,COLORGREEN; DRAWICON(高賣,J,12); DRAWTEXT(高賣,J,' 破3賣'),COLORGREEN; FO:=FROMOPEN; |
|