自己编写的枢轴点指标,以前用了好长时间,现在软件可能是软件升级从插入自定义指标里调不出来了,请高手指教,现在在家里的电脑里调不出,单位电脑还能调出来

 
//+------------------------------------------------------------------+
//|                                                       枢轴点.mq4 |
//|                        Copyright 2013, MetaQuotes Software Corp. |
//|                                        http://www.metaquotes.net |
//+------------------------------------------------------------------+
#property copyright "Copyright 2013, MetaQuotes Software Corp."
#property link      "http://www.metaquotes.net"

#property indicator_buffers 7
#property indicator_color1 Red
#property indicator_color2 Red
#property indicator_color3 Red
#property indicator_color4 Aqua
#property indicator_color5 Aqua
#property indicator_color6 Aqua
#property indicator_color7 Yellow




//--- buffers
double ExtMapBuffer1[];
double ExtMapBuffer2[];
double ExtMapBuffer3[];
double ExtMapBuffer4[];
double ExtMapBuffer5[];
double ExtMapBuffer6[];
double ExtMapBuffer7[];

//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
  {
//---- indicators
   SetIndexStyle(0,DRAW_LINE);
   SetIndexBuffer(0,ExtMapBuffer1);
   SetIndexStyle(1,DRAW_LINE);
   SetIndexBuffer(1,ExtMapBuffer2);
   SetIndexStyle(2,DRAW_LINE);
   SetIndexBuffer(2,ExtMapBuffer3);
   SetIndexStyle(3,DRAW_LINE);
   SetIndexBuffer(3,ExtMapBuffer4);
   SetIndexStyle(4,DRAW_LINE);
   SetIndexBuffer(4,ExtMapBuffer5);
   SetIndexStyle(5,DRAW_LINE);
   SetIndexBuffer(5,ExtMapBuffer6);
   SetIndexStyle(6,DRAW_LINE);
   SetIndexBuffer(6,ExtMapBuffer7);
  
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function                       |
//+------------------------------------------------------------------+
int deinit()
 { 
//----
   

   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int start()
  {
  double H=iHigh(Symbol(),PERIOD_D1,1);
  double L=iLow(Symbol(),PERIOD_D1,1);
  double C=iClose(Symbol(),PERIOD_D1,1);
  double OP=iOpen(Symbol(),PERIOD_D1,1);
  double P=(H+L+C)/3;
  double R1=2*P-L;
  double S1=2*P-H;
  double R2=P+(R1-S1);
  double S2=P-(R1-S1);
  double R3=H+2*(P-L);
  double S3=L-2*(H-P);
  double RM1=(P+R1)/2;
  double SM1=(P+S1)/2;
  double RM2=(R1+R2)/2;
  double SM2=(S1+S2)/2;
  double RM3=(R2+R3)/2;
  double SM3=(S2+S3)/2;
  


  
  
   int    counted_bars=IndicatorCounted();
  
   for(int i=0; i<1000; i++)
      {ExtMapBuffer7[i]=P;
       ExtMapBuffer1[i]=S1;
       ExtMapBuffer2[i]=S2;
       ExtMapBuffer3[i]=S3;//SM2;
       ExtMapBuffer4[i]=R1;
       ExtMapBuffer5[i]=R2;
       ExtMapBuffer6[i]=R3;//RM1;
     
      }
                 
                 
//----
   
//----
   return(0);
  }

MetaTrader 4 Trading Platform / MetaQuotes Software Corp.
  • www.metaquotes.net
MetaTrader 4 is a free-of-charge program specially designed for online trading in the Forex market. The built-in technical indicators allow you to analyze securities' quotes, whilst the MQL4 network enables the development and usage of automated trading strategies.
 
kfwhz:
//+------------------------------------------------------------------+
//|                                                       枢轴点.mq4 |
//|                        Copyright 2013, MetaQuotes Software Corp. |
//|                                        http://www.metaquotes.net |
//+------------------------------------------------------------------+
#property copyright "Copyright 2013, MetaQuotes Software Corp."
#property link      "http://www.metaquotes.net"

#property indicator_chart_window
#property indicator_buffers 7
#property indicator_color1 Red
#property indicator_color2 Red
#property indicator_color3 Red
#property indicator_color4 Aqua
#property indicator_color5 Aqua
#property indicator_color6 Aqua
#property indicator_color7 Yellow




//--- buffers
double ExtMapBuffer1[];
double ExtMapBuffer2[];
double ExtMapBuffer3[];
double ExtMapBuffer4[];
double ExtMapBuffer5[];
double ExtMapBuffer6[];
double ExtMapBuffer7[];

//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
  {
//---- indicators
   SetIndexStyle(0,DRAW_LINE);
   SetIndexBuffer(0,ExtMapBuffer1);
   SetIndexStyle(1,DRAW_LINE);
   SetIndexBuffer(1,ExtMapBuffer2);
   SetIndexStyle(2,DRAW_LINE);
   SetIndexBuffer(2,ExtMapBuffer3);
   SetIndexStyle(3,DRAW_LINE);
   SetIndexBuffer(3,ExtMapBuffer4);
   SetIndexStyle(4,DRAW_LINE);
   SetIndexBuffer(4,ExtMapBuffer5);
   SetIndexStyle(5,DRAW_LINE);
   SetIndexBuffer(5,ExtMapBuffer6);
   SetIndexStyle(6,DRAW_LINE);
   SetIndexBuffer(6,ExtMapBuffer7);
  
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function                       |
//+------------------------------------------------------------------+
int deinit()
 { 
//----
   

   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int start()
  {
  double H=iHigh(Symbol(),PERIOD_D1,1);
  double L=iLow(Symbol(),PERIOD_D1,1);
  double C=iClose(Symbol(),PERIOD_D1,1);
  double OP=iOpen(Symbol(),PERIOD_D1,1);
  double P=(H+L+C)/3;
  double R1=2*P-L;
  double S1=2*P-H;
  double R2=P+(R1-S1);
  double S2=P-(R1-S1);
  double R3=H+2*(P-L);
  double S3=L-2*(H-P);
  double RM1=(P+R1)/2;
  double SM1=(P+S1)/2;
  double RM2=(R1+R2)/2;
  double SM2=(S1+S2)/2;
  double RM3=(R2+R3)/2;
  double SM3=(S2+S3)/2;
  


  
  
   int    counted_bars=IndicatorCounted();
  
   for(int i=0; i<1000; i++)
      {ExtMapBuffer7[i]=P;
       ExtMapBuffer1[i]=S1;
       ExtMapBuffer2[i]=S2;
       ExtMapBuffer3[i]=S3;//SM2;
       ExtMapBuffer4[i]=R1;
       ExtMapBuffer5[i]=R2;
       ExtMapBuffer6[i]=R3;//RM1;
     
      }
                 
                 
//----
   
//----
   return(0);
  }

       将指标名称改为英文即可、、、
原因: