Rss & SiteMap

金字塔客服中心 - 专业程序化交易软件提供商 http://www.weistock.com/bbs/

专业程序化软件提供商
共5 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:关于两种模式并存,能解释一下吗?

1楼
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
2楼
FireScript 发表于:2017/9/19 13:13:55
2种模式?你是指走完K和固定轮询?建议多一点文字描述。
3楼
zwdqx 发表于:2017/9/19 14:56:16
上面是阿火的帖子,水平低不能理解,请老师帮助写一下周K线走完,macd金叉开多,盘中最高价回落7%止盈止损。
4楼
zwdqx 发表于:2017/9/19 14:58:52
后台交易
5楼
qq代人发帖 发表于:2017/9/19 15:27:55

走完K线与固定轮训模式共存 

参考此贴

http://www.weistock.com/bbs/dispbbs.asp?BoardID=10&ID=151891&skin=0

 

共5 条记录, 每页显示 10 条, 页签: [1]


Powered By Dvbbs Version 8.3.0
Processed in 0.01758 s, 3 queries.