mt4的指标

陕西服装-帕罗尼拉 2024-05-30 02:14:03
最佳回答
哦,忘了说了,是mq4的。  #property indicator_chart_window  #property indicator_buffers 1  #property indicator_color1 red  //---- indicator parameters  extern int extdepth=12;  extern int extdeviation=5;  extern int extbackstep=3;  //---- indicator buffers  double zigzagbuffer[];  double highmapbuffer[];  double lowmapbuffer[];  int level=3; // recounting's depth  bool downloadh**tory=false;  //+------------------------------------------------------------------+  //| custom indicator initialization function |  //+------------------------------------------------------------------+  int init()  {  indicatorbuffers(3);  //---- drawing settings  setindexstyle(0,draw_section);  //---- indicator buffers mapping  setindexbuffer(0,zigzagbuffer);  setindexbuffer(1,highmapbuffer);  setindexbuffer(2,lowmapbuffer);  setindexemptyvalue(0,0.0);  //---- indicator short name  indicatorshortname("zigzag("+extdepth+","+extdeviation+","+extbackstep+")");  //---- initialization done  return(0);  }  //+------------------------------------------------------------------+  //| |  //+------------------------------------------------------------------+  int start()  {  int i, counted_bars = indicatorcounted();  int limit,counterz,whatlookfor;  int shift,back,lasthighpos,lastlowpos;  double val,res;  double curlow,curhigh,lasthigh,lastlow;  if (counted_bars==0 && downloadh**tory) // h**tory was downloaded  {  arrayinitialize(zigzagbuffer,0.0);  arrayinitialize(highmapbuffer,0.0);  arrayinitialize(lowmapbuffer,0.0);  }  if (counted_bars==0)  {  limit=bars-extdepth;  downloadh**tory=true;  }  if (counted_bars>0)  {  while (counterz<level && i<100)  {  res=zigzagbuffer[i];  if (res!=0) counterz++;  i++;  }  i--;  limit=i;  if (lowmapbuffer[i]!=0)  {  curlow=lowmapbuffer[i];  whatlookfor=1;  }  else  {  curhigh=highmapbuffer[i];  whatlookfor=-1;  }  for (i=limit-1;i>=0;i--)  {  zigzagbuffer[i]=0.0;  lowmapbuffer[i]=0.0;  highmapbuffer[i]=0.0;  }  }  for(shift=limit; shift>=0; shift--)  {  val=low[ilowest(**,0,mode_low,extdepth,shift)];  if(val==lastlow) val=0.0;  else  {  lastlow=val;  if((low[shift]-val)>(extdeviation*point)) val=0.0;  else  {  for(back=1; back<=extbackstep; back++)  {  res=lowmapbuffer[shift+back];  if((res!=0)&&(res>val)) lowmapbuffer[shift+back]=0.0;  }  }  }  if (low[shift]==val) lowmapbuffer[shift]=val; else lowmapbuffer[shift]=0.0;  //--- high  val=high[ihighest(**,0,mode_high,extdepth,shift)];  if(val==lasthigh) val=0.0;  else  {  lasthigh=val;  if((val-high[shift])>(extdeviation*point)) val=0.0;  else  {  for(back=1; back<=extbackstep; back++)  {  res=highmapbuffer[shift+back];  if((res!=0)&&(res<val)) highmapbuffer[shift+back]=0.0;  }  }  }  if (high[shift]==val) highmapbuffer[shift]=val; else highmapbuffer[shift]=0.0;  }  // final cutting  if (whatlookfor==0)  {  lastlow=0;  lasthigh=0;  }  else  {  lastlow=curlow;  lasthigh=curhigh;  }  for (shift=limit;shift>=0;shift--)  {  res=0.0;  switch(whatlookfor)  {  case 0: // look for peak or lawn  if (lastlow==0 && lasthigh==0)  {  if (highmapbuffer[shift]!=0)  {  lasthigh=high[shift];  lasthighpos=shift;  whatlookfor=-1;  zigzagbuffer[shift]=lasthigh;  res=1;  }  if (lowmapbuffer[shift]!=0)  {  lastlow=low[shift];  lastlowpos=shift;  whatlookfor=1;  zigzagbuffer[shift]=lastlow;  res=1;  }  }  break;  case 1: // look for peak  if (lowmapbuffer[shift]!=0.0 && lowmapbuffer[shift]<lastlow && highmapbuffer[shift]==0.0)  {  zigzagbuffer[lastlowpos]=0.0;  lastlowpos=shift;  lastlow=lowmapbuffer[shift];  zigzagbuffer[shift]=lastlow;  res=1;  }  if (highmapbuffer[shift]!=0.0 && lowmapbuffer[shift]==0.0)  {  lasthigh=highmapbuffer[shift];  lasthighpos=shift;  zigzagbuffer[shift]=lasthigh;  whatlookfor=-1;  res=1;  }  break;  case -1: // look for lawn  if (highmapbuffer[shift]!=0.0 && highmapbuffer[shift]>lasthigh && lowmapbuffer[shift]==0.0)  {  zigzagbuffer[lasthighpos]=0.0;  lasthighpos=shift;  lasthigh=highmapbuffer[shift];  zigzagbuffer[shift]=lasthigh;  }  if (lowmapbuffer[shift]!=0.0 && highmapbuffer[shift]==0.0)  {  lastlow=lowmapbuffer[shift];  lastlowpos=shift;  zigzagbuffer[shift]=lastlow;  whatlookfor=1;  }  break;  default: return;  }  }  return(0);  } 20210311
汇率兑换计算器

