ERR_CHART_INDICATOR_CANNOT_ADD
4114
Error adding an indicator to chart
I found this error, how to slove?
What is period of chart your EA attached to?
If indicator period is H4 but chart period is not H4 then you get error
- www.mql5.com
it is run on H1 chart, but I can know the 2 indicators are running. in the indicator list window, there are only 1 indicator (rindicator) appeared. maybe the short name same?
You should be sure that indicator to be added and chart must have the same symbol-period!
I see your code
R_H4_Handle=iCustom(NULL,PERIOD_H4,"rindicator", false, 600, true, PRICE_CLOSE ); ... if (ChartIndicatorAdd(0,0,R_H4_Handle)) Print("R_H4_Handle = ",R_H4_Handle,"attached success");
You added indicator to the current chart. Indicator created on the period H4. If period of current chart (EA attached to) differs from H4 (you say about H1) then you get error. Any questions?
You should be sure that indicator to be added and chart must have the same symbol-period!
I see your code
You added indicator to the current chart. Indicator created on the period H4. If period of current chart (EA attached to) differs from H4 (you say about H1) then you get error. Any questions?
- www.mql5.com
do not mix indicator calculating and indicator adding to chart.
You can create any indicator in the EA. Created indicator can be added to the chart with the same symbol-period only

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
release:
I run robot, there are message " rindicator load success ", the message"attached success" is not shown, maybe ChartIndicatorAdd return false,
if the indicator list, there are 1 indicator (rindicator) appeared.
Who can help me? thanks!