molanis.com/forum - Tools for MetaTrader : The place to ask about the best expert advisor builder, expert advisor downloads, and expert advisor programming

AFTER YOU REGISTER SEND US AN EMAIL TO ACTIVATE YOUR ACCOUNT - Before posting:-1- Please read the user guide -2- Try the examples -3- Search in the forum
It is currently Mon Apr 29, 2024 6:15 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Error, Please help
PostPosted: Wed Jun 29, 2011 8:30 am 
Offline

Joined: Thu Aug 12, 2010 7:49 am
Posts: 81
Hi, Molanis,
I would like to use custom indicator to create an EA, when I Generate MQL4 code, it showed that MQL compiler execution failed. On The error tab it shown that 1 error. The error message was \end of _program- unbalanced left parenthesis. May I know how to solved this problem?

Thank you for your help.


Attachments:
NonLagMA_v7.1.mq4 [6.31 KiB]
Downloaded 795 times
NonlagMA_v7.1 EA.mol [5.81 KiB]
Downloaded 695 times
Top
 Profile  
 
 Post subject: Re: Error, Please help
PostPosted: Wed Jun 29, 2011 9:12 am 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
An error like end of _program- unbalanced left parenthesis is a sign that the import of the custom indicator failed. Most likely the indicator is not well written so the import function cannot get all variables and signals.
In your case the indicator is not well written so the import could'n recognize one variable. I made a quick change in the indicator to make it work.
Please use the attached indicator.


Attachments:
File comment: Modified Indicator
NonLagMA_v7.1.mq4 [6.31 KiB]
Downloaded 724 times


Last edited by molanisfx on Thu Jul 07, 2011 10:59 am, edited 1 time in total.
Top
 Profile  
 
 Post subject: Re: Error, Please help
PostPosted: Thu Jul 07, 2011 8:41 am 
Offline

Joined: Thu Aug 12, 2010 7:49 am
Posts: 81
Hi, Molanis,

Currently, I have another Indicator want to create an EA, but I am facing the same problem as this one,
The error message was \end of _program- unbalanced left parenthesis. May I know how are you modified my previous Indicator? because I won't be able to see any difference between the original and modified indicators you have modified it for me. May I know how to solved this kind of error?

Thank you.


Top
 Profile  
 
 Post subject: Re: Error, Please help
PostPosted: Thu Jul 07, 2011 10:56 am 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
90% of the indicators need a simple edit: Add the indicator to a chart and look at the inputs. This will give you an idea of the variables involved.
Open the indicator with the metatrader editor (metaeditor). Look for variables definitions and clean them, do not leave comments after the variables
i.e.
extern int period=15; //period
extern int method=3; //method
extern int price=0; //enter a number

should be changed to

extern int period=15;
//period
extern int method=3;
//method
extern int price=0;
//enter a number

To fix the other 10% you need coding


Top
 Profile  
 
 Post subject: Re: Error, Please help
PostPosted: Wed Sep 05, 2012 10:13 am 
Offline

Joined: Tue Sep 04, 2012 10:17 am
Posts: 12
I did not receive an authorization message stating that I am allowed to post yet until I am approved. I recently signed up and posted a reply, but I have not received the message stating that it was posted.

Why is there a delay?


Top
 Profile  
 
 Post subject: Re: Error, Please help
PostPosted: Thu Sep 06, 2012 9:02 am 
Offline
Site Admin

Joined: Fri Oct 16, 2009 3:40 pm
Posts: 451
I think you are off topic here. It's better to start a new thread for every new question. Anyway the forum gets lots of spam so a moderator has to review manually the first post and aprove it - we do not do this every day


Top
 Profile  
 
 Post subject: Re: Error, Please help
PostPosted: Fri Sep 07, 2012 8:20 am 
Offline

Joined: Tue Sep 04, 2012 10:17 am
Posts: 12
Hi Molinas,

I am trying to create an EA using the attached indicator, which gives a digital reading using every tick. I keep getting the same error when trying to load the indicator. Can the strategy builder work for this indicator?


Attachments:
TmaSlope.v1.5 Normalized.mq4 [13.14 KiB]
Downloaded 646 times
Top
 Profile  
 
 Post subject: Re: Error, Please help
PostPosted: Fri Sep 07, 2012 8:36 am 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
Please start a new thread with your question


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by Molanis © 2009