以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://www.weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://www.weistock.com/bbs/list.asp?boardid=4) ---- 关于两种模式并存,能解释一下吗? (http://www.weistock.com/bbs/dispbbs.asp?boardid=4&id=158041) |
-- 作者:zwdqx -- 发布时间:2017/9/19 12:43:19 -- 关于两种模式并存,能解释一下吗? runmode:0; variable:zs=0,cc=0; ma5:=ma(c,5); ma20:=ma(c,20); entertime:=time>100000 and time<144500; if holding>0 and cc<=0 then sell(1,1,limitr,o); // if holding<0 and cc>=0 then sellshort(1,1,limitr,o); if holding=0 and cc>0 then buy(1,1,limitr,o); if holding=0 and cc<0 then buyshort(1,1,limitr,o); if cc>0 and l<zs then begin // sell(1,1,limitr,min(o,zs-0.6));// cc:=0; end if cc<0 and h>zs then begin sellshort(1,1,limitr,max(o,zs+0.6));// cc:=0; end if cc>0 and ma5<ma20 then cc:=0; if cc<0 and ma5>ma20 then cc:=0; if cc=0 and ma5>ma20 and entertime then begin cc:=1; zs:=c-10; // end if cc=0 and ma5<ma20 and entertime then begin cc:=-1; // zs:=c+10; // end if time>=150000 then begin cc:=0; end |
-- 作者:FireScript -- 发布时间:2017/9/19 13:13:55 -- 2种模式?你是指走完K和固定轮询?建议多一点文字描述。 |
-- 作者:zwdqx -- 发布时间:2017/9/19 14:56:16 -- 上面是阿火的帖子,水平低不能理解,请老师帮助写一下周K线走完,macd金叉开多,盘中最高价回落7%止盈止损。 |
-- 作者:zwdqx -- 发布时间:2017/9/19 14:58:52 -- 后台交易 |
-- 作者:qq代人发帖 -- 发布时间:2017/9/19 15:27:55 -- 走完K线与固定轮训模式共存 参考此贴 http://www.weistock.com/bbs/dispbbs.asp?BoardID=10&ID=151891&skin=0
|