Undeclared identifier. Anyone?

 
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?
 
You will need to show your full code for anyone to help, this snippet is not enough 
 
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:

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. 

 
Hi. I have the same problem. Can I ask you how you have resolve?  Thank you 
 
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?
 

Hi,

Compile results are showing  "Undeclared identifier" on below code. Kindly suggest me 


//Defined EA,from current candle, for 3 candles, save in array

   CopyBuffer (RSIDefinition15,0,0,3,RSIArray15);

 
  1. Sutar Ojha: Kindly suggest me

       CopyBuffer (RSIDefinition15,0,0,3,RSIArray15);

    You haven't declared your variable(s) RSIDefinition15 and/or RSIArray15.

    This is coding 101 - first day. LEARN TO CODE.

    What do you think "Undeclared identifier" means?

    Perhaps you should read the manual.
    How To Ask Questions The Smart Way. 2004
         How To Interpret Answers.
              RTFM and STFW: How To Tell You've Seriously Screwed Up.

  2. Don't resurrect old threads without a very good reason. Open your own. A lot has changed since Build 600 and Higher. 2014.02.03

 
Sutar Ojha:

Hi,

Compile results are showing  "Undeclared identifier" on below code. Kindly suggest me 


//Defined EA,from current candle, for 3 candles, save in array

   CopyBuffer (RSIDefinition15,0,0,3,RSIArray15);

In future please use the code button (Alt+s) when posting code.

Do not double post!

I have deleted your other topic.

 

Hi guys, I am getting an error in compiling this code in mt5. Kindly help 


I have attached the files

Files:
error.JPG  32 kb
trymacd.mq5  2 kb
 
rwemof:

Do not double post!

I have deleted your duplicated post.