以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://weistock.com/bbs/list.asp?boardid=4) ---- 提个问题!! (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=90830) |
-- 作者:再水一方 -- 发布时间:2016/1/29 22:38:42 -- 提个问题!! 上一个周期收阳线 则在下周期设个条件(比如说比上个周期收盘价+5)开多,如果开多止损设在比开多价格低5平多,如果价格上移止损相应上移至本周期价格下5点。 |
-- 作者:jinzhe -- 发布时间:2016/2/1 9:02:42 -- if ref(isup,1) and close>ref(close,1)+5 then buy(holding=0,1,marketr);
if c<enterprice-5 and enterbars>0 then sell(1,0,marketr);
if enterbars>0 and c<hhv(h,enterbars+1)-5 then sell(1,0,marketr); |