MM file - lot sizing file

Post Reply
User avatar
Gamma_gallus
Trader
Posts: 118
Joined: Wed Nov 16, 2011 2:03 pm
Location: France

MM file - lot sizing file

Post by Gamma_gallus »

Hey Guys !

From below site, I have just downloaded the free excel file, to use for determining the lot size we should use (as per our criteria : risk etc..)

The guy seems to have put some maths behing to optimize the lot sizing (check his video for more details)

It seems quite nice actually, as shown in a second video (get access to it once we have downloaded the file), he gives an example :

first 10 trades are profit : each + 30 pips
next 10 trades are loss : each - 30 pips
So, overall net pip position is zero, but if we would have followed his lot sizes suggestions, the balance would still be positive (thus we don't see how he calculates the dollar values)

http://ddsmm.forexdecoder.com/introduction/#

thx
Olivier
MichaelM
Trader
Posts: 117
Joined: Sun Dec 04, 2011 11:04 pm

Re: MM file - lot sizing file

Post by MichaelM »

Hey Olivier,

Thank for the heads up!

Yes I agree it works quite nicely. I've just been going though my myfxbook results and it works great keeping the account in profit.

Although my myfxbook account is based on Graeme, which half-closes the initial trades when it get up to +100pips, I can see the potential of this lot sizing method for other EA's that don't do partial closes on each trade.

It can potentially let you know if an EA has a crappy strategy/settings.

I have OpenOffice and found out while the formula cell was protected, I was able to remove the protection easily by just going into "Tools" -> "Protect Document..." -> untick "Sheet".
You'll be able to see the formula in all it's glory!

One thing it doesn't take into account is the Pair tick value which is based on your trading account base currency.

MichaelM.
User avatar
gaheitman
Trader
Posts: 655
Joined: Tue Nov 15, 2011 10:55 pm
Location: Richmond, VA, US

Re: MM file - lot sizing file

Post by gaheitman »

Khalaad wrote: Michael,

I use the following formula:

Lots to Trade = (Total Equity*Percentage Risk) / Stop Size in Pipettes (or Average Loss in Pipettes)

so far not calculating tick value has had no determinable negative, or positive, effect.

Khalid
This actually means you are risking more than 1% on many currencies. The following script illustrates this:

Code: Select all

  double TotalEquity = 10000;
  double PercentageRisk = 0.01;
  double StopSize = 500;
  double Lots = TotalEquity*PercentageRisk/StopSize;
  Print ("Actual Risk: EURUSD ",DoubleToStr(Lots*StopSize*MarketInfo("EURUSD",MODE_TICKVALUE)/TotalEquity*100,2),"%");
  Print ("Actual Risk: USDCHF ",DoubleToStr(Lots*StopSize*MarketInfo("USDCHF",MODE_TICKVALUE)/TotalEquity*100,2),"%");
  Print ("Actual Risk: EURGBP ",DoubleToStr(Lots*StopSize*MarketInfo("EURGBP",MODE_TICKVALUE)/TotalEquity*100,2),"%");
  Print ("Actual Risk: USDJPY ",DoubleToStr(Lots*StopSize*MarketInfo("USDJPY",MODE_TICKVALUE)/TotalEquity*100,2),"%");
The output is:

Code: Select all

03:52:36 Util EURUSD,M3: Actual Risk: EURUSD 1.00%
03:52:36 Util EURUSD,M3: Actual Risk: USDCHF 1.09%
03:52:36 Util EURUSD,M3: Actual Risk: EURGBP 1.57%
03:52:36 Util EURUSD,M3: Actual Risk: USDJPY 1.30%
Which you will notice is the tickvalue as a percent. The good news is that the XXXNZD currencies are only costing you 0.82%. :D

George
User avatar
Gamma_gallus
Trader
Posts: 118
Joined: Wed Nov 16, 2011 2:03 pm
Location: France

Re: MM file - lot sizing file

Post by Gamma_gallus »

MichaelM wrote:Hey Olivier,

I have OpenOffice and found out while the formula cell was protected, I was able to remove the protection easily by just going into "Tools" -> "Protect Document..." -> untick "Sheet".
You'll be able to see the formula in all it's glory!

MichaelM.

Thank you for the tip, I'll have a look to the formula :mrgreen:


MichaelM wrote:Hey Olivier,

It can potentially let you know if an EA has a crappy strategy/settings.

MichaelM.
You make me think to : Do you guys think we could somehow adapt this formula in future EA's (for those with an auto MM module) ??
>> When a serie of winners : slightly increase the lot size, and when we start having a serie (2 or 3?) of loosers we significantly reduce the lot size.

Thx
Olivier
User avatar
gaheitman
Trader
Posts: 655
Joined: Tue Nov 15, 2011 10:55 pm
Location: Richmond, VA, US

Re: MM file - lot sizing file

Post by gaheitman »

Gamma_gallus wrote:
You make me think to : Do you guys think we could somehow adapt this formula in future EA's (for those with an auto MM module) ??
>> When a serie of winners : slightly increase the lot size, and when we start having a serie (2 or 3?) of loosers we significantly reduce the lot size.

Thx
Olivier
I read an article once (maybe in Technical Analysis of Stocks and Commodities?) about a technique where if you hit a certain draw-down level, you simulate your trades until you make back the drawdown with the fake trades. Then you trade live again. A variation of the equity curve trading Gary mentioned a few weeks (months now? :>) back.

I never implemented something like this in my manual trading, but is seems doable in automated trading.

George
MichaelM
Trader
Posts: 117
Joined: Sun Dec 04, 2011 11:04 pm

Re: MM file - lot sizing file

Post by MichaelM »

Already PM'd Steve about it, but I don't see why one of us can't start the ball rolling! :)

When you look at the formula, it will automatically reduce/increase the lot size.
gaheitman wrote:
You make me think to : Do you guys think we could somehow adapt this formula in future EA's (for those with an auto MM module) ??
>> When a serie of winners : slightly increase the lot size, and when we start having a serie (2 or 3?) of loosers we significantly reduce the lot size.

Thx
Olivier
garyfritz

Re: MM file - lot sizing file

Post by garyfritz »

gaheitman wrote:I read an article once (maybe in Technical Analysis of Stocks and Commodities?) about a technique where if you hit a certain draw-down level, you simulate your trades until you make back the drawdown with the fake trades. Then you trade live again. A variation of the equity curve trading Gary mentioned a few weeks (months now? :>) back.
Funny, I was just experimenting with an equity-curve filter this morning...

I've never had any luck with approaches like that, except in extreme cases where a system completely falls apart and loses steadily for a long time, then starts working again and wins steadily for a long time. In cases like that, the equity-curve filter (and I suspect the drawdown approach) shuts off trading near the start of the long losing period, and turns it on near the start of the long winning period, and everything is beautiful.

But most realistic systems have mixes of wins and losses. You spend too much time with the equity curve near the EMA of the equity curve, so you cross it too often. So you take the losing trade that drives your equity curve below the EMA, and now since you're below the EMA you don't take the winning trade that pops you back above the EMA again, ad nauseam. Those "take the loser but don't take the winner" events happen often enough that it kills your performance relative to just taking all the trades. I've tried all kinds of variants and they all have this basic problem.

Maybe there's a way to make it work, but I haven't found it.
TraderDesk
Trader
Posts: 479
Joined: Wed Nov 16, 2011 2:12 pm
Location: Estonia

Re: MM file - lot sizing file

Post by TraderDesk »

garyfritz wrote:
gaheitman wrote:
But most realistic systems have mixes of wins and losses. You spend too much time with the equity curve near the EMA of the equity curve, so you cross it too often. So you take the losing trade that drives your equity curve below the EMA, and now since you're below the EMA you don't take the winning trade that pops you back above the EMA again, ad nauseam. Those "take the loser but don't take the winner" events happen often enough that it kills your performance relative to just taking all the trades. I've tried all kinds of variants and they all have this basic problem.

Maybe there's a way to make it work, but I haven't found it.
I totally agree with you. What I would do is look at the strategy trading history to determine the percentage of times you went from a losing to winning trades including how many consecutive losses. From here you should be able to start to extrapolate a ratio that you could then apply to the above formula. Then I think it might work if the markets don't skew your ratio to often...
TraderDesk
effluvium

Re: MM file - lot sizing file

Post by effluvium »

gaheitman wrote: This actually means you are risking more than 1% on many currencies. The following script illustrates this:

Code: Select all

  double TotalEquity = 10000;
  double PercentageRisk = 0.01;
  double StopSize = 500;
  double Lots = TotalEquity*PercentageRisk/StopSize;
  Print ("Actual Risk: EURUSD ",DoubleToStr(Lots*StopSize*MarketInfo("EURUSD",MODE_TICKVALUE)/TotalEquity*100,2),"%");
The output is:

Code: Select all

03:52:36 Util EURUSD,M3: Actual Risk: EURUSD 1.00%
03:52:36 Util EURUSD,M3: Actual Risk: USDCHF 1.09%
03:52:36 Util EURUSD,M3: Actual Risk: EURGBP 1.57%
03:52:36 Util EURUSD,M3: Actual Risk: USDJPY 1.30%
Which you will notice is the tickvalue as a percent. The good news is that the XXXNZD currencies are only costing you 0.82%. :D

George
George,

I just realize that the formula you put here for illustration as an example

Code: Select all

Lots*StopSize*MarketInfo("EURUSD",MODE_TICKVALUE)/TotalEquity*100
and after mathematic simplification Your formula becomes :

100* PercentageRisk * MarketInfo("EURUSD",MODE_TICKVALUE)

So we don't need here even the amount of the TotalEquity nor the StopSize. :lol: :lol: :lol:
Post Reply

Return to “Trading Psychology & Money Management”