你好
摩台電子盤交易時間為 14:35~ 隔日凌晨兩點
因策略上設置一天只交易一次 但因收盤0200 以跨月本日限制 變成 交易時間內 會成交兩次 請問 要如何在 14:35~0200 間只限定一次交易程式語法??
if EntriesToday(date)<1 and K cross under D then sellshort("sellshort") 1 shares next bar at market; setstoploss(5*bigpointvalue) ;
另系統上 摩台電子盤的交易時間 跟 目前交易不同 是系統上的問題嗎 ??謝謝
if T = 0200 then value1 = 0;
if value1<1 and K cross under D then begin sellshort("sellshort") 1 shares next bar at market; value1 = value1 +1; end;
setstoploss(5*bigpointvalue) ;