《HTS程式交易教學》[教學信號]平均k線買賣訊號範例

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

沒有留言:

張貼留言

《HTS程式交易教學》[教學信號]KD買賣訊號範例[免費訊號教學]

Parameters : HighLowTerm(9), kLength(3), dLength(3), OverSold(20), OverBought(80) variables:value(0),value2(0); 1.系統平台僅供參考,投資人仍需自行判斷負責,本人...