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 Sun May 19, 2024 1:10 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 16 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: ea with he same lowest close
PostPosted: Thu Apr 26, 2012 3:50 pm 
Offline

Joined: Thu Apr 19, 2012 2:17 pm
Posts: 15
very good ... thanks this helps .. so actually we can substract custom indicators and build a new indicator with Molanis

I did create a new indicator .. MathAbs ( signal1 - signal2 ) ... but it does not draw a line in the chart .. maybe the value is tooo small to show ... ???

i included the new indicator


Attachments:
openh5minusopenhigh30.moi [1.89 KiB]
Downloaded 329 times
Top
 Profile  
 
 Post subject: Re: ea with he same lowest close
PostPosted: Fri Apr 27, 2012 8:41 am 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
In MetaTrader you cannot plot small numbers on top of the price chart because you won't see the line. You need to use the option to plot below the currency chart.


Top
 Profile  
 
 Post subject: Re: ea with he same lowest close
PostPosted: Fri Apr 27, 2012 10:31 am 
Offline

Joined: Thu Apr 19, 2012 2:17 pm
Posts: 15
i did plot it below the chart ???


Top
 Profile  
 
 Post subject: Re: ea with he same lowest close
PostPosted: Wed May 02, 2012 4:00 pm 
Offline

Joined: Thu Apr 19, 2012 2:17 pm
Posts: 15
I tried all of your suggestions ( display the new indicator in a separate window and a new ea )... none did work .. ea was just to to test the opening of a buy order ... if i switch from fe H1 to H4 it opens a buy right away even if the formula calls for differential of smaller than 1 pip ( n) ...

... guess might be better in this case to learn programming with MQL4 instead of trying endless loops wih Molanis ...


Attachments:
test kleiner als 1 pip.mol [4.56 KiB]
Downloaded 335 times
Top
 Profile  
 
 Post subject: Re: ea with he same lowest close
PostPosted: Thu May 03, 2012 10:43 am 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
I think you are in the right track. I will backtest it to see the ea behaviour. This takes some days though.


Top
 Profile  
 
 Post subject: Re: ea with he same lowest close
PostPosted: Mon May 07, 2012 10:27 pm 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
The indicator needs some changes
from
MathAbs(iCustom(NULL,0,"openhighest5",0,i))-(iCustom(NULL,0,"openhighest30",0,i))
to
MathAbs(iCustom(NULL,0,"openhighest5",1,i)-iCustom(NULL,0,"openhighest30",1,i))

The indicator builder tells you the signals like:
//***Read this first: Integration with Molanis Strategy Builder***
/*To integrate this indicator with Molanis Strategy Builder use the following modes:
Mode 1 = Higest of Open[i] with period 5;
*/
so mode 1 should be used


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 16 posts ]  Go to page Previous  1, 2

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