倚天均线升级版
DRAWTEXT(SYSPARAM(2)=BARPOS,CLOSE,'所属板块:'+BLKNAME),ALIGN4,color808080;
MA3:EMA(CLOSE,3),colorFF;
MA8:EMA(CLOSE,8),colorFF00;
MA21:EMA(MA8,21);
黑马:=EMA(MA8,60);
VAR1:=EMA(MA21,60);
MA73:EMA(黑马,73),LINETHICK2,colorFFFF;
MA144:EMA(VAR1,144),LINETHICK2,colorFF;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,7,0),colorFF2020;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,4,0),colorFF2020;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,2,0),colorFFFF00;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,7,0),color2020FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0),colorB0B0FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0),colorFFFF;
STICKLINE(CLOSE>OPEN,OPEN,LOW,0.5,0),colorFFFF;
STICKLINE(CLOSE>OPEN,CLOSE,HIGH,0.5,0),colorFFFF;
STICKLINE(OPEN>=CLOSE,CLOSE,LOW,0.5,0),colorFFFF80;
STICKLINE(OPEN>=CLOSE,OPEN,HIGH,0.5,0),colorFFFF80;
STICKLINE(CLOSE=OPEN AND CLOSE>REF(CLOSE,1),CLOSE,OPEN,7,0),color2020FF;
STICKLINE(CLOSE=OPEN AND CLOSE>REF(CLOSE,1),CLOSE,HIGH,0.5,0),color2020FF;
STICKLINE(CLOSE=OPEN AND CLOSE>REF(CLOSE,1),OPEN,LOW,0.5,0),color2020FF;
CB:=AMOUNT/VOL/100;
STICKLINE(1,CB-0.002,CB+0.002,8,1),colorFFFF;
HZ47:MA(CLOSE,47),colorFFFF00;
HZ48:EMA(HZ47,3),colorFFFF00;
HZ49:EMA(HZ48,3),colorF00FF0;
HZ50:EMA(HZ49,3),colorF00FF0;
VAR2:=(CLOSE+HIGH+LOW)/3;
VAR3:=EMA(VAR2,10);
VAR4:=REF(VAR3,1);
STICKLINE(VAR3>VAR4,VAR3,VAR4,15,0),LINETHICK3,colorFF;
STICKLINE(VAR3<VAR4,VAR3,VAR4,20,0),LINETHICK3,colorFF00;
中轨:=MA(CLOSE,21);
上轨:=中轨+STD(CLOSE,21);
下轨:=中轨-STD(CLOSE,21);
上极限:中轨+2*STD(CLOSE,21),color808080;
下极限:中轨-2*STD(CLOSE,21),color808080;
A:=(3*CLOSE+LOW+OPEN+HIGH)/6;
多:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+REF(A,20))/210;
空:=MA(多,13);
MID:=MA(CLOSE,21);
UPPER:=MID+2*STD(CLOSE,21);
LOWER:=MID-2*STD(CLOSE,21);
VARA:=IF(CLOSE>150,91.3,0.913);
箱体下沿:INTPART(CLOSE/VARA)*VARA,POINTDOT,LINETHICK2,colorFF00;
箱体上沿:箱体下沿+VARA,POINTDOT,LINETHICK2,colorFFFF;
箱体中线:(箱体下沿+箱体上沿)/2,POINTDOT,LINETHICK2,colorFFFFFF;
M9:=MA(CLOSE,9);
Y:=(HIGH+LOW)/2;
AO:=MA(Y,5)-MA(Y,34);
DU0:=CROSS(AO,0);
UD0:=CROSS(0,AO);
TDU0:=BARSLAST(DU0);
TUD0:=BARSLAST(UD0);
DU3:=REF(DU0,1);
UD3:=REF(UD0,1);
TDU3:=BARSLAST(DU3);
TUD3:=BARSLAST(UD3);
UDGLINE:=IF(TDU3<TUD3,REF(HHV(HIGH,2),TDU3),REF(LLV(LOW,2),TUD3));
JDU0:=REF(CLOSE,1)<=REF(UDGLINE,1) AND CLOSE>UDGLINE AND TDU0<TUD0;
JUD0:=REF(CLOSE,1)>=REF(UDGLINE,1) AND CLOSE<UDGLINE AND TUD0<TDU0;
JDU1:=JDU0 AND COUNT(JDU0,TDU0)=1;
JUD1:=JUD0 AND COUNT(JUD0,TUD0)=1;
JDU2:=JDU1 AND REF(BARSLAST(JUD1),1)<REF(BARSLAST(JDU1),1);
JUD2:=JUD1 AND REF(BARSLAST(JUD1),1)>REF(BARSLAST(JDU1),1);
JDU3:=JDU1 AND REF(BARSLAST(JUD1),1)>REF(BARSLAST(JDU1),1);
JUD3:=JUD1 AND REF(BARSLAST(JUD1),1)<REF(BARSLAST(JDU1),1);
DRAWTEXT(JDU2,M9*0.93,'逢低买进'),ALIGN2,colorFF;
VAR2:=(CLOSE+HIGH+LOW)/3;
VAR3:=EMA(VAR2,10);
VAR4:=REF(VAR3,1);
VAR5:=(REF(HIGH,1)+REF(LOW,1))/2;
VAR6:=MA(CLOSE,17)+2*STD(CLOSE,17);
VAR7:=REF(CLOSE,1);
VAR8:=(SMA(MAX(CLOSE-VAR7,0),7,1))/(SMA(ABS(CLOSE-VAR7),7,1))*100;
VAR9:=CROSS(69,VAR8);
VARA:=FILTER(VAR9,4);
VARB:=(2*CLOSE+HIGH+LOW)/4;
VARC:=LLV(LOW,34);
VARD:=HHV(HIGH,34);
VARE:=EMA((VARB-VAR1)/(VAR5-VAR1)*100,7);
VARF:=EMA(0.667*REF(VARE,1)+0.333*VARE,5);
VAR10:=MA(CLOSE,80)-MA(CLOSE,10)/3;
DRAWTEXT(IF(CLOSE<VAR10 AND VOL/240>MA(VOL,5)/240 AND CLOSE>REF(CLOSE,1)*1.08 AND CLOSE<MA(CLOSE,13)*1.3,1,0),LOW,'抄底!'),ALIGN0,colorFFFFFF;
VAR11:=REF(CLOSE,1);
VAR12:=(SMA(MAX(CLOSE-VAR11,0),17,1))/(SMA(ABS(CLOSE-VAR11),17,1))*100;
DRAWTEXT(CROSS(79,VAR12),HIGH*1.04,'逢高卖出!'),ALIGN0,colorFF00; |