Forex
Google
New signals service!

Go Back   Forex Trading > Discussion Areas > Suggestions for Trading Systems


Register in Forex TSD!
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time).
Click here to register and get more information

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-29-2006, 06:28 AM
Member
 
Join Date: Dec 2005
Posts: 52
hoosain is on a distinguished road
Looking for EA (Price crossing MA)

Hi, Can anyone point me to where I can find an EA that does the following:

When the price is under a 30 MA (30min chart) and the price crosses the 30MA from under going up and a new bar opens above the 30MA a BUY order must be opened. Order must be opened on FIRST bar that opens above or below. Vice versa for a SELL. Any input apprciated. Many thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-07-2006, 11:28 AM
dm001's Avatar
Junior Member
 
Join Date: Mar 2006
Location: Surrey, England
Posts: 9
dm001 is on a distinguished road
Hoosain: I am interested in this kind of setup and was wondering if you found an EA?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-07-2006, 03:30 PM
firedave's Avatar
Senior Member
 
Join Date: Nov 2005
Location: Jakarta, Indonesia
Posts: 416
firedave is on a distinguished road
Some question, are you going to set a Stop Loss and Take Profit ? How about the exit criteria ? Is this going to be Stop And Reverse / Always In Play trade ? Thank you for your input
__________________
David Michael H
"Trader helps traders with sincerity, honesty and integrity"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-09-2006, 11:43 PM
firedave's Avatar
Senior Member
 
Join Date: Nov 2005
Location: Jakarta, Indonesia
Posts: 416
firedave is on a distinguished road
Okay, try this one. Use on any time frame, any pair, any MA period, any MA method, any MA price. Build in stop and reverse method, time filter, and money management. Some note :
- if TrailingStop set to 0, mean no trailing stop feature
- if StopAndReverse set to true, mean it will close the trade and open new one, if signal change.
- if UseHourTrade set to false, mean no time filter.
- Lots is set to 1, but if MM set to true, mean it will adjust the Lots according to the money management risk.

I didn't try it yet nor backtest it, so please give me some input. Hope this help

ps. I updated the file, got some mistake for variable setting
Attached Files
File Type: mq4 PriceCrossMA.mq4 (10.9 KB, 214 views)
__________________
David Michael H
"Trader helps traders with sincerity, honesty and integrity"

Last edited by firedave; 04-10-2006 at 01:49 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-10-2006, 12:53 AM
codersguru's Avatar
Senior Member
 
Join Date: Oct 2005
Posts: 987
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
Thumbs up

Quote:
Originally Posted by firedave
Okay, try this one. Use on any time frame, any pair, any MA period, any MA method, any MA price. Build in stop and reverse method, time filter, and money management. Some note :
- if TrailingStop set to 0, mean no trailing stop feature
- if StopAndReverse set to true, mean it will close the trade and open new one, if signal change.
- if UseHourTrade set to false, mean no time filter.
- Lots is set to 1, but if MM set to true, mean it will adjust the Lots according to the money management risk.

I didn't try it yet nor backtest it, so please give me some input. Hope this help
firedave,

Congratulations!
Very clean and tidy code. You did a great job.
__________________
Hope it helps !
Coders' Guru
Senior MQL programmer:
www.xpworx.com/custom.htm
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-10-2006, 01:41 AM
firedave's Avatar
Senior Member
 
Join Date: Nov 2005
Location: Jakarta, Indonesia
Posts: 416
firedave is on a distinguished road
Hi codersguru, it's an honor to have a compliment from the code master. I hope you don't mind that I use some of your function code, I put your name as the coder. Thank you for many of your guidance and support all this time, I've learnt a lot from you. Hope I could contribute something for the community. All the best for you
__________________
David Michael H
"Trader helps traders with sincerity, honesty and integrity"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 04-10-2006, 08:52 AM
dm001's Avatar
Junior Member
 
Join Date: Mar 2006
Location: Surrey, England
Posts: 9
dm001 is on a distinguished road
Thanks for the EA firedave. I shall have a look at it later.

Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 04-10-2006, 11:24 AM
Member
 
Join Date: Mar 2006
Posts: 77
iliaazshareef is on a distinguished road
hi,
this EA can be modified such that there is no TP and SL. The buy and sell to be dictated by the crossing of the price and the MA. Anybody can help with getting this setting.
Thx
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 04-10-2006, 11:43 AM
firedave's Avatar
Senior Member
 
Join Date: Nov 2005
Location: Jakarta, Indonesia
Posts: 416
firedave is on a distinguished road
Quote:
Originally Posted by iliaazshareef
hi,
this EA can be modified such that there is no TP and SL. The buy and sell to be dictated by the crossing of the price and the MA. Anybody can help with getting this setting.
Thx
To do this, just set StopLoss and TakeProfit to 0 (zero) then set StopAndReverse to true (default setting). Hope this help
__________________
David Michael H
"Trader helps traders with sincerity, honesty and integrity"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 04-10-2006, 12:48 PM
Member
 
Join Date: Dec 2005
Posts: 52
hoosain is on a distinguished road
Hi Firedave, many thanks for the EA. Will test it and let u know how it goes.

Best regards
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CROSSING EMA 5 x EMA 13 Heder Suggestions for Trading Systems 38 04-13-2007 01:50 PM
Alarm on a crossing of stochastic Imperatorfr Metatrader 3 8 04-09-2006 08:51 AM
EA SMA crossing testing improvement 100% sunwest Suggestions for Trading Systems 9 02-03-2006 11:42 AM
Crossing pivot line M5 BrunoFX Suggestions for Trading Systems 20 01-15-2006 08:04 AM
Auntie LWMA crossing Audio Metatrader 4 2 12-26-2005 12:01 AM


All times are GMT. The time now is 09:46 PM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.