以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://weistock.com/bbs/list.asp?boardid=4) ---- 老师。你好 (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=17233) |
-- 作者:左下右上 -- 发布时间:2012/8/28 10:42:24 -- 老师。你好 当连续出现4次亏损后,增加平仓条件,多为1阴包3阳和当前k线的收般价小于前5k线的收般价。空为1阳包3阴和当前k线的收般价大于前5k线的收般价。
谢谢了! |
-- 作者:just -- 发布时间:2012/8/28 11:22:34 -- if NUMLOSSTRADE>=4 and count(c>o,4)=3 and all(c>o,3) and holding>0 and c<ref(c,5) then sell(1,0,market); if NUMLOSSTRADE>=4 and count(c<o,4)=3 and all(c<o,3) and holding<0 and c>ref(c,5) then sellshort(1,0,market); 仅供参考 |
-- 作者:左下右上 -- 发布时间:2012/8/29 14:28:58 -- 谢谢,老师 |