{一阳上穿五线}
MA5:=MA(C,5);
MA10:=MA(C,10);
MA20:=MA(C,20);
MA30:=MA(C,30);
MA60:=MA(C,60);
低价:=O MA5 AND O MA10 AND O MA20 AND O MA30 AND L MA60;
高价:=C MA5 AND C MA10 AND C MA20 AND C MA30 AND C MA60;
一阳上穿五线:=低价 AND 高价;
STICKLINE(IF(一阳上穿五线,2,0),+90,0,3,0),COLOR000088;
STICKLINE(IF(一阳上穿五线,2,0),+90,0,2.5,0),COLOR0000AA;
STICKLINE(IF(一阳上穿五线,2,0),+90,0,2,0),COLOR0000CC;
STICKLINE(IF(一阳上穿五线,2,0),+90,0,1.4,0),COLOR0000EE;
STICKLINE(IF(一阳上穿五线,2,0),+90,0,0.9,0),COLOR0000EE;
STICKLINE(IF(一阳上穿五线,2,0),+90,0,0.3,0),COLORLIMAGENTA;
STICKLINE(IF(一阳上穿五线,2,0),+75,0,3,0),COLOR770077;
STICKLINE(IF(一阳上穿五线,2,0),+75,0,2.8,0),COLOR990099;
STICKLINE(IF(一阳上穿五线,2,0),+75,0,2.6,0),COLORBB00BB;
STICKLINE(IF(一阳上穿五线,2,0),+75,0,2.4,0),COLORDD00DD;
STICKLINE(IF(一阳上穿五线,2,0),+75,0,2.2,0),COLORFF00FF;
STICKLINE(IF(一阳上穿五线,2,0),+75,0,2,0),COLORDD00DD;
STICKLINE(IF(一阳上穿五线,20,0),+50,0,3,0),COLOR003300;
STICKLINE(IF(一阳上穿五线,20,0),+50,0,2.8,0),COLOR005500;
STICKLINE(IF(一阳上穿五线,20,0),+50,0,2.6,0),COLOR007700;
STICKLINE(IF(一阳上穿五线,20,0),+50,0,2.4,0),COLOR009900;
STICKLINE(IF(一阳上穿五线,20,0),+50,0,2,0),COLOR00CC00;
STICKLINE(IF(一阳上穿五线,20,0),+25,0,3,0),COLOR666666;
STICKLINE(IF(一阳上穿五线,20,0),+25,0,2.8,0),COLOR777777;
STICKLINE(IF(一阳上穿五线,20,0),+25,0,2.6,0),COLOR888888;
STICKLINE(IF(一阳上穿五线,20,0),+25,0,2.4,0),COLOR999999;
STICKLINE(IF(一阳上穿五线,20,0),+25,0,2.2,0),COLORDDDDDD;
STICKLINE(IF(一阳上穿五线,20,0),+25,0,2,0),COLORFFFFFF;
{主力买卖}
VAR22:=IF(MONTH 12,1,1);
VAR33:=(2*CLOSE+HIGH+LOW)/4;
VAR44:=LLV(LOW,34);
VAR55:=HHV(HIGH,34);
主力:EMA((VAR33-VAR44)/(VAR55-VAR44)*100,13)*VAR22,LINETHICK3,COLORRED;
散户:EMA(0.667*REF(主力,1)+0.333*主力,2),LINETHICK2,COLORFF9933;
顶部:IF(CROSS(散户,主力) AND 散户 75,75,90),LINETHICK3,COLORGREEN;
小心套:IF(CROSS(主力,75) AND 散户 主力,78,70),STICK,LINETHICK2,COLORGREEN;70,STICK,LINETHICK2,COLOR000000;
冲顶:IF(CROSS(主力,65) AND 散户 主力,78,70),STICK,LINETHICK2,COLORF00FF0;70,STICK,LINETHICK2,COLOR000000;
拉升:IF(CROSS(主力,30) AND 散户 主力,78,70),STICK,LINETHICK2,COLORRED;70,STICK,LINETHICK2,COLOR000000;
分界线: 50, POINTDOT, LINETHICK3, COLORFFFF00;
DRAWTEXT(CROSS(主力,散户) AND 主力 22,13,'-底部'),LINETHICK2,COLORRED;
DRAWTEXT(CROSS(主力,30) AND 散户 主力,75,'-拉升'),LINETHICK2,COLORRED;
DRAWICON(CROSS(主力,30) AND 散户 主力,80,1);{红箭头}
DRAWTEXT(CROSS(主力,65) AND 散户 主力,72,'-冲顶'),LINETHICK2,COLOR9933FF;
DRAWICON(CROSS(主力,65) AND 散户 主力,72,2);{绿箭头}
DRAWTEXT(CROSS(主力,75) AND 散户 主力,75,'-小心套'),LINETHICK2,COLORGREEN;
DRAWICON(CROSS(主力,75) AND 散户 主力,80,2);{绿箭头}
DRAWTEXT(CROSS(散户,主力) AND 散户 75,86,'-见顶'),COLORGREEN;
DRAWICON(CROSS(散户,主力) AND 散户 75,90,2);{绿箭头}
底部:IF(CROSS(主力,散户) AND 主力 35,20,5),LINETHICK3,COLORRED;
{以下设置逃顶指标 MACD卖出 }
VAR11:=SMA(MAX(C-REF(C,1),0),6,1)/SMA(ABS(C-REF(C,1)),6,1)*100;
DRAWICON(CROSS(82,VAR11),40,2);{绿箭头}
VAR12:=REF(C,1);
VAR13:=SMA(MAX(C-VAR12,0),6,1)/SMA(ABS(C-VAR12),6,1)*100;
DRAWICON(CROSS(84,VAR13),50,2),COLORGREEN ;{绿箭头}
{以下设置 精确卖出 }
VAR2:=1;
VAR3:=REF(HIGH,1)*1.1;
VAR4:=HIGH*1.1;
VAR5:=(VAR4*VOL+VAR3*(CAPITAL-VOL))/CAPITAL;
VAR6:=REF(LOW,1)*0.9;
VAR7:=LOW*0.9;
VAR8:=(VAR7*VOL+VAR6*(CAPITAL-VOL))/CAPITAL;
VAR9:=EMA(VAR8,30);
VARA:=EMA(VAR5,30);
VARB:=VARA-2;
VARC:=IF(CLOSE =VAR9,VARB,VARA);
VARD:=MA(CLOSE,80)-MA(CLOSE,10)/17;
买点: STICKLINE(VARC-VARB=0 AND VAR2 AND CROSS((EMA(EMA(EMA(CLOSE,N),N),N)-REF(EMA(EMA(EMA(CLOSE,N),N),N),1))/REF(EMA(EMA
(EMA(CLOSE,N),N),N),1)*100,MA((EMA(EMA(EMA(CLOSE,N),N),N)-REF(EMA(EMA(EMA(CLOSE,N),N),N),1))/REF(EMA(EMA(EMA(CLOSE,N),N),N),1)*100,M)),15,0,2,0),COLORWHITE;
VARE:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;
卖出线:=SMA(SMA(VARE,3,1),3,1);
买入线:=3*SMA(VARE,3,1)-2*卖出线;
DRAWICON(CROSS(90,买入线),30,2);{绿箭头}
{以下设置 买卖点 的买点}
VAR4A:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;
VAR5A:=SMA(VAR4A,13,8);
VAR8A:=EMA(C,5);
VAR9A:=MA((LLV(C,9))*1.1,14);
VAR10A:=2*VAR9A-VAR8A-C*0.1;
VAR11A:=IF(((VAR8A-VAR10A)*5 0),(POW((VAR8A-VAR10A)*5,2))/10,(-1*(POW((VAR8A-VAR10A)* (5),2)))/(10));
VAR12A:=IF((VAR11A 0),VAR11A-0,12);
VAR13A:=SMA(MAX(C-REF(C,2),0),7,1)/SMA(ABS(C-REF(C,2)),7,1)*100;
趋势:=CEILING(SMA(VAR5A,13,8)),LINETHICK2,COLOR0000FF;
STICKLINE(FILTER(CROSS(趋势,VAR12A)AND 趋势 REF(C,1) OR 趋势 REF(趋势,1)AND 趋势 35 AND C REF(C,1),5),0,20,0.8,0),COLORMAGENTA;
{启动点}
DIF:=EMA(CLOSE,12)-EMA(CLOSE,150);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2,COLORSTICK;
启动点:=MACD 0 AND MACD REF(MACD ,1) AND REF(MACD ,1) REF(MACD ,2) AND REF(MACD ,2) REF(MACD ,3) AND REF(MACD ,3) REF(MACD ,4);
STICKLINE(MACD REF(MACD,1) AND MACD 0,0,MACD,2.8,0),COLOR000055;
STICKLINE(MACD REF(MACD,1) AND MACD 0,0,MACD,2.1,0),COLOR000099;
STICKLINE(MACD REF(MACD,1) AND MACD 0,0,MACD,1.6,0),COLOR0000BB;
启动:0,COLORYELLOW;
{STICKLINE(启动点,10,MACD,1.3,0),COLORYELLOW;}
{STICKLINE(启动点,MACD,10,1.3,0),COLORYELLOW;}
STICKLINE(启动点,00,20,1.3,0),COLORYELLOW;
DRAWICON(启动点,19,1);{红箭头}
DRAWTEXT(启动点,20,'-启动'),COLORBLUE;
{抄底指标 每天两个点 逢低买入}
D1:=(L+H+C*2)/4;
D2:= MA(D1,4);
D3:=HHV(D2,10);
D4:=MA(D3,3);
D5:=1.25*D4-0.25*D3;
A:=IF(D5 D3,D3,D5);
F1:=LLV(D2,10);
F2:=MA(F1,3); F3:=1.25*F2-0.25*F1;
B:=IF(F3 F1,F1,F3);
MA13:=MA(C,13);
DOU:=CROSS(C,B) AND CROSS(C,MA13) AND CROSS(C,A);
DOUDOU:=CROSS(C,MA13) AND CROSS(C,A);
买入:IF(DOU OR DOUDOU,30,0),COLORBLUE;
DRAWTEXT(DOU OR DOUDOU,30,'买入'),COLORBLUE;
{以下设置 追涨 的买点}
空:=EMA(C,5);
均衡:=EMA(空,5);
中轨:=HHV(MA(H,13),13);
追涨:IF(FILTER(均衡 REF(均衡,1)AND 中轨 REF(中轨,1)AND C REF(C,1),11),40,0),COLORWHITE;
DRAWTEXT(FILTER(均衡 REF(均衡,1)AND 中轨 REF(中轨,1)AND C REF(C,1),11),40,'追涨'),COLORWHITE;
{最牛短线抄底指标 量化 副图短线抄底指标,也可以直接做选股预警}
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
{
短买:REF(J,1) 0 AND J }
短买:IF(REF(J,1) 0 AND J 0,50,0),COLORLIRED;
DRAWTEXT(REF(J,1) 0 AND J 0,50,'短买'),COLORLIRED;
{妖}
DD1:=(L+H+C*2)/4;
DD2:= MA(DD1,4);
DD3:=HHV(DD2,10);
DD4:=MA(DD3,3);
DD5:=1.25*DD4-0.25*DD3;
AD:=IF(DD5 DD3,DD3,DD5);
FD1:=LLV(DD2,10);
FD2:=MA(FD1,3); FD3:=1.25*FD2-0.25*FD1;
BD:=IF(FD3 FD1,FD1,FD3);
MAD13:=MA(C,13);
DOUD:=CROSS(C,BD) AND CROSS(C,MAD13) AND CROSS(C,AD);
DOUDOUD:=CROSS(C,MAD13) AND CROSS(C,AD);
妖1:=DOUD OR DOUDOUD;
妖:IF((C/REF(C,1) 1.04 AND 妖1),60,0),COLORYELLOW;
DRAWTEXT((C/REF(C,1) 1.04 AND 妖1),60,'妖股'),COLORYELLOW;
{神奇连涨}
近期涨幅:=9;今日跌幅:=5;时间跨度:=100;上升通道:=100;中长距离:=50;
X_1:=12;
X_2:=26;
X_3:=9;
X_4:=EMA(CLOSE,X_1)-EMA(CLOSE,X_2);
X_5:=EMA(X_4,X_3);
X_6:=(X_4-X_5)*2;
X_7:=9;
X_8:=3;
X_9:=3;
X_10:=(CLOSE-LLV(LOW,X_7))/(HHV(HIGH,X_7)-LLV(LOW,X_7))*100;
X_11:=SMA(X_10,X_8,1);
X_12:=SMA(X_11,X_9,1);
X_13:=3*X_11-2*X_12;
X_14:=EMA(CLOSE,17);
X_15:=EMA(CLOSE,5);
X_16:=EMA(X_15,8);
X_17:=EMA(X_16,13);
X_18:=EMA(X_17,50);
X_19:=(3*CLOSE+LOW+OPEN+HIGH)/6;
X_20:=(20*X_19+19*REF(X_19,1)+18*REF(X_19,2)+17*REF(X_19,3)+16*REF(X_19,4)
+15*REF(X_19,5)+14*REF(X_19,6)+13*REF(X_19,7)+12*REF(X_19,8)+11*REF(X_19,9)
+10*REF(X_19,10)+9*REF(X_19,11)+8*REF(X_19,12)+7*REF(X_19,13)+6*REF(X_19,14)
+5*REF(X_19,15)+4*REF(X_19,16)+3*REF(X_19,17)+2*REF(X_19,18)+REF(X_19,20))/210;
X_21:=EMA(X_20,13);
X_22:=(3*CLOSE+LOW+OPEN+HIGH)/6;
X_23:=EMA(X_22,6);
X_24:=EMA(X_22,5);
X_25:=CLOSE/X_21*100-100;
X_26:=5;
X_27:=34;
X_28:=100*(CLOSE-LLV(LOW,X_27))/(HHV(CLOSE,X_27)-LLV(LOW,X_27));
X_29:=AMOUNT/CLOSE/(HHV(AMOUNT,X_27)/HHV(CLOSE,X_27));
X_30:=IF(X_29 1,1,X_29)*100;
X_31:=100*(CLOSE-LLV(LOW,X_27))/(HHV(CLOSE,X_27)-LLV(LOW,X_27));
X_32:=CLOSE/REF(CLOSE,1) 1.09;
X_33:=REF(X_31,1) 1 AND X_31
X_34:=X_4 X_5 AND X_13 X_12;
X_35:=CROSS(X_23,X_24);
X_36:=X_6 0 AND COUNT(X_6 0,10)
X_37:=X_4 X_5 AND X_13 X_12;
X_38:=X_33;{www.9m8.cn 九毛八公式指标网}
X_39:=CLOSE X_21 AND REF(CLOSE,1) REF(X_21,1) AND CLOSE/REF(CLOSE,1) 1.09;
X_40:=EXIST(CLOSE/REF(CLOSE,1) 1+0.01*近期涨幅,时间跨度);
X_41:=REF(CLOSE,1)/CLOSE 1+0.01*今日跌幅;
X_42:=BARSLAST(X_21 X_14) 上升通道;
X_43:=X_21/X_18 1+0.01*中长距离;
X_44:=LOW X_14;
X_45:=IF(CLOSE/REF(CLOSE,1) 1.09,0,1);
X_46:=IF(EXIST(X_34,5),0,1);
连涨关注:IF((X_35 AND X_40 AND X_41 AND X_42 AND X_43 AND X_46),70,0),COLORRED;
DRAWTEXT((X_35 AND X_40 AND X_41 AND X_42 AND X_43 AND X_46),70,'连涨'),COLORRED;
{红钻秒涨}
VAR111:=VOL/CLOSE/2;
VAR112:=SUM(IF(VAR111 100 AND CLOSE REF(CLOSE,1),VAR111,0),0);
VAR113:=SUM(IF(VAR111 100 AND CLOSE REF(CLOSE,1),VAR111,0),0);
VAR114:=SUM(VOL,0)*240/MA(VOL,5)/BARSCOUNT(CLOSE);
VAR115:=VAR112;
VAR116:=VAR113;
红钻秒涨:IF((CROSS(VAR115,VAR116) AND VAR114 0.5),80,0),COLORBLUE;
DRAWTEXT((CROSS(VAR115,VAR116) AND VAR114 0.5),80,'秒涨'),COLORBLUE;
DRAWTEXT(买点,14,'-买点'),COLORWHITE;
DRAWTEXT(FILTER(CROSS(趋势,VAR12A)AND 趋势 REF(C,1) OR 趋势 REF(趋势,1)AND 趋势 35 AND C REF(C,1),5),8,'-买点'),COLORMAGENTA;
写字: DRAWICON(FILTER(VARC-VARB=0 AND CROSS((EMA(EMA(EMA(CLOSE,N),N),N)-REF(EMA(EMA(EMA(CLOSE,N),N),N),1))/REF(EMA(EMA
(EMA(CLOSE,N),N),N),1)*100,MA((EMA(EMA(EMA(CLOSE,N),N),N)-REF(EMA(EMA(EMA(CLOSE,N),N),N),1))/REF(EMA(EMA(EMA(CLOSE,N),N),N),1)*100,M)),4),8,1),COLORRED;{红箭头};
WWW70822COM:DRAWNULL,COLORRED;
DRAWICON(FILTER(CROSS(趋势,VAR12A)AND 趋势 REF(C,1) OR 趋势 REF(趋势,1)AND 趋势 35 AND C REF(C,1),5),23,1),COLORRED;{红箭头}
DRAWICON(CROSS(主力,散户) AND 主力 22,13,1);{底部红箭头}
DRAWTEXT(一阳上穿五线,85,'一'),COLORYELLOW;
DRAWTEXT(一阳上穿五线,65,'阳'),COLORWHITE;
DRAWTEXT(一阳上穿五线,45,'穿'),COLORRED;
DRAWTEXT(一阳上穿五线,25,'五'),COLORLIBLUE;
DRAWTEXT(一阳上穿五线,05,'线'),COLORBLUE;
{一阳五线:0;
一阳上穿五:0;};