Download MetaTrader 5

CopyBuffer not being stable in several EAs

To add comments, please log in or register
Share your program via Code Base. Gain access to millions of traders!
Marcelo Coutinho
1151
Marcelo Coutinho 2015.04.24 14:36 

Good morning !

I have a few EAs (same EA) running on different accounts (all real accounts)

Some on them are presenting CopyBuffer error but some are working perfectly.

Since I am using the same EA on the same instrument, how is possible that some EAs present this error and the rest just simply work

This is the structure

   err1=CopyBuffer(iAMA1_handle,0,0,5,iAMA1_buffer);

   if(err1<0)
     {
      Print("Failed to copy data from the indicator buffer or price chart buffer err1");
      SendMail("COPYBUFFER "+IntegerToString(AccountInfoInteger(ACCOUNT_LOGIN)),"COPYBUFFER err1");
      return;
     }

Regards,

MRC

Alain Verleyen
Moderator
30752
Alain Verleyen 2015.04.24 17:34  
YouTrade:

Good morning !

I have a few EAs (same EA) running on different accounts (all real accounts)

Some on them are presenting CopyBuffer error but some are working perfectly.

Since I am using the same EA on the same instrument, how is possible that some EAs present this error and the rest just simply work

This is the structure

Regards,

MRC

What is the error number ? See GetLastError())
Marcelo Coutinho
1151
Marcelo Coutinho 2015.04.24 21:48  
angevoyageur:
What is the error number ? See GetLastError())
ERR_INDICATOR_DATA_NOT_FOUND

4806
Requested data not found

To add comments, please log in or register