condition1=close cross over average(close,MA參數)
condition2=close cross below average(close,MA參數)
if condition1 and time <= 132500 then
buy("多") next bar at market
end if
if condition2 and time <= 132500 then
sell("空") next bar at market
end if
IF (TIME >= 134000) THEN
IF CURRENTCONTRACTS = 1 THEN
EXITLONG ("多單平倉不留倉") NEXT BAR AT MARKET
END IF
IF CURRENTCONTRACTS = -1 THEN
EXITSHORT ("空單平倉不留倉") NEXT BAR AT MARKET
END IF
END IF