## 如何显示BBI指标？或mt4上的BBI指标编程是什么，请大侠馈赠。多谢！

 11 rockchu 2010.03.12 16:36   如何显示BBI指标？或mt4上的BBI指标编程是什么，请大侠馈赠。多谢！ 我不会编写啊 能给个指标模板吗？ 感谢不尽
 41 trad 2010.03.14 07:12 #   ＢＢＩ计算公式： 　　ＢＢＩ＝(３日均价＋６日均价＋１２日均价＋２４日均价)÷４ //+------------------------------------------------------------------+ //|                                                          BBI.mq4 | //|                                             Copyright 2010, trad | //|                                            du_steven@hotmail.com | //+------------------------------------------------------------------+ #property copyright "Copyright 2010, trad" #property link      "du_steven@hotmail.com" #property indicator_chart_window #property indicator_buffers 1 #property indicator_color1 Yellow //---- input parameters extern int       Period1 = 3; extern int       Period2 = 6; extern int       Period3 = 12; extern int       Period4 = 24; double BBIBuffer[]; //+------------------------------------------------------------------+ //| Custom indicator initialization function                         | //+------------------------------------------------------------------+ int init() {    IndicatorBuffers(1);    //---- indicator line    SetIndexStyle(0,DRAW_LINE);    SetIndexBuffer(0,BBIBuffer);    string short_name="BBI("+Period1+","+Period2+","+Period3+","+Period4+")";    IndicatorShortName(short_name);    SetIndexLabel(0,short_name);    //----    SetIndexDrawBegin(0,Period4+1);    return(0); } //+------------------------------------------------------------------+ //| Custom indicator iteration function                              | //+------------------------------------------------------------------+ int start() {    int i, counted_bars=IndicatorCounted();    double ma1, ma2, ma3, ma4; //----    if(Bars<=Period4) return(0);       if(counted_bars<1)       for(i=1;i<=Period4;i++) BBIBuffer[Bars-i]=EMPTY_VALUE;           if(counted_bars>0) counted_bars--;    int limit=Bars-counted_bars;    for(i=0; i
 11 rockchu 2010.03.14 13:17 #   Thanks a lot
 11 rockchu 2010.03.17 16:55 #   大侠，能在添加一个报警程序在内吗？多谢多谢！
 11 rockchu 2010.03.17 16:55 #   大侠，能在添加一个报警程序在内吗？多谢多谢！
 2 zwllx 2010.03.25 07:20 #   rockchu 写道 >> 大侠，能在添加一个报警程序在内吗？多谢多谢！ 你自己就不知道动手写写吗?想赚钱也要指望别人哪?