Compilation errors: enumerator identifier already defined
-
Hi everyone,
I'm experiencing a persistent issue with compilation errors in fxdreema, specifically related to enumeration identifiers. I've encountered this problem before and usually managed it by switching to a different indicator, ensuring only one with enumerations is used in the entire project. However, now I need to use multiple indicators with enumerations and can't find a workaround.
I simplified the logic to isolate the problem and experimented with various solutions, but nothing has worked so far: https://fxdreema.com/shared/45lPJsgWb
I searched the forum and found only one relevant topic: https://fxdreema.com/forum/topic/8484/compilation-errors-enumerator-identifier-already-defined?_=1721670606308I followed the instructions provided by @trader-philipps, but the error persists.
Here’s what I’ve done:
Deleted the indicator from fxdreema's custom indicators list.
Re-added the indicator.
Cleared all enumerations as instructed.
Clicked "update"
Then I go back to the project and re-selected the indicator before downloading the .ex4 file.Despite these steps, the same compilation error appears. It seems as if the system retains the data of the deleted indicator. sometimes I don't remember how but when playing around with it, I get the "undeclare identify error"
Is there a known fix for this situation? From what I understand, the issue arises because enumerations can't be defined twice, yet these enumerations should be isolated to each specific indicator, not the entire project.
Is there a way to force the system to recognize that these enumerations are unique to each indicator? Alternatively, is there a method to link all indicators requiring enumerations to a particular database to avoid this conflict?
I appreciate any help or insights. Thanks in advance!

-
Not sure if there a known fix for this situation but this might help: Previously with indicator problems I have seen data is remembered somewhere in the background, to fix this I changed the indicator name (by only adding one letter) I then added it to FX as a new custom indicator ensuring I used all the correct settings.
The new version was installed and worked without errors.
I hope this fixes your issues, let us know what happens.
-
Thank you for your prompt reply. Yes, I have done that before. it works on some indicators but not all of them. Some indicators won't work at all and it will give you this error: " You are trying to use renamed indicator"
-
Was just an idea, some indicators won't work, but you don't know unless you try
-
True, thank you for your assistance. It is much appreciated. I will keep trying different solutions. Hopefully, the bug will be fixed soon, or maybe someone will come up with a workaround or something.
-
@jstap Tnx man, had the same problem and changing Indicator names, works for me..
-
-
sorry wrong topic..
