Product cover: The Honest EA Skeleton by Theo Harrow, a MetaTrader 5 coding template
Coding template · v1.02

The Honest EA Skeleton

A MetaTrader 5 starter kit for building an EA — not a trading system

Most of the unglamorous work in an Expert Advisor is the same every time: a journal that says why a bar was skipped, conservative position sizing, a news blackout that still works in the Strategy Tester, and a daily loss lock. This pack is that plumbing, as open MQL5 source, with a clearly labeled place to plug in your own idea. The moving-average example shipped with it is a placeholder so you can compile and test the pipes. It is not claimed to have an edge.

$39 MQL5 source Easy installer Demo only

Computer programming education only. Not financial advice. No profit claims. No signals. Runs on demo accounts only.

"Don't trust that empty log. Every skipped bar should say why."

A teaching template for MetaTrader 5. Not a trading system, not a signal service, and not a performance record.

The plumbing, already written

Open source you compile yourself. The only place to plug a real idea is the user section: PlugYourSignal() and SignalDataReady(). Everything below is there so you can spend your time on the idea, and on testing it honestly.

Log.mqh

A journal that talks

Every skip is tagged — SESSION, SPREAD, NEWS, LOCK, and the rest — with three clocks on each line: server, UTC, and local.

Time.mqh

Clocks you can trust

Broker UTC offset, DST, sessions, a Friday cut-off, and a weekend / market-closed backoff. Do not assume a broker is permanently GMT+2.

Risk.mqh

Sizing that never quietly rounds up

Fixed lot or risk-%. The lot is floored to the volume step. Below the minimum, the trade is skipped and journalled. A 90% free-margin cap.

Locks.mqh

Daily brakes

A daily loss lock and a max-trades-per-day cap for this magic number and symbol, remembered if the terminal restarts.

Filters.mqh

The usual gates

Session, Friday cut-off, a spread cap, and cost as a percentage of the stop.

News.mqh

A tester-honest news filter

The built-in calendar is not available in the Strategy Tester. This one will not quietly turn itself off there. Point it at a dated CSV, and keep the default fail-closed so a missing file stops the test instead of pretending there was no news.

Trade.mqh

Orders, with the lock in front

Raw trade requests, filling auto-select, and the demo-only lock checked before every order. There is no setting to switch the lock off.

PracticeMarkers.mqh

Practice View

On a live account, or when you switch Practice View on, the same logic draws simulated markers on the chart instead of sending orders. They are drawings for study, not a track record.

You also get three .set presets, a sample news CSV, a test checklist, and an easy Windows installer that finds the MetaTrader 5 already on your PC, copies the files into it, and compiles the EA. It does not download or install MetaTrader 5 for you. There is no pre-built .ex5 in the pack.

It will not trade a live account

Places orders only on a demo account and in the Strategy Tester. On a live or contest account it stays on the chart, shows simulated practice markers, and never sends an order. The account type is checked when the EA starts, on every tick, and again inside the order-send function before every single order. If the type cannot be read yet, nothing is sent.

The top-right of the chart shows the mode: DEMO TRADING, PRACTICE VIEW, or LIVE BLOCKED.

Practice View markers come only from your own settings and the placeholder example logic. They are not trade recommendations or signals. Computer programming education only. Not financial advice.

About a minute, on a Windows PC

You need a Windows PC or Windows VPS with MetaTrader 5 installed and opened at least once, and a demo account. The steps are also in START_HERE inside the pack.

  1. Unzip

    Right-click the zip, choose Extract All, then click Extract. A folder opens by itself. Don't run the installer from inside the zip.

  2. Open the folder

    Double-click HonestEASkeleton_v1.02.

  3. Double-click the installer

    Double-click 1 - DOUBLE-CLICK TO INSTALL. If Windows shows "Open File - Security Warning" or "Unknown Publisher", click Run. If it shows the blue "Windows protected your PC" box (SmartScreen), click More info, then Run anyway. That is normal for a downloaded file that is not digitally signed. The installer only copies the EA files into MetaTrader. It downloads nothing.

    If more than one MetaTrader 5 is found, type the number you want and press Enter. You should see Files copied, Compiled OK, ALL DONE.

  4. Two clicks in MetaTrader 5

    In the Navigator (Ctrl+N), right-click Expert Advisors and click Refresh. Drag HonestSkeleton onto a chart and click OK. The window title must say HonestSkeleton 1.02.

Then work through TEST_CHECKLIST.txt on a demo account. Capture Experts-log screenshots, not equity curves.

Built for people writing an EA — not for tip-chasers

You'll like this if you…

  • Are building, or learning to build, a MetaTrader 5 Expert Advisor and want the boring plumbing done
  • Want a journal that explains a skipped bar, not a silent one
  • Care about testing in the Strategy Tester without a news filter quietly switching itself off
  • Want a template that will not place orders on a live account

This is not for you if you want…

  • A ready-made trading system, trade signals, or a "set-and-forget" bot
  • Something that trades a live account
  • Profit claims, a win rate, or an equity curve to believe in
  • A black-box .ex5 with no source, or a substitute for learning MQL5

A few straightforward answers

Is this a trading system? Will it make money?

No. It is a coding template. The moving-average cross in PlugYourSignal() is a labeled placeholder so you can compile and test the plumbing. It is not claimed to be profitable, and no equity curve, backtest, or Experts log from this pack should be read as a track record. Computer programming education only. Not financial advice.

Which market or symbol does it trade?

It is not built for one market. Attach it to any chart your broker offers, such as a forex pair, gold, or an index like US30, and it works on that symbol. The news filter picks its currencies from that chart's symbol automatically.

Will it trade on my live account?

No. It places orders only on a demo account and in the Strategy Tester. On a live or contest account it draws simulated practice markers and never sends an order. There is no setting to switch this off.

What do I need?

A Windows PC or Windows VPS, MetaTrader 5 installed and opened at least once, and a demo account. You do not get a pre-built .ex5; the easy installer compiles the source for you, or you press F7 in MetaEditor. References to MetaTrader 5 are generic. No broker is endorsed. MetaTrader 5 and MT5 are trademarks of MetaQuotes Ltd. This site and this pack are not affiliated with, endorsed by, or sponsored by MetaQuotes Ltd or any broker.

Do I need to be an expert programmer?

You should be willing to open MQL5 source and replace the placeholder with your own rules. The pack is a starter kit, not a finished bot, and not a course. If you have never opened MetaEditor, budget some time for that. The installer and START_HERE guide are written for a first-time install.

Windows warned me about an Unknown Publisher. Is that your installer?

Yes. Windows shows that warning for a downloaded file that is not digitally signed — including this installer. Click Run, or if you see the blue SmartScreen box, click More info and then Run anyway. The installer only copies the EA files into MetaTrader and compiles them. It downloads nothing.

What about support and refunds?

Email theo@theoharrow.com for help with the installer, the compile, or the files in the pack. Support is for the code and the install only. It will not include trading advice, signal ideas, or settings to "make it profitable." If the pack will not install or compile as described and we cannot get it working, email for a refund, including your order details. Because this is source code you can open at once, refunds are not offered simply for a change of mind after download. Your rights under the consumer law where you live still apply.

Get the template

$39 · MQL5 source, v1.02 · Computer programming education only. Not financial advice. Demo accounts only.

Book cover: Don't Trust That Equity Curve

Don't Trust That Equity Curve

How to catch a lying backtest before it catches you. Computer programming education only. Not financial advice.

Look inside the ebook
Book cover: Stay Useful

Stay Useful

A practical workbook for your job in the AI age — with a bonus computer-narrated audiobook.

Look inside Stay Useful