Download MetaTrader 5

Alert: Error copying Bollinger Bands indicator Buffers - error:4807!!

To add comments, please log in or register
Gouveiaa
123
Gouveiaa 2016.08.30 21:41 

Hi, so i was about to test my EA and I had this error "Alert: Error copying Bollinger Bands indicator Buffers - error:4807!!" What am I doing wrong? I used the same code on my another EA and it worked.

Regards 

if(CopyBuffer(BolBandsHandle,0,0,3,BBMidle)<0)
   {
   Alert("Error copying Bollinger Bands indicator Buffers - error:",GetLastError(),"!!");
   return;
   
   } 
   
   if(CopyBuffer(BolBandsHandle,1,0,3,BBUp)<0)
   {
   Alert("Error copying Bollinger Bands indicator Buffers - error:",GetLastError(),"!!");
   return;
   
   }
   if(CopyBuffer(BolBandsHandle,2,0,3,BBLow)<0)
     {
      Alert("Error copying Bollinger Bands indicator Buffers - error:",GetLastError(),"!!");
      return;
     }

   if(CopyBuffer(maHandle,0,0,3,maVal)<0)
     {
      Alert("Error copying MA indicator buffer - error:",GetLastError());
      return;
     }
Marco vd Heijden
Moderator
4728
Marco vd Heijden 2016.08.30 22:05  
Gouveiaa
123
Gouveiaa 2016.08.30 22:52  
Didn't find anything
Marco vd Heijden
Moderator
4728
Marco vd Heijden 2016.08.30 23:06  

https://www.mql5.com/en/docs/constants/errorswarnings/errorcodes

ERR_INDICATOR_WRONG_HANDLE

4807

Wrong indicator handle

Documentation on MQL5: Standard Constants, Enumerations and Structures / Codes of Errors and Warnings / Runtime Errors
Documentation on MQL5: Standard Constants, Enumerations and Structures / Codes of Errors and Warnings / Runtime Errors
  • www.mql5.com
Standard Constants, Enumerations and Structures / Codes of Errors and Warnings / Runtime Errors - Reference on algorithmic/automated trading language for MetaTrader 5
Gouveiaa
123
Gouveiaa 2016.08.30 23:37  
Marco vd Heijden:

https://www.mql5.com/en/docs/constants/errorswarnings/errorcodes

ERR_INDICATOR_WRONG_HANDLE

4807

Wrong indicator handle

Still can't understad what do I got to change
To add comments, please log in or register