Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.
From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.
Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
Elite Section
Get access to private discussions, specialized support, indicators and trading systems reported every week.
Advanced Elite Section
For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
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.
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)
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.
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?
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.
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.