Blog

How to Make a Forex Robot for Free, From Scratch

TradeSmithy Team4 min read

Short answer: you can make a forex robot for free with MetaTrader (free from any broker), a demo account (free), MetaEditor (free, built in) and a builder with a free tier such as TradeSmithy. Write the strategy as rules, build them visually, export the MQL file, compile it, and test it in the Strategy Tester and on demo. You only start paying when you want extras — AI help, server backtests, a VPS — or when you trade real money.

What does a forex robot cost to make?

ItemFree optionWhen people pay
Trading platformMetaTrader 4 or 5 from your brokerNever
Code editor and compilerMetaEditor, built into MetaTraderNever
Test accountBroker demo accountNever
Historical dataYour broker's history in the Strategy TesterPremium tick data for very precise tests
Strategy builderTradeSmithy Free, the MQL5 Wizard, fxDreema for simple projectsFor AI assistance, more exports, server backtests
Somewhere to run it 24/5Your own computerA VPS, once it trades live

Step 1: Pick a strategy you can state in one sentence

"Buy when the 20 EMA crosses above the 50 EMA on H1, one trade at a time, stop 300 points, target 600." If you cannot write the sentence, no tool will write the robot. Start simple: one entry, one exit, fixed risk. Our moving average crossover guide is a good first build.

Step 2: Turn the sentence into rules

List the event (every tick or once per candle), each condition, the order, stop, target and size, and the limit on open trades. This list is the robot's specification.

Step 3: Build it

In TradeSmithy, create a project, choose MT4 or MT5, and either start from a template or place nodes yourself: an event, the indicator, comparisons, an AND, and a BUY or SELL Order. The canvas refuses wires that do not make sense — a boolean into a lot size, say — so mistakes show up as you build, not after you compile. Why a connection gets refused.

Step 4: Export and compile

Export produces an .mq5 or .mq4 file — real source code, not a locked binary. Copy it into MQL5/Experts (or MQL4/Experts) via File → Open Data Folder, open it in MetaEditor, and press Compile.

Step 5: Test it for free

Run it in the Strategy Tester on history you did not design it on, with realistic spread. Then attach it to a demo chart and let it trade for a few weeks. Our MT5 backtesting guide walks through every setting.

Step 6: Decide whether it deserves real money

Most first robots do not, and finding that out on demo cost you nothing. That is the point of the free route.

Can you make a forex robot on Android?

You can design one on a phone — the TradeSmithy builder works in a mobile browser and you add nodes by tapping. But no MetaTrader mobile app can run an Expert Advisor. The robot has to run in the desktop terminal, on your computer or a VPS. Be wary of "forex robot maker" APKs promising otherwise: an app that claims to run robots inside mobile MetaTrader is claiming something MetaTrader does not support.

Where free ends

  • One export a month on TradeSmithy Free — enough to carry one idea to a compiled EA and decide whether it is worth more.
  • No AI assistant and no server backtests on Free; those start on Pro at $19 per 30 days.
  • A VPS once a robot trades live around the clock.
  • Real capital, which is the only part that is truly at risk.

Start building your free robot

Create a free TradeSmithy account — no payment details — pick a template, and export your first robot today. If you are still choosing a tool, the EA builder comparison covers the free options side by side, and what an Expert Advisor is covers the basics.

Frequently asked questions

Can I really make a forex robot without paying anything?

Yes. MetaTrader, MetaEditor, a demo account and TradeSmithy's Free plan are enough to build, compile and test one.

Do I need to know how to code?

No. A visual builder generates the MQL. Knowing what the code does helps you test it, and the exported source is readable if you want to learn.

Can a free forex robot make money?

Price has nothing to do with it. A robot is as good as the strategy inside it, tested honestly.

Can I run a forex robot on my phone?

No. MetaTrader's mobile apps do not run Expert Advisors. Run it on a desktop terminal or a VPS and monitor it from your phone.

Keep reading

← More from the TradeSmithy blog