Rule-based trading strategies
Write a strategy as rules — “if the 50-day average is above the price, hold SPY, otherwise hold something else” — split capital across branches, and see how it would have traded over the last two years of real prices. Your strategies are the ones in the Stock Master app.
Sample: SMA (50) above price
10,000.00 to invest
if SPY: SMA (50) > SPY: Price
- then: SPY
- else: SPY
- Return
- 19.76%
- over 452 trading days
- Account value
- 11,975.68
- started with 10,000.00
- Cash
- 0.00
- Market value
- 11,975.68 +19.76%
- Trades
- 1
- 1 on the first position
Trades
1 on SPY · 1 in all
| Date | Action | Symbol | Shares | Price | Realized gain | Current quantity | Average price |
|---|---|---|---|---|---|---|---|
| Feb 3, 2025 | Buy | SPY | 16.73 | 597.77 | — | 16.73 | 597.77 |
Realized gains: 0.00 · unrealized: +1,975.68
