Backtest what happens when you buy a stock as soon as it closes above a moving average
The moving-average length used for entry.
A trade triggers the moment price closes above the selected MA.
Only takes a trade when the selected moving average is above every longer MA (5 > 10 > 20 > 50 > 100 > 200).
Without this filter, you can end up buying a short-term bounce inside a long-term downtrend.
Turning it on makes sure the stock is trending up on every timescale before you enter.
Scans every moving average from 5 to 200 to find the one that produces the highest annualized return (CAGR).
Uses your currently selected Profit Target, Stop Loss, and MA Alignment.