5:MA(C,5);
10:MA(C,10);
20:MA(C,20);
30:MA(C,30);
60:MA(C,M);
90:MA(C,90);
120:MA(C,120) COLORLIMAGENTA LINETHICK2;
250:MA(C,250) COLORYELLOW LINETHICK2;
C3:=REF(C,1);
涨停:=IF((C-C3)*100/C3>=(10-0.01*100/C3),2,0);
{STICKLINE(涨停,OPEN,CLOSE,2,0),COLORYELLOW;}
STICKLINE(涨停,C,O,3.3,0),COLOR0077FF;
STICKLINE(涨停,C,O,2.8,0),COLOR0099FF;
STICKLINE(涨停,H,L,0,0),COLOR00FFFF;
跌停:=IF((C3-C)*100/C3>=(10-0.01*100/C3),2,0);
STICKLINE(跌停,OPEN,CLOSE,2,0),COLORLIGREEN;
强势:=IF((C-C3)*100/C3>=(5-0.01*100/C3) AND (C-C3)*100/C3<(10-0.01*100/C3),2,0);
STICKLINE(强势,OPEN,CLOSE,2,0),COLOR11AAFF;
弱势:=IF((C3-C)*100/C3>=(5-0.01*100/C3) AND (C3-C)*100/C3<(10-0.01*100/C3),2,0);
STICKLINE(弱势,OPEN,CLOSE,2,0),COLORBLUE;
{创幻组合}
VAR10:=IF(TROUGH(3,16,1)=0 AND HIGH>LOW+0.04,4,0);
VAR11:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);
VAR12:=ZIG(3,6)<REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)>=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);
VAR13:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)<=REF(ZIG(3,22),3);
VAR14:=ZIG(3,22)<REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)>=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)>=REF(ZIG(3,22),3);
VAR15:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)<=REF(ZIG(3,51),3);
VAR16:=ZIG(3,51)<REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)>=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)>=REF(ZIG(3,51),3);
VAR17:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)<=REF(ZIG(3,72),3);
VAR18:=ZIG(3,72)<REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)>=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);
VAR19:=EMA(CLOSE,2)-EMA(CLOSE,150);
VAR1A:=EMA(VAR19,100);
VAR1B:=2*(VAR19-VAR1A);
VAR1C:=POW(VAR1B,3)*0.1+POW(VAR1B,1);
VAR1D:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE));
VAR1E:=EMA(VAR1D*0.97,3);
VAR1F:=(HIGH+LOW+CLOSE)/3;
VAR20:=(VAR1F-MA(VAR1F,14))/(0.015*AVEDEV(VAR1F,14));
VAR21:=CROSS(VAR1E,LOW);
买点1:=VAR10;
买点2:=(VAR11+VAR13+VAR15+VAR17);
卖点1:=(VAR12+VAR14+VAR16+VAR18),LINETHICK2;
VAR1:=MA(CLOSE,5);
VAR2:=MA(CLOSE,10);
VAR31:=MA(CLOSE,30);
VARB1:=SUM(CLOSE*VOL*100,28)/SUM(VOL*100,28);
VARC1:=INTPART(VARB1*100)/100;
VARD1:=EMA(CLOSE,5)-EMA(CLOSE,10);
VARE1:=EMA(VARD1,9);
VAR131:=REF(VARE1,1);
VAR141:=VARE1;
VAR151:=VAR141-VAR131;
VAR161:=REF(VARD1,1);
VAR171:=VARD1;
VAR181:=VAR171-VAR161;
VAR191:=OPEN;
VAR1A1:=CLOSE;
DRAWICON(买点1>0,LOW-0.2,25),COLORRED;
DRAWICON(买点2>0,LOW-0.2,25),COLORBLUE;
DRAWICON(卖点1>0,HIGH+0.2,52), COLOR33FF33;
{}
V0:=EMA(C,5);
M1:=1000*10/60<=1015 AND 1000*10/60>=975;
M2:=1000*20/60<=1020 AND 1000*20/60>=980;
M3:=1000*30/60<=1015 AND 1000*30/60>=985;
M4:=M1 AND M2 AND M3 AND CROSS(V0,10);
M5:=M1 AND M2 AND M3 AND CROSS(V0,30);
T1:=1000*10/30<=1010 AND 1000*10/30>=990;
T2:=1000*20/30<=1010 AND 1000*20/30>=990;
T3:=T1 AND T2 AND CROSS(V0,10);
T4:=T1 AND T2 AND CROSS(V0,30);
DRAWICON(M4 OR M5 OR T3 OR T4,L-0.50,23);
{无厘头2}
AAA:=(3*C+H+L+O)/6;
VARR1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)
+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;
VARR2:=(HHV(VARR1,5)+HHV(VARR1,10)+HHV(VARR1,20))/3;
VARR3:=(LLV(VARR1,5)+LLV(VARR1,10)+LLV(VARR1,20))/3;
VARR4:=(HHV(VARR2,5)+HHV(VARR2,10)+HHV(VARR2,20))/3;
VARR5:=(LLV(VARR3,5)+LLV(VARR3,10)+LLV(VARR3,20))/3;
VARR6:=(LLV(VARR1,2)+LLV(VARR1,4)+LLV(VARR1,6))/3;
FF:=EMA(CLOSE,3);
MA15:=EMA(CLOSE,21);
DRAWICON(CROSS(FF,MA15),LOW*0.97,23);
DRAWTEXT(CROSS(88,RSI),(HIGH *1.05),'R背'),COLOR00FF00;
X1:=(C+L+H)/3;
BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;
EMA8:=EMA(C,8);
DRAWTEXT(FILTER(BB13>1 AND EMA(X1,13)>REF(EMA(X1,8),1),10),EMA8,'∠45'),COLORWHITE;
压力:MA(C,10)*IF(CAPITAL=0,1.04,1.1),POINTDOT,COLORRED,LINETHICK3;
支撑:MA(C,10)*IF(CAPITAL=0,0.95,0.9),POINTDOT,COLORGREEN,LINETHICK3;
上:=EMA(C,3),COLORBLUE,LINETHICK1;
中:=EMA(C,5),COLORWHITE,LINETHICK1;
下:=EMA(中,5),COLOR00FF00,LINETHICK1;
QQ:= C<中;
MM:=上>REF(上,1) AND REF(上,1)<REF(上,2) ;
V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
V2:=(1-7/100)*(DMA(CLOSE,V1));
V3:=(1+7/100)*(DMA(CLOSE,V1));
V5:=MA((LOW+HIGH+CLOSE)/3,5);
MA1:=MEMA(CLOSE,5);
MA2:=ATAN((MA1/REF(MA1,1)-1)*100)*180/3.1416;
MA3:=IF(MA2>0,MA2,MA2);
MA5:=MA(CLOSE,5),COLOR888899;
MA13:=MA(CLOSE,13),COLORFF00F0,LINETHICK2;
VARR01:=CLOSE=HHV(C,4) AND (REF(C,1)>=REF(C,2) OR REF(C,1)>=REF(C,3))
OR REF(C,1)=HHV(C,4) AND CLOSE>=REF(C,2) OR REF(C,2)=HHV(C,4) AND
REF(C,3)=LLV(C,4) AND C>=REF(C,1) OR REF(C,3)=HHV(C,4) AND
C>=REF(C,1) AND C>=REF(C,2);
{收盘价=4日内收盘价的最高值 AND 昨收>=2日前的收盘价}
VARR02:=CLOSE=HHV(C,4) AND REF(C,1)=LLV(C,4);
{收盘价=4日内收盘价的最高值 AND 昨收=4日内收盘价的最低值}
VARR03:=CLOSE=LLV(C,4) AND (REF(C,1)<REF(C,2) OR REF(C,1)<REF(C,3)) OR
REF(C,1)=LLV(C,4) AND C<REF(C,2) OR REF(C,2)=LLV(C,4) AND
REF(C,1)=HHV(C,4) AND C<REF(C,1) OR REF(C,3)=LLV(C,4) AND
C<REF(C,1) AND C<REF(C,2);
{收盘价=4日内收盘价的最低值 AND (昨收<2日前的收盘价}
VARR04:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) AND
REF(C,1)<=REF(C,3) AND REF(C,2)<REF(C,4) AND C>=REF(C,1);
{昨收=4日内收盘价的最低值 AND 收盘价>=2日前的收盘价}
VARR05:=REF(C,1)=HHV(C,4) AND C<REF(C,2) OR (REF(C,2)=HHV(C,4) AND
REF(C,1)>REF(C,3) OR REF(C,3)=HHV(C,4) AND REF(C,1)>REF(C,2)) AND
REF(C,2)>=REF(C,4) AND C<REF(C,1);
{昨收=4日内收盘价的最高值 AND 收盘价<2日前的收盘价}
VARR06:=V5>REF(V5,1) AND REF(V5,1)<REF(V5,2);
{今日V5向上形成拐点}
VARR07:=LOW<HHV(V5,13) AND HIGH>HHV(V5,13) AND CLOSE>REF(C,1) AND CLOSE>OPEN;
VARR08:=VARR07 AND COUNT(VARR06,2);
VARR09:=100*EMA(EMA(C-REF(C,1),6),6)/EMA(EMA(ABS(C-REF(C,1)),6),6);
VARR10:=EMA(MA(C,13),13);
VARR11:=FILTER((LLV(VARR09,2)=LLV(VARR09,7) AND COUNT(VARR09<0,2) AND
CROSS(VARR09,MA(VARR09,2)))=1,5);
VARR12:=FILTER((HHV(VARR09,2)=HHV(VARR09,7) AND COUNT(VARR09>50,2) AND
CROSS(MA(VARR09,2),VARR09))=1,1);
VARR13:=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10;
VARR14:=FILTER(((CROSS(VARR13,0) OR CROSS(C,VARR10)) AND VARR11)=1,3);
VARR15:=MA(C,18)>=REF(MA(C,18),3) AND CROSS(C,MA(C,18));
VARR16:=VARR08 AND NOT(REF(VARR08,1));
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;
金叉:=CROSS(J,D);
死叉:=CROSS(D,J);
买1:=(VARR14 OR VARR15) AND VARR11;
买2:=(VARR14 OR VARR15) AND VARR4;
买3:=(VARR14 OR VARR15) AND VARR2;
买4:=(VARR2 AND VARR11) OR (VARR4 AND VARR11);
买5:=(金叉 AND VARR04) OR (金叉 AND VARR02) OR (金叉 AND VARR11);
DRAWICON(VARR16,LOW-0.15,16);
DRAWICON(买1 OR 买2 OR 买3 OR 买4 OR 买5 AND MM,LOW-0.7,17);
{DRAWICON(死叉 OR CROSS(50,VARR09) AND QQ AND K>50,HIGH+0.01,2);}
TTJ:=CROSS(FF,MA15);
TTJ0:=VARR16;
TTJ1:=买1 OR 买2 OR 买3 OR 买4 OR 买5 |