Download MetaTrader 5

Undeclared identifier. Anyone?

To add comments, please log in or register
Publish your article. We will translate it into other languages!
Staffan Ofwerman
999
Staffan Ofwerman 2015.09.25 10:58 
I get this error when trying to compile my EA file:

'vsl' - undeclared identifier
'vtp' - undeclared identifier

It's for this part:
{
if (USE VIRTUAL STOPS) {
sl = vsl;
tp = vtp;
}

What do I need to do to make it work? Anyone?
Stuart Browne
5819
Stuart Browne 2015.09.25 11:29  
You will need to show your full code for anyone to help, this snippet is not enough 
Staffan Ofwerman
999
Staffan Ofwerman 2015.09.25 11:44  
Stuart Browne:
You will need to show your full code for anyone to help, this snippet is not enough 

Aha. I thought there was just something in the way that line was written that's been changed.

Not sure if I want to share my full system that is going to the market, so I probably need to try to solve it on my own... 

Staffan Ofwerman
999
Staffan Ofwerman 2015.09.25 15:20  
Staffan Ofwerman:

Aha. I thought there was just something in the way that line was written that's been changed.

Not sure if I want to share my full system that is going to the market, so I probably need to try to solve it on my own... 

I fixed it. So problem is solved. It's working just like it's always been... which is great. It was just when exporting it I had the problem. 

Luca Stievano
226
Luca Stievano 2015.11.25 10:15  
Hi. I have the same problem. Can I ask you how you have resolve?  Thank you 
Irwan Adnan
886
Irwan Adnan 2015.11.25 10:32  
Luca Stievano:
Hi. I have the same problem. Can I ask you how you have resolve?  Thank you 
did you forget to declare the type of your variables?
To add comments, please log in or register