Page 12 of 13 FirstFirst ... 210111213 LastLast
Results 111 to 120 of 127
  18 18 Attachment(s)    

Thread: The MasterMind 3

  1. #111
    Junior Member
    Join Date
    Jan 2011
    Posts
    3

    Default

    hi all.I have a ndd account.But mastermind doesnt work with ndd because brokers dont accept SL and TP levels when mm sends with order open command.
    I mean your sl and tp levels are 0 at beginning and then modify just after.

    Could anyone write this modification for ndd accounts pls?

    ---------------------------------------------------------------------
    int OrdSend(string _symbol, int _cmd, double _volume, double _price, int _slippage, double _stoploss, double _takeprofit, string _comment="", int _magic=0, datetime _expiration=0, color _arrow_color=CLR_NONE) {
    //Send order with retry capabilities and log
    int _stoplevel=MarketInfo(_symbol,MODE_STOPLEVEL);
    double _priceop=0;
    int ticket,err,tries;
    tries = 0;
    switch (_cmd) {
    case OP_BUY:
    if (!IsTradeContextBusy() && IsTradeAllowed()) {
    while (tries < NumberOfTries) {
    RefreshRates();
    ticket = OrderSend(_symbol,OP_BUY,_volume,Ask,_slippage,Nor malizeDouble(_stoploss,Digits),NormalizeDouble(_ta keprofit,Digits),_comment,_magic,_expiration,_arro w_color);
    if(ticket<=0) {
    Write("Error Occured : "+ErrorDescription(GetLastError()));
    Write(Symbol()+" Buy @ "+Ask+" SL @ "+_stoploss+" TP @"+_takeprofit+" ticket ="+ticket);
    tries++;
    } else {
    tries = NumberOfTries;
    Write("Order opened : "+Symbol()+" Buy @ "+Ask+" SL @ "+_stoploss+" TP @"+_takeprofit+" ticket ="+ticket);
    }
    Sleep(RetryTime*1000);
    }
    }
    -----------------------------------------------------------------------

  2. #112
    Junior Member
    Join Date
    Mar 2011
    Posts
    1

    Default

    how to make lot set 0.01 - not 0.10?!?

  3. #113
    Junior Member
    Join Date
    Mar 2011
    Posts
    3

    Default

    Quote Originally Posted by RehabGuru View Post
    Hi all,

    Been digging into the code on MM3CE and have been trying to give it a more consistent response to market trends.

    So here is what I found. MM3CE uses only one indicator - Williams' Percent Range (WPR). This indicator shows if the market is oversold or overbought by looking over a period to determine the past High and Low. The range is measure from 0% to -100%. Once WPR hits -99.99% or -00.01%, MM3CE places a maximum of 3 Long or 3 Short orders. As this appears to be an effective way to get in and out of the market, it has entered the market in the opposite direction and stayed in far to long thus losing a great deal of your account.

    To compensate for that, I added MACD to it. I use the MODE_SIGNAL & MODE_MAIN to compare if the market is moving for a Long or Short order. I also modified the trip point for WPR so it gets in the market sooner and stays in the market longer with minimal loss to equity. It also will exit the market in case of a reversal.

    I made the modifications last night with an equity balance of $7,000USD. This morning, my equity balance was $13,800. It was nice to see that it almost doubled but the more important stat I see was when the markets moved long or short, I was in it longer.

    An unexpected issue should a lot of little loses. Although this was over come by these large gains, I wanted to improve it. The WPR trip point for Long Enter & Exit as well as for the Short Enter & Exit utilize the same level. I could modify either Enter or Exit so there is a slight difference so the Enter and Exit will not cycle during slow market conditions. I decided to modify the Exits to see how that works.

    I'll let you know how it works and let you know.

    Happy Trading
    Hey Rehab.

    Those improvements sound excellent.

    Is there any way you can post your new version, I'd love to run some forward testing and help you out.

    I'm looking for a really solid EA, or one with a really solid foundation that I can collaborate with someone on to build outside revenue for an upcoming project I'm working on.

    If you could post it along with your set up so I can test that would be awesome. I'm happy to help in any coding as well, been coding with MT4 for a couple years.

    Thanks mate.

  4. #114
    Junior Member
    Join Date
    Jan 2011
    Posts
    3

    Default

    ılo=ılo*0.1;

  5. #115
    Junior Member
    Join Date
    Mar 2011
    Posts
    1

    Default

    hi everybody

    I have strange situation with MM3CE TF - it does not open any trade at any selected period with any settings.

    Why it could be so?

    I made som debuging and found that EA never gets NewBar value 1, it is allways 0

    resolved - some how didnt noticed MaxOrders was set to 0

    But I'm getting a lot of errors 130 (invalid stoploss) during trailing. I have checked that, minimum SL is 10, and Trailing SL for EA is set to 25
    Last edited by kimis; 03-25-2011 at 17:52.

  6. #116
    Junior Member
    Join Date
    Mar 2011
    Posts
    3

    Default

    Quote Originally Posted by CodingChris View Post
    Hi all!
    This is my first posting here, so don't kill me instantly :-)

    I'm very interested in this EA as it seems to have huge potential if it's optimized and built on a clean code base.

    I've backtested the EA with it's original settings from 1999-01-01 until today, initial deposit $1000.

    Net Profit: 6,872,094.05
    Profit Factor: 1.30
    Max. Drawdown: 8.91%

    But the code is in a very awful state, e.g.

    Code:
    //Here we found if new bar has just opened
    static int prevtime=0;  
    int NewBar=0,FirstRun=1;
     
    if (FirstRun==1) {
    FirstRun=0;
    prevtime=Time[0];
    }
    if ((prevtime == Time[0]) &&  (CurTime()-prevtime)>MaxTradeTime) {
    NewBar=0;
    }
    else {
    prevtime = Time[0];
    NewBar=1;
    }
    FirstRun is set to 1 and immediately checked if it's 1 or not. So what should be the result? It IS 1, so why asking if it is?

    This is only one of several "errors" within this EA. I'm working on it, let's see what comes out :-)
    Hİ,

    please can you send me the best settings for it?
    Thank you

  7. #117
    Junior Member
    Join Date
    Jun 2011
    Posts
    4

    Default

    when i try to backtest this EA ..
    The journal said invalid trade volume ..

    What is going on ?? can sumbody help me plz ...

  8. #118
    Junior Member
    Join Date
    Sep 2011
    Posts
    11

    Default

    greetings,
    I am getting error like this:
    2011.09.12 18:49:02 TheMasterMind3 (basket) EURUSD,M5: Error Occured : invalid stops
    2011.09.12 18:49:10 TheMasterMind3 (basket) EURUSD,M5: EURUSD Buy @ 1.36521000 SL @ 1.34524000 TP @0.00000000 ticket =-1

    please advise

    thanks in advance

  9. #119
    Junior Member
    Join Date
    Sep 2011
    Posts
    2

    Default

    To rock:
    I had a similar problem. You set SL = 0

  10. #120
    Junior Member
    Join Date
    Sep 2011
    Posts
    2

    Default

    Hello coders.
    Very good EA. But does the amount of drawdown. Pls modify the code:
    Close sell - 100% open buy - 80%
    Close buy - 0% open sell - 20%.

Similar Threads

  1. The Mastermind optimized
    By fxtester in forum Expert advisors live statements
    Replies: 5
    Last Post: 04-19-2010, 23:33
  2. The Mastermind Optimized
    By funyoo in forum Expert advisors backtesting
    Replies: 1
    Last Post: 09-18-2009, 16:57
  3. The Mastermind
    By funyoo in forum Expert advisors live statements
    Replies: 21
    Last Post: 08-08-2009, 17:20

Tags for this Thread

100, automated trading, automatic, backtest, backtesting, broker, brokers, change, closing, coding, color, copy, demo, eas, ecn, eur, eurusd, expert, expert advisors, experts, forex, heiken ashi, high, how to, indicator, learn, live, live account, low, macd, magic, main, managed, manual, manual trading, martingale, mq4, mql, mql4, mt4, ndd, news, online, price action, profit, profitable, real, request, review, robot, signal, signals, simple, slippage, stop, stoploss, strategy, system, test, thank you, time, trade setup, trading, trailing, trend, usd

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •