以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  请教周一开盘开仓1手周五收盘平仓1手怎么编写?  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=76794)

--  作者:sidadeapu
--  发布时间:2015/3/23 18:51:47
--  请教周一开盘开仓1手周五收盘平仓1手怎么编写?
请教周一开盘开仓1手周五收盘平仓1手怎么编写?
--  作者:jinzhe
--  发布时间:2015/3/27 9:05:08
--  

if weekday=1 then buy(holding=0,1,market);

if weekday=5 and time=closetime(0) then sell(1,0,market);