类似问答
  • 怎么下载mt4这个指标?
    • 2024-05-30 02:07:00
    • 提问者: 未知
    1 **自带指标如果投资者想要成功进行外汇交易,他们就应该知道,他们想要使用的**具有什么样的自带指标,一般情况下,每一个**都会有一些自带的指标,而mt4**中,投资者可以使用的自带mt4指标一般都有30种左右,投资者可以从这样的指标中进行选择,找到一个最佳的指标进行外汇交易,而在外汇交易中,投资者进行交易走势分析的时候,他们一般就使用几种指标,所以,对于一般投资者来说,mt4外汇交易**中的自...
  • 外汇mt4 kdj指标参数
    • 2024-05-30 02:48:34
    • 提问者: 未知
    频繁换股,认为卖出的都是垃圾,下一只买进的绝对是牛股。今天买,明天就想赚钱,看到另外一只股票涨了,立刻卖到手中的股票去追, 当追到手中时估价开始下跌,第二天接着找上涨的股票一只循环下去。这样就必然造成了赔钱!百度搜索一下:【金润财经】
  • mt4**添加指标的步骤
    • 2024-05-30 20:26:15
    • 提问者: 未知
    打开mt4,点击上方工具栏“文件”选项,下拉列表中有个“打开数据文件夹”选项,选择添加你所需要的指标即可
  • mt4上面有vma指标吗
    • 2024-05-30 02:08:13
    • 提问者: 未知
    mt4没有自带的变色指标,不过可以私人订制开发自定义指标。有问题可以随时咨询
  • mt4蝴蝶指标
    • 2024-05-30 23:00:45
    • 提问者: 未知
    蝴蝶原理与艾略**浪理论一样是以斐波那契数列作为结构基础。在特定环境下,它不仅可以忽略部分常用技术指标的存在。从某种角度讲,蝴蝶理论甚至可以抛开顺势而为的技术派...
  • 请高手将通达信指标改成mt4指标
    • 2024-05-30 23:52:52
    • 提问者: 未知
    通达信指标如下: ku1:=if(high=hhv(high,3),1,0);kd1:=if(low=llv(low,3),1,0);ul:=if(ref(ku1,2)=1 and ref(ku1,1)=0 and ku1=0,ref(high,2),ref(high,...dp:=barslast(lv);...
  • mt4 fractals 指标 参数更改?
    • 2024-05-30 19:51:49
    • 提问者: 未知
    你把原代码给我,我给你改,我专门做ea的
  • mt4怎样添加expma指标?
    • 2024-05-30 06:35:29
    • 提问者: 未知
    mt4自带的ma指标里面添加的时候,设置选中ema选项就可以。
  • 二元期权最强的mt4指标模板? 期探网 2万用户在线学习的是mt4指标?
    • 2024-05-30 04:31:14
    • 提问者: 未知
    您的回答被采纳后将获得:系统奖励 15(财富值+成长值)+难题奖励 20(财富值+成长值) 本人只玩黄金和原油,二元?呵呵,到时候一打击,资金都出不来
  • mt5比mt4多出哪些指标
    • 2024-05-30 19:03:06
    • 提问者: 未知
    自己下个mt5就知道了 主要是自定义指标里多出很多
汇率兑换计算器

热门推荐
热门问答
最新问答
推荐问答
新手帮助
常见问题
房贷计算器-九子财经 | 备案号: 桂ICP备19010581号-1 商务联系 企鹅:2790-680461

特别声明:本网为公益网站,人人都可发布,所有内容为会员自行上传发布",本站不承担任何法律责任,如内容有该作者著作权或违规内容,请联系我们清空删除。