Help - I Get only Zeros when importing buffers with iCustom - page 2

 

hello

I am also facing the same problem.

butt still after some reading and testing and trying i still can't get those two buffers.

i only get zeros

any idea?

//+------------------------------------------------------------------+
//|                                                   SampleMQL5.mq5 |
//|                                             Copyright KlimMalgin |
//|                                                                  |
//+------------------------------------------------------------------+
#property copyright "KlimMalgin"
#property link      ""
#property version   "1.00"

int trendlinepro = 0;            // Declaring variable to store fast MA handle

int OnInit()
  {

   ResetLastError();
   trendlinepro = iCustom("BTCUSD",PERIOD_M1,"TrendLine PRO MT5.ex5");
   Print("trendlinepro =",trendlinepro,"  error =",GetLastError());
//---
   return(0);
  }
//+------------------------------------------------------------------+
//| Expert deinitialization function                                 |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
  {
//---

  }
//+------------------------------------------------------------------+
//| Expert tick function                                             |
//+------------------------------------------------------------------+
void OnTick()
  {
//---
   
   double _tlp7[];
   double _tlp8[];
   

   ArraySetAsSeries(_tlp7, true);
   ArraySetAsSeries(_tlp8, true);
   
   if(CopyBuffer(trendlinepro,7,0,1,_tlp7) < 0)
      Print("CopyBuffertrendlinepro error =",GetLastError());
     
   if(CopyBuffer(trendlinepro,8,0,1,_tlp8) < 0)
    Print("CopyBuffertrendlinepro error =",GetLastError());

   if(_tlp7[0]>0)    Print("buffer-7=",_tlp7[0]);
   if(_tlp8[0]>0)    Print("buffer-8=",_tlp8[0]);

//---
  }
//+------------------------------------------------------------------+

thank in advance