COCO研究院

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

请问如何在backtest里设定T+1?

[複製鏈接]
發表於 14-1-26 12:49 | 顯示全部樓層 |閱讀模式
试过加上SetOption("HoldMinDays",1),但看回测结果实际效果却是T+2。

發表於 14-1-30 04:12 | 顯示全部樓層
本帖最後由 joshsmi 於 14-1-30 04:13 編輯

??

What to look at? Nothing there

From help file

"HoldMinDays - Number - if set to value > 0 - it disables exit during user-specified number of CALENDAR DAYS (not bars) even if signals/stops are generated during that period"
 樓主| 發表於 14-1-30 23:54 | 顯示全部樓層
From my test,the "HoldMinDays" option does not work like help saying.
I have tried SetOption("HoldMinDays",1) in AFL.
If it buy stock in 1.20,it will exit the long position in 1.22 instead of in 1.21.
您需要登錄後才可以回帖 登錄 | 註冊

本版積分規則

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

GMT+8, 24-12-23 15:02

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回復 返回頂部 返回列表
理財討論網站 |