Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1176
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
https://www.mql5.com/en/code/23479 This one doesn't work.
I tried, but I have a snag in the code, I don't think anyone would want to go into my scribbles, I'd rather do it again.
So here it is:
int sig=(raznV[i])>50; Here is the hitch. I do not know how to present it in a different way. And you need to detect a deviation of at least 50% in previous candles.
Your code is as beautiful as an essay written by a not very studious first-grader - no offence, at least you can write comments :)
Especially I likedraznV[i], did you come from PineScript? Come on, this is a normal programming language))
in red - important mistakes, in yellow - flaws
Hello. Please help with import from dll. Tried to import functions from trans2quik.dll
It worked, the dll returned code 0(TRANS2QUIK_SUCCESS). When I tried to import other functions the compiler gives me an error about long name (I know from forum that more than 31 characters in function name is not allowed). How else can I import functions? I tried to do it by function number, as described here (https://docs.microsoft.com/ru-ru/cpp/build/exporting-functions-from-a-dll-by-ordinal-rather-than-by-name?view=vs-2019), but whether I did it wrong, or the compiler can not swear by the number (writes name expected) I understand to join a dll need a wrapper? Or is it possible to edit function names in the dll itself? If it is important there are .h and .lib files in the dll archive.
Good afternoon. I have a question about a negative muving shift. As a result, either opening a deal at this value or closing it does not work. How can I solve this problem?
Can you attach a piece of code?
Is it possible to change the test speed programmatically?
you can
Hello. Please help with import from dll. Tried to import functions from trans2quik.dll
It worked, the dll returned code 0(TRANS2QUIK_SUCCESS). When I tried to import other functions the compiler gives me an error about long name (I know from forum that more than 31 characters in function name is not allowed). How else can I import functions? I tried to do it by function number, as described here (https://docs.microsoft.com/ru-ru/cpp/build/exporting-functions-from-a-dll-by-ordinal-rather-than-by-name?view=vs-2019), but whether I did it wrong, or the compiler can not swear by the number (writes name expected) I understand to join a dll need a wrapper? Or may I edit the function names in the dll itself? If it's important the archive with dll has .h and .lib files.
In MQL by number is not possible.
You can't do it in MQL by number.
Thank you. So there is only dll adapter between terminal andtrans2quik.dll
Have you tried slipping a string as #define str "long long string" or even as two strings via + or string function.
After all, Comment is also limited in the length of the string, but variables can be shoved so much that it does not fit on the monitor in a few lines.