Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 159

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
Move it from the library to the wha-tam-do code. If the error goes away, it means there is a problem with the correct connection of the library in the wha-tam-do code. First of all.
If it doesn't go away - look what parameters are passed to the function. In idea, there should be a parameter of type string with the name of currency pair. Just pass Symbol().
It really helps. I'll think about it.
This is so weird. Why should I look in the library if passing of parameters is correct? The error is clearly written. Or is there nothing specific? I just wish I knew what was needed.
This function is borrowed, so I'm posting it with the author's contacts:
This is how I imported it:
The call now is like this:
How do you solve such problems?
Study the documentation. Compiled libraries do not pass parameters by default - you must pass ALL parameters when calling a function. Read it carefully. Excerpt:
No default parameters are passed to compiled libraries - you must pass ALL parameters when calling a function. Read it carefully. Excerpt:
Ah, that's it. Live and learn! Thank you, I'll keep that in mind.
When running optimization in MT4, we need to receive information about a pass in the "Optimization results" tab similar to the one generated by a single pass in the "Report" tab.
How can this be implemented?
I decided to get acquainted with the library. I took a part of code from my indicator and put it into the function, and I multiplied this function and pasted it into two library files.
I named the first one "indi.mqh" and the second one simply "djo.mq4".
To the point: when referring to the first one, everything works as planned;
when replacing the first by the second and accessing the second by a method:
But nothing works at all, not even alerts - nowhere after start. And just now and the terminal closed itself ))
As I guess all constants are re-initialized each time I access the imported function?
Where can I read about mql4 import in details, which bugs are either fixed or not and so on?
Thanks, I'm going to sleep............
I decided to get acquainted with the library. I took a part of code from my indicator and put it into the function, and I multiplied this function and pasted it into two library files.
I named the first one "indi.mqh" and the second one simply "djo.mq4".
To the point: when referring to the first one, everything works as planned;
when replacing the first by the second and accessing the second by a method:
But nothing works at all, not even alerts - nowhere after start. And just now and the terminal closed itself ))
As I guess all constants are re-initialized each time I access the imported function ?
Where can I read about mql4 import in details, which bugs are either fixed or not and so on?
Thanks, I'm going to sleep............
Tell me. I get a sound message when I cross two sliding averages. When opened, this sound message is repeated as many times as there have been crossings in the history. Question. How can I get it to produce a message only for the signals that have been generated in the present time. That is, only at the time and the signal that was received literally at the moment...
When opening what? It feels like an indicator. There are many solutions. It all depends on the code.
It's got nothing to do with the code. I just need the right condition. The question is if there is a possibility to know the time of the current bar? How do I know the time of the bar at all?
It has nothing to do with the code. I just need the right condition. The question is, is there any way to know the time of the current bar? How do I know the time of a bar?