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,COLORBLUE,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,COLORBLUE;
50,COLORBLACK,DOTLINE;
0,COLORLIMAGENTA;
N:=17;
M1:=3;
M2:=3;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:SMA(RSV,M1,1),COLORRED,LINETHICK1;
D:SMA(K,M2,1),COLORWHITE,LINETHICK1;
J:3*K-2*D,COLORLIBLUE,LINETHICK1;
IF(J<D,J,DRAWNULL),COLORCYAN;
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,'机会'),COLORRED;
STICKLINE(机会,0,100,0,0),,COLORRED;
机会C:=CROSS(J,-5);
DRAWTEXT(机会C,50,'机会'),COLORRED;
STICKLINE(机会C,-5,100,0,0),,COLORRED;
机会B:=CROSS(J,-10);
DRAWTEXT(机会B,50,'机会'),COLORRED;
STICKLINE(机会B,-10,100,0,0),,COLORRED;
风险:=CROSS(100,J);
DRAWTEXT(风险,50,'风险'),COLORRED;
STICKLINE(风险,100,0,0,0),,COLORRED;
风险C:=CROSS(105,J);
DRAWTEXT(风险C,50,'风险'),COLORRED;
STICKLINE(风险C,105,0,0,0),,COLORRED;
风险B:=CROSS(110,J);
DRAWTEXT(风险B,50,'风险'),COLORRED;
STICKLINE(风险B,110,0,0,0),,COLORRED;