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 8:21 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: How to program EA to BUY when Stochastics point UP
PostPosted: Thu Aug 25, 2011 7:57 am 
Offline

Joined: Thu Jul 14, 2011 2:21 pm
Posts: 1
Please help!

I have designed EA with MA crossovers, however I need help to tell EA to only

ONLY buy when the
1) MA cross over in the upward direction
2) stochastics (5,3,3) are pointing up only
3) stochastics (5,3,3) are not is the over bought zone (OVER BOUGHT ZONE (> OR =70)
3) RSI (14) is above 50

ONLY SELL when the
1) MA cross over in the DOWNWARD direction
2) stochastics (5,3,3) are pointing DOWN only
3) stochastics (5,3,3) are not is the over bought zone (OVER SOLD ZONE (= OR <30)
3) RSI (14) is BELOW 50

How do I program the EA to only buy when Stochasticss are pointing up?

i HAVE ATTACHED THE mol file

Thanks for your help!


Attachments:
MA-15M time frame (AUDUSD) 25.08.11.mol [11.9 KiB]
Downloaded 490 times
Top
 Profile  
 
 Post subject: Re: How to program EA to BUY when Stochastics point UP
PostPosted: Thu Aug 25, 2011 8:51 am 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
First thing to do is to use the current symbol and current timeframe in all options so your ea will work in all timeframes for all pairs and it will be easier to test. MT4 does no backtest expert advisors that are multitimeframe so if you put the time frame 15 in the TA icons, you should backtest it for the 15 min option. The other options (1m,1h,etc) won't be reliable.
Please post your custom indicator for us to understand the ea.

Many posts in this forum talk about stochastic. I did a quick search for stochastic and got this:
viewtopic.php?f=6&t=134&p=526&hilit=stochastic#p526
To define crossovers you can read this viewtopic.php?f=2&t=131&p=523&hilit=crossovers#p523 - or you can use the latest beta - the new next trade management feature for v3.15 makes thing easier
Finally, you may want to take a look at the oversold examples here http://www.molanis.com/products/molanis ... rs-for-mt4 - The logic is the same


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 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