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


金字塔客服中心 - 专业程序化交易软件提供商金字塔软件公式模型编写问题提交 → 请教高手

   

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


  共有2480人关注过本帖树形打印复制链接

主题:请教高手

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


加好友 发短信
等级:新手上路 帖子:59 积分:358 威望:0 精华:0 注册:2012/4/13 14:03:48
请教高手  发帖心情 Post By:2013/7/8 9:43:26    Post IP:218.60.148.9[显示全部帖子]

我想卖在买一 买在卖一,如何修改下面的下单组件

longcond:=a;
shortcond:=b;;

if holding=0 then begin
 if longcond then
  buy(1,N1,THISCLOSE);
end

if holding=0 then begin
 if shortcond then
  buyshort(1,N1,THISCLOSE);
end

if holding>0 then begin
 if shortcond then begin
  sell(1,holding,THISCLOSE);
  buyshort(1,N1,THISCLOSE);
 end 
 

end

if holding<0 then begin
 if longcond then begin
  sellshort(1,holding,THISCLOSE);
  buy(1,N1,THISCLOSE);
 end

end











收益:asset,noaxis,colorred;
次数:totaltrade,linethick0;
胜率:percentwin,linethick0;
连亏:maxseqloss,linethick0;
连赢:maxseqwin,linethick0;

 回到顶部
帅哥哟,离线,有人找我吗?
kongfzchina
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:新手上路 帖子:59 积分:358 威望:0 精华:0 注册:2012/4/13 14:03:48
  发帖心情 Post By:2013/7/8 11:07:00    Post IP:218.60.148.9[显示全部帖子]

谢谢

 回到顶部