請問,我如果設定設定交易時間為開盤後30分鐘到收盤前30分鐘這個區間,
台指期日盤的話我會寫
if time>=091500 and time<=131500 then begin XXXXXX.............
但是台指期夜盤會跨日,請問交易區間15:30~隔日04:30要怎麼寫比較好?
謝謝
請問,我如果設定設定交易時間為開盤後30分鐘到收盤前30分鐘這個區間,
台指期日盤的話我會寫
if time>=091500 and time<=131500 then begin XXXXXX.............
但是台指期夜盤會跨日,請問交易區間15:30~隔日04:30要怎麼寫比較好?
謝謝
假設你的主頻率是1分鐘,則可寫成:
if time>=153000 and time<=235900 or time>=0 and time<=043000 then begin XXXXXX
假設你的主頻率是5分鐘,則可寫成:
if time>=153000 and time<=235500 or time>=0 and time<=043000 then begin XXXXXX
1 評論