Course Robot EA
- Uzmanlar
-
Vladimir Milovanov
MQL5 developer focused on Expert Advisors, indicators and trading automation.
I pay particular attention to clear specifications, reliable implementation and thorough testing in MetaTrader 5. - Sürüm: 2.10
See how an Expert Advisor makes a trading decision
Course Robot EA is a free educational Expert Advisor for MetaTrader 5. It turns a simple trading idea into a complete algorithm you can run, test and study step by step.
Think of it as a driving-school car with an extra set of pedals. The strategy stays easy to understand, while the safety checks show what a robot should do before it touches the market.
How the strategy works
The EA compares the two latest closed bars with a Simple Moving Average.
- A BUY setup appears when price crosses the SMA upward.
- A SELL setup appears when price crosses the SMA downward.
- The optional slope filter confirms that the SMA points in the same direction.
- The EA evaluates the setup once per new bar instead of reacting to every tick.
Course Robot EA does not use martingale, grids, averaging or lot increases after a loss.
Built-in protection
The educational code includes practical checks that developers often discover only after their first broker error:
- risk-based position sizing;
- Stop Loss and Take Profit on every entry;
- maximum spread filter;
- one open position per chart symbol;
- daily entry limit;
- daily closed-loss limit;
- pause after a series of losing exits during the current trading day;
- drawdown protection based on peak equity;
- minimum lot, volume step and free-margin checks;
- tick-size and broker stop-distance checks;
- clear diagnostic messages in the Experts journal.
The default risk is 0.25% of balance per trade. The maximum accepted input value is 1%.
If the broker's minimum lot would exceed the selected risk, the EA skips the entry. It does not round an unsafe volume upward just to place a trade.
Recommended educational setup
- Symbol: EURUSD, including broker suffixes
- Timeframe: H1
- Starting balance: USD 10,000 demo account
- Leverage: 1:100
- Testing mode: Every tick based on real ticks
The EA remains functional on other symbols and timeframes. EURUSD H1 is the course baseline, not a software restriction.
Strategy inputs
- MaPeriod — Simple Moving Average period.
- UseSlopeFilter — confirms the direction of the SMA.
- StopLossPoints — Stop Loss distance in broker points.
- TakeProfitPoints — Take Profit distance in broker points.
Protection inputs
- RiskPercent — balance risk per trade.
- MaxSpreadPoints — maximum allowed spread in broker points.
- MaxTradesPerDay — maximum number of entries per trading day.
- DailyLossLimitPercent — daily closed-loss limit.
- MaxDrawdownPercent — allowed drawdown from peak equity.
- MaxConsecutiveLosses — allowed number of consecutive losing exits.
Service inputs
- MagicNumber — identifies the EA's trades.
- MaxDeviationPoints — maximum order-price deviation.
- EnableTrading — enables or pauses new entries.
- EnableLogging — enables diagnostic messages.
Before you start
Test the EA in the Strategy Tester first, then run it on a demo account. Broker specifications differ: symbol names, point size, minimum lot, spread and trading restrictions can all change.
Course Robot EA is an educational product, not investment advice. It does not promise profit or capital preservation. Historical and demo results do not predict future performance.
