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


金字塔客服中心 - 专业程序化交易软件提供商金字塔软件公式模型编写问题提交 → 图表交易信号多次出现

   

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


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

主题:图表交易信号多次出现

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


加好友 发短信
等级:管理员 帖子:5082 积分:17642 威望:0 精华:6 注册:2010/7/15 9:05:58
  发帖心情 Post By:2016/8/30 14:03:45    Post IP:180.169.30.6[只看该作者]

调换了一下顺序,您本地用模拟交易试试
 
c1:=all(c>o,2) ;
c2:=c>ref(c,1);
c3:=any(c-o>a*mindiff,2);
c4:=all(h-c<a*mindiff,2);
c5:=all(vol>b,2);
c6:=c1 and c2 and c3 and c4 and c5;
 
if h>ref(ref(hhv(h,3),1),enterbars) then sellshort(holding<0,0,market);
if c<enterprice-d*mindiff then sellshort(holding<0,0,market);

 

if ref(c6,1) then buy(holding=0,1,market);
 
if L<ref(ref(llv(l,3),1),enterbars) then sell(holding>0,0,market);
if c>enterprice+d*mindiff then sell(holding>0,0,market); 
 
 if ref(all(c<o,2) and c<ref(c,1) and any(o-c>a*mindiff,2)  and all(c-l<a*mindiff,2) and all(vol>b,2),1) then buyshort(holding=0,1,market);
 
 
 
if time0>=timetot0(closetime(0))-5*60 then begin
    sell(holding>0,0,market);
    sellshort(holding<0,0,market);
end
[此贴子已经被作者于2016-8-30 14:58:40编辑过]


金字塔—专业程序化交易量化投资平台

客户服务部

-----------------------------------------------------------

欢迎您参加我公司的技术培训,具体培训需求请发邮件到

service@weistock.com

您的宝贵建议或者投诉,请发往邮箱:weiwei@weistock.com

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