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
Pointers in MQL4 are tricky. There is no direct support. Someone here on the forum tried to do it with arrays, I think. I can't be more precise. Search for it yourself.
MathRand()
You can change only the first dimension of the array programmatically. The ArrayResize() function. The second, third and fourth dimensions have to be set rigidly.Well, let's forget about pointers and dynamic arrays too...
Looking forward to the 5th version of the language...
Thanks for the help...
Working with one grid is easy to implement.
Funny thing is, for my idea one network was not enough, and I wanted to make an algorithm for switching between networks, with pointers it's not hard.
But no... ...we'll have to hardcode it.
The SetTLineByAngle() function.
This function sets the OBJ_TRENDBYANGLE object of the trend line by the slope angle on the current chart.
Examples of how to use SetTLineByAngle().
ZY. Attached is a script for testing SetTLineByAngle().
The SetArrow() function.
This function sets the OBJ_ARROW object icon to the current chart.
Examples of how to use SetArrow().
SZY. Attached is a script to test the SetArrow() function.
In general, it would be cool to have a "Table of Contents" on the first page of this post. A table with a list of functions, descriptions and links to pages. Or keep one updated archive on the first page, and the descriptions can be found on the other pages.
So, if xrust will make his suggestion, it would be good to repeat it here. For the sake of systematization of the hard-earned :))
...do you mind if I collect features from this thread, and post them on my website, in a separate section with a link to the forum, and to your site
No, I won't...
Thank you very much for what you're doing, would you mind if I collect the functions from this branch, and post them on my site, in a separate section with a reference to the forum and your site
Create an "inluder" file (mqh) (probably 2 - "trade" and "other"), agree on its name and force the "developers" to include it in the distribution. So that everyone in each EA does not have to reinvent the wheel.
:)