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


金字塔客服中心 - 专业程序化交易软件提供商金字塔软件金字塔软件问题提交 → 金字塔报错求助

   

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


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

主题:金字塔报错求助

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


加好友 发短信
等级:新手上路 帖子:29 积分:91 威望:0 精华:0 注册:2012/4/9 17:39:52
  发帖心情 Post By:2012/4/27 16:02:29 [只看该作者]

openprice:=callstock(stklabel,vtopen,6,0);

//机械止损
jxzs:=openprice*zsbl/1000;
sellshort(high-enterprice>jxzs and holding<0,0,limitr,enterprice+jxzs);
sell(enterprice-low>jxzs and holding>0,0,limitr,enterprice-jxzs);

//机械止盈
zzqd:=openprice*zybl/1000;
sellshort(holding<0 and enterprice-low>zzqd ,0,limitr,enterprice-zzqd);
sell(holding>0 and h-enterprice>zzqd ,0,limitr,enterprice+zzqd);

//不留隔夜单,以当日收盘价平仓
 
 if time>150000 and holding>0 then
  begin  
    sell(holding>0,0,thisclose);
     end 
   

 if time>150000 and holding<0 then
  begin  
    sellshort(holding<0,0,thisclose);
     end
    
//开仓条件数据
k1:="kdj.k";
d1:="kdj.d";
j1:="kdj.j";

 

short:=j1<ref(j1,1);
long:=j1>ref(j1,1) ;

p:=close;
   
 if short and time<150000
 then
 begin
  sell(holding>0,0,limitr,p);  //先平后开
   buyshort(holding=0,1,limitr,p);
   end
  
 if long and time<150000
 then
 begin
  sellshort(holding<0,0,limitr,p); //先平后开
   buy(holding=0,1,limitr,p);
   end


 回到顶部
总数 25 1 2 3 下一页