Profitable EA - so far; 60days = 562 pips
  #1 (permalink)  
Old 02-13-2007, 02:48 AM
Freshman
 
Join Date: Feb 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
MGC22 is on a distinguished road
Lightbulb Profitable EA - so far; 60days = 562 pips

Hello,

I am just learning MetaQuotes so it is slow going.
I have started writing an EA that can enter a trade when I want.
I enter the trade with a stop loss of 50 and a take profit of 15.
I tested the EA on the Neuimex platform for the dates 12/1/06 thru 2/5/07 with a profit of 562 pips. I will try to include a screen print of the results.

Basically my EA takes the first tick of a 15 min and a 4hr chart. If the previous 15m close is above 50% of the chart and the 4hr close is above 75% then I buy. Below 50% and 75% I sell.

Now I want to add some things to it. I want to be able to move the stop to break even once I am up 10 pips and also have a trailing stop of 10 pips.
Also I believe there is a way to know buying and selling pressure. If possible I would like to only enter the trade if the pressure is in the direction of the trade I want to take.

I would like to learn how to do this but I am not opposed to someone doing it for me. I can learn by reading the finished code.

This is what I got so far.....
if(Volume[0]>1) return;
int ticket;
double dCurrentOpen, dCurrentHigh;
double dCurrentLow, dCurrentClose;
double dA, dD;
double dCD, dPerc;
double dCurrent4hrOpen, dCurrent4hrHigh;
double dCurrent4hrLow, dCurrent4hrClose;
double dA4, dD4;
double dCD4, dPerc4;
dCurrent4hrOpen=iOpen("EURUSD",PERIOD_H4,1);
dCurrent4hrHigh=iHigh("EURUSD",PERIOD_H4,1);
dCurrent4hrLow=iLow("EURUSD",PERIOD_H4,1);
dCurrent4hrClose=iClose("EURUSD",PERIOD_H4,1);
dA4=(dCurrent4hrHigh+dCurrent4hrLow)/2;
dD4=dCurrent4hrHigh-dA4;
dCD4=dCurrent4hrClose-dA4;
dPerc4=dCD4/dD4;
dCurrentOpen=iOpen("EURUSD",PERIOD_M15,1);
dCurrentHigh=iHigh("EURUSD",PERIOD_M15,1);
dCurrentLow=iLow("EURUSD",PERIOD_M15,1);
dCurrentClose=iClose("EURUSD",PERIOD_M15,1);
dA=(dCurrentHigh+dCurrentLow)/2;
dD=dCurrentHigh-dA;
dCD=dCurrentClose-dA;
dPerc=dCD/dD;
if (dPerc > 0.4999 && dPerc4 > 0.7499)//0.499)
{
double ask=MarketInfo("EURUSD",MODE_ASK);
double dSL=ask-0.0050;
double dTP=ask+0.0015;
ticket=OrderSend("EURUSD",OP_BUY,1.0,Ask,3,dSL,dTP ,"BUY Order",255,0,CLR_NONE);
}
if (dPerc < -0.4999 && dPerc4 < -0.7499)//0.4999)
{
double bid=MarketInfo("EURUSD",MODE_BID);
double dSLB=bid+0.0050;
double dTPB=bid-0.0015;
ticket=OrderSend("EURUSD",OP_SELL,1.0,Bid,3,dSLB,d TPB,"SELL Order",255,0,CLR_NONE);
}

Thanks for any help.
Mike
Attached Images
File Type: jpg MGC22_results.jpg (60.1 KB, 277 views)
Shark EA Ultimate
Actual Profits on Live Account: +1064%
Since Jan 2007. View Live Statements.
Reply With Quote
  #2 (permalink)  
Old 02-13-2007, 09:32 PM
Sophomore
 
Join Date: Feb 2007
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
anamy will become famous soon enough
Default

I took the liberty of cleaning up the code that you provided. The EA still works the same, but better. Now it'll work with any symbol, not just EURUSD. And you can define the parameters (lots, stoploss, takeprofit) from the options windows.
Attached Files
File Type: mq4 Mike's System.mq4 (2.4 KB, 270 views)
Reply With Quote
  #3 (permalink)  
