花生网

标题: 请教Month函数的用法? [打印本页]

作者: hyratso    时间: 2013-4-25 12:20     标题: 请教Month函数的用法?

比如我想在策略中实现1,2.3月份只允许开多,456月份只允许开空。
多谢

作者: bt11    时间: 2013-4-25 14:30

if 开多条件满足 then
  if month=1 or month=2 or month=3 then buy;
作者: hyratso    时间: 2013-5-31 09:31

bt11 发表于 2013-4-25 14:30
if 开多条件满足 then
  if month=1 or month=2 or month=3 then buy;

非常感谢~




欢迎光临 花生网 (http://hs633.com/) Powered by Discuz! X2