15评论

0收藏

各位大虾进来帮帮忙,MA指标只显示三根K线?!

avatar 东北外汇 | 4601 人阅读 | 15 人评论 | 2011-09-13

以下是BIAS指标的原码,但BIASMA只能显示三根K线,我是新手,找不出原因,麻烦各位大虾帮忙指出下,谢谢!!
  
  
  #property indicator_separate_window
  #property indicator_buffers 2
  #property indicator_level1 0
  #property indicator_color1 LightSeaGreen
  #property indicator_color2 Red
  
  extern int BIAS=6;
  extern int BIASMA=6;
  
  double BIASBUFFER[];
  double BIMABUFFER[];
  double TEMPBUFFER[];
  
  int draw_begin1=0;
  int draw_begin2=0;
  
  int K=0;
  //+------------------------------------------------------------------+
  //| Custom indicator initialization function                         |
  //+------------------------------------------------------------------+
  int init()
    {
  //---- indicators  
     IndicatorBuffers(3);
     
     SetIndexBuffer(2, TEMPBUFFER);
     
     SetIndexStyle(0,DRAW_LINE);
     SetIndexBuffer(0, BIASBUFFER);
     SetIndexStyle(1,DRAW_LINE);
     SetIndexBuffer(1, BIMABUFFER);
     
     
     IndicatorShortName(\"BIAS\");
     SetIndexLabel(0,\"BIAS\");
     SetIndexLabel(1,\"BIASMA\");
  
  
     return(0);
    }
  //+------------------------------------------------------------------+
  //| Custom indicator iteration function                              |
  //+------------------------------------------------------------------+
  int start()
    {
     int    counted_bars=IndicatorCounted();
     int i;
  
  // caculate MA6;   
     if(counted_bars0) counted_bars--;
     int limit=Bars-counted_bars;
     for( i=0;i
""
还没有人打赏,支持一下

评论|共 15 个

不良少年

发表于 2014-10-31 22:40:29 | 显示全部楼层

nice!!!!!!!!!!!!

2013

发表于 2014-11-9 01:38:29 | 显示全部楼层

看看什么EA,,,

rickyliao

发表于 2014-11-28 23:02:08 | 显示全部楼层

研究研究

wayoday

发表于 2014-12-29 14:22:45 | 显示全部楼层


呵呵

zt1984639

发表于 2015-1-2 15:23:11 | 显示全部楼层

[s:136]

kuanfwww

发表于 2016-11-27 13:45:21 | 显示全部楼层

{:132_139:}

忍着神归

发表于 2020-7-6 16:17:13 | 显示全部楼层

帮你顶下哈!!

everything

发表于 2020-7-22 13:10:37 | 显示全部楼层

谢谢楼主分享

可道道

发表于 2020-7-26 22:55:27 | 显示全部楼层

谢谢楼主分享

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

EA之家评论守则