Issues with importing a indicator in an EA

 

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 ?

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