Ничего не отображается (рисую МА)

 

Начал изучение... и решил попробовать с простого.. т.е. с МА

Но при добавлении индикатора на график, ничего не отобразилось.

Пожалуйста, дайте рабочий код с 2мя МА... и ничего лишнего больше не добавляйте (чтобы я окончательно не запутался)

Спасибо огромное!!!

//+------------------------------------------------------------------+
//| fff.mq4 |
//| Copyright © 2009, fff|
//| http://www.fff.net |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2009, fff"
#property link "http://www.fff.net"

#property indicator_chart_window
#property indicator_buffers 3
#property indicator_color1 Red
#property indicator_color2 Navy
#property indicator_color3 Gold
//---- buffers
double ExtMapBuffer1[];
double ExtMapBuffer2[];
double ExtMapBuffer3[];
//+------------------------------------------------------------------+
//| 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);
//----
  return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function |
//+------------------------------------------------------------------+
int deinit()
  {
//----
   
//----
  return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int start()
  {
  int counted_bars=IndicatorCounted();
//----
  double ma=iMA(NULL,0,21,0,MODE_SMA,PRICE_CLOSE,0); 
//----
  return(0);
  }
//+------------------------------------------------------------------+

 
extern int   periodMA1= 13;
extern int   periodMA2=34;
extern int   Counter=2000;
//---- buffers
double ExtMapBuffer1[];
double ExtMapBuffer2[];
double ExtMapBuffer3[];

...

int start()
  {
  int counted_bars=IndicatorCounted();
//----
  for (int i=Counter-1;i>=0;i--){
    ExtMapBuffer1[i]=iMA(NULL,0,periodMA1,0,MODE_SMA,PRICE_CLOSE,i); 
    ExtMapBuffer2[i]=iMA(NULL,0,periodMA2,0,MODE_SMA,PRICE_CLOSE,i); 
  }
//----
  return(0);
 

Увы... С двумя машками нет под рукой индюка.

Разве что, с тремя.  - Посмотрите в терминале мт4 индюк Аллигатор.

Я же, в свою очередь, могу вам подкинуть индюк с 8-ю (восемью !!!) машками.

Оч. надеюсь,  что "мало не покажется..."

В закачке:

Файлы:
8_mawek_1.mq4  4 kb
 
Аааа... спасибо Вам огромнейшее!!! Все отоброжается))
Причина обращения: