I am using the TSSF position sizer on an EOD strategy. I have set the TSSF to trade very low equity (0.01%) when below the TSSF threshold and full trade size (5%) above the threshold and using Ghost trades.
When I run the strategy, alerts are produced and the position size is provided and based on the TSSF threshold it is either low or Full size. However the next day when I run the strategy the trade has been taken but the size is sometimes opposite to the alert. TSSF is calculated at the EOD and the new trades are entered at the open therefore no new exits are occurring before the trades are entered.
To try and determine what is going on I created spreadsheets with ALL trades from the simulation and then calculated the TSSF and applied that to the position sizes. The spreadsheet TSSF sizing did not always agree with the actual trade sizes.
To understand this better I went back to Mikhail Korolyuk’s (MK) article (
https://web.archive.org/web/20140210034343/http://championship.mql4.com/2008/news/366).
The formula used by WL is:
Average Win / Absolute Average Loss / ( ((110% - %Win) / (%Win-10%) + 1) )
MK article states the formula as:
Avg.Win / Avg.Loss ((110% - %Win) / (%Win-10%) + 1)
Due to the lack of an operator between Avg.Loss and ((110% - %Win) this formula can be interpreted different ways:
1. the WL interpretation above.
2. Avg.Win / (Avg.Loss * ((110% - %Win) / (%Win-10%) + 1))
3. Avg.Win / Avg.Loss *((110% - %Win) / (%Win-10%) + 1)
4. (Avg.Win / Avg.Loss) *((110% - %Win) / (%Win-10%) + 1)
1 and 2 give the same answer and 3 and 4 give the same different answer. Which is correct?
I am assuming that ((110% - %Win) / (%Win-10%) + 1) is ((110% - %Win) / (%Win-10%)) + 1 and not (110% - %Win) / ((%Win-10%) + 1).
Algebraic formula can have multiplication implied eg. a*b = ab but a division is always shown eg a/b. That would suggest that interpretation 3 would be the correct one.
To try to see if I could come up with the correct interpretation I tried to recreate MK’s graphs for the Zero Return Curve and Safety Curve. I could not match his.
If I look at the simplest of the formula for the Zero Return line:
Avg.Win / Avg.Loss = (100% - %Win) / %Win where Win% = 50 and solve, the result is
Avg.Win / Avg.Loss = 1.
However his chart shows ~ 0.75. So are his graphs schematics and not actual solutions to his formulae.
To summarize, I am confused and would appreciate if someone can enlighten me. What am I missing?
Has anyone else tried to verify that the TSSF position sizer works as intended?
Is the formula in the TSSF code in the PosSizer the same as WL description?
Why do trade sizes change from alert to simulated trade?
Thanks for your help
Robin