环境5分钟:IFF(PERIOD!=0,1,DRAWNULL),NODRAW,COLORRED;
{ NUMERIC N(9,1,99,1),M1(3,1,99,1),M2(3,1,99,1);}
N:=9;
M1:=3;
M2:=3;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:SMA(RSV,M1,1),COLORWHITE;
D:SMA(K,M2,1),COLORYELLOW;
J:3*K-2*D,COLORMAGENTA;
J1:=HHV(J,20);
J2:=LLV(J,20);
风险:MA(J1,60),COLORGREEN;
机会:MA(J2,60),COLORYELLOW;
平衡:((风险-机会)/2)+机会,POINTDOT,COLORWHITE;
NOTICE1:=(((风险-机会)*90/100)+机会);
NOTICE2:=(((风险-机会)*10/100)+机会);
SEL1:=HHV(K,3)>NOTICE1 AND CROSS(D,K);
BUY1:=LLV(K,3)<NOTICE2 AND CROSS(K,D);
DRAWICON(SEL1,100,71);
DRAWICON(BUY1,10,71);