Download MetaTrader 5

Undecleared identifier

To add comments, please log in or register
How to use MQL5.community messages editor? Find out in the article!
Slyto_Carnell
21
Slyto_Carnell 2015.08.20 01:24 

Hey,

 

have problems with programming.

Im a newbie and tried to solve this problem but im hopeless :D

double shift = 0.2;
      for (ii=0; ii<4; ii++)

During compiling it says:

'ii' - undecleared identifier

 

Thats crazy because the indicator worked very well.

Then i started uploading it and it stopped working.  It says something with #property strict....

 Then i changed:

#property copyright ""
#property link      ""

 To:

#property strict copyright ""
#property strict link      ""

 Hahaha.

Then the above mentioned problem appeared...

Im a newbie. Please help me:) 

Marco vd Heijden
Moderator
4685
Marco vd Heijden 2015.08.20 05:11  
double shift = 0.2;
      for (int ii=0; ii<4; ii++)
Slyto_Carnell
21
Slyto_Carnell 2015.08.20 13:12  

Okay many thanks:)

but now it says

Version name is not specified. Please specify it by setting #property version in source code 

 :/// 

Alain Verleyen
Moderator
30711
Alain Verleyen 2015.08.20 13:53  
Slyto_Carnell
21
Slyto_Carnell 2015.08.25 18:09  
Alain Verleyen:

lol
Alain Verleyen
Moderator
30711
Alain Verleyen 2015.08.25 18:43  
Slyto_Carnell:
lol

Why are you laughing ? You can't declare a variable, so I suggest you the good links.

I am not able to tinker so when I need it I ask to a professional if I can't find what I need already done.

Alain Verleyen
Moderator
30711
Alain Verleyen 2015.08.25 18:52  
Slyto_Carnell:

I made this code and then the error message appears when uploading it on the market. What do i need to change?

 

Which error message ?
Slyto_Carnell
21
Slyto_Carnell 2015.08.25 18:58  
Alain Verleyen:
Which error message ?
EX4 file must be compiled using #property strict directive.
Alain Verleyen
Moderator
30711
Alain Verleyen 2015.08.25 19:43  
Slyto_Carnell:
EX4 file must be compiled using #property strict directive.

So add this directive, what is so hard ?

Slyto_Carnell
21
Slyto_Carnell 2015.08.25 21:00  
Alain Verleyen:

So add this directive, what is so hard ?

i really dont understand what they want from me :D
To add comments, please log in or register