MQL4 - automated forex trading   /  

Code Base

Code Base  Expert Advisors  The MasterMind To post a new code, please log in or register

This Expert Advisor is for
MetaTrader 4
Download MT 4 - 5.5 Mb

Mobile trading!
Buy a license and be mobile in your trading!

Name:
The MasterMind [ ru | cn ]
Author: CreativeSilence (2008.06.20 08:48)
Rating: 9
Downloaded: 6040
Download:
 TheMasterMind.mq4 (33.3 Kb) View

Demo it First... $5000 Flipped To $243K in 3 Months. Coders Needed, Not Finished.


Strategy Tester Report

TheMasterMind
AlpariUS-Demo (Build 216)
Symbol EURUSD (Euro vs US Dollar)
Period 5 Minutes (M5) 2008.03.31 00:00 - 2008.06.19 07:30 (2008.03.30 - 2008.07.01)
Model Every tick (the most precise method based on all available least timeframes)
Parameters Lots=200; StopLoss=2000; TakeProfit=0; TradeAtCloseBar=true; TrailingStop=0; TrailingStep=1; BreakEven=0; MagicNumber=0; Repeat=3; Periods=5; UseAlert=false; SendEmail=true; TradeLog="MasterMind"; Slippage=3; Indicator_Setting="---------- Indicator Setting"; Crash=false; TimeFrame=0; Length=5; Method=3; Smoothing=1; Filter=5; RealTime=true; Steady=false; Color=true; Alerts=true; EmailON=false; SignalPrice=true; SignalPriceBUY=Yellow; SignalPriceSELL=Aqua; CountBars=1485;

Bars in test 17601 Ticks modelled 587455 Modelling quality 65.18%
Mismatched charts errors 62




Initial deposit 5000.00



Total net profit 243061.68 Gross profit 300660.90 Gross loss -57599.22
Profit factor 5.22 Expected payoff 15191.35

Absolute drawdown 4202.40 Maximal drawdown 182004.27 (47.03%) Relative drawdown 90.11% (163677.74)

Total trades 16 Short positions (won %) 8 (75.00%) Long positions (won %) 8 (100.00%)

