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 Fri May 17, 2024 2:26 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Won't be able to import custom indicator
PostPosted: Thu Nov 14, 2013 6:32 am 
Offline

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

I have a problem when importing custom indicator, an error message was: can't read the custom indicator, Aborting! please verify that you are reading an MQL file. nln the custom field insert the indicator name and variables. May I know what's wrong with it and how to resolve the problem?

Thank you!


Attachments:
real-cloud.mq4 [2.13 KiB]
Downloaded 379 times
Top
 Profile  
 
 Post subject: Re: Won't be able to import custom indicator
PostPosted: Thu Nov 14, 2013 5:05 pm 
Offline
Site Admin

Joined: Fri Oct 16, 2009 3:40 pm
Posts: 451
The problem is that they include instructions for variables and they variable definition causes issues
Try changing these lines:

extern int TimeFrame1=1440,
TimeFrame2=0,
Period1=9,
Period2=76;
extern string Method="0=SMA,1=EMA,2=SMMA,3=LWMA";
extern int Method1=1,
Method2=3;
extern string Price="0=Close,1=Open,2=High,3=Low,4=Median,5=Typical,6=Weighted";
extern int Price1=0,
Price2=6;

To

extern int TimeFrame1=1440;
extern int TimeFrame2=0;
extern int Period1=9;
extern int Period2=76;
//extern string Method="0=SMA,1=EMA,2=SMMA,3=LWMA";
extern int Method1=1;
extern int Method2=3;
//extern string Price="0=Close,1=Open,2=High,3=Low,4=Median,5=Typical,6=Weighted";
extern int Price1=0;
extern int Price2=6;


Top
 Profile  
 
 Post subject: Re: Won't be able to import custom indicator
PostPosted: Fri Nov 15, 2013 5:15 am 
Offline

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

Thank you for your reply!

After following your instruction and did the modification of an indicator, but the same problems and errors still persisted. kindly take a look again see what's wrong with it!

Thank you for your help!


Top
 Profile  
 
 Post subject: Re: Won't be able to import custom indicator
PostPosted: Sat Nov 16, 2013 2:16 pm 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
Make sure you select the mq4 file and not the ex4 file
If that does not help, post the modified indicator


Top
 Profile  
 
 Post subject: Re: Won't be able to import custom indicator
PostPosted: Fri Nov 22, 2013 8:28 pm 
Offline

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

Thank you for your reply!

I am select the mq4 file and not the ex4 file, but the same problems still persisted.
Please find the modified indicator file as you requested.


Attachments:
real-cloud.mq4 [2.13 KiB]
Downloaded 453 times
Top
 Profile  
 
 Post subject: Re: Won't be able to import custom indicator
PostPosted: Sun Nov 24, 2013 1:19 pm 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
I think the indicator you posted does not have any modification. Try again, make the modifications, save the indicators under a new name, then import it


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