Rss & SiteMap

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

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

标题:请问可否设置为自动换主力合约呢?谢谢

1楼
xxb398 发表于:2012/10/17 9:31:52
我一直交易的股指连续,但换合约时需要手动。请问可否设置为自动换主力合约呢?谢谢
2楼
jinzhe 发表于:2012/10/17 9:41:17

系统暂时无此设置,但是主力合约换月后,系统会有提示。

3楼
xxb398 发表于:2012/10/17 10:42:55
有否自动换主力合约的程序代码呢?
4楼
jinzhe 发表于:2012/10/17 10:50:17

 


v0:=callstock('if00',vtvol,6);
v1:=callstock('if01',vtvol,6);
v2:=callstock('if02',vtvol,6);
v3:=callstock('if03',vtvol,6);
v4:=callstock('if04',vtvol,6);
v5:=callstock('if05',vtvol,6);
v6:=callstock('if06',vtvol,6);
v7:=callstock('if07',vtvol,6);
v8:=callstock('if08',vtvol,6);
v9:=callstock('if09',vtvol,6);
v10:=callstock('if10',vtvol,6);
v11:=callstock('if11',vtvol,6);
v12:=callstock('if12',vtvol,6);
nn:if (v0=v1 ,01 ,if(v0=v2,02,if(v0=v3,03,if(v0=v4,04,if(v0=v5,05,if(v0=v6,06,if(v0=v7,07,if(v0=v8,08,if(v0=v9,09,if(v0=v10,10,if(v0=v11,11,12)))))))))));
用这段代码来判断连续合约的月份,NN就是月份

5楼
xxb398 发表于:2012/10/17 11:55:58

谢谢

共5 条记录, 每页显示 10 条, 页签: [1]


Powered By Dvbbs Version 8.3.0
Processed in 0.03125 s, 2 queries.