金字塔动量突破交易系统策略源码[金字塔模型]
相关标签:5分钟动量交易系统,期货日内动量交易,5分钟动量交易法详解,日内动量交易,动量交易方法,动量交易,外汇交易动量14是什么,动量交易法,动量策略,
模型策略源码:
 
 runmode:0;
 input:period(20,5,100,5);
 variable:myasset=30000;
 entertime:=time>=092500 and time<=145500;
 exittime:=time>=150000;
 buycond:=entertime and ref(close,1)>ref(close,period);
 buyprice:=open;
 buyshortcond:=entertime and ref(close,1)<ref(close,period);
 buyshortprice:=open;
 if holding=0 and buycond then begin
     buy(1,1,limitr,buyprice);
 end
 if holding=0 and buyshortcond then begin
     buyshort(1,1,limitr,buyshortprice);
 end
 if holding>0 and exittime then begin
     sell(1,holding,limitr,close);
 end
 if holding<0 and exittime then begin
     sellshort(1,holding,limitr,close);
 end
 if exittime then
     myasset:=asset;
     
资产:myasset,noaxis,colormagenta;
 次数:totaltrade,linethick0;
 收益:(myasset-30000)/30000,linethick0;
 胜率:percentwin,linethick0;
 出击:totaltrade/(count(date<>ref(date,1),0)+1),linethick0;
 连亏:maxseqloss,linethick0;
 连赢:maxseqwin,linethick0;
 
{别忘了将本网告诉您身边的朋友,向朋友传达有用资料,也是一种人情,你朋友会感谢你的。}
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 262069696  进行 有偿 编写!(不贵!点击查看价格!)
                    
相关文章
- 
                        没有相关内容
                       

 
                     会员登录/注册
会员登录/注册