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
Module 6 · Build your own robot

6.1 Use the algo builder as a starting point

Lesson 18 of 19Reading time: 2 min

You have now learned all the parts a robot is made of. In the algo builder you can put them together in a few minutes – and get finished code for MetaTrader 5, MetaTrader 4, cTrader or TradingView.

What the algo builder produces

Part of the codeYou learned it in
Input parameters / [Parameter]Module 2
New candle and eventsModule 2
Signal from indicators on candles 1 and 2Modules 2 and 3
CountPositions and magic number / labelModule 3
LotSize with risk in %Module 4
Trailing stop and break-even in ManagePositionsModule 4
Trend, time and spread filterModule 4
Order check and Print to the logModule 4

How to go about it

  1. Choose platform and strategy in the algo builder.
  2. Read the summary “Your robot” – does it match your rulebook?
  3. Download or copy the code, and add it to the platform.
  4. Read the code. Every part is commented. Find each part from the table above.
  5. Backtest with realistic costs.
  6. Change one thing at a time, and test again.

Everything can be changed

All the choices you make in the algo builder become settings in the code. So you can turn the trend filter on or change the stop loss directly in the platform – without generating the code again.

Compare with your own

Have you written the MA crossover robot from module 3 yourself? Create the same strategy in the algo builder, and compare. See how risk calculation, filters and error handling are built in – and move what you like into your own code.

Try it yourself

Choose a template in the algo builder and run the quick test. Change one setting and see what happens.

Key takeaways

  • The algo builder puts together all the parts you have learned in the course.
  • All choices become settings you can change in the platform.
  • Read the code, test it, and change one thing at a time.
Practise what you have learned – without riskTry it on a free demo account with Skilling, with real prices and virtual money.
Open a free demo account

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