Our partnerSkilling
  • Spreads from 0.1 pips
  • 1,000+ instruments
  • Free demo account

65% of retail investor accounts lose money when trading CFDs with this provider.

Open account
Tool

Algo builder: create your own trading robot

Choose a strategy, filters and risk management – and get ready-to-use code for MetaTrader 5, MetaTrader 4, cTrader or TradingView, and test the strategy right in your browser. No programming, no sign-up. The code is generated in your browser.

  • 4 platforms
  • 7 strategies
  • Quick test in the browser
  • Prop firm limits
  • Free
Read this first. The algo builder creates code for learning and testing. The code is provided as is, without warranty, and is not investment advice. A robot can lose money quickly – especially with leverage. Always test in the strategy tester and on a demo account before you consider real money. 65% of retail investor accounts lose money when trading CFDs with this provider.

Start from a template – or build from scratch

1Choose platform
2Choose strategy
3Filters
4Stop loss and exit
5Risk and size

Daily and weekly limits – useful for funded accounts and prop firms

New

Quick test in the browser

See how your strategy would have done on historical daily rates from Norges Bank (the Norwegian central bank) – before you download the code. The test uses the closing rate each day, so it is a rough first impression, not a replacement for the platform’s strategy tester.

Choose a market and press Run test. The rates are fetched from Norges Bank and calculated in your browser.

How to use the robot

Choose your platform below (or at the top of the algo builder). It takes about five minutes the first time.

1. Add the code

  1. Click Download above to get the file MyRobot.mq5.
  2. Open MetaTrader 5 and press F4 to open MetaEditor, where code is edited.
  3. In MetaEditor choose File → Open Data Folder, open MQL5 → Experts and copy the file there.
  4. Double-click the file in MetaEditor and press Compile (F7). It should say 0 errors.

2. Turn on algo trading

  1. Back in MetaTrader 5, open the Navigator (Ctrl+N), right-click Expert Advisors and choose Refresh.
  2. Open a chart for the market and time frame you want and drag the robot onto it.
  3. In the window that opens, go to Common, tick Allow Algo Trading, check the Inputs and press OK.
  4. Switch on Algo Trading in the toolbar – the button should be green. Messages from the robot appear under Experts in the Toolbox (Ctrl+T).

3. Test it in the strategy tester

  1. Open the Strategy Tester (Ctrl+R).
  2. Choose the robot, market, time frame and a period of at least one or two years.
  3. Choose Every tick based on real ticks if available – it is the most realistic.
  4. Press Start and look at the Backtest and Graph tabs.

Before you use real money

  1. Test over a long period. At least one or two years of data, and preferably several markets.
  2. Include costs. Use realistic spread and commission in the test.
  3. Run it on a demo account for at least a few weeks and compare with the test.
  4. Start small. Use low risk per trade, for example 0.5%.
  5. Keep an eye on it. A robot can make mistakes around gaps, news or connection drops. Check it daily.
  6. Have a plan to stop. Decide in advance how large a loss makes you switch it off.

Learn to build it yourself

The free course Algorithmic trading covers testing, improving and building robots step by step.

Frequently asked questions

Is the code safe to use?

The code is generated in your browser from the choices you make and is easy to read. It only does what you chose. But a robot that is technically correct can still lose money, so always test it in the strategy tester and on a demo account first.

Will the robot make money?

No one can promise that. The strategies are well-known, simple strategies used for learning, and many of them lose money in many markets and periods. The algo builder is a tool for learning and testing – not a money machine.

Which platforms does the code work on?

MetaTrader 5 (MQL5), MetaTrader 4 (MQL4), cTrader (C#) and TradingView (Pine Script v6). Skilling offers all four platforms.

How accurate is the quick test?

It is a rough first impression. It uses one closing rate per day from Norges Bank, does not see intraday moves and holds one position at a time. Use the strategy tester in your platform for a thorough test.

Why does the robot not open any trades?

The usual reasons are that algo trading is switched off in the platform, that the filters stop the signals, that the calculated size is below the minimum, or that there simply has not been a signal yet. Check the log – the robot writes a message when it skips a trade.

Why are the code comments in English?

Because English is the standard in MQL, C# and Pine Script, and it makes it easy to get help in forums and from the platforms’ documentation.

Disclaimer

The algo builder and the code it creates are made for learning and testing. The code is provided “as is”, without any warranty that it is error-free or fit for a particular purpose. Norz Trading is not liable for losses resulting from use of the code. This is general information, not personal investment advice. Past results and backtests are no guarantee of future returns. Risk warning: CFDs are complex instruments and come with a high risk of losing money rapidly due to leverage. 65% of retail investor accounts lose money when trading CFDs with this provider. You should consider whether you understand how CFDs work and whether you can afford to take the high risk of losing your money.

Our partnerSkilling

A Scandinavian broker with low spreads and the platforms you already know – Skilling Trader, cTrader, MetaTrader and TradingView.

  • Spreads from 0.1 pips1,000+ instruments
  • Four platformsSkilling Trader, cTrader, MetaTrader, TradingView
  • Lloyd's account insuranceUp to €1 million per account
  • Free demo accountPractise with real prices, no risk
The Skilling app on a phone

65% of retail investor accounts lose money when trading CFDs with this provider.