N1 2.00 999.00 60.00 N2 2.00 999.00 30.00 XH:=MA(HIGH,30); XL:=MA(LOW,30); MA60:=MA(HIGH,60); MA120:=MA(HIGH,120); 三分之一:IF(C<REF(C,1),H-(H-L)*2/3,L+(H-L)*2/3),NODRAW; 二分之一:IF(C<REF(C,1),(H+L)/2,(H+L)/2),NODRAW; 三分之二:IF(C<REF(C,1),H-(H-L)/3,L+(H-L)/3),NODRAW; 個股三一:IF(C<REF(C,1),O-(O-C)/3,C+(O-C)/3),NODRAW; 個股二一:IF(C<REF(C,1),(O+C)/2,(O+C)/2),NODRAW; 個股三二:IF(C<REF(C,1),O-(O-C)*2/3,C+(O-C)*2/3),NODRAW; AA1:=DRAWTEXT(CLOSE>=REF(CLOSE,1)*1.096,HIGH,'漲停'),COLORRED; STICKLINE(V/REF(V,1)>1.9,OPEN,CLOSE,1,0),COLORYELLOW; STICKLINE(AA1,C,O,3,0),COLORMAGENTA,LINETHICK1; STICKLINE(AA1,H,L,0,0),COLORMAGENTA,LINETHICK1; STICKLINE(AA1,C,O,3,0),COLORMAGENTA,LINETHICK1; STICKLINE(AA1,H,L,0,0),COLORMAGENTA,LINETHICK1; BB:=MAX(CLOSE,OPEN); CC:=MIN(CLOSE,OPEN); DD:=CC-0.01>=REF(BB,1); DD2:=(CC-REF(BB,1))/REF(BB,1)*100<=3; AA:=COUNT(DD AND DD2,3)=3; DRAWTEXT(AA,L-0.1,'←三元'),COLORBLUE; SB:=MAX(CLOSE,OPEN); QB:=MIN(CLOSE,OPEN); 跳空:=QB-0.01>=REF(SB,1); ZDZD:=C>REF((O+C)/2,1) AND REF(C<O OR C<REF(C,1),1); ZHZD:=BACKSET(ISLASTBAR,BARSLAST(ZDZD)); DRAWTEXT(跳空 AND ZHZD,REF(C,1)-0.001,'O'),COLORYELLOW; 陰頂開盤:=REF(C<O,1) AND 跳空; DRAWTEXT(陰頂開盤,REF(H,1)-0.001,'YD'),COLORBLUE; {一,陽勝:已經確定或者黃金陽勝:(黃金柱專用)上漲的,并且成交量大于昨天成 交量1.9倍,小于3倍 二,將軍柱:按后3天收盤價不低于基柱開盤價,或平均 不低于基柱開盤價,并且不超過基柱實體最高價, 黃金柱:按后3天不低于基柱收盤價,或平均不低于基柱收盤價} 真陰線:=C<REF(C,1) AND C<=O; 假陽線:=C<REF(C,1) AND C>=O; 陰線:=真陰線>0 OR 假陽線>0; 陰線天數:=BARSLAST(陰線); 陰線實體最高價:=MAX(REF(C,陰線天數),REF(O,陰線天數)); 陰線成交量:=REF(V,陰線天數); 陽勝條件:=陰線天數>0 AND C>=陰線實體最高價 AND V>=陰線成交量; 陽勝:=IF(陽勝條件>0 AND REF(陽勝條件,1)=0,1,0); 黃金陽勝:=C>REF(C,1) AND V>=REF(V*1.9,1) AND V<=REF(V*3,1); {==================以下是將軍柱內容===============================} {按后3天收盤價不低于基柱開盤價,或平均 不低于基柱開盤價,并且不超過基柱實體最高價,} JJJ1:=O<REFX(C,3) AND O<REFX(C,2) AND O<REFX(C,1) AND MAX(C,O)>REFX(C,3) AND MAX(C,O)>REFX(C,2) AND MAX(C,O)>REFX(C,1); JJJ2:=O<REFX(MA(C,3),3) AND MAX(C,O)>REFX(MA(C,3),3); 將軍價:=JJJ1 OR JJJ2; {將軍柱的后3日量可高可低,但最高柱的量低于基柱的量, 或,3日平均量低于基柱的量} JJL1:=V>REFX(V,1) AND V>REFX(V,2) AND V>REFX(V,3); JJL2:=V>REFX(MA(V,3),3); 將軍量:=JJL1 OR JJL2; { 將軍柱的升幅:不寫} 將軍柱:=將軍量 AND 將軍價 AND 陽勝; {=========================以下是黃金柱內容===============================} {黃金柱:按后3天收盤價不低于基柱收盤價,或平均價不低于基柱收盤價} HJJ1:=C<REFX(C,3) AND C<REFX(C,2) AND C<REFX(C,1); HJJ2:=C<REFX(MA(C,3),3); 黃金價:=HJJ1 OR HJJ2; { 黃金柱:1,后3日平均量小于基柱的量,2,或者成交量連續(xù)3天一天比一天?。ㄏ屡_階)并且后 3日平均量小于基柱的量} HJL1:=V>REFX(MA(V,3),3); HJL2:=REFX(V,1)>REFX(V,2) AND REFX(V,2)>REFX(V,3) AND V>REFX(MA(V,3),1); 黃金量:=HJL1 OR HJL2; { 黃金柱的升幅:(3日平均價-基柱的收盤)/基柱的收盤價*100% >(3日平 均量-基柱成交量/基柱成交量*100%的1.01倍以上} 黃金升幅:=(MA(C,3)-REF(C,3))/REF(C,3)*100>=(MA(V,3)-REF(V,3))/REF(V,3)*100*1.01; 黃金柱:={黃金升幅 AND }黃金量 AND 黃金價 AND (陽勝 OR 黃金陽勝); ZJL1:=V<REF(V,1) AND V<REF(V,2); ZJL2:=C>REF(C,1) AND C>REF(C,2) AND C>O AND C>REF(C,1); ZJL3:=ZJL1 AND ZJL2; 金三:=黃金柱 AND REFX(ZJL3,3); 跳空黃金柱:=(跳空 OR 陰頂開盤) AND 黃金柱; {=============================以下畫線==================================} DRAWTEXT(黃金柱,LOW*0.986,'↖金'),COLORYELLOW; DRAWTEXT(金三,LOW*0.986,'↖金3'),COLORRED; {DRAWTEXT(REFX(跳空黃金柱,1),MAX(C,O),'-------'),COLORYELLOW; DRAWLINE(REFX(跳空黃金柱,1),MAX(C,O),REF(REFX(跳空黃金柱,1),4),REF(MAX(C,O),4),0),POINTDOT,LINETHICK5,COLORFF00FF;} {DRAWTEXT(REFX(跳空黃金柱,1) AND 跳空=0,LOW*0.986,'↖元'),COLORFFFFFF;} {=================================================== DRAWTEXT(將軍柱 AND 跳空=0,LOW*0.986,'↖將'),COLORWHITE;} STICKLINE(將軍柱,OPEN,CLOSE,3,0),COLORYELLOW; {=====================5.21=====================================} DRAWTEXT(REFX(將軍柱 AND 跳空,1),LOW*0.986,'↖金'),COLORYELLOW; XJJ1:=BARSLAST(REFX(將軍柱 AND 跳空,1)); STICKLINE(XJJ1<=8 AND XJJ1>=0,REF(MAX(C,O),XJJ1),REF(MAX(C,O),XJJ1),1,0),COLORYELLOW; QBJ1:=REFX(將軍柱 AND 跳空,1) OR 黃金柱; ZJA1:=跳空 AND REF(跳空=0,1); ZJA2:=BARSLAST(ZJA1); ZJA3:=COUNT(跳空,ZJA2)=ZJA2 AND ZJA2>=1 AND QBJ1; ZJA4:=BACKSET(ZJA3,ZJA2+1); ZJA5:=ZJA4 AND REF(ZJA4=0,1); {DRAWTEXT(REFX(ZJA5,1),LOW*0.986,'↖元'),COLORFFFFFF;} ZJA6:=BARSLAST(ZJA5); ZJA7:=ZJA6<=8 AND ZJA6>=0; ZJA8:=REF(MAX(C,O),ZJA6+1); YSX:IF(ZJA7,ZJA8,DRAWNULL),POINTDOT,LINETHICK5,COLORFF00FF; YLYZ1:=REFX(跳空黃金柱,1) AND 跳空=0; YLYZ2:=BARSLAST(YLYZ1); YLYZ3:=REF(MAX(C,O),YLYZ2); YLYZ4:=YLYZ2>=0 AND YLYZ2<=8; YLYZ:IF(YLYZ4,YLYZ3,DRAWNULL),POINTDOT,LINETHICK5,COLORFF00FF; BB1:=將軍柱 OR 黃金柱; 將軍開盤:=REF(O,BARSLAST(將軍柱)); 黃金開盤:=REF(O,BARSLAST(黃金柱)); BB3:=L=LLV(L,BARSLAST(黃金柱)) AND BARSLAST(黃金柱)<=3; 黃金后低:=REF(L,BARSLAST(BB3)); {STICKLINE(將軍開盤,將軍開盤,將軍開盤,1,0),COLOR00FFFF;} {STICKLINE(黃金開盤,黃金開盤,黃金開盤,1,0),COLORFFFFFF;} STICKLINE(黃金后低 AND BARSLAST(黃金柱)<=8 AND 黃金柱=0,黃金后低,黃金后低,1,0),COLORYELLOW; {===============================原來的接力合力黃金柱==============================}; 合力黃金柱:=黃金柱 AND COUNT(黃金柱,4)>=2 AND COUNT(黃金柱,20)<=2; {DRAWTEXT(合力黃金柱,LOW*0.956,'↖合力'),COLORYELLOW;} JLHJZ1:=黃金柱 AND COUNT(合力黃金柱,4)=1 AND COUNT(黃金柱,20)>=3; JLHJZ2:=黃金柱 AND O>=REF(C,REF(BARSLAST(黃金柱),1)+1) AND O<=REF(C*1.02,REF(BARSLAST(黃金柱),1)+1) AND REF(BARSLAST(黃金柱),1)+1>=4 AND REF(BARSLAST(黃金柱),1)+1<=20; 接力黃金柱:=JLHJZ1 OR JLHJZ2; STICKLINE(接力黃金柱,OPEN,CLOSE,3,0),COLORYELLOW; DRAWTEXT(接力黃金柱,LOW*0.97,'↖接力'),COLORWHITE; A1:=C>REF(C,1); A2:=COUNT(A1,3)=3 AND REF(C>=REF(C,1),3); A3:=V<REF(V,1); A4:=COUNT(A3,2)>=2; A5:=A2 AND A4; A6:=BACKSET(A5,3); DRAWICON(A6 ,H*1.01,1); PL:=ABS(VOL-REF(VOL,1))/REF(VOL,1)<=0.05; HJX:=MA(HIGH,120); BA1:=C>HJX AND HJX>REF(HJX,1); XXG:=COUNT(PL,2)=2; BA3:=PL=0 AND REFX(PL=1,1); BA4:=BARSLAST(BA3); TB1:=BACKSET(XXG,3); TB2:=TB1=1 AND REF(TB1=0,1); TB3:=L=LLV(L,BARSLAST(TB2)+1); TB4:=(TB3=1 AND REFX(TB3=0,1)) OR (TB3 AND ISLASTBAR); AK1:=ABS(VOL-REF(VOL,4))/REF(VOL,4)<=0.05; AK2:=BACKSET(AK1,5); AK3:=AK2=1 AND REF(AK2=0,1); AK4:=V<REF(V,BARSLAST(AK3)); AK5:=COUNT(AK4,BARSLAST(AK3))=BARSLAST(AK3); AK:=AK1 AND REF(AK5,1); DRAWTEXT(TB1 AND TB4,LOW*0.95,'↖3平'),COLORWHITE; |
|