先胜二指禅
势底:=SUM(CLOSE,25)/28;
势顶:SUM(CLOSE,25)/22,POINTDOT,LINETHICK2,colorFF00;
主线:=WMA(CLOSE,20);
主线2:WMA(CLOSE,20),LINETHICK2;
VAR1:=POW(CLOSE-主线,1);
VAR2:=MA(VAR1,3);
VAR3:=SQRT(VAR2);
阻力线:=主线+1.96*VAR3;
支撑线:=主线-1.96*VAR3;
PARTLINE(主线2>REF(主线2,1) AND 阻力线<>支撑线,主线2),LINETHICK2,colorFF;
PARTLINE(主线2<REF(主线2,1),主线2),LINETHICK2,colorFF00;
PARTLINE(主线2<REF(主线2,1),主线2),LINETHICK2,colorFF00;
PARTLINE(阻力线=支撑线,主线2),LINETHICK2,colorFF0000;
STICKLINE(CLOSE<OPEN,HIGH,LOW,1,0),color8800;
STICKLINE(CLOSE<OPEN,HIGH,LOW,0,0),colorFF00;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,8,0),color8800;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,7,0),color9900;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,6,0),colorAA00;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,5,0),colorBB00;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,4,0),colorCC00;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,3,0),colorDD00;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,2,0),colorEE00;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,1,0),colorFF00;
STICKLINE(CLOSE>=OPEN,HIGH,LOW,1,0),colorFF;
STICKLINE(CLOSE>=OPEN,HIGH,LOW,0,0),colorEEFF;
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,8,0),colorFF;
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,7,0),color22FF;
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,6,0),color44FF;
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,5,0),color66FF;
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,4,0),color88FF;
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,3,0),colorAAFF;
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,2,0),colorCCFF;
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,1,0),colorEEFF;
VAR11:=(2*CLOSE+OPEN+HIGH+LOW)/5;
VAR12:=VOL;
M8:=SUM(VAR11*VAR12,3)/SUM(VAR12,3);
主力:=M8;
散户:=LLV(主力,5);
VAR11:=(2*CLOSE+OPEN+HIGH+LOW)/5;
VAR12:=VOL;
M1:=SUM(VAR11*VAR12,1)/SUM(VAR12,1);
M5:=SUM(VAR11*VAR12,5)/SUM(VAR12,5);
M13:=SUM(VAR11*VAR12,13)/SUM(VAR12,13);
M8:=SUM(VAR11*VAR12,3)/SUM(VAR12,3);
M21:=SUM(VAR11*VAR12,21)/SUM(VAR12,21);
Y:=M1;
U1:=M5;
主力:=M8;
U3:=M13;
XX1:=U1>主力 AND 主力>U3;
C5:=IF(XX1>0,LLV(U1,5),HHV(主力,5));
C8:=IF(XX1>0,LLV(主力,8),HHV(主力,5));
C13:=IF(XX1>0,LLV(U3,13),HHV(主力,5));
散户:=LLV(主力,20);
DRAWTEXT(散户=REF(散户,1),散户,' ┬ '),PXUP10,colorCC33FF;
DRAWTEXT(REF(散户,1)<REF(散户,2) AND 散户=REF(散户,1),散户,'★'),colorFF;
DRAWICON(REF(散户,1)<REF(散户,2) AND 散户=REF(散户,1),散户*0.99,1);
临界线:=WMA(CLOSE,5);
VAR1:=POW(CLOSE-临界线,1);
VAR2:=MA(VAR1,3);
VAR3:=SQRT(VAR2);
阻力线:=临界线+1.96*VAR3;
支撑线:=临界线-1.96*VAR3;
PARTLINE(临界线>REF(临界线,1) AND 阻力线<>支撑线,临界线),LINETHICK3,colorFF;
PARTLINE(临界线<REF(临界线,1),临界线),LINETHICK2,colorFF00;
PARTLINE(阻力线=支撑线,临界线),LINETHICK2,colorFF0000;
DRAWTEXT(SYSPARAM(2)=BARPOS,CLOSE,'所属板块:'+BLKNAME),ALIGN4,colorCCFFFF;
VAR1:=(CLOSE+HIGH+LOW)/3;
CB:=MA(VAR1,4);
A1:=HHV(CB,18);
A2:=HHV(CB,41);
A3:=HHV(HIGH,62)*0.98;
B1:=LLV(CB,18);
B2:=LLV(LOW,62)*1.02;
MID:=MA(CLOSE,20);
UPPER:=MID+2*STD(CLOSE,20);
LOWER:=MID-2*STD(CLOSE,20);
VAR1:=(REF(HIGH,1)+REF(LOW,1))/2;
VAR2:=(REF(HIGH,1)+REF(LOW,1))/2;
VAR3:=MA(CLOSE,27)+2*STD(CLOSE,27);
DRAWICON(CROSS(VAR2,VAR3),HIGH*1.035,3);
DRAWTEXT(CROSS(VAR2,VAR3),HIGH*1.02,' 卖'),colorFF00;
MID:=MA(CLOSE,20);
UPPER:=MID+2*STD(CLOSE,20);
LOWER:=MID-2*STD(CLOSE,20);
V1:=(CLOSE-LOWER)/(UPPER-LOWER)*100;
V2:=V1-EMA(V1,5);
K1:=SUM(LLV(V2,4),4)/4;
V3:=EMA(V2,64)*10;
V4:=EMA(0.4*V2*(-1),3);
V5:=-1*EMA(V2,39)*10;
A:=V3>10;
E:=V2>V4;
KS:=V5>10;
RKS:=V3<=10 OR V2<=V4 OR V5<=10;
MLS:=(CLOSE-SMA(CLOSE,13,1))/SMA(CLOSE,13,1)*(-100);
开:=REF(MLS,1);
高:=开/MLS>1.23 AND 开>13 AND CLOSE/REF(CLOSE,1)>1.03;
低:=OPEN;
收:=HIGH;
VARQS49:=LOW;
VARQS50:=CLOSE;
超跌:STICKLINE(MLS>13,收,VARQS49,0,1),LINETHICK2,colorFFFFFF;
反弹:STICKLINE(高=1,收,VARQS49,0,1),LINETHICK2,colorFF00FF;
STICKLINE(MLS>13,低,VARQS50,8,1),LINETHICK2,colorFFFFFF;
STICKLINE(高=1,低,VARQS50,8,1),LINETHICK2,colorFF00FF;
|