顶部:85,COLORLIGRAY;
VARO5:=LLV(LOW,26);
VARO6:=HHV(HIGH,34);
VARO7:=EMA((CLOSE-VARO5)/(VARO6-VARO5)*4,4)*25;
顶: IF((VARO7>90),90,95),COLOR00FF00;
底: IF((VARO7<10),15,10),COLOR0000FF;
中线:50,COLORLIRED;
MID :=MA(CLOSE,26);
UPPER:=MID + 2*STD(CLOSE,26);
LOWER:=MID - 2*STD(CLOSE,26);
AA1:=C*1.1<MA(C,90);
AA2:=C/REF(C,1)>1.03;
AA3:=COUNT(REF(C,1)<0.82*MID,7)>=2 OR COUNT(HHV(H,7)>1.132*LLV(H,80),35)>=7;
选股:AA1 AND AA2 AND AA3 ;
个股:=EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3);
黄买:IF(CROSS(个股,9),15,0),STICK,LINETHICK3,COLORYELLOW;
红买:FILTER(CROSS(RSI,20),7),COLOR0000FF,NODRAW;
STICKLINE(红买,0,15,2,0),COLOR0000FF;
白卖:FILTER(CROSS(80,RSI),7),COLORFFFFFF,NODRAW;
STICKLINE(白卖,100,85,2,0),COLORFFFFFF;
粉买:AA1 AND AA2 AND AA3 ,COLORFF00FF,NODRAW;
STICKLINE(粉买,0,-10,2,0),COLORFF00FF;
VARA:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(VARA,3,1);
VARB:=SMA(K,3,1);
J:=3*K-2*VARB;
VAR2:=4*SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1)-
3*SMA(SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1),3.2,1);
IF(CROSS(VAR2,8),30,0),STICK,COLORYELLOW,LINETHICK2;
V1 := REF(OPEN,1);
V2:=SMA(MAX(OPEN-V1 ,0),6,1)/SMA(ABS(OPEN-V1 ),6,1)*100;
V3:= REF(CLOSE,1);
V4:=SMA(MAX(CLOSE-V3,0),6,1)/SMA(ABS(CLOSE-V3),6,1)*100;
V5:= REF(HIGH,1);
V6:=SMA(MAX(HIGH-V5,0),6,1)/SMA(ABS(HIGH-V5),6,1)*100;
V7:= REF(LOW,1);
V8:=SMA(MAX(LOW-V7,0),6,1)/SMA(ABS(LOW-V7),6,1)*100;
STICKLINE(V4>V2,V2,V8,0,0),COLORRED;
STICKLINE(V4>V2,V6,V4,0,0),COLORRED;
STICKLINE(V4>V2,V4,V2,3,0),COLOR0000AA;
STICKLINE(V4>V2,V4,V2,2,0),COLOR0011BB;
STICKLINE(V4>V2,V4,V2,1,0) ,COLOR0022CC;
STICKLINE(V4<V2,V6,V2,0,0),COLORFFFF00;
STICKLINE(V4<V2,V8,V4,0,0),COLORFFFF00;
STICKLINE(V4<V2,V4,V2,3,0),COLORFFAA00;
STICKLINE(V4<V2,V4,V2,2,0),COLORFFBB11;
STICKLINE(V4<V2,V4,V2,1,0),COLORFFCC22;
值:MA(V4,5),LINETHICK2;
M10:MA(V4,10),LINETHICK2;
{上升下降线}
STICKLINE(CROSS(V4,值),V2,V8,0,0),COLOR33EEEE;
STICKLINE(CROSS(V4,值),V6,V4,0,0),COLOR33EEEE;
STICKLINE(CROSS(V4,值),V4,V2,3,0),COLOR33CCCC;
STICKLINE(CROSS(V4,值),V4,V2,2,0),COLOR33DDDD;
STICKLINE(CROSS(V4,值),V4,V2,1,0),COLOR33EEEE;
STICKLINE(CROSS(值,V4),V2,V8,0,0),COLOR00FF00;
STICKLINE(CROSS(值,V4),V6,V4,0,0),COLOR00FF00;
STICKLINE(CROSS(值,V4),V4,V2,3,0),COLOR008800;
STICKLINE(CROSS(值,V4),V4,V2,2,0),COLOR00BB00;
STICKLINE(CROSS(值,V4),V4,V2,1,0),COLOR00CC00;
LC := REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),4.1,1)/SMA(ABS(CLOSE-LC),4.1,1)*100;
RSV:=(CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100;
色:=REF(C,1);
A1:=SMA(MAX(C-色,0),6,1)/SMA(ABS(C-LC),6,1)*100;
A2:=SMA(MAX(C-色,0),24,1)/SMA(ABS(C-LC),24,1)*100;
STICKLINE(A1>=A2,-10,0,6,0),COLORRED;
STICKLINE(A1>=70 AND A1>=A2 AND A1<80,-10,0,6,0),COLORFFFF00;
STICKLINE(A1>=80 AND A1>A2,-10,0,6,0),COLORFF00FF;
STICKLINE(A1<A2,-10,0,6,0),COLORFFFFFF;
DRAWICON(A1>=70 AND A1>A2 AND V<REF(V,2) AND C<REF(C,1)*1.03,95,2);
DRAWICON(CROSS(J,1),16,1); |