A practical walkthrough of building a backtest that blends index-trend filters with stock-level factor screens, runs on minute bars with event callbacks, and implements risk controls, order sizing, and periodic rebalancing—end to end from signals to portfolio evaluation.