以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  老师回答一下  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=49899)

--  作者:漫步金字塔
--  发布时间:2013/3/19 9:47:18
--  老师回答一下
 比如一根5分钟K线,从开盘100,收盘走到120.
我的策略是
if h>o+10 then buy(1,1,limitr,o+10);
if l<enterprice-5 then sell(1,1,limitr,enterprice-5);
加入K线是直接走上去的,历史测试他是会平仓的。如果实盘改成c时,c是当前最新价格,入场后没出现c<enterprice-5的情况,他是否会平仓呢?
--  作者:jinzhe
--  发布时间:2013/3/19 9:56:32
--  
不会。等c<enterprice-5满足了,就会平仓