UPPERL:= MA(HIGH,30)*(1+15/100);
UPPERS:= MA(HIGH,3)*(1+3/100);
LOWERS:= MA(LOW,3)*(1-3/100);
LOWERL:= MA(LOW,30)*(1-15/100);
W:EMA(IF(L<= LLV(L,30),SMA(ABS(L-REF(L,1)),30,1)/SMA(MAX(L-REF(L,1),0),30,1),0),3)*20,STICK,COLORYELLOW,LINETHICK2;
AA:=IF(UPPERS>UPPERL,90,100);
顶部:IF(AA=90,100,0),STICK,LINETHICK3,COLORFF7700;
IF(AA=90,50,0),STICK,LINETHICK3,COLOR000000;
VARO5:=LLV(LOW,27);
VARO6:=HHV(HIGH,34);
VARO7:=EMA((CLOSE-VARO5)/(VARO6-VARO5)*4,4)*25;
建仓区: IF((VARO7<10),-10,0) ,COLOR00CCFF,LINETHICK1;
100,COLORYELLOW;
50,COLORLIGRAY,DOTLINE;
0,COLORMAGENTA;
N:=17;
M1:=3;
M2:=3;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:SMA(RSV,M1,1),COLORWHITE,LINETHICK1;
D:SMA(K,M2,1),COLORRED,LINETHICK1;
J:3*K-2*D,COLORLIGREEN,LINETHICK1;
IF(J<D,J,DRAWNULL),COLORGREEN;
IF(J>D,J,DRAWNULL),COLOR4080FF;
机会A:=J<5;
风险A:=J>95;
STICKLINE(机会A,0,3,2,0),COLORFF0000;
STICKLINE(风险A,100,97,2,0),COLORFFFF80;
DRAWICON(CROSS(K,D),K,1);
DRAWICON(CROSS(D,K),D,2);
机会:=CROSS(J,0);
DRAWTEXT(机会,50,'机会'),COLORWHITE;
STICKLINE(机会,0,100,0,0),,COLORWHITE;
机会C:=CROSS(J,-5);
DRAWTEXT(机会C,50,'机会'),COLORWHITE;
STICKLINE(机会C,-5,100,0,0),,COLORWHITE;
机会B:=CROSS(J,-10);
DRAWTEXT(机会B,50,'机会'),COLORWHITE;
STICKLINE(机会B,-10,100,0,0),,COLORWHITE;
风险:=CROSS(100,J);
DRAWTEXT(风险,50,'风险'),COLORWHITE;
STICKLINE(风险,100,0,0,0),,COLORWHITE;
风险C:=CROSS(105,J);
DRAWTEXT(风险C,50,'风险'),COLORWHITE;
STICKLINE(风险C,105,0,0,0),,COLORWHITE;
风险B:=CROSS(110,J);
DRAWTEXT(风险B,50,'风险'),COLORWHITE;
STICKLINE(风险B,110,0,0,0),,COLORWHITE;