Create a separate file for all your Enums. This file you can include in both files the indicator and the EA.

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
Hi,
I am trying to create a handle for a custom indicator in my EA. However the custom indicator has in its code used several #include statements to import many Enums which it uses in its input.
When i initialize the inputs in the EA they require the definition of those enums. However if i import the same #include files in the Expert it gives error "identifier already used, see previous decleration of xxx" . I guess this is because its being included again inside the code of indicator. What is the appropriate solution to this issue? How do programmers generally deal with the definitions of enums which are used inside an Indicator to avoid multiple declarations ?