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 May 13, 2024 3:09 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: molanis can't read custom indicator
PostPosted: Sun Jul 01, 2012 7:14 am 
Offline

Joined: Thu May 31, 2012 3:09 am
Posts: 8
Hello
Could you look at my indicator ? What do I have to change in its code to use this indicator and build an EA ?
thanks


Attachments:
10.2 TMA slope v.1.4B 4.30.mq4 [9.7 KiB]
Downloaded 354 times
Top
 Profile  
 
 Post subject: Re: molanis can't read custom indicator
PostPosted: Sun Jul 01, 2012 4:12 pm 
Offline

Joined: Sun Jun 19, 2011 9:38 pm
Posts: 270
This version is from SteveHopwoodForex.com. I think the name says it all. If you haven't seen the link to SHF at the 10.2 thread at ForexFactory, then you may not know that NanningBob has an entire thread dedicated to the entire 10.2 EA: http://www.forexfactory.com/showthread.php?t=308304.


Attachments:
10.2 TMA slope v.1.4B 4.30 for EA.mq4 [9.71 KiB]
Downloaded 427 times

_________________
I'm not a programmer, but I play one on TV.
Top
 Profile  
 
 Post subject: Re: molanis can't read custom indicator
PostPosted: Sun Jul 01, 2012 9:48 pm 
Offline
Site Admin

Joined: Fri Oct 16, 2009 3:40 pm
Posts: 451
Do you get an error when you import the indicator? are you importing the mq4 file?


Top
 Profile  
 
 Post subject: Re: molanis can't read custom indicator
PostPosted: Sun Jul 01, 2012 10:00 pm 
Offline

Joined: Sun Jun 19, 2011 9:38 pm
Posts: 270
I just realized the 2 indi's above have the same code aside from 2 instances of an object label in the original. They should import exactly the same.

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


Top
 Profile  
 
 Post subject: Re: molanis can't read custom indicator
PostPosted: Mon Jul 02, 2012 3:01 am 
Offline

Joined: Thu May 31, 2012 3:09 am
Posts: 8
I use mq4 file and get an error: molanis can't read the custom indicator. Indicator works well on charts. I know some older thread in this forum and I think there is a problem wit a code.

viewtopic.php?f=9&t=1446


Top
 Profile  
 
 Post subject: Re: molanis can't read custom indicator
PostPosted: Mon Jul 02, 2012 10:40 am 
Offline

Joined: Sun Jun 19, 2011 9:38 pm
Posts: 270
Well that certainly helps... it was the object indeed. :D


1. In the attached version (tested ok) this line is commented out:

//extern string OtherTimeFrames = "Select below 0=current tf,1,5,15,30,60,240,1440,10080,43200";


2. In the "for EA" version (untested) this line is no longer an external string:

string OtherTimeFrames = "Select below 0=current tf,1,5,15,30,60,240,1440,10080,43200";


3. And in the original version (tested bad) this line is an external string:

extern string OtherTimeFrames = "Select below 0=current tf,1,5,15,30,60,240,1440,10080,43200";


I bet #2 would have worked if we tested it (see 4 posts ago). FYI: The complete error notification in SB tells us that the external is trying to equal an object which is a tip off to the source of the problem. Screenshots are always helpful if you are able.


Attachments:
10.2 TMA slope v.1.4B 4.30 test.mq4 [9.71 KiB]
Downloaded 398 times

_________________
I'm not a programmer, but I play one on TV.
Top
 Profile  
 
 Post subject: Re: molanis can't read custom indicator
PostPosted: Wed Jul 04, 2012 4:30 am 
Offline

Joined: Thu May 31, 2012 3:09 am
Posts: 8
Thanks a lot for the solution. It works :)
Unfortunately there is another problem with this indicator. My EA does not understand orders relating to values below 0-line, e.g. sell below -0,5.
regards


Top
 Profile  
 
 Post subject: Re: molanis can't read custom indicator
PostPosted: Wed Jul 04, 2012 8:45 am 
Offline

Joined: Sun Jun 19, 2011 9:38 pm
Posts: 270
Try selecting Mode 6. In the code, it is labeled as the Slope value but hidden via DRAW_NONE.

_________________
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  [ 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