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


金字塔客服中心 - 专业程序化交易软件提供商金字塔软件公式模型编写问题提交 → 代码表达是否正确的问题

   

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


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

主题:代码表达是否正确的问题

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


加好友 发短信
等级:新手上路 帖子:99 积分:30 威望:0 精华:0 注册:2013/3/13 9:06:39
代码表达是否正确的问题  发帖心情 Post By:2019/1/11 13:51:26    Post IP:180.169.30.6[只看该作者]

 //yyhl3760:=selfdata('yyhl3760');
//yyhl37day:=selfdata('yyhl37day');
yyhl3760:=STKINDI('','yt.hl37',0,5);
yyhl37day:=STKINDI('','yt.hl37',0,6);
(以上两个用法哪一个准确?,上面两个用法是否结果一致。,帮忙看一下,下面的语句是否能够正确表达出,三个买入点)
第一点0:=hl37>0 and ref(hl37,1)<0;
firsthour0:=if(yyhl3760>0 and 第一点0,1,if(yyhl3760<0,-1,0)); 
firsthour1:=if(firsthour0=0,ref(firsthour0,barslast(firsthour0<>0)),firsthour0);
第一点1:=firsthour1>0 and ref(firsthour1,1)<0;
firsthour2:=if(yyhl3760>0 and 第一点0 and ref(firsthour1,1)>0,1,if(yyhl3760<0,-1,0)); 
firsthour3:=if(firsthour2=0,ref(firsthour2,barslast(firsthour2<>0)),firsthour2);
第一点2:=firsthour3>0 and ref(firsthour3,1)<0;
firsthour4:=if(yyhl3760>0 and 第一点0 and ref(firsthour3,1)>0,1,if(yyhl3760<0,-1,0)); 
firsthour5:=if(firsthour4=0,ref(firsthour4,barslast(firsthour4<>0)),firsthour4);
第一点3:=firsthour5>0 and ref(firsthour5,1)<0;
firstday0:=if(yyhl37day>0 and 第一点0,1,if(yyhl37day<0,-1,0)); 
firstday1:=if(firstday0=0,ref(firstday0,barslast(firstday0<>0)),firstday0);
第一点10:=firstday1>0 and ref(firstday1,1)<0;
firstday2:=if(yyhl3760>0 and 第一点0 and ref(firstday1,1)>0,1,if(yyhl3760<0,-1,0)); 
firstday3:=if(firstday2=0,ref(firstday2,barslast(firstday2<>0)),firstday2);
第一点20:=firstday3>0 and ref(firstday3,1)<0;
firstday4:=if(yyhl3760>0 and 第一点0 and ref(firstday3,1)>0,1,if(yyhl3760<0,-1,0)); 
firstday5:=if(firstday4=0,ref(firstday4,barslast(firstday4<>0)),firstday4);
第一点30:=firstday5>0 and ref(firstday5,1)<0;
第一点:=第一点1 or 第一点10;
第二点:=第一点2 or 第一点20;
第三点:=第一点3 or 第一点30; 

 回到顶部