MQL4 - automated forex trading   /  

Code Base

Read Financial Magazines in MetaTrader 4 and MetaTrader 5!

Code Base  Expert Advisors  GoodG@bi Review To post a new code, please log in or register

Download MetaTrader 5 and visit MQL5.community Code Base
and Trade on the Go!
and Trade on the Go!
Couldn't find the right code? Order it in the Jobs section

This Expert Advisor is for
MetaTrader 4
Download MT 4 - 455 Kb

and Trade on the Go!

and Trade on the Go!

Name:
GoodG@bi Review
Author: brayt (2011.03.09 09:49)
Rating: 5.7
Downloaded: 14965
Download:
 GoodG@bi.mq4 (8.2 Kb) View
 note.txt (2.4 Kb)

Back-testing/Forward-testing details:

Period where EA is successful

Settings 1

Date tested: Jan 01, 2010 to Aug 31, 2010. Currency: EURUSD only. Periodicity: H1. Expert Properties: Minimum deposit: $50, Position: Short only, Lotsize: Auto. Draw-down (max): $603.00 or 76.83%. Draw-down (relative): 76.83% or $603.00. Positions won: 57. Positons Loss: 0.
Result for the period above settings show: ROI: 1824% (e.g. $50 became 912.37 from jan/01/2010 to aug/31/2010)


Settings 2

Date tested: Dec 01, 2010 to March 08, 2011. Currency: EURUSD only. Periodicity: H1. Expert Properties: Minimum deposit: $50, Position: Long only, Lotsize: Auto. Draw-down (max): $328.00 or 29.55%. Draw-down (relative): 47.18% or $119.24. Positions won: 25. Positons Loss: 0.
Result for the period above
: ROI: 2382% (e.g. $50 became 1191.19 from dec/01/2010 to mar/08/2011)

This EA (GoodG@bi) has potential of making it to the top 5 most profitable all-time expert advisors in history. I have come to understand the following:

  1. That from Jan 01, 2010 to aug 31, 2010, the price was trending downward (bearish), that is why 'short only' position was ideal for trade and no loss was incured by the EA.
  2. That from sep 01, 2010 to nov 01, 2010, the price has not decided whether to continue downward or reverse upward, that is why the chances of 'zero loss' was slim. Therefore, NO TRADE because result will be full of + and -.
  3. That from dec 01, 2010 till mar 08, 2011, the price action decided for an upward trend (bullish), that is why 'long only' position was ideal for trade and EA had ZERO

LOSS. Therefore, if there is some kind of way by which we can (from the previous 6 months period) predict if the trend was bullish, bearish, or neutral, then we can have a 'perfect' expert advisor that trades safely and without LOSS.


If you are a programmer, I will want you to contribute to this project in the following ways (and other ways which I may not have anticipated)

  1. Add 'lines' that will make the EA detech trend over a wide period past (6 months or more).
  2. Add 'lines' that will switch EA from 'short only' trading mode to 'long only' trading mode and vice versa, depending on the prevailing long term trend.
  3. Add 'lines' that can carefully detect 'flat trend' and set EA to 'no trade'.
  4. Add 'lines' that are hitherto not inluded, and that will make the EA better and safer (having in mind the ZERO LOSS campaign)
37 comments: 1 2 3 4   To post a new comment, please log in or register
Another dangerous EA based on the idea to keep an open position until it reaches to the TP point. DO NOT use Forex robots that DO NOT put an SL for their trades, with your real accounts. You will get margin called before taking any profit!
29.03.2014 01:47 Rasoul
What are the setup instructions for this EA?
05.08.2013 05:53 spektra
mattmoneywilson:

LOVE THIS EA with my back testing so far. . .

matt, could you share modified code here? thanks in advance

09.04.2013 18:16 jusiur

LOVE THIS EA with my back testing so far. Not sure if anyone is still following this page or not, but I wanted to contribute what I've been doing with it (and I had a few questions).

I read the notes.txt file and there was the idea thrown in there that there should be some kind of "Long Term Trend" filter so that the EA doesn't open a trade that goes against what the long term trend is. So, all I did was put an additional parameter to the open trades section that says if the Close[1] > iMA(NULL,PERIOD_W1,21,0,MODE_EMA,PRICE_CLOSE,1), then go Long. If Close[1] < iMA(NULL,PERIOD_W1,21,0,MODE_EMA,PRICE_CLOSE,1), then go Short. I have attached the results of the last couple months of back testing below. Basically, by adding the Moving Average filter, the EA makes smarter trades with 100% accuracy then without the filter. My question is this, is there a better way to filter out a long term trend? Moving averages are a good indicator, but I'm just curious if there's something better, because in the examples below, the MA filtered out about half the trades it made without it. Any ideas?

Also, why are the SL/TP levels set where they are? Should they not be the same as one another? Anyway, GREAT EA so far. 

WITHOUT 21 PERIOD MOVING AVERAGE APPLIED TO W1 TIMEFRAME

WITHOUTma 

 

WITH 21 PERIOD MOVING AVERAGE APPLIED TO W1 TIMEFRAME

WITHma 

26.03.2013 20:16 mattmoneywilson
Why when I use this EA on a live or demo account does not work? In "Strategy Tester" EA works very well.
22.08.2012 01:43 vilmar

Hi all, what is the intension with "TradeTime". I have noticed that the "download version" and the edited version of tq2007 on the 25.05.2011 the time setting is deferent.

16.08.2012 12:33 TLR71
piano0203:
sissia:

hi piano, you are done with you code?

you wrote you will share the code with us, hopefully you forgott us not. :-)



Of coz i didn't forget dude!

I'm tweaking my trend detector to decrease failure signals and try to determine Stop Loss with minimize risk. Beside, I've tested on real live chart to confirm this EA. See you soon dude!


Piano, bring it on and post your version so the rest of us can continue to work on this and improve.

Thanks!

16.03.2012 13:53 Snowski

Hello all, i"m new programing on MQ4, i have a system and manually works great. Can somebody please help me to develop ?

How can i codify many Buystop order or SellOrder but with specific Ticks Values. Thanks.

07.11.2011 14:17 producer

See this Scalper EA

19.10.2011 13:22 cm69
sissia:

hi piano, you are done with you code?

you wrote you will share the code with us, hopefully you forgott us not. :-)



Of coz i didn't forget dude!

I'm tweaking my trend detector to decrease failure signals and try to determine Stop Loss with minimize risk. Beside, I've tested on real live chart to confirm this EA. See you soon dude!

13.06.2011 20:58 piano0203