vars : op(0),cl (0),hi(0),lo(0)
op = (op[1]+cl[1])/2
cl = (open + High + Low + close )/4
hi = max(high,op,cl)
lo = min(low,op,cl)
if time>084500 and time<133000 then
if op> op[1] then
buy next bar at market
end if
if op < op[1] then
sell next bar at market
end if
end if
IF TIME >= 134000 THEN EXITLONG("多平沖") EXITSHORT("空平沖") END IF
op = (op[1]+cl[1])/2
cl = (open + High + Low + close )/4
hi = max(high,op,cl)
lo = min(low,op,cl)
if time>084500 and time<133000 then
if op> op[1] then
buy next bar at market
end if
if op < op[1] then
sell next bar at market
end if
end if
IF TIME >= 134000 THEN EXITLONG("多平沖") EXITSHORT("空平沖") END IF
沒有留言:
張貼留言