以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://www.weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://www.weistock.com/bbs/list.asp?boardid=4)
----  定时退出代码怎么写  (http://www.weistock.com/bbs/dispbbs.asp?boardid=4&id=97663)

--  作者:vivi926
--  发布时间:2016/5/20 14:44:55
--  定时退出代码怎么写
请问我想在开仓之后的10个K线周期后定时平仓,代码怎么写呢?
--  作者:jinzhe
--  发布时间:2016/5/20 14:56:36
--  

if enterbars=10 then sell........;

if enterbars=10 then sellshort.......;