enodr Posted December 12, 2009 Report Share Posted December 12, 2009 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); } Quote Link to comment Share on other sites More sharing options...
ryujin Posted December 12, 2009 Report Share Posted December 12, 2009 Re: 100% wins for november (Random EA vs Emily) Hi, I have tried to backtest this EA on fxpro broker. Keep getting order error 130. Seems like this EA cannot run on 5 digits brokers. Can someone fixed it? Quote Link to comment Share on other sites More sharing options...
scarface Posted December 12, 2009 Report Share Posted December 12, 2009 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, Quote a New Year 2011 has come, and the challenge has just started 8-) Link to comment Share on other sites More sharing options...
Cyrillic Posted December 12, 2009 Report Share Posted December 12, 2009 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 :)) Quote [spoiler:26ukmy10]Never trust, never fear, never beg[/spoiler:26ukmy10] Link to comment Share on other sites More sharing options...
enodr Posted December 12, 2009 Author Report Share Posted December 12, 2009 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 :) Quote Link to comment Share on other sites More sharing options...
⭐ bbrain Posted December 13, 2009 Report Share Posted December 13, 2009 Re: 100% wins for november (Random EA vs Emily) Hi, Ansatsu_, This EA is only for show the most of the EAs are crap, a random generator can get the same results :) Br. Quote Link to comment Share on other sites More sharing options...
teknomage Posted December 16, 2009 Report Share Posted December 16, 2009 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... Thanx your sharing your idea here, enodr!! Quote Link to comment Share on other sites More sharing options...
Rio Posted December 17, 2009 Report Share Posted December 17, 2009 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.