• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 7:45pm
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 7:45pm
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

lets develop a system which is very very simple but effective. 7 replies

Very simple insert Magic Number request for my exit EA 7 replies

mt4 coder needed for a very very simple system 2 replies

Need help for this very very simple indicator 0 replies

Very simple metaquotes request 1 reply

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
  • 1
Attachments: Exp MA ea request - very simple
Exit Attachments
Tags: Exp MA ea request - very simple
Cancel

Exp MA ea request - very simple

  • Post #1
  • Quote
  • First Post: Oct 7, 2009 10:50am Oct 7, 2009 10:50am
  •  jtmoore007
  • | Joined Jun 2008 | Status: Member | 792 Posts
I would like an ea that would do the following

when ea is turned on if price is above user defined ema then go long
if price is below ema then go short

that is all.

I want it to open 1 trade at a time and the lot size will be calcuated by a risk percentage based on input of sl

so the inputs would be:

magic number (So ea could be placed on several pairs)
ema
tp
sl
use trail stop set true/false
trail stop
risk %

as soon as either tp or sl is reached another market order is immediately opened based on above criteria.

example: price above ema when ea is turned on. market order buy is opened, tp is hit and price still above ema. market order buy is opened, sl is hit but price still above ema so market or buy is opened, sl is hit but price is now below ema so market order sell is opened and so on and so forth

so the ea would be in a trade at all times but only 1 trade at a time per pair

should be pretty easy for you programmers huh???

thanks a ton guys
  • Post #2
  • Quote
  • Oct 7, 2009 11:27am Oct 7, 2009 11:27am
  •  skorcht
  • | Joined Jun 2006 | Status: Member | 173 Posts
great for trending market..soon as it ranges, ur toast.

check out the universal-ma-cross-ea, just google it

will probably do what you want
taking series 3 and 34
 
 
  • Post #3
  • Quote
  • Oct 7, 2009 11:59am Oct 7, 2009 11:59am
  •  jtmoore007
  • | Joined Jun 2008 | Status: Member | 792 Posts
Yea I know. Will have to b good at turning on and off. Not really wanting ma cross but will take a look at it. Thanks for the suggestion
 
 
  • Post #4
  • Quote
  • Oct 7, 2009 1:04pm Oct 7, 2009 1:04pm
  •  skorcht
  • | Joined Jun 2006 | Status: Member | 173 Posts
a moving average of period 1 is basically the same a price, since it isn't a scalping method anyways
taking series 3 and 34
 
 
  • Post #5
  • Quote
  • Oct 7, 2009 1:23pm Oct 7, 2009 1:23pm
  •  jtmoore007
  • | Joined Jun 2008 | Status: Member | 792 Posts
Quoting skorcht
Disliked
a moving average of period 1 is basically the same a price, since it isn't a scalping method anyways
Ignored
Yea I thought about that. Just haven't been home to try itoutyet. Thanks
 
 
  • Post #6
  • Quote
  • Oct 7, 2009 3:26pm Oct 7, 2009 3:26pm
  •  jtmoore007
  • | Joined Jun 2008 | Status: Member | 792 Posts
universal ea not taking trades as i described.

can someone code this up for me as described in post 1??
 
 
  • Post #7
  • Quote
  • Oct 11, 2009 11:31pm Oct 11, 2009 11:31pm
  •  helloguy
  • | Joined Oct 2009 | Status: Junior Member | 10 Posts
Thats interesting, in a more recent post Pharoh wanted the same thing. I allready coded the basic EA but it does not have MM or TS yet. Projects for another day I suppose.

see http://www.forexfactory.com/showthread.php?t=201082
 
 
  • Post #8
  • Quote
  • Oct 12, 2009 12:14pm Oct 12, 2009 12:14pm
  •  IamTHAT
  • Joined Jun 2008 | Status: Member | 578 Posts
I have altered one of Nanninbob' EA (martingale type) for EMA crossover. See if it suits your purpose.
Keep MaxTrades at 1 to avoid multiple entries.
EMA period and TF can be set externally. I have also provided a buffer setting for so that trade takes place only when moves beyond MA by certain pips.
However, MM aspect of this EA is not yet tested. It should work anyway..
Attached File(s)
File Type: ex4 NanningBob-EMAcross.ex4   18 KB | 297 downloads
"Put all your efforts in becoming effortless"
 
 
  • Post #9
  • Quote
  • Oct 12, 2009 6:44pm Oct 12, 2009 6:44pm
  •  jtmoore007
  • | Joined Jun 2008 | Status: Member | 792 Posts
Quoting IamTHAT
Disliked
I have altered one of Nanninbob' EA (martingale type) for EMA crossover. See if it suits your purpose.
Keep MaxTrades at 1 to avoid multiple entries.
EMA period and TF can be set externally. I have also provided a buffer setting for so that trade takes place only when moves beyond MA by certain pips.
However, MM aspect of this EA is not yet tested. It should work anyway..
Ignored
Thanks a ton. I'm a follower of bobs. Mainly the 4 hr manuall system but am familiar with his eas. Can't even look at it now as I am away from computer. But looking forward to seeing your mods. Thanks a lot for taking the time to do this. Will let everyone know If I find anything of value

again I really appreciate it. Now I can test a little theroy I have. Been doing good in forward test. Want to know how it will backtest and almost impossible to do manually on several pairs

yea I saw the other thread. Was waiting for more response from it since I wasn't getting anything from mine until now.

Thanks
 
 
  • Post #10
  • Quote
  • Last Post: Oct 12, 2009 10:17pm Oct 12, 2009 10:17pm
  •  IamTHAT
  • Joined Jun 2008 | Status: Member | 578 Posts
Quoting jtmoore007
Disliked
Thanks a ton. I'm a follower of bobs.

Thanks
Ignored
Hi,

I am also trying out various MA crosses with this type of EA.
MY suggestion is that you better try 5EMA (crossing say 21SMA on H1 or H4) instead of price crossing Ma as trigger to avoid false entries.
Please keep me informed of your findings.
"Put all your efforts in becoming effortless"
 
 
  • Platform Tech
  • /
  • Exp MA ea request - very simple
  • Reply to Thread
0 traders viewing now
Top of Page
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2023