Define the moving averages
Choose a shorter and a longer window, with enough completed observations to calculate both. Signals use only closes that were already visible. A signal generated after the current close is eligible for execution at the next recorded session open.
Compare like with like
The strategy and its buy-and-hold comparison use the same starting capital, costs and evaluation interval. Inspect individual trades, fees, idle cash and drawdown as well as ending equity. A strategy can reduce exposure while also missing part of a rise.
Watch adjustment and split boundaries
Corporate actions must use a coherent price basis. The engine processes raw-price splits and cash distributions explicitly. The calculation notes describe the indicator’s split handling, and import validation rejects unknown or mixed adjustment bases.
Reserve an unseen period
Trying many parameter pairs on one history and keeping the best is a form of selection. Record parameters before inspecting a later interval. This interface does not claim statistical significance, optimized performance or professional execution realism from a single result.