Forex



Go Back   Forex Trading > Discussion Areas > Metatrader 4






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
 
Thread Tools Display Modes
  #1 (permalink)  
Old 03-08-2006, 08:51 PM
Member
 
Join Date: Mar 2006
Posts: 77
iliaazshareef is on a distinguished road
Exclamation a simple setup - EA requested for testing

I don't know anything about programming an EA. If anyone can please help me?


MA1 - 24 Exp high
MA2 - 24 Exp low
Macd - default
adx - default

buy
1. price above MA1
2. macd above +0.00040
3. adx above 22

exit - price below MA2
- macd below 0

sell - 1. price below MA2
2. macd below -0.00040
3. adx above 22

exit - price above MA1
macd above 0

tp = 200
stoploss = 25
trailing sl = 5
TF = 1hr

option to change tp, sl functions.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #2 (permalink)  
Old 03-08-2006, 09:09 PM
Nicholishen's Avatar
Senior Member
 
Join Date: Dec 2005
Posts: 531
Nicholishen is on a distinguished road
Hi,
Has your system been test manually? Are you wanting to open the order on the first instance of the price moving past the MA or do you want to open on Open of the first bar past the MA?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #3 (permalink)  
Old 03-08-2006, 10:52 PM
Senior Member
 
Join Date: Jan 2006
Posts: 272
haubentaucher is on a distinguished road
can you post a chart, please?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #4 (permalink)  
Old 03-09-2006, 02:50 AM
Member
 
Join Date: Mar 2006
Posts: 77
iliaazshareef is on a distinguished road
hi,
I tested it manually for a couple of trades and it works fine, only thing is this method needs to be tested more vigirously with maybe one more condition to eliminate whipsaws.
The Macd establishes a good trend direction.
The adx signals the strength of the established trend but i found that the Pairs with Euro as base and GBP as base is not that good because of too much whipsaws, maybe another indicator which can eliminate such whipsaws can be used but that can be added later once we have a basic EA to work on.

Hi, Nicholishen , I think , the next bar after the condition are met would be safer.
thxs
Attached Images
File Type: jpg chart 1.JPG (106.6 KB, 336 views)

Last edited by iliaazshareef; 03-09-2006 at 02:54 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #5 (permalink)  
Old 03-14-2006, 11:39 PM
Nicholishen's Avatar
Senior Member
 
Join Date: Dec 2005
Posts: 531
Nicholishen is on a distinguished road
Here is the EA which you have requested. Testing is not as good as i had hoped, but you can play around with it a bit. Here is the code for entry and exit:

PHP Code:
int TradeSignal(int functyp){

int x=Confirm;
double 
   MA1
=iMA(NULL,0,24,0,MODE_EMA,PRICE_HIGH,x),
   
MA2=iMA(NULL,0,24,0,MODE_EMA,PRICE_LOW,x),
   
MACD=iMACD(NULL,0,12,26,9,MODE_CLOSE,MODE_SIGNAL,x),
   
adx=iADX(NULL,0,14,MODE_CLOSE,0,x);
   
/*
MA1 - 24 Exp high
MA2 - 24 Exp low
Macd - default
adx - default
*/
   
if(functyp==1){//open
      
if(Ask MA1 && MACD 0.00040 && adx 22)return(2);
      if(
Bid MA2 && MACD < -0.00040 && adx 22)return(1);
   }
   if(
functyp==2){//exit
      
if(Bid<MA2 && MACD )return(0);
      if(
Ask>MA1 && MACD 0)return(0);
   }
 
/*  
buy
1. price above MA1
2. macd above +0.00040
3. adx above 22

exit - price below MA2
- macd below 0

sell - 1. price below MA2
2. macd below -0.00040
3. adx above 22

exit - price above MA1
macd above 0

tp = 200
stoploss = 25
trailing sl = 5
TF = 1hr
   

 */  
return(0);

Nic
Attached Files
File Type: mq4 Simple EA ii.mq4 (8.8 KB, 106 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #6 (permalink)  
Old 03-15-2006, 05:15 AM
Member
 
Join Date: Mar 2006
Posts: 77
iliaazshareef is on a distinguished road
hi,
thankyou Nicholishen for the EA ,
I would like to post this EA on a different thread so that others can contribute or critise .

I used daily chart backtest , looks very promising, look at the thread titled "NEW EA courtesy of Nicholishen".

Mohammed also gave me a good EA.

You guys are great.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web 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 Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Forex Trading With Simple Setup ramdas Suggestions for Trading Systems 413 04-08-2009 11:25 AM
New Indicator Testing Requested junglelion Indicators - Metatrader 4 0 04-05-2007 02:34 PM
Help requested for EA mod gpw797 Expert Advisors - Metatrader 4 1 12-28-2006 05:06 PM


All times are GMT. The time now is 04:14 PM.



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