P1:=5;
P2:=4;
VARRA:=LLV(LOW,P1);
VARRB:=HHV(HIGH,P1);
涨停动力线:=EMA((CLOSE-VARRA)/(VARRB-VARRA)*100,P2);
涨停趋势线:=EMA(0.667*REF(涨停动力线,1)+0.333*涨停动力线,2);
金叉:=crOSS(涨停动力线,涨停趋势线);
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K1:=SMA(RSV,3,1),COLORWHITE;
D1:=SMA(K1,3,1),COLORYELLOW ;
bias1:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
A11:=CROSS(K1,D1) AND CROSS(K1,D1)<16 AND BIAS1<-6;
黄金反弹:IF(A11 AND 金叉,29,0);