Hi Brian, thanks for sharing your algo.
Your plan to buy when price > 200-day SMA is called a momentum strategy (e.g. buying when the price goes up). The opposite would be a reversion strategy (e.g. buying when the stock is cheap).
I plotted capital used and cash available for your algo and found that you only used half of your starting cash on average. That would limit your gains.
If you are trying to recalculate the SMA every month then perhaps every 21 trading days would be better than 30 (which is six weeks).
The small initial capital ($10k) suggests you would be using this strategy manually. So picking a long interval between trades is smart.
I made some changes to your algo in the attached backtest:
1) changed from momentum to reversion strategy
2) used portfolio rebalancing to engage all starting capital
3) used 200-day SMA as a hint to under-buy overpriced stocks (consistent with reversion strategy)
4) rebalancing once per year (250 trading days)