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 Thu May 16, 2024 8:33 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: MQL compiler execution failed
PostPosted: Thu Oct 24, 2013 12:22 am 
Offline

Joined: Mon Oct 21, 2013 7:46 pm
Posts: 3
Hello,

I'm getting an error when creating an iCustom indicator into an EA. I'm using the BBands_Stop indicator and I get this error when Generating: "ERROR: MQL compiler execution failed.

Meta Editor says when compiled:
'\end_of_program' - unbalanced left parenthesis 1919,1

I tried running PrettyPrinter to reformat the code, but it seemed to make more errors then anything.

I've included the indicator for MT4 and the Molanis file. It trades when the indicator switches from Red/Blue.

Any ideas?
Thanks!
-Jason


Attachments:
File comment: Indicator
BBandsStop.mq4 [5.71 KiB]
Downloaded 365 times
File comment: Molanis File
BBandsStop_01.mol [7.8 KiB]
Downloaded 385 times
Top
 Profile  
 
 Post subject: Re: MQL compiler execution failed
PostPosted: Fri Oct 25, 2013 8:55 pm 
Offline
Site Admin

Joined: Fri Oct 16, 2009 3:40 pm
Posts: 451
The import process is failing and does not get the right indicator info.
Open the indicator in metaeditor
Look for this line :
extern int Signal=1; // Display signals mode: 1-Signals & Stops; 0-only Stops; 2
change it to :
extern int Signal=1;
deleting // Display signals mode: 1-Signals & Stops; 0-only Stops; 2
save and compile the indicator (hit f5)
Import the indicator again into the strategy builder. it should work right away


Top
 Profile  
 
 Post subject: Re: MQL compiler execution failed
PostPosted: Sat Oct 26, 2013 12:16 am 
Offline

Joined: Mon Oct 21, 2013 7:46 pm
Posts: 3
Thank you so much, works perfect now. Thanks you!


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