Jump to content

100% wins for november (Random EA vs Emily)


enodr

Recommended Posts

Hi Guys,

 

Just a little fun. In another thread someone was requesting an EA called Emily. I looked at it and was interested by the good results (TakeProfit 5 pips, no StopLoss). I made some modifications to the EA by removing the Martingale and found out in fact the results were a piece of crap.

 

Then I came up with the idea of using a random generator for the signal triggering function instead of their signals.

 

My results are incredible: 100% wins with a TakeProfit of 5 pips and no StopLoss:

http://img81.imageshack.us/img81/2779/strategytester.gif

 

Many of the EA on this forum have the same behavior. Their signal logic is as efficient as a random generator... Because they all have small TakeProfit and big StopLoss they achieve to make regular pips because prices of all pairs are evoluting on the short term in a small range. But when a big news comes, your account is blown because the price will never come back to the range.

 

Moreover I am still amazed how poorly coded are all those EAs. I am looking for a proper money management example, but could not find one so far! I am sure that even with a random generator and very good money management you could make money on the forex :) At least that would be as efficient as using a 97$ EA.

 

Bests

 

PS: My random EA code: below

 

//|                                                      Copyright 2009, enodr |
//|                                                                            |
//|                                                                            |
//+----------------------------------------------------------------------------+
#property copyright "Copyright  2009, enodr"
#property link      "http://www.?????.com"

extern   double   TakeProfit = 50;
extern   double   StopLoss = 50;
extern   double   TrailingStop = 0;
extern   int      Slippage = 3;
extern   double   Lots = 0.1;
extern   int      MaxTrade = 1;
extern   int      Magic = 123;
extern   bool     ReverseLogic = false;



//+------------------------------------------------------------------+
//|                            init()                                |
//+------------------------------------------------------------------+
int init()
{
 MathSrand(TimeLocal());
 return(0);
}


//+------------------------------------------------------------------+
//|                          deinit()                                |
//+------------------------------------------------------------------+
int deinit()
{
 return(0);
}

//+------------------------------------------------------------------+
//|                            start()                               |
//+------------------------------------------------------------------+
int start()
{
Comment("USE ONLY WITH EUR/USD IN 30M TIME FRAME","\n");

// Adjust Trailing Stop
//TrailingStop();

if (OrdersTotal() >= MaxTrade)
	return(0);

// Check for BUY / SELL signal
int state = CheckSignal0();

// Local variables
double Price = 0.0;
double _TakeProfit = 0.0;
double _StopLoss = 0.0;


// SELL
if (state == 1)
{
	Price = Bid;
	_TakeProfit = Price - TakeProfit * Point;

	if (StopLoss == 0)
		_StopLoss = 0;
	else
		_StopLoss = Price + StopLoss * Point;
	OrderSend(Symbol(), OP_SELL, Lots, Price, Slippage, _StopLoss, _TakeProfit, "SELL", Magic, 0, Red);
	return(0);
}
// BUY
else if (state == 2)
{
	Price = Ask;
	_TakeProfit = Price + TakeProfit * Point;
	if (StopLoss == 0)
		_StopLoss = 0;
	else
	_StopLoss = Price - StopLoss * Point;
	OrderSend(Symbol(), OP_BUY, Lots, Price, Slippage, _StopLoss, _TakeProfit, "BUY", Magic, 0, Blue);
	return(0);
}

return(0);
}


int CheckSignal0()
{
// Return Random value 0, 1 or 2
 return (MathRand() % 3);
}

Link to comment
Share on other sites

Re: 100% wins for november (Random EA vs Emily)

 

Hi ryujin,

 

Good day,

 

I'm sure you need to look at this document to find out which error you have. I believe that fxpro has 5 digits of prices so I can say that the above code is only for 4-digit brokers.

 

Your error you have "error 130" is for invalid stop loss, so you need to add zero to be 500, which is equal to 50 pips on 4 digit broker. :)

 

Here is the link to the full list of errors:

 

http://docs.mql4.com/constants/errors

 

Best wishes,

a New Year 2011 has come, and the challenge has just started 8-)
Link to comment
Share on other sites

Re: 100% wins for november (Random EA vs Emily)

 

Any ea can have 100% wins with 5 pip tp an no stop loss, the main idea here is to make it win with stop loss ;))) I like doing this stuff with some of my ea's which don't preform well after being coded i just remove sl and make it produce a straight line, however this is by no means something anyone should put on their live account :))

[spoiler:26ukmy10]Never trust, never fear, never beg[/spoiler:26ukmy10]
Link to comment
Share on other sites

Re: 100% wins for november (Random EA vs Emily)

 

Hehe,

 

I think my first post was not clear enough! I did not intend to lead people use this pesudo EA because it is totaly crap!! It was just to show that most of the EA posted on this forum are not better than sending random BUY / SELL orders and using small TakeProfit value with huge StopLoss;

 

So ryujin, do not waste time making this work, it's useless :)

Link to comment
Share on other sites

Re: 100% wins for november (Random EA vs Emily)

 

...Nonetheless, this is definitely quite an interesting thread! It's almost like saying that an automated coin tosser could do better than most of the commercial EAs we come across...

 

Somebody on another forum actually made a random direction trading EA, and when the TP and SL were set it such a way, he found that with proper money management he could still make money in forex. It all comes down to money management.

 

Food for thought.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...