R:=(CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100;
RR:=(R/2+22)*1;{WWW.}
A:=EMA(VOL,13);
B:=EMA(AMOUNT,13);
X:=((B/A)/100);
Y:=(((CLOSE-X)/X)*100);
Z:=((Y<(0))AND ZXNH);
买点:IF(Z AND R<RR-2,1,0),COLORRED;
DRAWTEXT((Z AND R<RR-2),0.05,'B'),COLORYELLOW;