COCO研究院

 找回密碼
 註冊
搜索
查看: 1823|回復: 2

[其他程式語言] 日盛STS特定時間出場問題

[複製鏈接]
發表於 16-7-3 21:22 | 顯示全部樓層 |閱讀模式
小弟有個問題
如果交易程式是使用60分K進場,但出場是第3天的開盤
這樣有辦法實現嗎?
發表於 16-7-4 11:16 | 顯示全部樓層
本帖最後由 blj0511 於 16-7-4 11:18 編輯

var:counter(0);



if d>d[1] and marketposition<>0 then
        counter=counter+1
end if

{您的進場條件}




if entrydate(0)=date then counter=0 end if

if counter=1 and time>132500 then
        exitlong("exitlong") next bar at market
        exitshort("exitshort") next bar at market
end if


 樓主| 發表於 16-7-5 22:57 | 顯示全部樓層

喔喔 學到了 謝謝您的幫忙!
您需要登錄後才可以回帖 登錄 | 註冊

本版積分規則

手機版|Archiver|站長信箱|廣告洽詢|COCO研究院

GMT+8, 24-6-3 18:02

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回復 返回頂部 返回列表
理財討論網站 | AI繪圖AI超擬真美女AI beauty AI Stable DiffusionAI正妹AI Lookbook