Forex
Google
New signals service!

Go Back   Forex Trading > Trading systems > Martingale/Average Cost and Hedging


Register in Forex TSD!
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time).
Click here to register and get more information

Reply
 
LinkBack (20) Thread Tools Display Modes
  #471 (permalink)  
Old 02-16-2008, 02:45 AM
wolfe's Avatar
Senior Member
 
Join Date: Jan 2006
Posts: 719
wolfe is on a distinguished road
Quote:
Originally Posted by ralph.ronnquist View Post
Maybe the opposite rule is better? Because then the combined position is an improved position with the combined risk staying the same.

In detail:
1) the first sell is at p0 of v0 lots with stop s0 pips, making the risk s0*v0.

2) the second sell is at p1 of v1 lots with stop s1 pips, making the risk s1*v1

=) the combined position is at p=(p0+p1)/2 with lots v0+v1 and risk complex:
(s0-N/2)*v0+(s1+N/2)*v1 where N is the pips difference p1-p0, but that translates into: s0*v0+s1*v1-N/2*v0+N/2*v1 = s0*v0+s1*v1

edit: that's only if v0=v1... hmm

Thus, the combined risk is the plain sum of the individual risks regardless of what the combined position entry is. Therefore it seems to make sense to only improve the combined position entry.

The general risk is: s0*v0+s1*v1 + N/2*(v1-v0)
i.e. the risk side is improved by using successively smaller lot size...
That's an interesting look at it. I'm still trying to let that sink in. A successively smaller lot size, something I haven't thought about.

I,ve got to think about this for a while, to be sure I understand.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #472 (permalink)  
Old 02-16-2008, 02:57 AM
ralph.ronnquist's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 280
ralph.ronnquist is on a distinguished road
right; and thinking about it again, maybe I had it wrong for the combined risk...

... and maybe reducing the lot size is the wrong conclusion.

I'm confusing myself....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #473 (permalink)  
Old 02-16-2008, 03:10 AM
ElectricSavant's Avatar
Senior Member
 
Join Date: Jun 2007
Posts: 3,010
ElectricSavant is on a distinguished road
kayvan....thank your lucky stars ....there is a recent poster here that in my opinion is the best in the business of coding...

just be quiet and let them work...kayvan...good things are coming...trust me


ES
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #474 (permalink)  
Old 02-16-2008, 03:30 AM
ralph.ronnquist's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 280
ralph.ronnquist is on a distinguished road
The amount of risk must stay s0*v0+s1*v1, but the probability of risk occurring relates to s0-N for v0 and s1 for v1; but I had hoped not to have to articulate probability

Thus, I think the combined risk at trade 2 is: s0*v0+s1*v1, and this (of course) can be made less or more by varying s1 and/or v1.

If the trades are closed together, you essentially have p0+s0 = p1+s1, which is equivalent to s1 = s0+(p0-p1), and with N the pips difference p1-p0, you get the risk s0*v0+(s0-N)*v1

So in fact, if you want a risk doubling by the second trade, you'd make s0*v0=(s0-N)*v1, or v1 = vo*(s0/(s0-N))
which says that v1 is an amount larger than v0 (when N>0, i.e. new trade at higher price)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #475 (permalink)  
Old 02-16-2008, 06:02 AM
ElectricSavant's Avatar
Senior Member
 
Join Date: Jun 2007
Posts: 3,010
ElectricSavant is on a distinguished road
ralph,

Can you take it in plain speak...for us not so...ummmmm...nimble minded...

ES
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #476 (permalink)  
Old 02-16-2008, 11:01 AM
ralph.ronnquist's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 280
ralph.ronnquist is on a distinguished road
Ok; I've read in on the thread more now, and realize the approach here is slightly different from what I first thought, but fortunately mathematics stay the same. There's only a difference on what's constant and what's variable.

So, if I understood it correctly, the EA manages a constant risk amount, R, across a series of trades. It would then be of interest to know how the effective stoplevel changes when a new trade is made. Well, I thought so, at least.

Just to short-cut: for the second trade, you end up with a mathematical equation that involves 5 variables: the number of pips, P, that price has moved in favourable direction, the first lot size, v0, and first stop-level s0, and the second lots size, v1, and stoplevel s1. These would be related as:
s1/(s0+P) = v0/(v0+v1)

In other words, since P, s0, and v0 are given, you can choose s1 by varying v1. (The first stoplevel is derived from the desired constant risk R and the first lot size v0; the second stoplevel is derivable in this way because the total risk level should be constant, R)

The takeprofit reasoning is similar, though with a sign difference, and you arrive at: t1/(t0-P) = v0/(v0+v1)

