以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://weistock.com/bbs/list.asp?boardid=4) ---- [原创]请教限价指令 (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=52488) |
-- 作者:木鱼石传说 -- 发布时间:2013/5/27 17:18:27 -- [原创]请教限价指令 关于限价指令的评测和实盘交易问题请教,如下代码: if cond then begin sellshort(holding < 0 , 0,limitr,close),orderqueue; buy(holding = 0, 1,limitr,close),orderqueue; end if cond then begin sell(holding > 0, 0,limitr,close),orderqueue; buyshort(holding = 0, 1,limitr,close),orderqueue; end 请问,上述代码评测时是否是以本周期收盘价进行评测?而成交时将以优于本周期收盘价的价格开平仓,对吗? 若把代码改如成下: if cond then begin sellshort(holding < 0 , 0,limitr,close-2*mindiff),orderqueue; buy(holding = 0, 1,limitr,close-2*mindiff),orderqueue; end if cond then begin sell(holding > 0, 0,limitr,close+2*mindiff),orderqueue; buyshort(holding = 0, 1,limitr,close+2*mindiff),orderqueue; end 请教:评测时,将以什么价格评测?是分别以close-2*mindiff和close+2*mindiff价格评测,还是仍然以本周期收盘价评测?如果次周期没有close-2*mindiff或close+2*mindiff的价格出现,那么该信号是否纳入评测?
|
-- 作者:jinzhe -- 发布时间:2013/5/27 17:20:43 -- 按照本周期收盘价+-2个点测评,在本周期操作,不在次周期进行操作 |
-- 作者:木鱼石传说 -- 发布时间:2013/5/27 19:40:08 -- 不甚理解,还是请老师逐一回答我上面的疑问,这样我才能理解~ |
-- 作者:王锋 -- 发布时间:2013/5/27 19:57:37 -- 自己在图表上看看信号位置不就很清楚了么。 凡事学会自己动手 |
-- 作者:木鱼石传说 -- 发布时间:2013/5/27 20:55:45 -- 谢谢,不提醒不知道~ |