以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://www.weistock.com/bbs/index.asp)
--  金字塔软件问题提交  (http://www.weistock.com/bbs/list.asp?boardid=2)
----  如何设置只在每周周一交易?  (http://www.weistock.com/bbs/dispbbs.asp?boardid=2&id=152217)

--  作者:jjjfk
--  发布时间:2017/4/27 8:55:32
--  如何设置只在每周周一交易?
请问如何设置只在每周周一交易?如果设置为其他工作日呢,又如何设置?
--  作者:gxx978
--  发布时间:2017/4/27 8:59:28
--  
参考函数WEEKDAY
--  作者:jjjfk
--  发布时间:2017/4/27 10:08:00
--  
比如这样?

a1:ref(hhv(high,20),1);
if holding=0 and close>a1 and weekday(1)
then begin 
.................

--  作者:gxx978
--  发布时间:2017/4/27 10:25:08
--  
a1:ref(hhv(high,20),1);
a2:weekday;
if holding=0 and close>a1 and a2=1;
then begin 
.................