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


金字塔客服中心 - 专业程序化交易软件提供商金字塔软件策略编写求助区 → 求助策略编写

   

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


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

主题:求助策略编写

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


加好友 发短信
等级:论坛游侠 帖子:252 积分:1001 威望:0 精华:0 注册:2010/2/15 16:47:58
  发帖心情 Post By:2012/8/27 18:31:12 [只看该作者]

//周期:分笔成交

//版本:标准版

//合约:股指期货

 

long:=COUNT(BUYVOL,5)=5;
short:=COUNT(SELLVOL,5)=5;

 

//平空开多
if long and time>091500 and time<151000 then
begin
sellshort(holding<0,1,thisclose);
buy(holding=0,1,thisclose);
end

 

//平多开空
if short and time>091500 and time<151000 then
begin
sell(holding>0,1,thisclose);
buyshort(holding=0,1,thisclose);
end

 

//收盘前5分钟平仓
if time > 151000 then
 begin
 sell(holding > 0, 0, thisclose);
 sellshort(holding < 0, 0, thisclose);
 end


 回到顶部