When I placed an indicator by icustom from expert, errro 4103 happened

 

call code:

 

int  CA_handle=iCustom(Symbol(),PERIOD_CURRENT,"Robot_Candle_indicator", 30,true,true,White,Red,White,PRICE_CLOSE);

 

error:

2010.02.05 16:33:49 Robot (GBPUSD,H1) CA_handle = 10   error = 4103

copy from help file: 

ERR_CHART_NOT_FOUND

4103

Chart not found

 

but it cannot draw arrow, this indicator can draw arrow on the chart by the candlestick pattern .

When I attach an indicator to chart by manually , all is ok, 

please help me , thanks.

 

Documentation on MQL5: Standard Constants, Enumerations and Structures / Indicator Constants / Drawing Styles
  • www.mql5.com
Standard Constants, Enumerations and Structures / Indicator Constants / Drawing Styles - Documentation on MQL5
 
ResetLastError();
int CA_handle=iCustom(Symbol(),PERIOD_CURRENT,"Robot_Candle_indicator", 30,true,true,White,Red,White,PRICE_CLOSE);
int error=GetLastError();
 

I have back to home. there is no error:

2010.02.05 21:05:09 Robot (GBPUSD,H1) CA_handle = 10   error = 0

but it cannot draw arrow like before, strange 

a new question, if I use iCustom command, it cannot draw line or arrow  which store at:

   SetIndexBuffer(0,ExtLineBuffer,INDICATOR_DATA);

 is it?