Questions from Beginners MQL5 MT5 MetaTrader 5 - page 947

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
Good afternoon, please advise... After upgrading to the latest build, errors in "SmoothAlgorithms" started to pop up. And sma, lwma, parma, vidya averaging stopped working. It is swearing at this line: "array out of range in 'SmoothAlgorithms.mqh' (3394,9)". How should I fix it? Thank you!
Write about it to the author on the discussion page of his library:
There is a need to use numeric values as enumeration elements.
This is not allowed. Compilation error identifier expected. Is there any way around it (leaving only numeric values)?
There is a need to use numeric values as enumeration elements.
This is not allowed. Compilation error identifier expected. Is there any way around it (leaving only numeric values)?
Can you give me a link to the documentation of what these <> symbols mean?
Is there any way to programmatically set a list of parameters to be optimised?
The thing is that I have a lot of parameters. Thousands of them. I put them in a separate program. EA loading them during initialization through external file. So my task is to optimize these parameters now.
That is for example a list of optimizable parameters with values and ranges in a file. Read from there and write the result there as well.
I am writing a function to close charts with no EAs or scripts. I get the name of Expert Advisor and script on the chart using ChartGetString function. If both are empty, I close them. The problem is in the line with chart closing according to the condition. The condition is never satisfied. Here is the code.
Here is what Print shows
I understand that we can change the condition to the following
Well, how else should we compare the string variable with an empty string?
Good afternoon! I have made .mqh for data processing and storage in the resource. Everything works, but there is a nuance, if I compile the indicator, the .mqh is reset and re-does the weight process for storage. Target - as long as there is data in the resource it is not reset. Where is the error, how to fix it?
How do I correctly compare a variable string with an empty string ?
There are two normal empty strings - "" and NULL. And there can also be custom empty strings.