17评论

0收藏

请牛版老师看看这个指标哪里出了问题

avatar 628719 | 4973 人阅读 | 17 人评论 | 2011-11-20

这个指标我今天在网上看到的,看上去挺不错,下载安装后,打开时MT4显示没有反应,然后MT4动不了了,不知道怎么回事,请老师帮忙看看是哪里出了问题,然后改改,谢谢!
                2012-8-17 14:41 上传
  下载附件 (21.21 KB)   
  
  
      
  游客,如果您要查看本帖隐藏内容请回复

  • #property indicator_chart_window
  • #property indicator_buffers 2
  • #property indicator_color1 MediumBlue
  • #property indicator_color2 Crimson


  • extern bool EmailAlert=true;
  • extern bool AudioAlert=false;

  • //---- buffers
  • double ExtMapBuffer1[];
  • double ExtMapBuffer2[];

  • //+------------------------------------------------------------------+
  • //| Custom indicator initialization function |
  • //+------------------------------------------------------------------+
  • int init()
  • {
  • //---- indicators
  • SetIndexStyle(0,DRAW_ARROW,STYLE_SOLID, 2);
  • SetIndexArrow(0,233);
  • SetIndexBuffer(0,ExtMapBuffer1);
  • SetIndexEmptyValue(0,0.0);
  • SetIndexStyle(1,DRAW_ARROW,STYLE_SOLID, 2);
  • SetIndexArrow(1,234);
  • SetIndexBuffer(1,ExtMapBuffer2);
  • SetIndexEmptyValue(1,0.0);


  • //----
  • return(0);
  • }
  • //+------------------------------------------------------------------+
  • //| Custom indicator deinitialization function |
  • //+------------------------------------------------------------------+
  • int deinit()
  • {
  • //----

  • //----
  • return(0);
  • }
  • //+------------------------------------------------------------------+
  • //| Custom indicator iteration function |
  • //+------------------------------------------------------------------+
  • int start()
  • {

  • int shift;
  • bool up1,up2,down1,down2;
  • for(shift=Bars-1;shift>=0;shift--)
  • {

  • ExtMapBuffer1[shift] = 0; ExtMapBuffer2[shift] = 0;

  • double tlbuy=iCustom(NULL,0,"TrendLord",50,1,shift);
  • double tlsell=iCustom(NULL,0,"TrendLord",50,2,shift);

  • double haOpen = iCustom(NULL,0,"Heiken Ashi",2,shift);
  • double haClose = iCustom(NULL,0,"Heiken Ashi",3,shift);

  • double wbuy=iCustom(NULL,0,"W-LNX",14,6,25,true,50,14,34,14,14,6,14,6,14,6,14,6,14,6,14,6,14,6,6,shift);
  • double wsell=iCustom(NULL,0,"W-LNX",14,6,25,true,50,14,34,14,14,6,14,6,14,6,14,6,14,6,14,6,14,6,7,shift);

  • double tlbuy2=iCustom(NULL,0,"TrendLord",50,1,shift+1);
  • double tlsell2=iCustom(NULL,0,"TrendLord",50,2,shift+1);

  • double haOpen2 = iCustom(NULL,0,"Heiken Ashi",2,shift+1);
  • double haClose2 = iCustom(NULL,0,"Heiken Ashi",3,shift+1);

  • double wbuy2=iCustom(NULL,0,"W-LNX",14,6,25,true,50,14,34,14,14,6,14,6,14,6,14,6,14,6,14,6,14,6,6,shift+1);
  • double wsell2=iCustom(NULL,0,"W-LNX",14,6,25,true,50,14,34,14,14,6,14,6,14,6,14,6,14,6,14,6,14,6,7,shift+1);

  • if (haOpen0 && tlsell==EMPTY_VALUE) && wbuy!=EMPTY_VALUE) up1=true; else up1=false;
  • if (haOpen>haClose && (tlbuy==EMPTY_VALUE && tlsell>0)&& wsell!=EMPTY_VALUE ) down1=true; else down1=false;

  • if (haOpen20 && tlsell2==EMPTY_VALUE) && wbuy2!=EMPTY_VALUE) up2=true; else up2=false;
  • if (haOpen2>haClose2 && (tlbuy2==EMPTY_VALUE && tlsell2>0)&& wsell2!=EMPTY_VALUE ) down2=true; else down2=false;



  • if (up1==true && up2 !=true)
  • {ExtMapBuffer1[shift] = Low[shift] - 35 * Point; }

  • if (down1==true && down2!=true)
  • {ExtMapBuffer2[shift] = High[shift] + 35 * Point; }
  • }
  • if (AudioAlert)
  • {
  • static int audio;
  • if ((ExtMapBuffer1[1]!=0 && ExtMapBuffer1[2]==0) && audio!=1)
  • {audio=1; Alert ("BUY on ",Symbol()," ",Period()," Minute Chart");}
  • if ((ExtMapBuffer2[1]!=0 && ExtMapBuffer2[2]==0) && audio!=-1)
  • {audio=-1; Alert ("SELL on ",Symbol()," ",Period()," Minute Chart");}
  • }

  • if (EmailAlert)
  • {
  • static int email;
  • if ((ExtMapBuffer1[1]!=0 && ExtMapBuffer1[2]==0) && email!=1)
  • {email=1; SendMail ("BUY on "+Symbol()+" "+Period()+" Minute Chart","");}
  • if ((ExtMapBuffer2[1]!=0 && ExtMapBuffer2[2]==0) && email!=-1)
  • {email=-1; SendMail ("SELL on "+Symbol()+" "+Period()+" Minute Chart","");}
  • }

  • }

复制代码
""
还没有人打赏,支持一下

评论|共 17 个

xsyxxj

发表于 2014-12-18 00:30:16 | 显示全部楼层

看看什么EA,,,

贷款

发表于 2015-1-3 03:33:13 | 显示全部楼层

[s:145]

b5dryku9ty

发表于 2015-1-25 13:16:24 | 显示全部楼层

亏损中……………………

guolian

发表于 2015-2-3 07:23:26 | 显示全部楼层

围观中~~~

想赚钱的人

发表于 2015-2-4 01:32:23 | 显示全部楼层

谢谢分享!!!!!

崇悦祥

发表于 2020-1-3 22:03:38 | 显示全部楼层

帮帮顶顶!!

jsi544xb

发表于 2020-1-5 12:15:37 | 显示全部楼层

不错,支持下楼主

心心

发表于 2020-2-18 20:37:52 | 显示全部楼层

难得一见的好帖

女人花如梦

发表于 2020-6-19 12:30:20 | 显示全部楼层

支持一下:lol

12下一页
您需要登录后才可以回帖 登录 | 注册 微信登录

EA之家评论守则