Undeclared identifier. Anyone?

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

William Roeder
22355
William Roeder  
  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

Keith Watford
Moderator
24225
Keith Watford  
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.

To add comments, please log in or register