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

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
it took the price before when the ask was still old,
and then only refreshrates changed the ask, right?
yes
the code execution logic is linear - a command is executed, changes are made, then the next command is executed
so it's the same in your code, you made an assignment, and the price update is already below the code
do a cena calculation in the loop and update quotes.... before the calculation don't forget to normalize cena if it's a calculation, otherwise your next question will be why it's not working now)))
yes
the code execution logic is linear - a command is executed, changes are made, then the next command is executed
so it's the same in your code, you made an assignment, and the price update is already below the code
do a cena calculation in the loop and update quotes.... before the calculation don't forget to normalize cena if it's a calculation, otherwise your next question will be why it's not working now)))
now it is clear how to check.
and
Hello. There is a WinApi folder in the standard library. It would be good if the MQL5 Reference has the description of its contents. In the meantime, could you suggest a method to read and write the field of the forward-optimization start date in the tester? Or maybe even add a new proportion like 1/5?
It has nothing to do with mql.
https://docs.microsoft.com/en-us/windows/win32/apiindex/windows-api-list
Good luck.
isn't there a method there to read and write the forward start date field in the tester?
I won't say how it is in a five, it's like that in a four:
Why none of the provided examples of ready code from mql4 tutorial compiles?
I tried to write something and faced with the fact that the OnTick function switches to .mqh function, but other .mqh functions are called from this function and the compiler doesn't see them and I don't understand how to do it. I have downloaded the ready codes used in the tutorial and even they don't work. I was afraid that my program no no no yes appears 5-7 errors, but when I ran the downloaded from the official library so there a hell of a lot... 60-80-90 errors. Compiled without errors only file Variables.mqh, everything else burns brightly. Where is the actual material on this language? All these video tutorials, how old are they? It doesn't work, just what it says - do it and you will get results.
Why none of the provided examples of ready code from mql4 tutorial compiles?
I tried to write something and faced with the fact that the OnTick function switches to .mqh function, but other .mqh functions are called from this function and the compiler doesn't see them and I don't understand how to do it. I have downloaded the ready codes used in the tutorial and even they don't work. I was afraid that my program no no no yes appears 5-7 errors, but when I ran the downloaded from the official library so there a hell of a lot... 60-80-90 errors. Compiled without errors only file Variables.mqh, everything else burns brightly. Where is the actual material on this language? All those video tutorials are from when? It doesn't work, just what it says - do it and you'll get results.
Honestly, it's a stream of consciousness :)
And no specifics.
Stream of consciousness to be honest :)
And no specifics.
A copy from another thread.
Please advise. I have user-defined functions in separate .mqh files and I have them written through #include. When start is changed to one function, then program needs to call another .mqh file (for example, to get a value of order volume) and it's not working. If I write everything in one sheet, it works or if I write the formula to calculate the lot directly in the order opening parameters. I looked through the MQL4 lessons and read the program documentation but did not find anything. I don't really understand why one .mqh function cannot interact with another .mqh function within calculations. Or, should we make the program return to start if we faced such a necessity - it would return the result to start and then start with this calculation would go back to the function opening an .mqh order? This is something rubbish... Or maybe we should somehow declare all of the existing functions in a different way so that they interact together? Thanks
Stream of consciousness to be honest :)
And no specifics.
It's not a stream, it's a drain.