Forex
Google
New signals service!

Go Back   Forex Trading > Discussion Areas > Metatrader 4


Register in Forex TSD!
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time).
Click here to register and get more information

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-24-2006, 12:11 AM
Junior Member
 
Join Date: Nov 2006
Location: Dubai
Posts: 9
pete36 is on a distinguished road
'\end_of_program' - unbalanced left parenthesis (error)

I am programming an EA...when compiling, i got the following message:

'\end_of_program' - unbalanced left parenthesis

Is there anyone who can help me sort it out or is there any documentation that i can read -- "hints and tips" (couldn't find any on this type of error!)

Please let me know, thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 11-24-2006, 12:16 AM
codersguru's Avatar
Senior Member
 
Join Date: Oct 2005
Posts: 987
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
Quote:
Originally Posted by pete36
I am programming an EA...when compiling, i got the following message:

'\end_of_program' - unbalanced left parenthesis

Is there anyone who can help me sort it out or is there any documentation that i can read -- "hints and tips" (couldn't find any on this type of error!)

Please let me know, thanks.
unbalanced left parenthesis <- this is the answer
Maybe you forgot ( or ) or { or }
for example:
Print(hi;
Print hi);
__________________
Hope it helps !
Coders' Guru
Senior MQL programmer:
www.xpworx.com/custom.htm
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 11-24-2006, 12:32 AM
Junior Member
 
Join Date: Nov 2006
Location: Dubai
Posts: 9
pete36 is on a distinguished road
'\end_of_program' - unbalanced left parenthesis (error)

Hi Coders Guru,

I checked it again and again and again...could not find the missing parenthesis!!
If you can have a look at it, i would really appreciate it.
Thanks
Attached Files
File Type: mq4 MA_MACD.mq4 (4.8 KB, 23 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 11-24-2006, 01:00 AM
codersguru's Avatar
Senior Member
 
Join Date: Oct 2005
Posts: 987
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
You need to read more!

Quote:
Originally Posted by pete36
Hi Coders Guru,

I checked it again and again and again...could not find the missing parenthesis!!
If you can have a look at it, i would really appreciate it.
Thanks
This code needs three days to correct!
Some of notes:

PHP Code:
if(OrderSymbol() == Symbol() && OrderType()==OP_BUY); <-- No semicolon in the line of IF 
PHP Code:
 if (TakeProfit=0Target=0; <-- Use == not 
I corrected it for you to compare it with yours! But I'm not sure it's a woking code!
Attached Files
File Type: mq4 MA_MACD.mq4 (4.8 KB, 17 views)
__________________
Hope it helps !
Coders' Guru
Senior MQL programmer:
www.xpworx.com/custom.htm
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 11-24-2006, 01:11 AM
Junior Member
 
Join Date: Nov 2006
Location: Dubai
Posts: 9
pete36 is on a distinguished road
Smile Coders Guru, you're the BEST!!!

Thanks a lot, really appreciate it!!!!

this EA still needs a lot of calibration and adjustments - thats just the start - i needed to go over this error to do the rest - thanks again and again and again
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 11-24-2006, 01:16 AM
codersguru's Avatar
Senior Member
 
Join Date: Oct 2005
Posts: 987
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
Thumbs up

Quote:
Originally Posted by pete36
Thanks a lot, really appreciate it!!!!

this EA still needs a lot of calibration and adjustments - thats just the start - i needed to go over this error to do the rest - thanks again and again and again
You're welcome!
Go ahead and complete the EA! I hope to see u a very good MQL coder very soon!
__________________
Hope it helps !
Coders' Guru
Senior MQL programmer:
www.xpworx.com/custom.htm
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 11-24-2006, 02:01 AM
Junior Member
 
Join Date: Nov 2006
Location: Dubai
Posts: 9
pete36 is on a distinguished road
I hope so...

the EA is error free now, but you are right it is not working. I have to figure it out else i am coming back to you!!
It is great stuff, your MQL4 tutorial, in a week or so, i am now able to understand and read a code...but still i need to get the details right...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 04-18-2008, 04:28 PM
Junior Member
 
Join Date: Feb 2008
Posts: 1
zeeembah is on a distinguished road
help me too !!!

i have some problem with this EA, please someone help me . thank's before for your answer.
Attached Files
File Type: mq4 momentumku.mq4 (3.9 KB, 4 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Tags
'\end_of_program' - unbalanced left parenthesis

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
shift indicator_level1 to the left Jagg Metatrader 4 2 04-16-2007 11:18 AM
Time left before closing of the bar springsnow Indicators - Metatrader 4 2 01-29-2007 04:37 PM
Error with MarketInfo AirforceMook Metatrader 4 3 09-16-2006 03:55 AM
Error JoZo General Discussion 2 06-28-2006 07:45 PM


All times are GMT. The time now is 03:11 PM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.