Download MetaTrader 5

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

To add comments, please log in or register
Having troubles understanding the code? Articles can help you!
HongDi s& t development co.,ltd.
1598
hongbin fei 2010.02.05 11:41 

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
Slawa
Moderator
6839
Slawa 2010.02.05 14:00  
ResetLastError();
int CA_handle=iCustom(Symbol(),PERIOD_CURRENT,"Robot_Candle_indicator", 30,true,true,White,Red,White,PRICE_CLOSE);
int error=GetLastError();
HongDi s& t development co.,ltd.
1598
hongbin fei 2010.02.05 16:01  

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?

To add comments, please log in or register