Double click on this to find out where the identifier is being reused.
Double click on this to see the first (previous) identifier declaration
Double click on this to find out where the identifier is being reused.
Double click on this to see the first (previous) identifier declaration
Thanks for answering, but thats exactly the problem.
The first declaration is the class itself (class MyTrade{...}) and its supposedly reused in line 5.
I think the compiler thinks I want to create a new struct or something like that, but I just want to initialize a global instance of my class MyTrade.
Thanks for answering, but thats exactly the problem.
The first declaration is the class itself (class MyTrade{...}) and its supposedly reused in line 5.
I think the compiler thinks I want to create a new struct or something like that, but I just want to initialize a global instance of my class MyTrade.
Please attach a short code that will allow other users to reproduce your issue.
//I wrote this: class MyTrade{ //... } //instead of: class MyTrade{ //... };
The compiler just never complained about it and now everything works.
Thanks for trying to help
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi, I´m writing my first Expert Advisor and I have a Problem I can´t solve. My Code looks like this:
The compiler errors are:
'MyTrade' - identifier already used
see declaration of class 'MyTrade'
'*' - semicolon expected
Does anybody know how to fix this?