I'm not sure I understand how
Spread Equity Equally works. I thought it was supposed to divide the remaining cash or equity equally among the positions to be purchased, ie. if I there were $1,000 of cash and two positions were to be purchased, each would be $500. If so, it doesn't appear to be working.
Secondly, I assumed that each time a Strategy was run, it would give the same results. That too seems to be a problem.
To demonstrate, here's a very simple Strategy:
CODE:
Please log in to see this code.
I have a Starting Capital of 1,000,000 and configure Spread Equity Equally to have a Max Position Size of 1,000,000 shares (to make sure that isn't a limiting factor), using cash. I'm running this on a Fidelity DataSet consisting of AA.
If I run this Strategy several times, I get one of two results:
AAPL 5,156 shares at 98.97 ($510,289.30)
AA 30,341 shares at 8.29 ($251,526.90)
or
AA 61,957 shares at 8.29 ($513,623.50)
AAPL 2,508 shares at 98.97($248,216.80)
First, I don't understand why the PosSizer would be giving me such dramatically different results.
Second, in both results, the second position is approximately half the dollar amount of the first position, instead of having an equal dollar value.
Finally, I don't understand why in both results, the total position is only approximately 75% of my Starting Capital. The first position is approximately correct, although about $10,000 too big, but the second position is only about half as big as I would have expected.