MQL5programminglanguage_Advanceduseofthe.epub - (EPUB全文下载)

文件大小:2.06 mb。
文件格式:epub 格式。
书籍内容:

MQL5 programming language: Advanced use of the trading platform MetaTrader 5. Creating trading robots and indicators
Timur Mashnin
To invite the author in a project
admin@tmsoftstudio.com

Introduction
I hope all of you have already read the MQL5 guide on the https://www.mql5.com/ru/docs site.
We will not recount this document and will focus on its practical use. We will allow ourselves only to quote it occasionally.
As stated in the foreword to the MQL5 handbook: Programs written in the MetaQuotes Language 5 have different features and purposes.
And then there is the listing: Experts, Custom indicators, Scripts, Libraries, and Include files.
Scripts are used to perform one-time actions, only processing the event of its launching, and therefore they will not be of interest to us here.
Also, we are not interested in the libraries, since the use of included files is more preferable in order to reduce overhead.
Therefore, we will focus on the creation of advisors and indicators using include files. That it is our goal of using the MQL5 programming language, which has an interesting syntax, of course, but it will only help us.
In fact, a programming in MQL5 is a prime example of an event-oriented programming, as all the code of a MQL5 application is based on overridden callbacks - handlers of client terminal events and user events. And already in the code of the callback functions, you can use either procedural programming, or object-oriented programming. Here we will look at both of these approaches.
Common indicator structure
An indicator code begins with the block of declaring indicator properties and various objects used by an indicator, such as indicator buffer arrays, input parameters, global variables, handles of used technical indicators, and constants.
This block of code is executed by the application MetaTrader 5 Trading Platform immediately when attaching the indicator to the symbol chart.
After the code block of the declaration of indicator properties and its parameters and variables, there is a description of callback functions, which the terminal calls upon the occurrence of events such as the initialization of the indicator after it is downloaded, before the deinitialization of the indicator, when changing the price data, when changing the symbol chart by a user.
To handle the above-mentioned events it is necessary to define functions such as the OnInit(), OnDeinit(), OnCalculate(), and OnChartEvent().
In the OnInit() function of an indicator, ............

书籍插图:
书籍《MQL5programminglanguage_Advanceduseofthe.epub》 - 插图1
书籍《MQL5programminglanguage_Advanceduseofthe.epub》 - 插图2

以上为书籍内容预览,如需阅读全文内容请下载EPUB源文件,祝您阅读愉快。

版权声明:书云(openelib.org)是世界上最大的在线非盈利图书馆之一,致力于让每个人都能便捷地了解我们的文明。我们尊重著作者的知识产权,如您认为书云侵犯了您的合法权益,请参考版权保护声明,通过邮件openelib@outlook.com联系我们,我们将及时处理您的合理请求。 数研咨询 流芳阁 研报之家 AI应用导航 研报之家
书云 Open E-Library » MQL5programminglanguage_Advanceduseofthe.epub - (EPUB全文下载)