Rss & SiteMap

金字塔客服中心 - 专业程序化交易软件提供商 http://www.weistock.com/bbs/

专业程序化软件提供商
共2 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:以沪指为运行标的判断开平仓

1楼
qq代人发帖 发表于:2015/7/6 10:03:57

以沪指为运行标的判断开平仓,交易标的if1507

这个怎么改

 

ma5:ma(close,5);

ma15:ma(close,15);


 

//开多

if CROSS(ma5,ma15) and time>090100 and time<145000 then

begin

sellshort(holding<0,1,thisclose);

buy(holding=0,1, thisclose);

end

//开空

if CROSS(ma15,ma5) and time>090100 and time<145000 then

begin

sell(holding>0,1,thisclose);

buyshort(holding=0,1, thisclose);

end

2楼
jinzhe 发表于:2015/7/6 10:05:19
启用下单品种映射,交易在股票上,再映射到股指上
图片点击可在新窗口打开查看此主题相关图片如下:1.png
图片点击可在新窗口打开查看
共2 条记录, 每页显示 10 条, 页签: [1]


Powered By Dvbbs Version 8.3.0
Processed in 0.02734 s, 3 queries.