参数按图中提示设置!
DRAWGBK(CLOSE>0,RGB(0,0,0),RGB(0,0,0),1,0,0);
MA5:MA(CLOSE,5),COLORRED,LINETHICK2;
MA10:MA(CLOSE,10),LINETHICK2,COLORYELLOW;
IF(MA5
IF(MA10
MA30:MA(CLOSE,30),DOTLINE,COLOR0000FF;
MA144:MA(CLOSE,144),DOTLINE,COLORFFFF00;
STICKLINE(CLOSE>MA10 AND CLOSE>OPEN,CLOSE,OPEN,3,1),COLORRED;
STICKLINE(CLOSE>MA10 AND CLOSE>OPEN,OPEN,LOW,0,0),COLORRED;
STICKLINE(CLOSE>MA10 AND CLOSE>OPEN,CLOSE,HIGH,0,0),COLORRED;
STICKLINE(CLOSE>MA10 AND CLOSE
STICKLINE(CLOSE
STICKLINE(CLOSE
STICKLINE(CLOSE
VAR2:=CLOSE>(REF(HIGH,1)+REF(LOW,1))/2;
买入提示:=VAR1 AND VAR2;
DRAWTEXT(买入提示,LOW-0.28,'进'),COLORFFFF00;
进:=VAR1 AND VAR2;
STICKLINE(进,HIGH,LOW,0.5,1),COLORFFFF00;
STICKLINE(进,OPEN,CLOSE,5,1),LINETHICK2,COLORFFFF00;
VARR1:=EMA(CLOSE,8);
VARR2:=EMA(VARR1,20);
VAR3:=CROSS(VARR1,VARR2);
VAR4:=VARR1
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
一箭封喉:=BB AND CC;
DRAWTEXT(一箭封喉,HIGH*1.05,'★'),COLORFFFF00;
DRAWTEXT(一箭封喉,HIGH*1.02,'一箭封喉'),COLORFFFF00;
STICKLINE(一箭封喉,HIGH,LOW,0.5,0),COLORFFFF00;
STICKLINE(一箭封喉,OPEN,CLOSE,5,0),LINETHICK2,COLORFFFF00;
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);