旨在优选强中取: N1:=7; M1:=5; M2:=10; M3:=20; M4:=60; M5:=120; M6:=250; MA1:MA(CLOSE,M1); MA2:MA(CLOSE,M2); MA3:MA(CLOSE,M3); MA4:MA(CLOSE,M4); MA6:MA(CLOSE,M6); MA5:MA(C,5); MA10:=MA(C,10); MA20:=MA(C,20),COLOR33FFFF; VAR1:=REF(C,1); VAR2:=SMA(MAX(C-VAR1,0),N1,1)/SMA(ABS(C-VAR1),N1,1)*1000; VAR3:=VAR2<=LLV(VAR2,N1),VAR2,1; MA30:MA(C,30),COLORFFFFFF,LINETHICK2; MA55:MA(C,55),COLORCCFF66,LINETHICK1; VAR4:=VAR2=VAR3; VAR5:=VAR2<REF(VAR2,1); MA120:MA(C,120),COLORFF0066; MA250:MA(C,250),COLOR0000FF; DRAWICON(VAR4 AND VAR5,L*0.98,1); DRAWTEXT(VAR4 AND VAR5,L*0.95,'买')COLORRED; RSV:=(C-LLV(L,25))/(HHV(HIGH,25)-LLV(L,25))*100; K:=SMA(RSV,3,1); D:=SMA(K,3,1); J:=3*K-2*D; BM1:=(C+O)/2; BM2:=COUNT(MA30>REF(MA30,1),5)=5 OR COUNT(MA55>REF(MA55,1),5)=5; BM3:=COUNT(MA5/MA30>REF(MA5/MA30,1),5)=5; VAR6:=(2*C+H+L)/4; VAR7:=EMA(EMA(EMA(VAR6,4),4),4); BM4:=(BM1*2-REF(BM1,3)); BM5:=C/MA(C,5); BM6:=REF(BM1/MA(BM1,5),1); BM7:=COUNT(BM6>BM5,3)=3; BM8:=C>O; VAR8:=(VAR7-REF(VAR7,1))/REF(VAR7,1)*100; VAR9:=MA(VAR8,3)+0.03; VAR10:=MA(VAR8,1); 买:=(CROSS(BM4,MA5) OR CROSS(BM4,MA30)) AND BM2 AND BM8 AND C>MA(C,60); 优选:=买 AND (BM7 OR REF(BM7,1) OR REF(BM7,2)),COLORYELLOW,LINETHICK2; STICKLINE(买,O,C,4,1),COLOR00FF00,LINETHICK2; DRAWTEXT(买 ,LLV(L,2)*0.98,'▲'),COLORYELLOW; DRAWICON(CROSS(VAR9,VAR10) AND J>65,H*1.02,15),COLORGREEN; DRAWTEXT(CROSS(VAR9,VAR10) AND J>65,H*1.05,'卖'),COLORYELLOW; AA:=BARSCOUNT(C); AH:=HHV(H,120); AL:=LLV(L,120); A0:=(AH-AL)/30; DRAWTEXT(优选,LLV(L,2)*0.93, '短线追'),COLOR00FF66; DRAWICON(优选,LLV(L,2)*0.96, 1); STICKLINE(优选,O,C,4,1),COLORYELLOW,LINETHICK2; VAR2S:=(2*CLOSE+HIGH+LOW)/4; VAR3S:=IF(YEAR>=2099 AND MONTH>2,0,1); VAR4S:=LLV(LOW,5); VAR5S:=HHV(HIGH,4); BM9:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100; 涨:IF(MA(CLOSE,5)>REF(MA(CLOSE,5),1),MA(CLOSE,5),DRAWNULL),COLORRED,LINETHICK2; 平:IF(MA(CLOSE,5)=REF(MA(CLOSE,5),1),MA(CLOSE,5),DRAWNULL),COLORYELLOW,LINETHICK3; 跌:IF(MA(CLOSE,5)<REF(MA(CLOSE,5),1),MA(CLOSE,5),DRAWNULL),COLORGREEN,LINETHICK2; 散户:=EMA((VAR2S-VAR4S)/(VAR5S-VAR4S)*100,4)*VAR3S; 庄家:=EMA(0.667*REF(散户,1)+0.333*散户,2)*VAR3S; BM10:=3*SMA(BM9,3,1)-2*(SMA(SMA(BM9,3,1),3,1)); DRAWICON(CROSS(90,BM10),H*1.03,2); DRAWTEXT(CROSS(散户,庄家) AND 散户<30,L*0.95,'吸货'),COLORRED; DRAWTEXT(CROSS(0.9,1/VOL*1000>0.01 AND "KDJ.J"<0),L*0.98,'买点'),COLORLICYAN; 回调追牛副图 ,没未来函数(顶尖财经 股票学院: www.58188.com): {【回调追牛】 } EMA30:EMA(CLOSE,30),COLORBROWN; EMA5:=EMA(CLOSE,5); X2:=EMA5; X3:=EMA30; 主升:=C>X2 AND C>X3; 主跌:=C<X3; 回调:=C<X2 AND C>X3; 反弹:=C>X2 AND C<X3; STICKLINE(主升,CLOSE,O,4.8,0),COLOR0000BB; STICKLINE(主升,CLOSE,O,3,0),COLOR0000CC; STICKLINE(主升,CLOSE,O,1.5,0),COLOR0000DD; STICKLINE(主升,CLOSE,O,1,0),COLOR0000EE; STICKLINE(主升,CLOSE,O,0.5,0),COLOR0000FF; STICKLINE(主升,H,L,0,0),COLOR0000FF; STICKLINE(主跌,CLOSE,O,4.8,0),COLOR555500; STICKLINE(主跌,CLOSE,O,3,0),COLOR888800; STICKLINE(主跌,CLOSE,O,1.5,0),COLORAAAA00; STICKLINE(主跌,CLOSE,O,1,0),COLORCCCC00; STICKLINE(主跌,CLOSE,O,0.5,0),COLOREEEE00; STICKLINE(主跌,H,L,0,0),COLOREEEE00; STICKLINE(回调,O,C,4.8,0),COLORBB4400; STICKLINE(回调,O,C,3,0),COLORCC5500; STICKLINE(回调,O,C,1.5,0),COLORDD6600; STICKLINE(回调,O,C,1,0),COLOREE7700; STICKLINE(回调,O,C,0.5,0),COLORFF8800; STICKLINE(回调,H,L,0,0),COLORFF8800; STICKLINE(反弹,O,C,4.8,0),COLOR0077BB; STICKLINE(反弹,O,C,3,0),COLOR0099CC; STICKLINE(反弹,O,C,1.5,0),COLOR00BBDD; STICKLINE(反弹,O,C,1,0),COLOR00DDEE; STICKLINE(反弹,O,C,0.5,0),COLOR00FFFF; STICKLINE(反弹,H,L,0,0),COLOR00FFFF; DRAWTEXT_FIX(C>0,0,0,0,'【█】涨势'),COLOR0000AA; DRAWTEXT_FIX(C>0,0,0.05,0,'【█】回调'),COLORDD6600; DRAWTEXT_FIX(C>0,0,0.10,0,'【█】跌势'),COLORAAAA00; DRAWTEXT_FIX(C>0,0,0.15,0,'【█】反弹'),COLOR00BBDD; DRAWTEXT_FIX(C>0,0,0.20,0,'【█】追牛'),COLORFF00FF; 均价线:=AMOUNT/V/100; C2:=REF(C,1); AA1:MA(C,4); 卖出:IF(AA1<=REF(AA1,1),AA1,DRAWNULL)COLORGREEN,LINETHICK2; 涨停:=IF(REF(C,1)*1.1-C<0.01 ,1,0); STICKLINE(涨停,OPEN,CLOSE,4.6,0),COLORRED; STICKLINE(涨停,OPEN,CLOSE,3.5,0),COLORYELLOW; STICKLINE(涨停,H,L,0,0),COLORYELLOW; B1:='┄┄┄┄'; DRAWTEXT(均价线 AND 涨停,均价线,B1),COLORGREEN; B3:='┄┄┄┄'; DRAWTEXT((O+C)/2 AND 涨停,(O+C)/2 ,B3),COLORMAGENTA; B2:='┄┄┄┄'; DRAWTEXT(涨停,L,B2),COLORGRAY; DRAWTEXT(涨停,H*0.988,'---涨停'),COLORYELLOW; 买进:DRAWTEXT(CROSS(AA1,X3*0.998-0.018),L*0.97,'★-买进- '),COLORFFFF00,COLORYELLOW; 买进1:DRAWTEXT(CROSS(L,X3*0.9998+0.018) AND C>REF(C,1),L*0.97,'★-买进 '),COLORFFFF00,COLORYELLOW; HH:=COUNT(涨停,15)>=1 AND H/C<1.025 AND C>REF(C,1); LC:=REF(CLOSE,1); 操作线:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*100; 趋势线:=SMA(MAX(CLOSE-LC,0),15,1)/SMA(ABS(CLOSE-LC),15,1)*100; 震仓线:=45; 震仓线2:=50; 逃命线:=80; 抄底线:=20; 绝底线:=5; PP2:=操作线<震仓线2 AND REF(操作线,1)>震仓线2 ; PP:=操作线<震仓线 AND REF(操作线,1)>震仓线 ; PP3:=操作线<抄底线 AND REF(操作线,1)>抄底线; A:=SMA(L,4,3) ;{好股票WWW.GOODGUPIAO.COM} {STICKLINE(A AND REF(PP,1) AND HH ,A*0.998,A*0.996,5,0); DRAWICON(A AND REF(PP,1) AND HH,L*0.98,1); 小牛1:DRAWICON(A AND REF(PP,1) AND HH,L*0.96,23); STICKLINE(小牛1,O,C,0.5,0),COLORFF00FF; 小牛:DRAWTEXT(小牛1,L*0.95,'★-小牛- '),COLORFF00FF;} STICKLINE(A AND REF(PP3,1) AND HH ,A*0.998,A*0.996,5,0); DRAWICON(A AND REF(PP3,1) AND HH,L*0.98,1); 牛:DRAWICON(A AND REF(PP3,1) AND HH,L*0.97,23); STICKLINE(牛,O,C,1,0),COLORFF00FF; 追牛:DRAWTEXT(牛,L*0.945,'★-追牛---------- '),COLORFF00FF; 理想通:=EMA((C-LLV(L,5))/(HHV(H,6)-LLV(L,6)),2)*100,COLORYELLOW,LINETHICK1; VARB1:=SMA(SMA(理想通,2,1),2,1); VARB2:=(VARB1/2+36.8)*1; VARB3:=SMA(VARB2,2,1)+2.2,COLORFFFF00; VARB4:=SMA(VARB2,2,1)-35.08,COLOR00FF00,LINETHICK1; 卖出1:DRAWTEXT(CROSS(VARB3,理想通*0.9998+0.0018) AND VARB3>67 AND C<=O*1.008 ,H*1.0012,'-卖出-★ '),COLOR00FF00; 卖出2:DRAWTEXT(CROSS(VARB3,理想通*0.9998+0.0018) AND VARB3>67 ,H*1.0112,' '),COLOR00FF00; 加仓:DRAWTEXT(CROSS(理想通,VARB4*0.9998+0.0018),L*0.986,'★-加仓- '),COLOR0000FF; M1:=5; M2:=10; M3:=20; M4:=60; 超底线:=15; DIF:=EMA(DCLOSE,12)-EMA(DCLOSE,26); DEA:=EMA(DIF,9); AAA:=(DIF-DEA)*2*60; 潜伏:=CROSS(AAA-REF(AAA,1),8),COLORRED,LINETHICK2; XG:=潜伏; STICKLINE(XG,8,0,2,0),COLORRED; 雨淋漏斗主图: |