Profit trades (% of total) 14 (87.50%) Loss trades (% of total) 2 (12.50%)
Largest profit trade 71525.61 loss trade -54596.85
Average profit trade 21475.78 loss trade -28799.61
Maximum consecutive wins (profit in money) 9 (279697.49) consecutive losses (loss in money) 1 (-54596.85)
Maximal consecutive profit (count of wins) 279697.49 (9) consecutive loss (count of losses) -54596.85 (1)
Average consecutive wins 7 consecutive losses 1
# Time Type Order Size Price S / L T / P Profit Balance
1 2008.03.31 20:50 buy 1 1.60 1.5774 1.3774 0.0000
2 2008.04.09 19:00 close 1 1.60 1.5855 1.3774 0.0000 1334.88 6334.88
3 2008.04.09 19:00 sell 2 2.10 1.5856 1.7856 0.0000
4 2008.04.10 18:45 close 2 2.10 1.5729 1.7856 0.0000 2608.41 8943.29
5 2008.04.10 18:45 buy 3 3.00 1.5730 1.3730 0.0000
6 2008.04.11 04:45 close 3 3.00 1.5773 1.3730 0.0000 1298.10 10241.39
7 2008.04.11 04:46 sell 4 3.40 1.5772 1.7772 0.0000
8 2008.05.12 05:55 close 4 3.40 1.5405 1.7772 0.0000 11561.02 21802.41
9 2008.05.12 05:55 buy 5 7.30 1.5404 1.3404 0.0000
10 2008.05.12 12:50 close 5 7.30 1.5461 1.3404 0.0000 4161.00 25963.41
11 2008.05.12 12:50 sell 6 8.70 1.5462 1.7462 0.0000
12 2008.05.19 17:20 close 6 8.70 1.5490 1.7462 0.0000 -3002.37 22961.04
13 2008.05.19 17:20 buy 7 7.70 1.5489 1.3489 0.0000
14 2008.05.21 22:10 close 7 7.70 1.5789 1.3489 0.0000 23141.58 46102.62
15 2008.05.21 22:10 sell 8 15.40 1.5788 1.7788 0.0000
16 2008.05.27 22:05 close 8 15.40 1.5684 1.7788 0.0000 15156.68 61259.30
17 2008.05.27 22:05 buy 9 20.50 1.5685 1.3685 0.0000
18 2008.05.28 09:20 close 9 20.50 1.5750 1.3685 0.0000 13380.35 74639.65
19 2008.05.28 09:20 sell 10 25.00 1.5751 1.7751 0.0000
20 2008.05.29 18:10 close 10 25.00 1.5517 1.7751 0.0000 57802.50 132442.15
21 2008.05.29 18:10 buy 11 44.40 1.5518 1.3518 0.0000
22 2008.06.05 20:15 close 11 44.40 1.5581 1.3518 0.0000 28811.16 161253.31
23 2008.06.05 20:15 sell 12 54.10 1.5582 1.7582 0.0000
24 2008.06.10 20:45 close 12 54.10 1.5447 1.7582 0.0000 71525.61 232778.92
25 2008.06.10 20:46 buy 13 78.10 1.5445 1.3445 0.0000
26 2008.06.13 00:30 close 13 78.10 1.5466 1.3445 0.0000 17455.35 250234.27
27 2008.06.13 00:30 sell 14 83.90 1.5467 1.7467 0.0000
28 2008.06.17 02:15 close 14 83.90 1.5465 1.7467 0.0000 117.46 250351.73
29 2008.06.17 02:15 buy 15 84.00 1.5464 1.3464 0.0000
30 2008.06.18 19:40 close 15 84.00 1.5526 1.3464 0.0000 52306.80 302658.53
31 2008.06.18 19:40 sell 16 101.50 1.5527 1.7527 0.0000
32 2008.06.19 07:30 close at stop 16 101.50 1.5578 1.7527 0.0000 -54596.85 248061.68
10 comments  To post a new comment, please log in or register

I am currently testing this on my site, but it seems to be very reckless.  I re-started this EA because the first one was losing money left and right.  I would like to know if changing the lots from 200 (default) to 20 or even 2 would work, as it doesn't seem to change anything.  It made a $3000+ win, but currently stands at -$4000 open trade with a VERY large stop loss.  With just this one trade it could wipe out the entire account, which doesn't make any sense.

See the live test here: http://www.pippimps.com/2008/08/31/new-ea-the-mastermind-by-lbigger/

09.09.2008 00:29 PocoDiablo

Hi Creative Silence, I tried to programed an "extern double hidden_TakeProfit = 60; extern double hidden_StopLoss = 30;

Results:

case 1:   error_string="no error";                                                  break;

      case 2:   error_string="common error";                                              break;

      case 3:   error_string="invalid trade parameters";                                  break;

      case 4:   error_string="trade server is busy";                                      break;

      case 5:   error_string="old version of the client terminal";                        break;

      case 6:   error_string="no connection with trade server";                           break;

      case 7:   error_string="not enough rights";                                         break;

      case 8:   error_string="too frequent requests";                                     break;

      case 9:   error_string="malfunctional trade operation";                             break;

      case 64:  error_string="account disabled";                                          break;

      case 65:  error_string="invalid account";                                           break;

      case 128: error_string="trade timeout";                                             break;

      case 129: error_string="invalid price";                                             break;

      case 130: error_string="invalid stops";                                             break;

      case 131: error_string="invalid trade volume";                                      break;

 

CRAZZZZZZZZZZZZY ! How can I put a Hidden take Profit and a Hidden Stop Loss then?

Thank you,

Cuadra556

10.08.2008 23:53 CUADRA556
CreativeSilence wrote:
Mehmet wrote:

MY TESTED 2008.01.01-2008.06.20 . THES RESULT IS VERY BAD. FIRS BALANCE IS 10.000 USD LAST BALANCE IS 4 USD.

 


