P1:=5;P2:=4;
VARR1:=LLV(LOW,P1);
VARR2:=HHV(HIGH,P1);
K:=EMA((CLOSE-VARR1)/(VARR2-VARR1)*100,P2),COLORGREEN,LINETHICK1;
D:=EMA(0.667*REF(K,1)+0.333*K,2);
RSVV:=(CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100;
VARB2:=(RSVV/2+22)*1;
量:=EMA(vol,13);
资金:=EMA(AMOUNT,13);
过滤:=((资金 /量) / 100);
提纯:=(((CLOSE -过滤) / 过滤) * 100);
黄金:=((提纯 < (0)) AND ZXNH);
准备:=IF(黄金 AND RSVV<VARB2-2,10,0);
准备1:=REF(准备,1) OR REF(准备,2) OR REF(准备,3) OR 准备;
买:=crOSS(K,D) AND 准备1;
买XG:买>0;