Old 02-14-2007, 01:10 AM
Freshman
 
Join Date: Feb 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
MGC22 is on a distinguished road
Default

Thanks for cleaning it up, it was my first attempt at an EA and my only concern was to get it to work.
What are your thoughts on the profitablity of this EA?
Is 500+ pips over a 2 month period a good return for an EA?
I am hoping that the changes I want to make will increase the percentage of winning trades. I also want to see if I can lower the initial stop loss and remain profitable.
Reply With Quote
  #4 (permalink)  
Old 03-18-2007, 05:17 PM
Sophomore
 
Join Date: Feb 2007
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
anamy will become famous soon enough
Default

I took some more liberties and added the breakeven and made it take only one order at a time. Keep us updated on your progress with this system.
Attached Files
File Type: mq4 Mike's System 2.mq4 (3.7 KB, 307 views)
Reply With Quote
Mike system.mq4
  #5 (permalink)  
Old 03-20-2007, 03:53 AM
Freshman
 
Join Date: Mar 2007
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
jasperdant is on a distinguished road
Default Mike system.mq4

Hi,

I just want know how to use this file to my chart? Im also using Metatrader4 and after compiling this file what next?

pls need your help tks

jasper
Reply With Quote
  #6 (permalink)  
Old 03-20-2007, 09:02 PM
Freshman
 
Join Date: Nov 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
RICHLINK is on a distinguished road
Default

What is option value"BreakEvenShift" used for? Does it have anything to do with trailing stop.

Rich
Reply With Quote
  #7 (permalink)  
Old 03-28-2007, 08:52 AM
Senior
 
Join Date: Feb 2007
Posts: 100
Thanks: 2
Thanked 12 Times in 7 Posts
bunglungchingdong is on a distinguished road
Default

Any indicators needed with this is it for any specific pair?
__________________
Have you got a holy grail? Then you need to take some medication because your hallucinating.
If warren buffet doesnt have one, what makes you believe you do?
Reply With Quote
  #8 (permalink)  
Old 03-29-2007, 04:21 PM
Senior
 
Join Date: Feb 2007
Posts: 100
Thanks: 2
Thanked 12 Times in 7 Posts
bunglungchingdong is on a distinguished road
Default

Tested it on demo for 24 hours now made 1 trade $150 winner only had it on euro but now ill try it on all 4 main pairs.
__________________
Have you got a holy grail? Then you need to take some medication because your hallucinating.
If warren buffet doesnt have one, what makes you believe you do?
Reply With Quote
  #9 (permalink)  
Old 03-30-2007, 01:37 AM
Freshman
 
Join Date: Aug 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
mark3 is on a distinguished road
Default

What Time Frame do you run this EA on ?

Would like to test it.

Thanks
Reply With Quote
  #10 (permalink)  
Old 03-30-2007, 09:28 PM
Freshman
 
Join Date: Mar 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
orion7 is on a distinguished road
Default

Quote:
Originally Posted by jasperdant View Post
Hi,

I just want know how to use this file to my chart? Im also using Metatrader4 and after compiling this file what next?

pls need your help tks

jasper
I think it is a secret
Reply With Quote
Reply


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
SPOUTNIKH1V1.1 = 600 pips a week (per currency) winners Trading Systems 47 10-05-2008 06:57 PM
Profitable experts. Ravique Trading Systems 21 05-16-2008 06:05 PM
Gbp/usd, 400 pips at least Belzebut General Trading Talk 7 12-31-2007 04:13 PM
Power of 10 pips. iezcha Classified Ads 6 07-25-2007 06:05 PM
Generosity is more profitable than avarice. Ravique Issues 2 09-15-2004 05:55 PM


All times are GMT. The time now is 11:11 PM.
Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0

Registered members have access to special online forex currency trading tools, software, mt4 expert advisors and indicators. Register now

Main Menu

Economic Forecast