Download MetaTrader 5

Invalid Pointer in my EA

To add comments, please log in or register
Do you want to order an application? Find out how to obtain the desired result
Tawaz Malazoh
10
Tawaz Malazoh 2017.03.20 09:13 

My EA is compiling well, but when l try to run it in platform it return INVALID POINTER error

here is the code

//+------------------------------------------------------------------+

void Strategy::GetRequiredCharts(string &charts[])

  {

   ArrayResize(charts,1);

   charts[0]=GetSymbol()+","+DataPeriodToString(GetPeriod());


   for(int i=0; i<Slots(); i++)

     {

      if(!Slot[i].IndicatorPointer.IsAllowLTF)

         continue;

      if(!IsLongerTimeFrame(i))

         continue;

      string chart=GetSlotChart(i);

      if(!ArrayContainsString(charts,chart))

         ArrayAppendString(charts,chart);

     }

  }

//+------------------------------------------------------------------+



Any  help is welcome

To add comments, please log in or register