以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://weistock.com/bbs/list.asp?boardid=4) ---- 这个语句能不能这么写? (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=144824) |
-- 作者:zwdqx -- 发布时间:2016/12/15 19:05:27 -- 这个语句能不能这么写? if (R or K) and macd>ref(macd,1) and CURRENTTIME>103000 and tbuyholding(1)=0 and TTOTALDAYTRADE<1 then tbuy(\' \',10000/close,mkt); if。。。then语句之间的条件满足了,就限价买10000元,这个语句对不对,红色区域能不能怎么写? |
-- 作者:wenarm -- 发布时间:2016/12/15 19:42:47 -- 不可以,tbuy参数1,是条件这个不能省略。你如果是希望,满足if then 后就开仓,可以用1代替,表示恒成立 |