Loading…

Narrated Decisions Teaching EA

Most demo EAs show what they did after the fact: an order appeared, or it didn't. They rarely show what was actually checked along the way, so a beginner reading the log still has to guess why nothing happened on a given bar. This EA is built the other way round - narration is the point, trading is the payload. On every new bar it runs the same checks a disciplined manual trader would run in order, and narrates each one as it happens: fast EMA against slow EMA for trend direction, RSI against an overbought/ oversold level for momentum, current spread against a maximum, server hour against a trading window, and finally ATR-based stop/target distance against the broker's minimum stop level. Any failed check stops the sequence there and says why, in one sentence. If every check passes, it narrates the position-size arithmetic too - the equity risked, the stop distance, and the resulting lot size - before sending the order. Once in a position it narrates the one piece of trade management it performs: moving the stop to break-even once profit reaches a configurable number of R. Narration lives in a small ring buffer so the visible chart panel stays a manageable size while the Experts log keeps the full, unbounded history of every decision made. Notes and limitations - This is a real trading EA, not a pure demo - it sends live orders when attached to a live account. Test on demo first, and treat the EMA/RSI cross strategy itself as a teaching vehicle, not a claim of edge; no backtest or performance guarantee is made or implied. - Manages at most one open position per chart at a time; it does not pyramid or scale in. - Trade management is limited to a single break-even move - no trailing stop beyond that point. - Narration reflects this EA's own reasoning only. It says nothing about positions opened by another EA or by hand on the same account. - The ring buffer only holds the most recent InpMaxNarrationLines entries on the chart; review the Experts log for anything older.

Expert advisor · MT4 · v1.0 · Free

About Narrated Decisions Teaching EA

Narrated Decisions Teaching EA is an expert advisor (trading robot) for MetaTrader 4 based on RSI, Moving Average and ATR. It moves the stop loss behind price (trailing stop / break-even), trades only in the hours you set (time filter) and can size trades from your balance and risk percent. It has 16 settings, such as Fast ema period, Slow ema period and Rsi period. MQL source code included.

Files in the download: NarratedDecisionsEa.ex4, NarratedDecisionsEa.mq4, NarratedDecisionsEa.txt.

Trading robots can lose money. Check every setting and test on a demo account before using real funds.

Settings

SettingDefaultWhat it does
Fast ema period12Fast EMA period
Slow ema period50Slow EMA period
Rsi period14RSI period (momentum filter)
Rsi overbought70.0RSI level that blocks new buys
Rsi oversold30.0RSI level that blocks new sells
Atr period14ATR period (used for stop/target distance)
Atr stop mult2.0Stop-loss distance, in multiples of ATR
Atr target mult3.0Take-profit distance, in multiples of ATR
Break even at r1.0Move stop to break-even once profit reaches this many R
Risk percent1.0Risk per trade, percent of equity
Max spread points30Refuse new entries above this spread, in points
Use trading hourstrueRestrict entries to a server-time hour window
Start hour7First server hour entries are allowed (0-23)
End hour20Last server hour entries are allowed (0-23)
Magic number49900Magic number for this EA's own trades
Max narration lines18How many recent narration lines stay on the chart panel

How to install

  1. Download the ZIP from your PolyMaria library and unzip it.
  2. In MetaTrader 4 open File → Open Data Folder, then go to MQL4 → Experts.
  3. Copy the .mq4 file(s) there. Put any .mqh files in MQL4 → Include.
  4. Open the .mq4 file in MetaEditor and press Compile (F7) if MetaTrader does not show it.
  5. Drag the expert advisor from the Navigator onto a chart, check the settings, allow Algo/Auto Trading and press OK.
  6. Test it first on a demo account or in the Strategy Tester.

Download the PDF guide

Tags: Moving Average · ATR · Momentum · Trend · Risk & Lot Size · Time Filter · Trailing Stop & Break-even · RSI · MT4 Expert Advisor · MQL4 Source Code

Expert advisors (EA) for MT4 & MT5 · PolyMaria