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 Sat May 18, 2024 10:51 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: end_of_program' - unbalanced left parenthesis
PostPosted: Sun Jun 19, 2011 9:58 pm 
Offline

Joined: Sun Jun 19, 2011 9:38 pm
Posts: 270
When I go to Trading Diagram and then Generate MQL4 Code, I get an "end of program' - unbalanced left parenthesis" error. Strategy imports only one custom indicator. The respective mol and mq4 files are attached. Thanks in advance for any assistance offered.


Attachments:
File comment: Strategy mol file.
OBOS.mol [13.17 KiB]
Downloaded 340 times
File comment: Custom indicator mq4 file.
RSI_STO_WPR__OBOS_Zone.mq4 [5.94 KiB]
Downloaded 382 times

_________________
I'm not a programmer, but I play one on TV.
Top
 Profile  
 
 Post subject: Re: end_of_program' - unbalanced left parenthesis
PostPosted: Mon Jun 20, 2011 9:23 am 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
The problem is the custom indicator. It's not well written so the import function cannot get the right signals.
I made a quick change and it should work. Use the attached indicator.


Attachments:
File comment: Custom indicator
RSI_STO_WPR__OBOS_Zone.mq4 [5.94 KiB]
Downloaded 415 times
Top
 Profile  
 
 Post subject: Re: end_of_program' - unbalanced left parenthesis
PostPosted: Mon Jun 20, 2011 9:39 am 
Offline

Joined: Sun Jun 19, 2011 9:38 pm
Posts: 270
Thank you. Works like a champ now. Now I can import the other modes of this indicator and move forward. For anyone that's interested, the attached indicator is a combied Relative Strength Index, Stochastic Oscillator, and Williams Percent Range with colored overbought and oversold zones. Works pretty well on M5 GBP/JPY. The key is to keep your eye on the RSI and WPR to avoid breakouts/breakdowns. This is for range trading.

_________________
I'm not a programmer, but I play one on TV.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 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