欢迎使用金字塔普通技术服务论坛,您可以在相关区域发表技术支持贴。
我司技术服务人员将优先处理 VIP客服论坛 服务贴,普通区问题处理速度慢,请耐心等待。谢谢您对我们的支持与理解。


金字塔客服中心 - 专业程序化交易软件提供商金字塔软件公式模型编写问题提交 → 请老师把该模型加上根据资金开仓

   

欢迎使用金字塔普通技术服务论坛,您可以在相关区域发表技术支持贴。
我司技术服务人员将优先处理 VIP客服论坛 服务贴,普通区问题处理速度慢,请耐心等待。谢谢您对我们的支持与理解。    


  共有2366人关注过本帖平板打印复制链接

主题:请老师把该模型加上根据资金开仓

帅哥哟,离线,有人找我吗?
FJ6008
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:论坛游民 帖子:209 积分:0 威望:0 精华:0 注册:2014/9/15 21:05:19
请老师把该模型加上根据资金开仓  发帖心情 Post By:2014/10/29 13:11:38    Post IP:182.32.73.242[只看该作者]

老师:请把该模型:1、加上保证金显示可开仓数量;2、用户自己可选择:开20%、50%、80%;

//均线交叉模型(K线走完模型):

runmode:0;

 variable:zs=0,cc=0;

 ma5:ma(c,5);

 ma20:ma(c,16);

 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

盈亏:asset,noaxis,COLORFFFFFF,NODRAW;     
收益:ROUND((asset-50000)/50000),linethick0;

 

 


 回到顶部