通达信【擒牛捉妖】副图选股指标源码-支持电脑手机{副图指标源码} X_1:=3*SMA((CLOSE-LLV(LOW,480))/(HHV(HIGH,480)-LLV(LOW,480))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,480))/(HHV(HIGH,480)-LLV(LOW,480))*100,180,1),15,1); X_2:=EMA(X_1,5); X_3:=X_2-100; X_4:=EMA(CLOSE,5); X_5:=(EMA(CLOSE,1)+EMA(CLOSE,5)+EMA(CLOSE,10)+EMA(CLOSE,15)+EMA(CLOSE,20)+EMA(CLOSE,25)+EMA(CLOSE,30)+EMA(CLOSE,35)+EMA(CLOSE,40)+EMA(CLOSE,45)+EMA(CLOSE,50)+EMA(CLOSE,55)+EMA(CLOSE,60)+EMA(CLOSE,65)+EMA(CLOSE,70)+EMA(CLOSE,75)+EMA(CLOSE,80)+EMA(CLOSE,85)+EMA(CLOSE,90)+EMA(CLOSE,95)+EMA(CLOSE,100)+EMA(CLOSE,105)+EMA(CLOSE,110)+EMA(CLOSE,115)+EMA(CLOSE,120)+EMA(CLOSE,125)+EMA(CLOSE,130)+EMA(CLOSE,135)+EMA(CLOSE,140)+EMA(CLOSE,150))/30; X_6:=X_4/X_5*100; X_7:=X_6-110; X_8:=(HIGH+LOW+2*CLOSE)/4; X_9:=(X_8-REF(X_8,3))/3+X_8; X_10:=EMA(X_9,7); X_11:=EMA(HHV(X_9,20),60); X_12:=EMA(COST(80),30); X_13:=EMA(1.4*EMA(FORCAST(X_9,20),40),20); X_14:=(X_11+X_12+X_13)/3; X_15:=MA(CLOSE,20); X_16:=EMA(EMA(CLOSE*1.38,50),50); X_17:=SMA(HIGH,21,2)*1.05; X_18:=SMA(LOW,21,2)*0.95; X_19:=(X_17+X_18)/2; X_20:=X_19+2*STD(X_19,20); X_21:=REF(X_20,0); X_22:=ABS((2*CLOSE+HIGH+LOW)/4-MA(X_9,20))/MA(X_9,20); X_23:=DMA(CLOSE,X_22); X_24:=(1+9/100)*X_23; X_25:=(1-7/100)*X_23; X_26:=(REF((X_14+X_16+EMA(X_20*1.04,40)+X_24)/4,10)+MA(CLOSE,20)*1.04)/2; X_27:=HIGH*VOL; X_28:=EMA((EXPMA(X_27,180)/EXPMA(VOL,180)+EXPMA(X_27,360)/EXPMA(VOL,360)+EXPMA(X_27,720)/EXPMA(VOL,720)+EXPMA(X_27,1440)/EXPMA(VOL,1440))/4,34); X_29:=1.06*X_28; X_30:=X_28*0.94; X_31:=EMA((EXPMA(X_27,27)/EXPMA(VOL,27)+EXPMA(X_27,54)/EXPMA(VOL,54)+EXPMA(X_27,108)/EXPMA(VOL,108)+EXPMA(X_27,316)/EXPMA(VOL,316))/4,34); X_32:=1.06*X_31; X_33:=X_31*0.94; X_34:=EMA((EXPMA(X_27,5)/EXPMA(VOL,5)+EXPMA(X_27,10)/EXPMA(VOL,10)+EXPMA(X_27,20)/EXPMA(VOL,20)+EXPMA(X_27,40)/EXPMA(VOL,40))/4,34); X_35:=1.06*X_34; X_36:=X_34*0.94; X_37:=(X_29+X_35+X_32)/3*1.05; X_38:=(X_10*2/(X_26+X_37)-1)*100; X_39:=MA(COST(80),20); X_40:=(X_10/X_39-1)*100; X_41:=(HHV(HIGH,42)-LLV(LOW,42))/2+LLV(LOW,42); X_42:=ABS(HHV(HIGH,40)-LLV(LOW,40)-LLV(LOW,40))+X_41*0.5; X_43:=(X_41/X_42-1)*100; X_44:=EMA(EMA(CLOSE*1.14,55),20); X_45:=(X_10/X_44-1)*100; X_46:=(EMA(HHV(HIGH,60),60)+EMA(X_41,453)*1.62)/2; 大牛线:(-108),COLORRED,LINETHICK2; X_47:=(X_10/X_46-1)*100; 主升:X_3+X_7+X_38+X_40+X_43+X_45+X_47,COLORRED,LINETHICK2; X_48:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1); 0,LINETHICK2; 股价飞升:STICKLINE(CROSS(主升,大牛线),0,大牛线,2,0),COLORYELLOW; DRAWTEXT(股价飞升,X_48/2,'捉妖'),COLORCYAN; 过热:228,COLORGREEN,LINETHICK2; 妖王:CLOSE/REF(CLOSE,1)>1.065 AND 主升>大牛线 AND 380>主升; STICKLINE(妖王,220,过热,3,0),COLORWHITE; 吃独食:CLOSE/REF(CLOSE,1)>1.065 AND 主升>大牛线 AND 380>主升 AND REF(CLOSE<HIGH*0.975,1); STICKLINE(吃独食,220,200,4,0),COLORRED;公:DRAWNULL,COLORCCCCCC;众:DRAWNULL,COLORCCCCCC;号:DRAWNULL,COLORCCCCCC;股市客栈:DRAWNULL,COLORCCCCCC; {选股指标源码} X_1:=3*SMA((CLOSE-LLV(LOW,480))/(HHV(HIGH,480)-LLV(LOW,480))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,480))/(HHV(HIGH,480)-LLV(LOW,480))*100,180,1),15,1); X_2:=EMA(X_1,5); X_3:=X_2-100; X_4:=EMA(CLOSE,5); X_5:=(EMA(CLOSE,1)+EMA(CLOSE,5)+EMA(CLOSE,10)+EMA(CLOSE,15)+EMA(CLOSE,20)+EMA(CLOSE,25)+EMA(CLOSE,30)+EMA(CLOSE,35)+EMA(CLOSE,40)+EMA(CLOSE,45)+EMA(CLOSE,50)+EMA(CLOSE,55)+EMA(CLOSE,60)+EMA(CLOSE,65)+EMA(CLOSE,70)+EMA(CLOSE,75)+EMA(CLOSE,80)+EMA(CLOSE,85)+EMA(CLOSE,90)+EMA(CLOSE,95)+EMA(CLOSE,100)+EMA(CLOSE,105)+EMA(CLOSE,110)+EMA(CLOSE,115)+EMA(CLOSE,120)+EMA(CLOSE,125)+EMA(CLOSE,130)+EMA(CLOSE,135)+EMA(CLOSE,140)+EMA(CLOSE,150))/30; X_6:=X_4/X_5*100; X_7:=X_6-110; X_8:=(HIGH+LOW+2*CLOSE)/4; X_9:=(X_8-REF(X_8,3))/3+X_8; X_10:=EMA(X_9,7); X_11:=EMA(HHV(X_9,20),60); X_12:=EMA(COST(80),30); X_13:=EMA(1.4*EMA(FORCAST(X_9,20),40),20); X_14:=(X_11+X_12+X_13)/3; X_15:=MA(CLOSE,20); X_16:=EMA(EMA(CLOSE*1.38,50),50); X_17:=SMA(HIGH,21,2)*1.05; X_18:=SMA(LOW,21,2)*0.95; X_19:=(X_17+X_18)/2; X_20:=X_19+2*STD(X_19,20); X_21:=REF(X_20,0); X_22:=ABS((2*CLOSE+HIGH+LOW)/4-MA(X_9,20))/MA(X_9,20); X_23:=DMA(CLOSE,X_22); X_24:=(1+9/100)*X_23; X_25:=(1-7/100)*X_23; X_26:=(REF((X_14+X_16+EMA(X_20*1.04,40)+X_24)/4,10)+MA(CLOSE,20)*1.04)/2; X_27:=HIGH*VOL; X_28:=EMA((EXPMA(X_27,180)/EXPMA(VOL,180)+EXPMA(X_27,360)/EXPMA(VOL,360)+EXPMA(X_27,720)/EXPMA(VOL,720)+EXPMA(X_27,1440)/EXPMA(VOL,1440))/4,34); X_29:=1.06*X_28; X_30:=X_28*0.94; X_31:=EMA((EXPMA(X_27,27)/EXPMA(VOL,27)+EXPMA(X_27,54)/EXPMA(VOL,54)+EXPMA(X_27,108)/EXPMA(VOL,108)+EXPMA(X_27,316)/EXPMA(VOL,316))/4,34); X_32:=1.06*X_31; X_33:=X_31*0.94; X_34:=EMA((EXPMA(X_27,5)/EXPMA(VOL,5)+EXPMA(X_27,10)/EXPMA(VOL,10)+EXPMA(X_27,20)/EXPMA(VOL,20)+EXPMA(X_27,40)/EXPMA(VOL,40))/4,34); X_35:=1.06*X_34; X_36:=X_34*0.94; X_37:=(X_29+X_35+X_32)/3*1.05; X_38:=(X_10*2/(X_26+X_37)-1)*100; X_39:=MA(COST(80),20); X_40:=(X_10/X_39-1)*100; X_41:=(HHV(HIGH,42)-LLV(LOW,42))/2+LLV(LOW,42); X_42:=ABS(HHV(HIGH,40)-LLV(LOW,40)-LLV(LOW,40))+X_41*0.5; X_43:=(X_41/X_42-1)*100; X_44:=EMA(EMA(CLOSE*1.14,55),20); X_45:=(X_10/X_44-1)*100; X_46:=(EMA(HHV(HIGH,60),60)+EMA(X_41,453)*1.62)/2; 大牛线:=(-108); X_47:=(X_10/X_46-1)*100; 主升:=X_3+X_7+X_38+X_40+X_43+X_45+X_47; X_48:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1); 股价飞升: CROSS(主升,大牛线); |
|