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 Wed May 15, 2024 5:36 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: 2ma"s 2 timeframes with oscillatoe.
PostPosted: Tue Feb 28, 2012 2:09 pm 
Offline

Joined: Sun Oct 30, 2011 9:05 pm
Posts: 12
Hi,i have based this on your example of two moving averages on two timeframes.
But i have added 2 oscillators of moving avs.
so 3ma>5ma, >0 on oscillator, in 5minute & 30 minute timeframe triggers a buy
but i have noticed it buys and sells regardless of oscillator ,
it opened a buys with the oscillator < 0 on 5 mins
and a sell when oscillator was >0 on 30 minutes.
the MAs worked but not the oscillator.
I re- checked settings but i think my schematic diag must be wrong somewhere.
My logic is flawed somewhere. Can i have your expert opinion please as to what i have done wrong.
Thankyou Baz


Attachments:
baz3x5maotf2.mol [21.19 KiB]
Downloaded 348 times
Top
 Profile  
 
 Post subject: Re: 2ma"s 2 timeframes with oscillatoe.
PostPosted: Wed Feb 29, 2012 2:15 pm 
Offline

Joined: Sun Jun 19, 2011 9:38 pm
Posts: 270
I checked out your mol while I was waiting for support too. It looks like you used 2 too many AND icons. You're MA's and OsMA's must be connected to the same AND icon in order to filter signals under both indies. You had 2 separate buy signals and 2 separate sell signals, even though you have one BUY icon and one SELL icon. Try the attached mol.


Attachments:
baz3x5maotf2_v2.mol [20.28 KiB]
Downloaded 416 times

_________________
I'm not a programmer, but I play one on TV.
Top
 Profile  
 
 Post subject: Re: 2ma"s 2 timeframes with oscillatoe.
PostPosted: Wed Feb 29, 2012 6:39 pm 
Offline

Joined: Sun Oct 30, 2011 9:05 pm
Posts: 12
Thankyou RJO, I owe you a beer!! Its so obvious in hindsight, for some reason i had thought i could only connect 2 imputs into an AND. I couldnt even spell oscillator.!! Best wishes and good luck with your inventions. cheers Baz


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