以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  时间约束  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=54326)

--  作者:bob
--  发布时间:2013/7/26 11:07:49
--  时间约束
请问我想做时间约束 比如每个月的第三周才做交易 该如何表示?
--  作者:jinzhe
--  发布时间:2013/7/26 11:13:31
--  

variable:n=0;
if month<>ref(month,1) then n:=0;

if weekday<ref(WEEKDAY,1) then n:=1;

if n>3 then 开仓语句;