Download MetaTrader 5

Compiling error "'interval' - undeclared identifier Test 1.mq4 81 38

To add comments, please log in or register
Pippinusa
54
Pippinusa  

Im getting this 1 error after compiling, I am new with MQL4 coding, Can anyone see the problem so I can correct it ? Thanks

'interval' - undeclared identifier Test 1.mq4 81 38

see attatched picture
Sergey Golubev
Moderator
98402
Sergey Golubev  
cliffvitale:

Im getting this 1 error after compiling, I am new with MQL4 coding, Can anyone see the problem so I can correct it ? Thanks

'interval' - undeclared identifier Test 1.mq4 81 38

see attatched picture

I am no a coder so I can not correct but I think that it better to have a code than to find something on the photo (to corerect using photo).

whroeder1
15934
whroeder1  
cliffvitale: Im getting this 1 error after compiling, I am new with MQL4 coding, Can anyone see the problem so I can correct it ?

'interval' - undeclared identifier Test 1.mq4 81 38

buyPrice=NormalizeDoublehigh2+interval*Point,Digits);

  1. What's the problem? You are using a variable interval, but no where do you declare it and give it a value.
  2. Prices from the broker are normalized. No need to change them.
  3. Do NOT use NormalizeDouble, EVER. For ANY Reason. It's a kludge, don't use it. It's use is always wrong
  4. Check your return codes What are Function return values ? How do I use them ? - MQL4 forum and Common Errors in MQL4 Programs and How to Avoid Them - MQL4 Articles
To add comments, please log in or register