以文本方式查看主题
- 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp)
-- 公式模型编写问题提交 (http://weistock.com/bbs/list.asp?boardid=4)
---- 限价止损 (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=31139)
|
-- 作者:linrsam
-- 发布时间:2012/12/4 10:09:03
-- 限价止损
老师请教下
如何在模型测试中
多头为例
以最低价<enterprice-10作为止损
然后测试出来的结果是止损都限价在enterprice-10这个价格上, 而不是收盘价。
比如IF LOW<enterprice-10
但是收盘价是enterprice-11.4
如何得到限价让 LOW<enterprice-10 的时候 以enterprice-10的价格平仓 只求测试结果 有未来函数也行
|
-- 作者:fly
-- 发布时间:2012/12/4 10:17:07
--
SELL(LOW<enterprice-10 AND holding>0,1,LIMIT,enterprice-10);
//如果有多头持仓,以enterprice-10价格挂单子;
//结果:成交价≥enterprice-10
|
-- 作者:linrsam
-- 发布时间:2012/12/4 10:25:36
-- 回复:(fly) SELL(LOW<enterprice-10 A...
此主题相关图片如下:未命名.jpg

|
-- 作者:linrsam
-- 发布时间:2012/12/4 10:26:07
--
还是以收盘价作为平仓价格哦
|
-- 作者:saveric
-- 发布时间:2013/1/1 11:23:03
-- 这种方式是不是单子一直挂者
这种方式是不是,多单一成交,限价止损单就挂在期货公司的委托里面了?
|