宝露:FORCAST(C,13),PRECIS2,COLORff00ff,LINETHICK0;
宝露L:=LLV(宝露,21);
宝露H:=HHV(宝露,21);
K4:ema(HHV(H,3),3),POINTDOT,PRECIS2,COLORffffff,LINETHICK2;
XS:=DATATYPE;
多:EMA(C,3),PRECIS2,COLORYELLOW,LINETHICK0;
空:EMA(C,5),PRECIS2,COLORff00ff,LINETHICK0;
均衡:EMA(空,5),PRECIS2,COLORWHITE;
趋势:LLV(MA(H,13),1),PRECIS2,COLORGREEN,LINETHICK2;
中轨:HHV(MA(H,13),13),PRECIS2,COLORRED,LINETHICK3;
中趋:(中轨/趋势-1)*1000,PRECIS0,COLORffffff,LINETHICK0;
宝多比:多/宝露-REF(多/宝露,1),PRECIS3,COLORffffff,LINETHICK0;
趋势比:(趋势/REF(HHV(趋势,3),1)-1)*1000,PRECIS0,COLORffffff,LINETHICK0;
趋势度:SLOPE(趋势,13)*100,PRECIS0,COLORffffff,LINETHICK0;
距:(多/中轨-1)*100,PRECIS0,COLORffffff,LINETHICK0;
全红:LAST(趋势=中轨),PRECIS0,COLORffffff,LINETHICK0;
全绿:LAST(中轨>趋势 AND 趋势>均衡),PRECIS0,COLORffffff,LINETHICK0;
VARF1:=COUNT(CROSS(多,均衡),2)=1;
VARF2:=COUNT(CROSS(空,均衡),2)=1;
主升a:=FILTER(VARF1 AND VARF2,2) AND 趋势比>99;
主升:CROSS(趋势,中轨) AND COUNT(中轨>趋势,22)>=20,PRECIS0,COLORffffff,LINETHICK0;
VF1:=MA(C,60)-MA(C,5)/3.2;
VARA:=(C-REF(O,29))/REF(O,29)*100;
VARB:=EMA(0.667*REF(VARA,1)+0.333*VARA,5);
VAR1:=(H+L+O+2*C)/5;
VAR2:=REF(VAR1,1);
VAR3:=SMA(MAX(VAR1-VAR2,0),10,1)/SMA(ABS(VAR1-VAR2),10,1)*100;
S:=MA(VOL,5)/MA(VOL,60);
A:=MA(S,5);
BIAS:=(C-MA(C,5))/MA(C,5)*100;
F:=MA(S,121);
{KDJ}
RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
{RSI}
RSI:=SMA(MAX(C-REF(C,1),0),6,1)/SMA(ABS(C-REF(C,1)),6,1)*100;
RSI12:=SMA(MAX(C-REF(C,1),0),12,1)/SMA(ABS(C-REF(C,1)),12,1)*100;
RSI24:=SMA(MAX(C-REF(C,1),0),24,1)/SMA(ABS(C-REF(C,1)),24,1)*100;
警戒线:=HHV(IF(ALL(多>空 AND 空>均衡 AND 中轨=趋势,5) AND C>O AND C=HHV(C,34),MIN(C,O),LLV(趋势,21)),13);
{变色线}
PARTLINE(警戒线,警戒线=REF(警戒线,1) AND REF(中轨=趋势,3)),LAYER0,color0000ff,LINETHICK2;
PARTLINE(宝露L,宝露L=REF(宝露L,1) AND 宝露L<=LLV(宝露L,3)),LAYER0,color00ff00,LINETHICK2;
PARTLINE(宝露H,宝露H=REF(宝露H,1) AND 宝露H>=HHV(宝露H,3)),LAYER0,colorff00ff,LINETHICK2;
PARTLINE(宝露,宝露>=REF(宝露,1),RGB(0,255,0),宝露<REF(宝露,1),RGB(50,150,50)),LAYER0,PRECIS2,LINETHICK2;
{买入条件}
买1:BETWEEN(趋势比,-15,0) AND 中趋=LLV(中趋,7) AND 中趋<50,PRECIS0,COLORffffff,LINETHICK0;
买2:COUNT(VAR3<20,5)>=1 AND COUNT(VAR1=LLV(VAR1,10),10)>=1 AND C>=O*1.038 AND V>MA(V,5)*1.2 AND 趋势比>99,PRECIS0,COLORffffff,LINETHICK0;
关注:(J<11 AND BIAS>-11 AND CROSS(S,F) AND (S-F)>0.010),PRECIS0,COLORffffff,LINETHICK0;
真底a1:=C<REF(LLV(多,13),1) AND 多<REF(LLV(空,13),1) AND 空<REF(LLV(均衡,13),1) AND 均衡<趋势 AND 趋势<中轨;
真底a2:=C<多 AND 多<空 AND 空<均衡 AND 均衡<趋势 AND 趋势<中轨;
真底2:=LLV(L,21)=LLV(L,63) AND COUNT(多>均衡,13)>=3 AND COUNT(多>REF(多,1) AND 空>REF(空,1),13)>=3;
真底3:=ALL(中轨>趋势,21) AND 趋势/中轨>REF(趋势/中轨,1) AND 趋势比>98 AND 全绿>=30;
真底4:=IF(COUNT(多>趋势,13)>=1,真底a2,真底a1);
真底:真底2 AND 真底3 AND 真底4,PRECIS0,COLORffffff,LINETHICK0;
突破1:=多=HHV(多,7) AND 宝露=HHV(宝露,7) AND 中轨=HHV(中轨,7);
突破2:=突破1 AND CROSS((C-O)*0.33+O,REF(HHV(C,13),1));
突破3:=突破2 AND REF(HHV(MAX(C,O),5)/LLV(MIN(C,O),5),1)<1.1 AND C/REF(C,1)>1.06;
突破:突破1 AND C=HHV(C,34) AND CROSS(多,宝露),PRECIS0,COLORffffff,LINETHICK0;
短底a1:=REF(SUM(IF(多>LLV(多,21),1,0),21),1)>=5;
短底a:=趋势/中轨>REF(趋势/中轨,1) AND 中轨<REF(中轨,1) AND HHV(中轨/趋势,13)>HHV(趋势/均衡,13) AND LLV(L,13)=LLV(L,21) AND COUNT(多<REF(多,1),5)>=3 AND D<50 AND C<MAX(REF(C,1),O);
短底b:=CROSS(REF(LLV(多,13),1),多) AND COUNT(多<均衡,7)=7 AND COUNT(多>空,7)>=1;
短底c:=CROSS(REF(LLV(多,13),1),L) AND COUNT(多>均衡,7)>=1;
短底:短底a1 AND 短底a AND (短底b OR 短底c),PRECIS0,COLORffffff,LINETHICK0;
DIFF:=EMA(C,12)-EMA(C,26);
DEA:=EMA(DIFF,9);
宣1:=H/LLV(L,5)>1.3 AND H/C>1.02 AND C>O AND REF(C>REF(C,1),1) AND REF(C>REF(C,1),2);
宣2:=BARSLAST(DEA<0)<13;
宣:COUNT(宣1 AND 宣2,13)>=1 AND CROSS(宝露,K4),PRECIS0,LINETHICK0;
{卖出条件}
注意:=全红>7 AND CROSS(多,REF(多,1)) AND CROSS(C,HHV(多,7));
短1:=SMA(MAX(C-REF(C,1),0),6,1)/SMA(ABS(C-REF(C,1)),6,1)*100;
短空:=REF(HHV(短1,3),1)>82 AND CROSS(REF(短1,1),短1) AND HHV(全红,13)>13;
顶:=HHV(RSI,2)>84 AND CROSS(REF(RSI,1),RSI) AND HHV(RSI,7)<REF(HHV(RSI,7),7) AND HHV(全红,13)>13;
沽空:=COUNT(顶,13)>=1 AND C<HHV(C,13) AND CROSS(多,宝露);
见1:=COUNT(ALL(多>空 AND 空>均衡 AND 均衡>中轨 AND 中轨=趋势,7),7)>=1;
见2:=见1 AND 中轨>MIN(多,空,均衡,趋势) AND H>L;
见好就收:=见2 AND H>=HHV(H,7) AND 趋势度>20 AND (C-O)*0.33+O<REF(HHV(C,13),1);
真空:=COUNT(ALL(多>空 AND 空>均衡 AND 中轨=趋势,7),13)>=1 AND 趋势度>10 AND CROSS(中轨,宝露);
主短量:="主力量价.短量";
净量:="主力量价.净量";
主量:="主力量价.VOLUME";
共1a:=C>(宝露-多)*0.33+多 OR C>=HHV(MAX(C,O),5) OR ALL(C>MIN(O,REF(C,1)),3);
共1:=共1a AND HHV(距,13)>15 AND COUNT(宝露>多 AND 多>均衡 AND 均衡>中轨,7)>=5 AND 全红>5;
共2:=距>=15 AND 主短量>20 AND (C/LLV(C,7)>1.5 OR 全红>7);
共:=共1 OR 共2;
逃a1:=主短量>20 AND 净量=1;
逃a2:=逃a1 AND 距>=14.5 AND MAX(O,C)=HHV(MAX(O,C),21);
逃a3:=逃a2 AND REF(多>宝露,1) AND J<REF(J,1) AND V>=HHV(主量,7);
逃a6:=CROSS(C,HHV(多,7)) AND REF(多<HHV(多,7),1);
逃a7:=CROSS(宝露,多) OR 逃a6;
逃a:=IF(COUNT(逃a3,13)=0 AND COUNT(共1=中轨,13)>=1,逃a7,逃a3);
逃b1:=逃a2 AND V>=HHV(主量,5) AND ALL(多<宝露,3) AND 全红>7;
逃b2:=逃a2 AND C>MAX(多,宝露) AND 距>=15 AND ALL(多<宝露,3) AND 全红>30;
逃b:=逃b1 OR 逃b2;
逃c:=逃a2 AND V>=HHV("主力量价.VOLUME",13) AND V>=HHV(V,21);
逃d:=逃a2 AND 多>宝露 AND J<REF(J,1) AND 全红>21;
逃:逃a OR 逃b OR 逃c OR 逃d,PRECIS0,COLORff00ff,LINETHICK0;
{买入信号}
DRAWTEXT(主升,LLV(趋势,3),'主升'),ALIGN1,COLORff00ff,LINETHICK3;
DRAWTEXT(IF(C<VF1 AND VOL/240>MA(VOL,5)/240 AND C>=REF(C,1)*1.08 AND C<MA(C,13)*1.3,1,0),L,'☆'),ALIGN1,COLORRED;
DRAWTEXT(关注 AND C>O,MIN(L,多,空,均衡,趋势),'关注'),ALIGN1,COLORGREEN;
DRAWTEXT(关注 AND C<O,HHV(H,5),'关注'),ALIGN1,COLOR0000ff;
DRAWTEXT(FILTER(真底,2),C,'底--→'),ALIGN2,COLORffffff;
DRAWTEXT(FILTER(突破,2),HHV(MAX(h,宝露),13),'突破----→'),ALIGN2,COLOR0000ff,LINETHICK3;
DRAWTEXT(FILTER(全红>0,1),中轨*(1-0.002*XS),''+全红),ALIGN1,PRECIS0,COLORff00ff;
DRAWTEXT(FILTER(全绿>0,1),REF(中轨,1)*(1+0.002*XS),''+全绿),ALIGN1,PRECIS0,COLOR00ff00;
DRAWTEXT(短底,(中轨-趋势)*0.7+趋势,'短底'),ALIGN1,COLOR0000ff;
STICKLINE(短底,(中轨-趋势)*0.6+趋势,H+0.05,2,0),COLOR0000ff;
DRAWTEXT(FILTER(买1,5),HHV(中轨,13),'注意买入----→'),ALIGN2,PRECIS0,COLORffffff;
STICKLINE(FILTER(买1,5),H*1.01,HHV(中轨,13),1,0);
DRAWTEXT(买2,中轨*0.98,'注意买入----→'),ALIGN2,COLORRED;
STICKLINE(买2,H*1.01,中轨*0.98,1,0);
DRAWTEXT(宣,H*1.1,'上涨宣言→'),ALIGN2,COLOR00ff00,LINETHICK2;
STICKLINE(宣,H*1.01,H*1.1,2,0),COLORYELLOW,LINETHICK2;
STICKLINE(共,中轨,中轨*0.95,3,0),PRECIS0,COLORff00ff;
VERTLINE(FILTER(宝露*1.005>多 AND REF(宝露<多,1) AND C=LLV(MIN(C,O),3) AND COUNT(中趋>60,13)>=1,3),2),PRECIS0,COLOR0000ff,LINETHICK7;
阴线买:ALL(中 |