Skip to content
Menu

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.

  • If / then rules on any indicator
  • Capital split across branches
  • Replayed over two years of prices

Sample: SMA (50) above price

10,000.00 to invest

  1. if SPY: SMA (50) > SPY: Price
    1. then: SPY
    2. 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

Strategy trades
DateActionSymbolSharesPriceRealized gainCurrent quantityAverage price
Feb 3, 2025BuySPY16.73597.77—16.73597.77

Realized gains: 0.00 · unrealized: +1,975.68