By this reasoning (if I've done it right), you arrive at a risk ratio equation that looks like: t1/s1 = (t0-P)/(s0+P)

That is, you should consider adding short on short, or long on long for a negative P (i.e., when the first trade is negative), because that leads to higher takeprofit over stoploss ratio. That's regardless of lot size, which "merely" affects which the resulting takeprofit and stoploss are.

Doing the opposite, i.e., adding short on short or long on long, when the first trade is positive does the opposite, i.e. it reduces the TP/SL ratio.

It may be worth for someone to verify these equations, because it is a fairly strong result.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #477 (permalink)  
Old 02-16-2008, 11:43 AM
ElectricSavant's Avatar
Senior Member
 
Join Date: Jun 2007
Posts: 3,010
ElectricSavant is on a distinguished road
Ralph,

But if the variable is the length of the candlestick, wouldn't that random introduction cause the answer to the equation simply be a balancing reaction with lotsize?

So your theory is to balance range with lotsize?

ES
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #478 (permalink)  
Old 02-16-2008, 11:59 AM
ralph.ronnquist's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 280
ralph.ronnquist is on a distinguished road
Yes, I think so. If you add on a smaller lot size, v1, the resulting effective stoploss, s1, is larger than if you add on a larger lot size. And that's the additional consideration for the EA: which effective stoploss do you want or need?

At negative P, the new effective stoploss is successively smaller than the one before, and always more than P pips smaller. If then v1 (the new lot size) is large, then s1 (the new effective stoploss) gets really small.

edit: that's where you might have to start considering the price movement probabilities.

edit again: hmm, so what about long on short or short on long?

Last edited by ralph.ronnquist; 02-16-2008 at 12:17 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #479 (permalink)  
Old 02-16-2008, 12:25 PM
ElectricSavant's Avatar
Senior Member
 
Join Date: Jun 2007
Posts: 3,010
ElectricSavant is on a distinguished road
Well Ralph...Averaging down or Pyramiding in...would be the question for kayvan....I am not the author of this EA...

as both answers are not wrong or correct...just a method for the EA to take...

Thank you for your time thus far.

ES

Last edited by ElectricSavant; 02-16-2008 at 12:36 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #480 (permalink)  
Old 02-16-2008, 12:28 PM
ElectricSavant's Avatar
Senior Member
 
Join Date: Jun 2007
Posts: 3,010
ElectricSavant is on a distinguished road
What interested me with the kayvan method, was its look at the previous candlestick...perhaps looking at the last two candlesticks could have a smoothing effect if the EA were not hardcoded for TF.

ES

Last edited by ElectricSavant; 02-16-2008 at 12:37 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Tags
martingale, martingale ea, martingale EA, martingale ea download

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/martingale-average-cost-hedging/11734-martingale-ea.html
Posted By For Type Date
ea - learn to trade forex swicki - powered by eurekster This thread Refback 06-05-2008 06:34 PM
[intraday]martingale strategy dan variasinya - Page 6 - Forexindo Forum This thread Refback 04-04-2008 03:15 AM
TFX v1.5 Expert Adviser - The Money Guru Forum - Money Making Discussions This thread Refback 03-31-2008 05:36 PM
Download 10points3 Ea - Type Your Search Here This thread Refback 03-12-2008 01:38 AM
Expert Advisor | Forex MetaTrader Expert Advisors | Over 40 of the Best EA's for MT4 on Squidoo This thread Refback 03-08-2008 08:36 PM
Expert Advisor | Forex MetaTrader Expert Advisors | Over 40 of the Best EA's for MT4 on Squidoo This thread Refback 03-07-2008 07:27 AM
Expert Advisor | Forex MetaTrader Expert Advisors | Over 40 of the Best EA's for MT4 on Squidoo This thread Refback 03-07-2008 03:27 AM
Expert Advisor | Forex MetaTrader Expert Advisors | Over 40 of the Best EA's for MT4 on Squidoo This thread Refback 03-05-2008 01:56 AM
Bright Idea's :: View topic - TFX Public EA Thread (work in progress) This thread Refback 02-29-2008 01:05 PM
Martingale Baggio Method - Page 11 This thread Refback 02-27-2008 09:59 PM
Martingale Baggio Method - Page 11 This thread Refback 02-27-2008 05:07 PM
Martingale Baggio Method - Page 11 This thread Refback 02-27-2008 05:04 PM
Martingale Baggio Method - Page 10 This thread Refback 02-25-2008 06:50 PM
Martingale Baggio Method - Page 10 This thread Refback 02-25-2008 06:07 PM
Martingale Baggio Method - Page 10 This thread Refback 02-25-2008 06:05 PM
Bright Idea's :: View topic - TFX Public EA Thread (work in progress) This thread Refback 02-23-2008 07:38 PM
Bright Idea's :: View topic - TFX Public EA Thread (work in progress) This thread Refback 02-04-2008 06:15 AM
Bright Idea's :: View topic - TFX Public EA Thread (work in progress) This thread Refback 02-03-2008 05:01 AM
Bright Ideas™ » TFX (an amazing EA) This thread Refback 01-15-2008 06:26 PM
World of Forex Trading » Martingale EA This thread Pingback 01-11-2008 02:33 AM

Similar Threads
Thread Thread Starter Forum Replies Last Post
Martingale Trend EA criss73 Expert Advisors - Metatrader 4 8 11-20-2008 02:56 AM
Reversed martingale mrv Expert Advisors - Metatrader 4 6 07-26-2007 01:28 AM
Leverage for martingale frantacech Expert Advisors - Metatrader 4 0 05-22-2007 02:17 PM
Martingale EAs? icepeak Expert Advisors - Metatrader 4 5 01-18-2007 03:21 AM
Martingale EA newdigital Expert Advisors - Metatrader 3 2 05-23-2006 03:42 PM


All times are GMT. The time now is 08:50 PM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.