Very simple indicator (but doesnt work)

 

Hello, lets do this:

I am new to MQL and want to make a simple indicator.

Just draw an arrow over a Candle which mathAbs(Open - Close )>0.70 ...

This is in USD / JPY

This is what I have and doesnt work:

//+------------------------------------------------------------------+
//|                                                 StrongCandle.mq4 |
//|                      Copyright © 2009, MetaQuotes Software Corp. |
//|                                        http://www.metaquotes.net |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2009, MetaQuotes Software Corp."
#property link      "http://www.metaquotes.net"

#property indicator_chart_window
#property indicator_buffers 1
#property indicator_color1 Yellow
//---- buffers
double ExtMapBuffer1[];
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
  {
//---- indicators
   SetIndexStyle(0,DRAW_ARROW);
   SetIndexArrow(0,100);
   SetIndexBuffer(0,ExtMapBuffer1);
   SetIndexEmptyValue(0,0.0);
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function                       |
//+------------------------------------------------------------------+
int deinit()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int start()
  {
   int    counted_bars=IndicatorCounted();
//----

     for(int i=0;i<counted_bars;i++)
      {
           
           if(MathAbs(Open[1]-Close[1])>0.70)
           {
           ExtMapBuffer1[i]=High[i]+0.10;
           }
            
            
      }


   
//----
   return(0);
  }
//+------------------------------------------------------------------+

I guess something is missing....

thanks in advance

 
   if(MathAbs(Open[i]-Close[i])>0.70){
      ExtMapBuffer1[i]=High[i]+0.10;
   }
   else ExtMapBuffer1[i]= EMPTY_VALUE;
Reason: