以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://weistock.com/bbs/list.asp?boardid=4) ---- 【求助】请老师帮忙看看我这个策略怎么编写,谢谢! (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=82925) |
-- 作者:sz1987cn -- 发布时间:2015/8/12 15:51:01 -- 【求助】请老师帮忙看看我这个策略怎么编写,谢谢! 连续三个红线(C>OPEN)且连创新高以后第四根棒线开多,连续三个绿线(C<OPEN)且连创新低以后反手(开空)。麻烦老师了,谢谢! |
-- 作者:jinzhe -- 发布时间:2015/8/12 15:53:35 -- if ref(all(isup,3) and all(h>ref(h,1),3),1) then buy(holding=0,1,market); if ref(all(isdown,3) and all(l<ref(l,1),3),1) then buyshort(holding=0,1,market); [此贴子已经被作者于2015/8/12 15:53:43编辑过]
|