Hi to all,
Being a person who has never studied a programming language, I want to master MQL 5 on Windows platforms.
And .. I've decided to study C# as my first language, as I think that C# is the current state of art for Windows platforms.
My question is, can I easily jump to MQL 5 from C#?
Or ... for soundly mastering MQL 5, should I study C++ in any case?
What would you advise me?
Dear Oguz. Of course you can go this way, that is, in the beginning to study C#, and then move from C# to MQL5. C#, C++ and MQL5 are C-like languages. But this is a long way. A shorter way is to study directly MQL5. I advise you to read the documentation for MQL5 and simultaneously write some simple indicator. This way will be more effective.
Thank you so much.
I'm planning to use Metatrader as a back testing platform for pattern recognition algorithms.
So I think that, in any way, I will need to code some Windows things ... like dlls, integrations from other languages, maybe Windows GUIs, etc.
I want to learn C# for those Windows things.
In addition to C#, I was also planning to study C++ only for mastering every detail of MQL 5.
But it seems that C# background will do the same job and I will be able to learn MQL 5 thoroughly.
So there is no need to invest additional time to C++.
Is there any programming concept, tool, thing, etc. that C++ has and so MQL 5, but C# has not?
Study mql5 and that's all. Why do you need to study an other one ? (Of course you can learn all what you want, but that's an other matter).
The documentation is really a great source for learning MQL 5.
But, I think that it may not be the reasonable choice as a first programming book for a person who has never coded before.
In addition to the reason mentioned in my second post, this is an another reason why I want to start with C#.
I will have a tool for Windows tasks and at the same time I will have a solid background for fully understanding MQL 5 documentation.
Is there any programming book for beginners for learning MQL 5 as a standalone language ... like the programming books for C++ or C#?
Start with studying elementary c/c++ language available on the internet and then Mql5 introductory language from the provided Mql5 documentation/ Articles and use of the reference Manual.
There are currently only two MQL5 books that I know about:
Andrew R. Young's -- Expert Advisor Programming for MetaTrader 5
Timur Mashnin's -- MQL5 programming language: Advanced use of the trading platform MetaTrader 5
Young's book is by far your best choice for learning MQL5 as a stand alone language.
Mashnin's requires more effort to extract value that is there.
Of course this one is also excellent, and also free...
Forum on trading, automated trading systems and testing trading strategies
Something Interesting to Read December 2013
Sergey Golubev, 2013.12.25 08:14
Expert Advisor Programming for Metatrader 5: Creating Automated Trading Systems in the Mql5 Language (Paperback)
The first guide to programming in MQL5 is here! "Expert Advisor
Programming for MetaTrader 5" is a practical guide to creating automated
trading strategies in the MQL5 language. Take advantage of MetaTrader
5's new features and take your trading to the next level! You'll learn
how to program expert advisors quickly and easily using a ready-made
framework created by an experienced MQL programmer. This book will teach
you the following concepts: Learn the basics of MQL5, including
variables and data types, operators, functions, event handlers, and
object-oriented programming. Place, modify and close market and pending
orders. Calculate, verify and add stop loss and take profit prices to
an open position. Add a flexible trailing stop and/or break even stop
to your strategy. Manage your trade risk with money management. Use
pending orders to scale in and out of positions. Use price, time and
indicator data in your expert advisors. Control program execution by
trading on new bar open, and add flexible trade timers to your
strategies. Walk through the creation of several basic trading
strategies from start to finish. Inform the user with dialog boxes,
email alerts, mobile notifications and sounds. Draw trend lines, arrows
and text labels on the chart. Read and write data to CSV files. Learn
the basics of creating indicators, scripts and libraries in MetaEditor.
Debug, test and optimize your trading strategy. And much more! Whether
you're an experienced programmer moving from MQL4, or a novice just
starting with MQL5, this book will give you the foundation to quickly
program fully-featured and robust trading systems. All programs and
source code files featured in the book are available for download at
the book's official website at Expert Advisor Programming for MetaTrader - MQL4 and MQL5 book
Something Interesting to Read February 2017
Sergey Golubev, 2017.02.09 19:32
MQL5 programming language: Advanced use of the trading platform MetaTrader 5: Creating trading robots and indicatorsby Timur Mashnin
Development of indicators and advisors using the MQL5 programming language for the MetaTrader 5.