if rsi(close,14) cross under 70 then sellshort next bar at market;
if rsi(close,14) cross over 20 then buy next bar at market;
if marketposition=1 then sell next bar at entryprice + 20 stop;
if marketposition=-1 then buytocover next bar at entryprice + 20 stop;
多單停利
if marketposition=1 then sell next bar at entryprice + 20 limit;
多單停損
if marketposition=1 then sell next bar at entryprice - 20 stop;
空單停損
if marketposition=-1 then buytocover next bar at entryprice + 20 stop;
空單停利
if marketposition=-1 then buytocover next bar at entryprice - 20 limit;