4002 when loading an indicator generally means that a parameter is incorrect. If you need help, it is best to post the code.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I have an indicator that uses iMA along with iATR to generate a new indicator; I am able to attach this to a chart without any error. Handle = iMA(_Symbol, _Period,...). There is no error in handle generation. I try to use this indicator in my EA with the iCustom function with proper iCustom(_Symbol, _Period...) with proper parameters of this indicator in proper order. I am using a Renko chart, and the symbol is a custom symbol with time period 1. I checked this symbol read by the indicator as well as by the EA, and in both places the symbol read and the time period are the same. But for some reason I get the following error when I attach my EA to the chart. I am attaching the indicator to the same chart without any issue. The error is as follows:
2025.08.05 18:43:06.149 iMA_ATR_Bands (BTCUSD_120POINTS,M1) cannot load indicator 'Moving Average' [4002]
2025.08.05 18:43:06.149 iMA_ATR_Bands (BTCUSD_120POINTS, M1) The iMA(1) object was not created: Error 4002