![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Another question, would you mind if I used your syntax and variable names in my functions, so to speak, to standardize them.
Do what you think is right.
The SetLabel() function.
This function sets the OBJ_LABEL text label object in the current chart.
Examples of how to use SetLabel().
ZS. Attached is a script to test the SetLabel() function.
Create an "inluder" file (mqh) (probably 2 - "trade" and "other"), agree on its name and force the "developers" to include it in the distribution.
You can't kill the idea, it's been a long time coming for consolidation. My dream as a non-professional is to leave the ordinary user only decision making, freeing him from software intricacies.
Igor's developments (stunning in their consistency and detail) came as close to this as possible. Moreover, the author not only programs, but constantly keeps his
Advisors in real trading, which increases the practical value of the code.
It would be interesting to learn Igor's opinion about the possibility of mqh-framing of his developments and about advantages and disadvantages of such an implementation.
I would like to know Igor's opinion about the possibility of mqh-design of his developments, advantages and disadvantages of such an implementation.
About the possibilities...
I've had the MQH files done for a while now... I'm not posting them yet... I've got an ace up my sleeve... The final chord will be... I'll post all the features and sum it up by posting the mqh-files.
The pros and cons...
MQH-files are convenient. You can use them in different Expert Advisors. The code of a specific EA is significantly reduced. Only the bare logic and some other things are left, and all the gadgets and wrappings are outside.
However, I rarely use mqh-files, in general, only one. It's stdlib.mqh. I've copied all of the necessary functions into Expert Advisor's file. It's more convenient to me. I got into this habit when I was working a lot on orders and often forgot to send one or another mqh-file to my client. In addition, I want to copy one EA file to different terminal folders instead of dragging the whole heap of inludes after it.
Maybe you have a script in useful functions that could do the opening of orders described in the article http://www.kroufr.ru/content/view/1027/124/.
If not, advise me where to find one. .
The CrossPointOfLines() function.
This function calculates the coordinates of the intersection point of two lines. Each line is defined by a pair of coordinates of its points. Three arrays are passed to the function as parameters:
An example of using the CrossPointOfLines() function.
As an example of using the CrossPointOfLines() function, I traditionally offer my script (see attachment). For the script to work properly, you need to draw two intersecting lines on the current chart of any of the following types: vertical, horizontal or trend. Then the script should be attached to the chart. The script will result in marking the left price at the intersection point of the two lines.
SZY. Attached is a script to test the CrossPointOfLines() function.
The SetRegression() function.
This function sets the OBJ_REGRESSION object of the linear regression channel on the current chart.