Page 11 of 13 FirstFirst ... 910111213 LastLast
Results 101 to 110 of 127
  18 18 Attachment(s)    

Thread: The MasterMind 3

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

    Default

    How can I multiply lot size just after a lose trade.Any ideas?
    **************************************
    Ilo=Lots;
    if (mm<0)
    {
    Ilo=MathCeil(AccountFreeMargin()*Risk/715)/10-0.1;
    if (Ilo<0.1) Ilo=0.1;
    }
    if (mm>0)
    {
    Ilo=MathCeil(AccountEquity()*Risk/100)/10-1;
    if (Ilo>1) Ilo=MathCeil(Ilo);
    if (Ilo<1) Ilo=1;
    }
    if (Ilo>100) Ilo=100;
    **************************************

  2. #102
    Member
    Join Date
    Jan 2011
    Location
    Austria
    Posts
    36

    Default

    You will have to add a global variable or read the most recent closed trade to determine if it made profit or lost. Then you can add this

    Code:
    if(lastTradeLost)
      Ilo = Ilo * multiplyer;
    just before

    Code:
    if (Ilo > 100) Ilo = 100;
    But be careful, this code will NOT multiply cascading, the Ilo value is recalculated for every trade.

    E.g. with multiplyer 2, Margin of 10k and Risk of 3%:

    Trade1: Ilo = 4.10, lost 300
    Trade2: Ilo = 7.93 (3.97 * 2), lost 200
    Trade3: Ilo = 7,77 (3,89 * 2)

    If you want to multiply it cascading, you will have to also save the last used lot size when opening a Trade.

    Edit: Just forgot the warning ... be careful when using the "original" version of this EA. It may open more than one position at a time, so you enter a trade without knowing how the last one closed.
    Last edited by CodingChris; 01-22-2011 at 08:01.

  3. #103
    Junior Member
    Join Date
    Jan 2011
    Posts
    2

    Default

    Greetings to you
    I am a new member with you
    I saw the topic and I hope you give me the best settings through your experiencesالاستماع

  4. #104
    Junior Member
    Join Date
    Jan 2011
    Posts
    5

    Default MM3CE

    Quote Originally Posted by RehabGuru View Post
    After 10 days of running MM3CE on my demo account, I built a balance or over $50,000. However, right after that, MM3CE began to enter trades in the opposite direction of how the market went. It appeared its signals got switched. The balance on the demo account dropped to $6,000 in two days.

    Right now I am working to see how or why this occurred.

    If anyone experienced this issue, let me know.

    Thanks.
    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

  5. #105
    Member
    Join Date
    Jan 2011
    Location
    Austria
    Posts
    36

    Default

    Hi! Grats to your good test results for last night. But have you backtested the period with the original code? I've noticed that the original version without modifications also made some profit the last two days.

    I'm currently researching in using the William's Accelerator as second indicator to get better entry signals, but still stuck when to exit the trades.

  6. #106
    Junior Member
    Join Date
    Jan 2011
    Posts
    5

    Default

    Quote Originally Posted by CodingChris View Post
    Hi! Grats to your good test results for last night. But have you backtested the period with the original code? I've noticed that the original version without modifications also made some profit the last two days.

    I'm currently researching in using the William's Accelerator as second indicator to get better entry signals, but still stuck when to exit the trades.
    Hi,

    I have done backtesting on MM3CE numerous times. The most recent was when I started earlier this month and in 7 days had an equity balance of over $53,000USD. Unfortunately, the next 5 trading days almost wiped out the entire account. That is why I decided to se what I can do to improve it.

    I have researched WPR and found that depending on WPR alone to exit your trades may get you out to soon or far to late. That is why I added MACD and I am currently testing it.

    I would pull up the WPR indicator on your chart with a period of 26, 27, 29 or 30 and see the times it hits 0% & -100%. Figure the WPR level you want and modify the code to use that.

    Good Luck.

  7. #107
    Junior Member v4vendetta's Avatar
    Join Date
    Jun 2009
    Posts
    18

    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.

    V

  8. #108
    Junior Member
    Join Date
    Mar 2011
    Posts
    2

    Default

    Hi,

    Rehabguru, I was wondering if you had got a chance to post your code and results here and how has been your testing going so far?

    Cheers! :-)

  9. #109
    Junior Member
    Join Date
    Mar 2011
    Posts
    2

    Default

    The MasterMind 3 is a very good strategy. Funyoo to see what areas of improvement.

  10. #110
    Junior Member v4vendetta's Avatar
    Join Date
    Jun 2009
    Posts
    18

    Default

    I sent RehabGuru a PM but no response, I think he's not around anymore so chances of getting his improved version is likely pretty slim

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
  •