DRAWGBK(CLOSE>0,COLORRGB(0,0,0),COLORRGB(0,0,0),1);
MA5:MA(CLOSE,5),LINETHICK2,colorFF;
MA10:MA(CLOSE,10),LINETHICK2,colorFFFF;
PARTLINE(MA5<REF(MA5,1),MA5),LINETHICK2,colorFF00;
PARTLINE(MA10<REF(MA10,1),MA10),LINETHICK2,colorFFFFFF;
MA30:MA(CLOSE,30),LINEDOT,colorFF;
MA144:MA(CLOSE,144),LINEDOT,colorFFFF00;
PARTLINE(MA10>REF(MA10,1),MA10),LINETHICK2,colorFFFF;
STICKLINE(CLOSE>MA10 AND CLOSE>OPEN,CLOSE,OPEN,8,1),colorFF;
STICKLINE(CLOSE>MA10 AND CLOSE>OPEN,OPEN,LOW,1,1),colorFF;
STICKLINE(CLOSE>MA10 AND CLOSE>OPEN,CLOSE,HIGH,1,1),colorFF;
STICKLINE(CLOSE>MA10 AND CLOSE<OPEN,CLOSE,OPEN,8,0),colorFF;
STICKLINE(CLOSE>MA10 AND CLOSE<OPEN,CLOSE,HIGH,1,1),colorFF;
STICKLINE(CLOSE>MA10 AND CLOSE<OPEN,OPEN,LOW,1,1),colorFF;
STICKLINE(CLOSE<MA10 AND CLOSE>OPEN,CLOSE,OPEN,8,1),colorFFFF00;
STICKLINE(CLOSE<MA10 AND CLOSE>OPEN,OPEN,LOW,1,1),colorFFFF00;
STICKLINE(CLOSE<MA10 AND CLOSE>OPEN,CLOSE,HIGH,1,1),colorFFFF00;
STICKLINE(CLOSE<MA10 AND CLOSE<OPEN,CLOSE,OPEN,8,0),colorFFFF00;
STICKLINE(CLOSE<MA10 AND CLOSE<OPEN,CLOSE,LOW,1,1),colorFFFF00;
STICKLINE(CLOSE<MA10 AND CLOSE<OPEN,OPEN,HIGH,1,1),colorFFFF00;
VAR1:=LLV(LOW,5)=LLV(LOW,45) AND CLOSE>=OPEN*1.04;
VAR2:=CLOSE>(REF(HIGH,1)+REF(LOW,1))/2;
买入提示:=VAR1 AND VAR2;
DRAWTEXT(买入提示,LOW-0.28,'进'),ALIGN0,colorFFFF;
进:=VAR1 AND VAR2;
STICKLINE(进,HIGH,LOW,0.5,1),colorFFFF;
STICKLINE(进,OPEN,CLOSE,5,1),LINETHICK2,colorFFFF;
VAR1:=EMA(CLOSE,8);
VAR2:=EMA(VAR1,20);
VAR3:=CROSS(VAR1,VAR2);
VAR4:=VAR1<MA(CLOSE,120);
VAR5:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;
VAR6:=SMA(VAR5,5,1);
VAR7:=SMA(VAR6,8,1);
VAR8:=CROSS(VAR6,VAR7) AND VAR7<20;
VAR9:=CLOSE>LLV(CLOSE,60)+0.3*LLV(CLOSE,60) AND VAR8;
VARA:=IF(CLOSE>1000,VAR8,VAR9);
逃:=VARA;
DRAWTEXT(逃>0,HIGH*1.04,'出'),color7FFFD6;
STICKLINE(逃,HIGH,LOW,0.5,1),LINETHICK2,colorFFFFFF;
STICKLINE(逃,OPEN,CLOSE,5,1),LINETHICK2,colorFFFFFF;;;
MA20:=MA(CLOSE,20);
MA40:=MA(CLOSE,40);
MA60:=MA(CLOSE,60);
MA120:=MA(CLOSE,120);
MA250:=MA(CLOSE,250);
AA:=BARSLAST(MA60>MA40 AND (MA40=MA20 OR MA40>MA20));
BB:=REF(COUNT(CLOSE<MA60,AA)=AA,1);
CC:=CROSS(CLOSE,MA60) AND VOL>MA(VOL,5) AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>3;
一箭封喉:=BB AND CC;
DRAWTEXT(一箭封喉,HIGH*1.05,'★'),colorFFFF;
DRAWTEXT(一箭封喉,HIGH*1.02,'一箭封喉'),colorFFFF;
STICKLINE(一箭封喉,HIGH,LOW,0.5,0),colorFFFF;
STICKLINE(一箭封喉,OPEN,CLOSE,5,0),LINETHICK2,colorFFFF;
N:=9;
M:=14;
N1:=6;
TYP := (HIGH + LOW + CLOSE)/3;
CC1:=(TYP-MA(TYP,M))/(0.015*AVEDEV(TYP,M));
C1:=SMA(CC1,3,1);
C2:=SMA(C1,3,1);
C3:=3*C1-2*C2;
CB1:=EMA(C3,5);
CB2:=REF(CB1,1);
CCI:=CC1;
LC := REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
RSI:=(RSI1-50)*5;
R1:=SMA(RSI,3,1);
D1:=SMA(R1,3,1);
J1:=3*R1-2*D1;
RR1:=EMA(J1,5);
RR2:=REF(RR1,1);
RR:=RR1>RR2;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,3,1);
K1:=(K-50)*5;
K2:=SMA(K1,3,1);
D2:=SMA(K2,3,1);
J2:=3*K2-2*D2;
BB1:=EMA(J2,5);
BB2:=REF(BB1,1);
买入:=RR AND NOT(REF(RR,1)) AND (RR1<-100 AND BB1<-100) AND CB1<-100;
DRAWICON(买入,L*0.98,4);
卖出:=REF(RR,1)=1 AND NOT(RR) AND CB1>100;
DRAWICON(卖出,H*1.02,5);
{原文链接:http://www.55188.com/thread-3437489-1-1.html}
|