1.2 MetaTrader 4, MetaTrader 5 and cTrader
Most CFD brokers offer at least one of three platforms for algorithmic trading. Skilling offers all three. Each platform has its own programming language. You can read more about each of them in our platform guides.
| MetaTrader 4 | MetaTrader 5 | cTrader | |
|---|---|---|---|
| Language | MQL4 | MQL5 | C# (and Python) |
| The robot is called | Expert Advisor (EA) | Expert Advisor (EA) | cBot |
| File | .mq4 | .mq5 | .cs / .algo |
| Editor | MetaEditor | MetaEditor | Built into the Algo app, or Visual Studio |
| Launched | 2005 | 2010 | 2011 |
| Strengths | Huge amount of ready-made code and help online | Faster testing, more time frames, more order types | A modern language used across the IT world, a tidy API |
MQL4 and MQL5
MQL stands for MetaQuotes Language. Both resemble the programming language C++. MQL5 is newer and more powerful, but also a little more long-winded: indicators, for example, must be created once and read with a separate function. In MQL4 you can read an indicator directly with one line.
C# in cTrader
cTrader uses C#, a widely used language from Microsoft. That means you learn something you can also use outside trading. The code is often easier to read than MQL, and cTrader has clear documentation of all its functions.
Which should you choose?
- New to programming and want as much help online as possible: MetaTrader 5.
- Already have MT4 and lots of old robots: MetaTrader 4.
- Want to learn a “real” programming language and like tidy code: cTrader.
In this course we build the same robot in all three languages. That way you see that the logic is the same – only the way it is written differs.
Use a demo account
All three platforms let you open a free demo account. Algo trading works on demo exactly as on a real account, and that is where you should test.
Try it yourself
Install MetaTrader 5 or cTrader with a demo account, and find the editor where robots are written.
Key takeaways
- MetaTrader 4 uses MQL4, MetaTrader 5 uses MQL5, cTrader uses C#.
- The logic of a robot is the same – only the way it is written differs.
- MT5 has the most help online, cTrader has the most modern language.
65% of retail investor accounts lose money when trading CFDs with this provider.