Backtesting for beginners

This is where I started with coding an expert advisor for back-testing on MT5: