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

    (求助)编写简单指标遇到的问题

    2011-12-18 · 8758 阅读
    我刚开始学习编写指标,想把一个通达信简单的平滑ma通道指标转成mt4的,通过修改mt4自带的ma指标,现在可以画出1条14期的smma了,我想要以这条14smma为基础乘以不同的参数得到不同的几条线(好像和14smma平行),形成一个通道,到这里我该怎么写呢,去学习了视频编程,第贰课没有声音,继续不了了,只好来这里寻求大家的帮助,目前的代码如下//+------------------------------------------------------------------+
      //|                                        Custom Moving Average.mq4 |
      //|                      Copyright ?2004, MetaQuotes Software Corp. |
      //|                                       http://www.metaquotes.net/ |
      //+------------------------------------------------------------------+
      #property copyright \"Copyright ?2004, MetaQuotes Software Corp.\"
      #property link      \"http://www.metaquotes.net/\"
      
      #property indicator_chart_window
      #property indicator_buffers 1
      #property indicator_color1 Yellow
      //---- indicator parameters
      extern int MA_Period=14;
      extern int MA_Shift=0;
      extern int MA_Method=0;
      //---- indicator buffers
      double ExtMapBuffer[];
      //----
      int ExtCountedBars=0;
      //+------------------------------------------------------------------+
      //| Custom indicator initialization function                         |
      //+------------------------------------------------------------------+
      int init()
        {
         int    draw_begin;
         string short_name;
      //---- drawing settings
         SetIndexStyle(0,DRAW_LINE);
         SetIndexShift(0,MA_Shift);
         IndicatorDigits(MarketInfo(Symbol(),MODE_DIGITS));
         if(MA_Period
    ""
    还没有人打赏,支持一下
    回复

    举报

     

    回答|共 23 个

    sacrifice LV5

    发表于 2012-11-22 01:36:01 | 显示全部楼层

    唉,悲催的外汇。。  

    和其正 LV5

    发表于 2012-11-22 01:36:01 | 显示全部楼层

    帮你顶,人还是厚道点好  

    oxp LV8

    发表于 2012-11-22 01:36:01 | 显示全部楼层

    嘿嘿  

    一生跟随 LV5

    发表于 2012-11-22 01:36:01 | 显示全部楼层

    今天无聊来逛逛  

    天鹰 LV6

    发表于 2012-11-22 01:36:01 | 显示全部楼层

    楼主有没有好的EA推荐  

    fxsin8.7 LV5

    发表于 2012-11-22 01:36:01 | 显示全部楼层

    我十目一行也还是看不懂啊  

    tianxiahui578 LV4

    发表于 2012-11-22 01:36:01 | 显示全部楼层

    来几句吧  

    xiaoyi13452 LV4

    发表于 2015-1-24 21:32:28 | 显示全部楼层

    看看吧,谢谢分享

    不知道叫什么 LV8

    发表于 2015-1-29 15:30:03 | 显示全部楼层

    支持楼主
    123下一页
    您需要登录后才可以回帖 登录 | 注册

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

    微信二维码

    有问题联系客服