ZJJ:=REF(AMOUNT/V/100,1); STICKLINE(C>ZJJ,C,ZJJ,0.5,0),COLORYELLOW; K:=(REF(H,1)-REF(L,1))/2; 買1:REF(C,1)-1.5*K,COLORWHITE; 買2:REF(C,1)-K,COLORWHITE; 買3:REF(C,1)-K/2,COLORWHITE; 昨均價(jià):ZJJ,COLORRED,LINETHICK3; 昨收:REF(C,1),COLORYELLOW,LINETHICK2; KK:=REF(H,1)-REF(L,1); 賣1:REF(C,1)+KK,COLORGREEN; 賣2:IF((REF(C,1)+KK*2)<1.1*REF(C,1),REF(C,1)+KK*2,賣1),COLORGREEN; 賣3:IF((REF(C,1)+KK*3)<1.1*REF(C,1),REF(C,1)+KK*3,賣2),COLORGREEN; 賣4:IF((REF(C,1)+KK*4)<1.1*REF(C,1),REF(C,1)+KK*4,賣3),COLORGREEN; 十贏概率:COUNT(C>ZJJ,10),NODRAW,COLORRED; 十叉概率:COUNT(H>賣1,10),NODRAW,COLORRED; STICKLINE(C>=O,L,H,0,0),COLORRED; STICKLINE(C<O,L,H,0,0),COLORCYAN; DRAWTEXT(ISLASTBAR,賣1,' 賣1'),COLORWHITE; DRAWTEXT(ISLASTBAR,賣2,' 賣2'),COLORWHITE; DRAWTEXT(ISLASTBAR,賣3,' 賣3'),COLORWHITE; DRAWTEXT(ISLASTBAR,賣4,' 賣4'),COLORWHITE; {DRAWTEXT(ISLASTBAR,昨均價(jià)*1.006,' 昨均價(jià)'),COLORRED; DRAWTEXT(ISLASTBAR,昨收*1.006,' 昨收'),COLORYELLOW;} DRAWTEXT(ISLASTBAR,買1,' 買1'),COLORWHITE; DRAWTEXT(ISLASTBAR,買2,' 買2'),COLORWHITE; DRAWTEXT(ISLASTBAR,買3,' 買3'),COLORWHITE; DRAWNUMBER(ISLASTBAR,賣1,賣1),COLORWHITE; DRAWNUMBER(ISLASTBAR,賣2,賣2),COLORWHITE; DRAWNUMBER(ISLASTBAR,賣3,賣3),COLORWHITE; DRAWNUMBER(ISLASTBAR,賣4,賣4),COLORWHITE; {DRAWNUMBER(ISLASTBAR,昨均價(jià)*1.01,昨均價(jià)),COLORGREEN; DRAWNUMBER(ISLASTBAR,昨收*1.01,昨收),COLORGREEN;} DRAWNUMBER(ISLASTBAR,買1,買1),COLORWHITE; DRAWNUMBER(ISLASTBAR,買2,買2),COLORWHITE; DRAWNUMBER(ISLASTBAR,買3,買3),COLORWHITE; A1:=C>REF(C,4); A2:=BARSLASTCOUNT(A1); A3:=REF(A2,1)=8 AND A2>REF(A2,1); A4:=REF(BETWEEN(A2,5,8),1) AND A2<REF(A2,1); A5:=ISLASTBAR AND BETWEEN(A2,6,8); A6:=(BACKSET(A3>0,9) OR BACKSET(A4>0,A2+1)*0 OR BACKSET(A5>0,A2))*A2; DRAWTEXT(A6>0,H+H*0.02,VAR2STR(A6,0)),COLORFF00FF{COLOR00FFFF}; DRAWTEXT(A2=9,H+H*0.02,'9'),COLOR00FF00; B1:=C<REF(C,4); B2:=BARSLASTCOUNT(B1); B3:=REF(B2,1)=8 AND B2>REF(B2,1); B4:=REF(BETWEEN(B2,5,8),1) AND B2<REF(B2,1); B5:=ISLASTBAR AND BETWEEN(B2,6,8); B6:=(BACKSET(B3>0,9) OR BACKSET(B4>0,B2+1)*0 OR BACKSET(B5>0,B2))*B2; DRAWTEXT(B6>0,L-L*0.02,VAR2STR(B6,0)),COLOR00FF00{COLORFFFFFF}; DRAWTEXT(B2=9,L-L*0.02,'9'),COLORFF00FF; |
|