Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 55

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
I don't use classes, arrays, macros and importing from Windows libraries yet. All in good time.
With arrays it's a waste. Arrays are handy. And so are structures. The rest, yes, can never be used at all if the projects are not complex.
Arrays, I agree, are very handy, and you often can't write a program sensibly without them. Structures... I write classes in web-programs, it's really bad and not convenient without them, especially if the project is big, but I didn't like MQ in usual one-page Expert Advisor. I've written in OOP all open/closed data, started to use and deleted everything, rewrote in procedural style and use, wrote everything in one loop. So classes are for aficionados.
Please help me add the maximum number of open orders (MAXORders)
}
In the code you showed above, the reference is to the current TF, so what are we talking about? If you are referring to M5 from W1, then write it that way.
If you work with the current timeframe, then the close price is floating on zero bar, and on the rest - only one Close price, not many, how do you build a histogram on one value, I do not understand.
If you want to draw an image, use the icon buttons at the top of edit box, there are a lot of useful buttons there, I suggest to learn.
I'm asking how to get the maximum and minimum readings of the indicator in the current timeframe during the current one,
If you think I'm lazy and don't want to look for pictures, no. But I still can't do it. I right-click on the chart in the terminal (Insta) - Save as picture - Active chart as is - transferred to MKL5 (the same terminal picture is displayed there) - bottom line bbCode (I select and copy the code), then I insert this code in the message, after I send the message, there should be a picture in the message(this forum does not have one but displays only the code text), I tried to use the "Pictures" button (Ctrl+Alt+l) to select the file and the downloaded code cannot be pasted in this line, without screenshots you will not understand.
I'm asking how to get the minimum and maximum indicator readings on the current timeframe during the current one, I gave screenshots as an example,
If you think I'm lazy and don't want to look for pictures, no. But I still can't do it. I right-click on the chart in the terminal (Insta) - Save as picture - Active chart as is - transferred to MKL5 (the same terminal picture is displayed there) - bottom line bbCode (I select and copy the code), then I insert this code in the message, after I send the message, there should be a picture in the message(in this forum it is not present and only the code text is displayed), I have tried using the " Picture (Ctrl+Alt+l) button and it needs to select the file and the downloaded code is not pasted in this column, and you will not understand without screenshots.
Instead of the file name on the local computer, you can insert a link, right in the same line, where they write the file name, everything works. Like this
It is also possible to insert a link in the message, but without tags, on this forum tags do not work. Like this.
As for getting prices from a smaller TF, there's CopyRates and similar functions for each price individually.
It is copied to the array, then in the loop the time is compared to the time of a candle of a higher TF, if the lower candle fits, then the price is counted in the indicator.Can you see the indicator drawings in the tester, because judging by the chart I missed something there?
In the tester, there is an"Open graph" button. I wonder what it's for?
Or the "Visualization" checkbox.
In the tester, there is an"Open graph" button. I wonder what it's for?
Or the "Visualisation" checkbox.
I mean, while the chart is scrolling, there's no turkeys there.