Hey Mehmet, the code works best on M5. Thanks for trying it out!
I also Have very bad results, I have followed the directions and my same back test came back losing all the deposit of 10K. Could you please guide us through this setup? Please email me matt1381@gmail.com
01.08.2008 06:49 Mattd1381
Please excuse my simple questions.   Do you have any forward testing real results on an actual account?  What are your forward results on starting with $5000 balance?   I do not understand the hidden stops, take profits, and lot size that are not listed in the properties.  Please explain the hidden properties in your software.
16.07.2008 07:09 rswatts
yes my tested EURUSD M5
23.06.2008 20:23 Mehmet

Question:

How to program hidden stoploss and takeprofit (showed on the system as 0, but programmed as the other value for example: 20, 40) and how to constantly monitor opened orders and close them if the current rate obtain the programmed stoploss or takeprofit?



Remark: quantity = 0.1 Lots always...

23.06.2008 15:52 puncher
CreativeSilence wrote:

OK, I believe that you perfect understand my conception. Those conditons are very clear, but if you have any question please do not hesitate to contact me.

Please remember about max lot = 0.1 and the values of the indicators... It should perfect work...

And please remeber also about the hidden stop loss and hidden take profit controlled automatically by the Expert Advisor program.


Regards,

Puncher

!!Puncher, I tried the Stoch & RSI Method before but I didn't try it on the M15...But Guess What??!! I have a new EA coming out called the "The Puncher M15 1:10Ratio" and Its mean, Its nasty, Its vicious! oh yeah umm.... Its OMG! and right now I'm trying to tweak it so that is can push 6 lots at a time...but I keep recieving Stop Outs. Metatrader won't go past a 10000Lot size so 6 lots would eat up the Free Margin in your account....give me a second~Silence

20.06.2008 23:09 puncher
puncher wrote:

Hello CreativeSilence,

Could you please give me the suggestion: how to modify your Expert Advisor for the following conditions?

Conditions:

1/. We always taking into account the Stochastic and RSI indicator signals for the NewOrder:
if the current value of Stochastic is smaller than 20 - two lines must be crossed (you know) &
if (RSI value is greater than 50 and RSI value is smaller than 70) or if (RSI value is smaller than 30)

then we opening BUY order (always in 0.1 Lot)

2/. if the current value of Stochastic is greater than 80 - two lines must be crossed (you know) & if (RSI value is greater than 30 and RSI value is smaller than 50) or if (RSI value is greater than 70)

then we opening SELL order (always in 0.1 Lot)

3/. Very important: Take Profit and Stop Loss must be hidden. I mean, that TP & SL can not fall to the booklet (in the system of orders), but your Expert Advisor should monitor the current orders. When Take profit = 15 then we close current order, and when Stop Loss reaches 50 then we close the curent order too.

4/. Very important: We can opening the new other orders (according to indicators signals) up to margin level is greater than 200%. If margin level is less than 200% we can not open new order. 


This EA should work on the 15 min, 30 min, 1 H tame frames. Could you change this?

Could you please give an information how to modify it on e-mail: bemowo@tlen.pl


Thank you in advance,

Puncher

!!Puncher, I tried the Stoch & RSI Method before but I didn't try it on the M15...But Guess What??!! I have a new EA coming out called the "The Puncher M15 1:10Ratio" and Its mean, Its nasty, Its vicious! oh yeah umm.... Its OMG! and right now I'm trying to tweak it so that is can push 6 lots at a time...but I keep recieving Stop Outs. Metatrader won't go past a 10000Lot size so 6 lots would eat up the Free Margin in your account....give me a second~Silence
20.06.2008 23:00 CreativeSilence
Mehmet wrote:

MY TESTED 2008.01.01-2008.06.20 . THES RESULT IS VERY BAD. FIRS BALANCE IS 10.000 USD LAST BALANCE IS 4 USD.

 


Hey Mehmet, the code works best on M5. Thanks for trying it out!
20.06.2008 22:30 CreativeSilence

MY TESTED 2008.01.01-2008.06.20 . THES RESULT IS VERY BAD. FIRS BALANCE IS 10.000 USD LAST BALANCE IS 4 USD.

 

20.06.2008 14:29 Mehmet