Download MetaTrader 5

Undeclared identifier. Anyone?

To add comments, please log in or register
Staffan Ofwerman
1221
Staffan Ofwerman  
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
5971
Stuart Browne  
You will need to show your full code for anyone to help, this snippet is not enough 
Staffan Ofwerman
1221
Staffan Ofwerman  
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
1221
Staffan Ofwerman  
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
231
Luca Stievano  
Hi. I have the same problem. Can I ask you how you have resolve?  Thank you 
Irwan Adnan
924
Irwan Adnan  
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