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


金字塔客服中心 - 专业程序化交易软件提供商金字塔软件公式模型编写问题提交 → 如何编写出信号后回抽到五日线买入?

   

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


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

主题:如何编写出信号后回抽到五日线买入?

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


加好友 发短信
等级:论坛游侠 帖子:449 积分:0 威望:0 精华:0 注册:2016/9/9 19:10:49
不知为何 出现barlsat不能直接在if控制的语句中使用?  发帖心情 Post By:2016/11/8 4:20:23    Post IP:120.219.255.74[只看该作者]

我把下面的代码

nnd:=barslast(holding=0 and tmp<=0 and tmp2);
if nnd>=1 and nnd<=4 and bjd=0 and l-0.02<ma5 then begin
开多d_2:buy(1,1,market);
bjd:=1;
end
if nnd>=5 then bjd:=0;

 

 

 

改成了这个:

if time>070001 and time<170000 then begin
ddt:=0.02;
if not(time>070001 and time<=170000)then begin
ddt:=0.07;

end


nnd:=barslast(holding=0 and tmp<=0 and tmp2);
if nnd>=1 and nnd<=4 and bjd=0 and l-ddt<ma5 then begin
 开多d_2:buy(1,1,market);
 bjd:=1;
end
if nnd>=5 then bjd:=0;

 

接下来的代码出现了提示barslat函数不能直接在if控制的语句中使用,如何控制时间来改变ddt的值


 回到顶部
总数 314 1 2 3 4 5 6 7 8 9 10 下一页 ..32