- UID
- 2
- 积分
- 2874674
- 威望
- 1387366 布
- 龙e币
- 1487308 刀
- 在线时间
- 13156 小时
- 注册时间
- 2009-12-3
- 最后登录
- 2024-11-24
|
- runmode:0;
- input:n1(4,1,100,1);
- input:n2(9,1,100,1);
- input:n3(18,1,100,1);
- ma1:=ma(close,n1);
- ma2:=ma(close,n2);
- ma3:=ma(close,n3);
- if holding=0 then begin
- if close>ma1 and ma1>ma2 and ma2>ma3 then
- buy(1,1,limitr,close);
- end
- //if holding=0 then begin
- // if close
- // buyshort(1,1,limitr,close);
- //end
- if holding>0 then begin
- if ma1
- sell(1,holding,limitr,close);
- end
- //if holding<0 then begin
- // if ma1>ma2 then
- // sellshort(1,holding,limitr,close);
- //end
- 资产:asset,noaxis,colormagenta;
- 次数:totaltrade,linethick0;
- 收益:(asset-30000)/30000,linethick0;
- 胜率:percentwin,linethick0;
- 出击:totaltrade/(count(date<>ref(date,1),0) 1),linethick0;
- 连亏:maxseqloss,linethick0;
- 连赢:maxseqwin,linethick0;
复制代码 |
论坛官方微信、群(期货热点、量化探讨、开户与绑定实盘)
|