N:=1;
{多头买入} ENTERLONG:(CLOSE*2+HIGH+LOW)/4>(REF(CLOSE,N)*2+REF(HIGH,N)+REF(LOW,N))/4; ;
{多头卖出} EXITLONG:=(CLOSE*2+HIGH+LOW)/4<(REF(CLOSE,N)*2+REF(HIGH,N)+REF(LOW,N))/4; ;
N:=1;
{多头买入} ENTERLONG:(CLOSE*2+HIGH+LOW)/4>(REF(CLOSE,N)*2+REF(HIGH,N)+REF(LOW,N))/4; ;
{多头卖出} EXITLONG:=(CLOSE*2+HIGH+LOW)/4<(REF(CLOSE,N)*2+REF(HIGH,N)+REF(LOW,N))/4; ;