📅 财经日历 📊 实时波动 📈 大盘云图 📶 行情走势 🆚 投机情绪 🚀 今日热点

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

    2011-09-13 · 6796 阅读
    以下是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
    ""
    还没有人打赏,支持一下
    回复

    举报

     

    回答|共 16 个

    不良少年 LV3

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

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

    2013 LV2

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

    看看什么EA,,,

    rickyliao LV3

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

    研究研究

    wayoday LV0

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


    呵呵

    zt1984639 LV4

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

    [s:136]

    忍着神归 LV3

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

    帮你顶下哈!!

    everything LV3

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

    谢谢楼主分享

    可道道 LV4

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

    谢谢楼主分享

    Elise LV8

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

    学习了,不错
    12下一页
    您需要登录后才可以回帖 登录 | 注册

    提醒: 禁止引战、谩骂、灌水内容

    微信二维码

    有问题联系客服