N:=10;M1:=11;M2:=9;UPPER:=(1+M1/100)*MA(CLOSE,N);LOWER:=(1-M2/100)*MA(CLOSE,N);ENE:=(UPPER+LOWER)/2; XG:CROSS(LOWER,C); (已测试。该公式为完整版。) 精简版: N:=10;M2:=9;LOWER:=(1-M2/100)*MA(CLOSE,N);XG:CROSS(LOWER,C);