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 1:31 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Difference between 2 bar/curve
PostPosted: Wed Feb 10, 2010 12:12 am 
Offline

Joined: Wed Feb 03, 2010 10:09 pm
Posts: 15
Hello,

How could the difference between the 2 moving averages in pips be done on TA.
Say, after ascertain the shorter MA cross above the longer MA, I like to ensure there is significance seperation between the 2 curves before placing a trade. For a LONG, I simply try to ensure that there is a slope of the MAs rather than a flatliner.

Thanks :idea:


Top
 Profile  
 
 Post subject: Re: Difference between 2 bar/curve
PostPosted: Wed Feb 10, 2010 9:47 am 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
You can't get it in pips. A possible solution would be to compare the MA with the MA for the previous bar using shift 1.
Maybe this can help viewtopic.php?f=6&t=13&p=49&hilit=shift#p49
Also, You can add an AND and a new TA with another indicator like momentum that confirms your ma signals.

Another solution (more complex) would be to download the indicator builder http://www.molanis.com/products/molanis ... r-download and create a custom indicator, then use it in a TA as a custom indicator.
Here you need some math to create the indicator calculation. Using close price:
MA period 2 = (Close[i]+Close[i+1])/2
MA period 3 = (Close[i]+Close[i+1]+Close[i+2])/3
Find MA period 2 - MA period 3 and use it as the calculation for the indicator (you get the price difference - not pips): ((Close[i]+Close[i+1])/2) - ((Close[i]+Close[i+1]+Close[i+2])/3)
This is a bit complex when using periods higher than 5. In the next release of the indicator builder we'll add an average to make the calculation simple

Molanis Team


Top
 Profile  
 
 Post subject: Re: Difference between 2 bar/curve
PostPosted: Wed Feb 10, 2010 8:12 pm 
Offline

Joined: Wed Feb 03, 2010 10:09 pm
Posts: 15
Hi Molanis Team,

Regarding the use of MA, there is the 'MA Shift' and 'Shift' field.
Please correct me on this.

'Shift' refers to the price bar, meaning 0 is the current uncompleted, 1 is the previous completed bar, ...n. Usage normally for comparing MA trending.

I am not sure what 'MA Shift' for and its usage.

Thanks for the prompt reply as always. :)


Top
 Profile  
 
 Post subject: Re: Difference between 2 bar/curve
PostPosted: Wed Feb 10, 2010 10:45 pm 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
To understand the shift concept plot MA and change the shift.

Molanis Team


Last edited by molanisfx on Thu Feb 11, 2010 1:51 pm, edited 3 times in total.

Top
 Profile  
 
 Post subject: Re: Difference between 2 bar/curve
PostPosted: Thu Feb 11, 2010 12:19 am 
Offline

Joined: Wed Feb 03, 2010 10:09 pm
Posts: 15
Hi

The MA Shift on MT4 chart is a forward shift for MA Shift = 1.
It appears that for Molanis, it is a backward shift?

Regards


Top
 Profile  
 
 Post subject: Re: Difference between 2 bar/curve
PostPosted: Thu Feb 11, 2010 1:14 pm 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
We follow MT4 standard. The shift is to tell the system where to get the indicator value.
For MA shift look here http://forum.mql4.com/16290
MetaTrader definition here http://docs.mql4.com/indicators/iMA
Molanis Team


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