input:n(24) ;
variable:MA1(0),BIAS(0);
MA1 = average(close , n);
BIAS = ((close - MA1) / MA1)*100;
if BIAS > 8 then
exitlong next bar at market;
if BIAS < -7 then
buy next bar at market;
if BIAS > 8 then
sell next bar at market;// www.cxh99.com
if BIAS < -7 then
exitshort next bar at market;