VAR0:=(2*CLOSE+HIGH+LOW)/4;
B:=XMA((VAR0-LLV(LOW,63))/(HHV(HIGH,63)-LLV(LOW,63))*100,21);
RSV:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
做多线:=EMA(B,3);
做空线:=EMA(做多线,21);
多头:=CROSS(做多线,做空线);
XG:多头;