主图指标
MA1:MA(C,P),COLORRED;
IF(MA1>REF(MA1,1),MA1,DRAWNULL),COLORRED;
IF(MA1<REF(MA1,1),MA1,DRAWNULL),COLORGREEN;
N:=10;M1:=5;M2:=20;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,M1,1);D:=SMA(K,M2,1);J:=3*K-2*D;
A:=CROSS(K,D);
B:=CROSS(D,K);
DRAWTEXT(A,H,'----------------'),COLOR0000FF;
DRAWTEXT(B,L,'----------------'),COLOR00FF00;
X:=(3*C+L+O+H)/6;
控盘线:(20*X+19*REF(X,1)+18*REF(X,2)+17*REF(X,3)+16*REF(X,4)+15*REF(X,5)+14*REF(X,6)
+13*REF(X,7)+12*REF(X,8)+11*REF(X,9)+10*REF(X,10)+9*REF(X,11)+8*REF(X,12)
+7*REF(X,13)+6*REF(X,14)+5*REF(X,15)+4*REF(X,16)+3*REF(X,17)+2*REF(X,18)+
REF(X,20))/210,COLORFF00FF;
DD:=控盘线<REF(控盘线,1);
IF(DD,控盘线,DRAWNULL),COLOR00FFFF;
VAR21:=4*SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1)-
3*SMA(SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1),3.2,1);
VAR22:=8;
QQ:=CROSS(VAR21,VAR22);
DRAWICON(QQ,L*0.98,1);
MID:=EMA(CLOSE,M);
UPPER:MID+2*STD(CLOSE,M),COLORRED;
LOWER:MID-2*STD(CLOSE,M),COLORBLUE;
UPPER0:MID+3*STD(CLOSE,M),COLORRED;
LOWER0:MID-3*STD(CLOSE,M),COLORBLUE;
DRAWICON(HIGH>UPPER0 OR HIGH=UPPER0,HIGH*1.03,2);
DRAWICON(LOW<LOWER0 OR LOW=LOWER0,LOW*0.99,1);
选股:=LOW<LOWER0 OR LOW=LOWER0;
副图1
VAR2:=REF(LOW,1);
VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;
VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3);
VAR5:=LLV(LOW,30);
VAR6:=HHV(VAR4,30);
VAR7:=IF(MA(CLOSE,58),1,0);
VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;
VAR9:=IF(VAR8>100,100,VAR8);
庄来了:STICKLINE(VAR9>-120,0,VAR9,6,1),COLORF000FF;
副图2
X_1:=SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,3,1);
X_2:=SMA((CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100,3,1);
X_3:=SMA((X_2-50)*2,3,1)+SMA((X_1-50)*2,3,1)/1;
顶警戒:150,DOTLINE,COLORMAGENTA;
底戒线:(-150),DOTLINE,COLORGREEN;
STICKLINE(X_3>(-100),X_3,100,0,0),COLOR323232;
STICKLINE(X_3<(-100),X_3,100,0,0),COLOR9F9F5F;
STICKLINE(X_3<(-100),X_3,(-100),1,0),COLORYELLOW;
STICKLINE(X_3<(-120),X_3,(-120),1,0),COLORFF2400;
STICKLINE(X_3<(-140),X_3,(-140),1,0),COLORMAGENTA;
STICKLINE(X_3<(-150),X_3,(-150),1,0),COLORRED;
STICKLINE(X_3>100,X_3,100,1,0),COLORWHITE;
STICKLINE(X_3>120,X_3,120,1,0),COLORFF2400;
STICKLINE(X_3>140,X_3,140,1,0),COLORMAGENTA;
STICKLINE(X_3>150,X_3,150,1,0),COLORRED;
X_4:=LOW>MA(SLOPE(CLOSE,20)*5+CLOSE,10) AND LOW<MA(CLOSE,20);
X_5:=COUNT(CROSS(MA(CLOSE,10),MA(CLOSE,5)),5)>=1;
神猎手:CROSS(CLOSE,REF(LLV(LOW,250/12),2)) AND X_4 AND X_5,NODRAW;
DRAWTEXT_FIX(ISLASTBAR,0.01,0,0,GNBLOCK),COLOR00CCCC;
X_6:=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(X_6,5),NODRAW;
秘密买:X_6<=5,NODRAW,COLOR00FF99;
尝试买:X_6<=13,NODRAW,COLORCYAN;
STICKLINE(尝试买,0,(-100),4,(-1)),COLORCYAN;
STICKLINE(秘密买,(-90),(-10),1,0),COLOR00FF99;
STICKLINE(赶快买,(-90),100,1,0),COLORMAGENTA;
STICKLINE(神猎手,(-90),90,1,0),COLORRED;
X_7:=4*SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1),3.2,1);
X_8:=CROSS(X_7,8) AND 尝试买;
X_9:=LOW<=REFDATE(REF(LLV(LOW,150),3),DATE) AND 尝试买;
超短买:X_8 OR X_9,NODRAW,COLOR0099FF;
STICKLINE(超短买,(-60),20,3,0),COLOR0090FF;
STICKLINE(超短买,(-55),15,1,(-1)),COLORRED;
X_10:=DMA((HIGH+LOW+CLOSE*2)/4.15,0.9);
X_11:=REF(EMA(X_10,3),1);
X_12:=KDJ.J<50 AND CLOSE>REF(CLOSE,3);
X_13:=(CLOSE-MA(CLOSE,30))/MA(CLOSE,30)*100;
X_14:=CROSS(0,(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100);
X_15:=X_13<REF(X_13,1);
X_16:=MA(CLOSE,10)>REF(MA(CLOSE,10),1);
X_17:=FILTER(X_14 AND X_15 AND X_16,10);
X_18:=(2*CLOSE+HIGH+LOW)/4;
X_19:=MA(EMA((X_18-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5),1);
X_20:=REF(X_17,2) AND CROSS(CLOSE,EMA(CLOSE,5));
X_21:=X_19>REF(X_19,1) AND REF(X_19,1)<REF(X_19,2);
X_22:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
X_23:=IF(CLOSE>OPEN,X_22*(HIGH-LOW),IF(CLOSE<OPEN,X_22*(HIGH-OPEN+(CLOSE-LOW)),VOL/2));
X_24:=IF(CLOSE>OPEN,X_22*(HIGH-CLOSE+(OPEN-LOW)),IF(CLOSE<OPEN,X_22*(HIGH-LOW),VOL/2));
X_25:=KDJ.J<20;
X_26:=X_23>X_24*6 AND X_25;
X_27:=CROSS(CLOSE,X_11) AND X_12;
X_28:=X_20 AND X_21;
短爆买:尝试买 AND (X_26 OR X_27 OR X_28),NODRAW,COLORRED;
STICKLINE(短爆买,0,70,3,0),COLORRED;
DRAWTEXT(短爆买,40,1207),COLORYELLOW;
DRAWTEXT(超短买,(-20),1208),COLORWHITE;
DRAWTEXT(赶快买,85,1209),COLORGREEN;
DRAWTEXT(神猎手,60,1210),COLORWHITE;
【短线趋势】:SMA((X_2-50)*2,3,1)+SMA((X_1-50)*2,3,1)/1,COLORYELLOW,LINETHICK2;
IF(X_3<=REF(X_3,1),X_3,DRAWNULL),COLORFF2400,LINETHICK2;
X_29:=X_3>REF(X_3,1);
X_30:=X_3<=REF(X_3,1);
DRAWICON(X_29 AND REF(NOT(X_29),1),X_3,1);
DRAWICON(X_30 AND REF(NOT(X_30),1),X_3,2);
副图3
RSV1:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
K1:=SMA(RSV1,5,1);
D1:=SMA(K1,5,1);
J1:=3*K1-2*D1;
AA1:=EMA(J1,5);
AA2:=REF(AA1,1);
STICKLINE(AA1>AA2,AA1,AA2,3,0),COLOR0055AA;{长J}
STICKLINE(AA1>AA2,AA1,AA2,2.5,0),COLOR0077CC;
STICKLINE(AA1>AA2,AA1,AA2,2,0),COLOR0099DD;
STICKLINE(AA1>AA2,AA1,AA2,1,0),COLOR01BEE7;
STICKLINE(AA1<=AA2,AA1,AA2,3,0),COLOR006600;
STICKLINE(AA1<=AA2,AA1,AA2,2.5,0),COLOR009900;
STICKLINE(AA1<=AA2,AA1,AA2,2,0),COLOR00BB00;
STICKLINE(AA1<=AA2,AA1,AA2,1,0),COLOR00CC00;
RSV2:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K2:=SMA(RSV2,3,1);
D2:=SMA(K2,3,1);
J2:=3*K2-2*D2;
BB1:=EMA(J2,5);
BB2:=REF(BB1,1);
STICKLINE(BB1>BB2,BB1,BB2,3,0),COLOR000045;{短J}
STICKLINE(BB1>BB2,BB1,BB2,2.5,0),COLOR000085;
STICKLINE(BB1>BB2,BB1,BB2,2,0),COLOR0000C5;
STICKLINE(BB1>BB2,BB1,BB2,1,0),COLOR0000E5;
STICKLINE(BB1<=BB2,BB1,BB2,3,0),COLOR353500;
STICKLINE(BB1<=BB2,BB1,BB2,2.5,0),COLOR555500;
STICKLINE(BB1<=BB2,BB1,BB2,2,0),COLOR757500;
STICKLINE(BB1<=BB2,BB1,BB2,1,0),COLOR858500;
DD:=AA1>AA2 AND BB1>BB2;
注意买入:DD AND NOT(REF(DD,1)) AND (AA1<50 OR BB1<50) ,LINETHICK0;
DRAWICON(注意买入,BB2,1);
注意卖出:REF(DD,1)=1 AND NOT(DD),LINETHICK0;
DRAWICON(注意卖出,105,2);
95;
50;
2;
均价:SUM(AMOUNT,1)/SUM(V,1)/100,LINETHICK0;
{短线止赢的"止"价是以最近阳线收盘价下跌1.7%加上手续费0.8%共下2.5%定的}
止损:C*(1-0.025),LINETHICK0;{ 本公式的止损率设为2.5%};
VAR1:=EMA(CLOSE,3)-EMA(CLOSE,89);
VAR2:=EMA(VAR1,21);
VAR3:=(VAR1-VAR2)*10;
VAR4:=POW(VAR3,3)*0.1+POW(VAR3,2);
VAR5:=IF(VAR3>0.015,VAR4,0)/45;
VAR6:=VAR5/REF(VAR5,1)>5 AND REF(VAR5,1)/REF(VAR5,2)>5;
DRAWICON(VAR6 AND 注意买入,BB2,38);