Randomized Trade Entries and Exits as a Market Baseline
Summary
This strategy uses a seeded pseudorandom sequence to generate long or short entries and exits. Thresholds control how often signals occur: lowering them reduces trading frequency, while raising them increases it. Users can enable longs or shorts, and the script uses the full available equity per position without pyramiding. The accompanying discussion frames random trading as an experiment in whether unstructured trades can produce positive expectancy.
The document reports that 100 runs with different seeds on daily S&P 500 data all had positive mathematical expectancy, and says similar results appeared on higher timeframes for assets in long-term uptrends. It also claims random shorts performed negatively on higher timeframes but could show positive expectancy on noisy, lower timeframes. These statements come without a defined sample period, transaction-cost analysis, benchmark comparison, or statistical details. The code’s pseudo-random sequence is deterministic and its entries and exits share the same underlying generated values, so it is not a general test of independent random trading.
Key ideas
- A seeded pseudo-random generator supplies entry and exit signals.
- Entry and exit thresholds determine how frequently trades occur.
- The author reports positive expectancy across 100 daily S&P 500 runs, without providing detailed supporting statistics.
- The discussion attributes different long and short outcomes to broad market direction and timeframe.
- Deterministic signal generation and missing cost and benchmark details limit interpretation of the reported results.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.