Quote from blox87:
I can't figure out how to create a completely random entry in Ninjatrader to test this. I was thinking that if there are any rules whatsoever for entry that it in affect will make the entry non random.
The only thing I can do is look at strategies that seem to always revert to the zero line to decide whether they are random or not. A coin flip will always revert to zero given enough flips correct? We talked earlier about how a run of heads would skew the results away from zero but did we conclud that the coin flips would eventually revert back to 50% or the zero line?
Anyways, back to the strategies that have a random equity curve that always returns to zero. From there I play with the time's of entry and exit. Like I said before, playing with the times of exit, not even necessarily entry, have helped equity curve move away from the zero line fairly consistently in many instances. So I know something is happening with the factor of time put into the equation. Perhaps the fact that so many people exit at the close every day is something that is very non random and could be used to help your edge in one way or another.
Blox,
Personally, I don't think reverting to the zero line is the ultimate condition for determining a random vs. edge system. There are examples in this thread where random data gives very strong moves away from the zero line never to return. That being the case, I did set up a simulation to test larger sample sizes.
In excel, used the maximum 1.04M rows to get that many random numbers, -1 <0.5, +1 if >= 0.5. Created 5 columns of 1.04M rows and recalculated the spreadsheet 5 times. That gives ~25 million random numbers. Results below
Sum Min Max
-1942 -2661 180
1334 -66 1845
-1194 -1225 173
584 -52 1879
-522 -616 1012
492 -92 1302
672 -289 937
-1472 -2028 12
62 -499 237
-1686 -1779 88
-2322 -2514 393
-1246 -1765 74
1338 -635 1390
-274 -278 1206
1904 -26 2164
-376 -920 218
-2262 -2291 99
-362 -754 360
-552 -568 974
1142 -483 1440
320 -445 622
2044 -140 2770
1674 -337 1797
-658 -1497 606
1138 -743 1268
Total Abs Min Abs Max
-2164 -2661 2770
So, for 25 million a value of -2164 is very close to 0. Within 0.009%. Now the abs min and max are not representative of 25M iterations, rather just the 1.04M, so do not think the max "loss" or "gain" over 25M would be +/- ~2500. I'll have to program that up later.
So, there's the data, let us make some conclusions (and feel free to disagree or add to them). I would argue that a 50-50 system based on random inputs/data/market would return breakeven (before commish, slippage, yada, yada).
That being said, it is runs/streaks within the breakeven system that are confounding. Don't think many here have a system that trades 25M times. So the question is, how many trades/iterations are needed to see breakeven vs. an edge??? I don't know. If you create a system that trades daily, you only get ~250 trials a year, so runs will be huge (for better or worse). And backtesting such a system would be difficult, 4 years of data needed for 1000 trades. Is the market consistent over 4 years with respect to your system???
This is what I'm talking about when I mean random/noise etc. vs edges and how they relate to system development.
Hopefully that helps, probably muddied the water a bit, and I'll correct mistakes as I see them.
So, come on people, join in.
EDIT-formatting sux, looks good in the post, goes to pot upon posting...