iCustom EA buffers problem MQL5

 

Hello,

I have an indicator "myindi" and it gives up and down arrows(buffers 1 and 2).

Now I try to make an EA using iCustom but I don't understand where I have to put these buffer numbers?


#include <Trade\PositionInfo.mqh>
#include <Trade\Trade.mqh>
CPositionInfo  m_position;                   
CTrade         m_trade;
CSymbolInfo    m_symbol;                     
#resource "\\Indicators\\myindi.ex5" 

input string indicatorName="Indicators\\myindi.ex5";
input double InpLots=0.02; 
          
//--- indicator handle
int handle=INVALID_HANDLE;
//+------------------------------------------------------------------+
//| Expert initialization function                                   |
//+------------------------------------------------------------------+
int OnInit()
  {
//---
   handle=iCustom(NULL,PERIOD_CURRENT,indicatorName);

   if(handle==INVALID_HANDLE)
     {
      Print("Handle for indicator '",indicatorName,"' can't be got. Error = ",GetLastError());
      return(INIT_FAILED);
     }
//---
   return(INIT_SUCCEEDED);
  }
//+------------------------------------------------------------------+
//| Expert deinitialization function                                 |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
  {
//---
   IndicatorRelease(handle);
  }
//+------------------------------------------------------------------+
//| Expert tick function                                             |
//+------------------------------------------------------------------+
void OnTick()
  {
//---
   double Bid=NormalizeDouble(SymbolInfoDouble(_Symbol,SYMBOL_BID),_Digits);
   double buffer[1];

   if(CopyBuffer(handle,0,0,0,buffer)==1)

      m_trade.Sell(InpLots,NULL,Bid,0,(Bid-150*_Point),NULL);
  }
//+------------------------------------------------------------------+
Reason: