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 03, 2024 9:21 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Closes above/below an MA in the last 'X' amount of bars
PostPosted: Sat Jan 05, 2013 6:44 am 
Offline

Joined: Wed Jul 18, 2012 11:06 pm
Posts: 78
Need some guidance here, I'm looking to play around with an indicator that judges strength in a more sideways or turning market. The idea being that once more closes start to happen above an MA, then the pair is strengthening. For example, as a filter for a long trade: More than half of the closes in the last 24 bars must be > 10 SMA.

I just made those numbers up as I obviously haven't tested them yet, but hopefully you get the point. Any help as to how to go about this would be much appreciated.


Cheers


Top
 Profile  
 
 Post subject: Re: Closes above/below an MA in the last 'X' amount of bars
PostPosted: Sun Jan 06, 2013 12:04 am 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
You cannot build that with the indicator builder - there is no way to tell it "More than half of the closes in the last 24 bars must be > 10 SMA". You can tell it if the current bar (or any bar) is > (or<) 10 sma


Top
 Profile  
 
 Post subject: Re: Closes above/below an MA in the last 'X' amount of bars
PostPosted: Sun Jan 06, 2013 7:07 am 
Offline

Joined: Wed Jul 18, 2012 11:06 pm
Posts: 78
Okie dokie, thanks for your reply.. :)


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