Introduction to Algorithmic Trading
Algorithmic trading uses automated, pre-programmed computer software to execute a trading strategy's own predetermined rules without requiring direct, ongoing manual intervention from the trader themselves, and this lesson introduces the fundamental concept through MetaTrader 5's own Expert Advisor system, along with the genuinely essential practice of backtesting and an honest, realistic discussion of automation's own genuine practical limits.
Building directly on the trading plan concepts covered in the previous lesson, algorithmic trading represents one particular, increasingly popular way of actually executing a well-defined, sufficiently rules-based trading plan with considerably greater consistency than manual execution can typically achieve on its own. This lesson serves as a genuinely foundational introduction before the entire Algorithmic and Automated Trading course still to come explores the topic in considerably greater depth.
What an Expert Advisor Does
An Expert Advisor is automated software on MetaTrader 5 that monitors markets and executes trades per programmed rules.
This automated approach executes with speed and mechanical consistency that manual trading generally struggles to match.
- Automated Execution: An Expert Advisor opens, manages and closes trades entirely automatically according to its own coded rules.
- Removes Manual Intervention: An Expert Advisor executes consistently and reliably without any of the emotional influence that affects manual trading.
- Rule-Based Operation: An Expert Advisor follows exactly what it's been programmed to do, with no deviation or subjective judgment.
- Available on MetaTrader 5: Expert Advisors are built directly into MetaTrader 5's own established trading platform ecosystem.
Backtesting a Strategy
Backtesting runs an EA's rules against historical price data to gauge how the strategy would have performed previously.
This offers valuable, though never fully conclusive, insight into a strategy's viability before risking real capital.
- Historical Testing: Backtesting runs an automated strategy's exact rules against genuine historical price data before ever trading live.
- Performance Indication: Backtesting offers a genuinely useful sense of how a given strategy might have performed under past conditions.
- No Guarantee of Future Results: Strong historical backtested performance never guarantees that same strategy will succeed going forward.
- A Necessary First Step: Backtesting is rarely, if ever, skipped before running a new Expert Advisor with genuine, real trading capital.
The Limits of Automation
Automation's limits matter, since even a well-tested EA can't account for unprecedented conditions or nuanced human judgment.
Many professionals combine algorithmic execution for rules-based aspects with continued manual oversight elsewhere.
- Expert Advisors (EAs): Expert Advisors automate a trade's entry, ongoing management and eventual exit entirely according to coded rules.
- MQL5 Programming: MQL5 is the specific programming language MetaTrader 5 uses to build genuinely automated trading strategies.
- Backtesting First: Testing a new strategy against historical data always comes well before ever running it live with real capital.
- Ongoing Oversight: Even fully automated trading strategies still genuinely require regular human monitoring as market conditions evolve.