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

3. 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. ## MM3CE

Originally Posted by RehabGuru
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.

5. 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. Originally Posted by CodingChris
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. Originally Posted by RehabGuru
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.

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. 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. The MasterMind 3 is a very good strategy. Funyoo to see what areas of improvement.

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

#### Posting Permissions

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