以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://weistock.com/bbs/list.asp?boardid=4) ---- 跌幅超过5%就卖掉 怎么写 (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=148887) |
-- 作者:sisz -- 发布时间:2017/3/9 11:02:17 -- 跌幅超过5%就卖掉 怎么写 跌幅超过5%就卖掉 怎么写 还有如果 跌幅超过5日线 就卖 怎么写 谢谢老师 |
-- 作者:jinzhe -- 发布时间:2017/3/9 11:14:46 -- 1 if (c-ref(c,1))/ref(c,1)<=-0.05 then sell(1,0,market); 2 if c<ma(c,5) then seell(1,0,market); |