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


金字塔客服中心 - 专业程序化交易软件提供商金字塔软件公式模型编写问题提交 → 各位老师帮我看看后台交易语句是否正确

   

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


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

主题:各位老师帮我看看后台交易语句是否正确

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


加好友 发短信
等级:新手上路 帖子:47 积分:630 威望:0 精华:0 注册:2012/4/29 16:17:21
各位老师帮我看看后台交易语句是否正确  发帖心情 Post By:2012/6/14 14:08:14    Post IP:221.232.219.40[只看该作者]

麻烦了

 

//建立多头的进场条件
if ysr>yru and ysr>yzn and ysr>yl and ysr>yta and ysr>ycf and ysr>yrb and ysr>ycu and ysr>yy and ysr>yp and ysr>ya and ysr>ym then
     begin
     buy(1 and holding=0 and t1 and c>o1 and a4 ,1,thisclose); 
     tbuy(1 and holding=0 and t1 and c>o1 and a4 ,1,lmt,c,0,'','srx00');
     end

//平多仓
if ysr<yru or ysr<yzn or ysr<yl or ysr<yta or ysr<ycf or ysr<yrb or ysr<ycu or ysr<yy or ysr<yp or ysr<ya or ysr<ym then
 begin
 SELL(1 and holding>0,0,thisclose);
 tsell(1 and b5 and holding > 0,0,lmt,c,0,'','srx00');
 end    

if  (t2)  then
 begin
 SELL(1 and holding>0,0,thisclose);
 tsell(1 and holding > 0,0,lmt,c,0);
 end    
if  (c<o1 and b5)  then
 begin
 SELL(1 and holding>0,0,thisclose);
 tsell(1 and holding > 0,0,lmt,c,0);
 end    

 

//建立空头的进场条件

if ysr<yru and ysr<yzn and ysr<yl and ysr<yta and ysr<ycf and ysr<yrb and ysr<ycu and ysr<yy and ysr<yp and ysr<ya and ysr<ym  then
     begin
  
     buyshort(1 and holding = 0 and t1 and c<o1 and b5,1,thisclose);
     tbuyshort(1 and holding = 0 and t1 and c<o1 and b5,1,lmt,c,0,'','srx00');
     end

 

//平空仓
if ysr>yru or ysr>yzn or ysr>yl or ysr>yta or ysr>ycf or ysr>yrb or ysr>ycu or ysr>yy or ysr>yp or ysr>ya or ysr>ym then
 begin
 sellshort(1 and holding<0,0,thisclose);
 tsellshort(1 and b5 and holding < 0,0,lmt,c,0,'','srx00');
 end        

 

if (t2) then
 begin
 sellshort(1 and holding<0,0,thisclose);
 TSELLshort(1 and holding <0,0,lmt,c,0);
 end

if  (c<o1 and b5)  then
 begin
 SELLshort(1 and holding<0,0,thisclose);
 tsellshort(1 and holding< 0,0,lmt,c,0);
 end    

 

我加入后台交易  没反应  不知道问题在哪?


 回到顶部