Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1868
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
In mql you can also fill an array from the keyboard, but you don't need to)))
Andrei! Programming. Creativity. Flying thoughts and fantasies. Not keeping them in the cells of gray matter. I want it off the keyboard. It's not a pretense. It's just that my desire is a figment of my imagination. I'd like it like this, from the keyboard.
I'll make it simple. Questions are appropriate in specialist topics/forums.
I'll make it simple. Questions are appropriate in specialist threads/forums.
Andrey, maybe this question was raised in the forum like mine? If there is something on the forum please give me a link. Or should we open this discussion on the forum?
In any case thanks a lot!
Andrei! Programming. Creativity. The flight of thoughts and fantasies. Can not hold them in the cells of gray matter. I want it off the keyboard. It's not a pretense. It's just that my desire is a figment of my imagination. I'd like it like this, from the keyboard.
read the array from the file. And edit the file in any text editor :-)
"Do this - I won't tell you how."
Why didn't you figure it out yourself? And tell the uservladeimirami how to do it. It's all in the documentation:
https://www.mql5.com/ru/docs/event_handlers/onchartevent
Extend the list of constants to the required ones:
Where to get values for the constants:. Google "C++ key codes" (as I said before). And process it:
Instead of string with Print, insert function which adds value to array depending on key pressed. What is so hard?
Why didn't you figure it out yourself? And tell the uservladeimirami how to do it. After all, everything is in the documentation:
https://www.mql5.com/ru/docs/event_handlers/onchartevent
Extend the list of constants to the required ones:
Where to get values for the constants:. Google "C++ key codes" (as I said before). And process it:
Instead of string with Print, insert function which adds value to array depending on key pressed. What is so complicated?
At least read what you're answering and who was answering what to whom before rushing to hit the keys
Why didn't you figure it out yourself? And tell the uservladeimirami how to do it. After all, everything is in the documentation:
https://www.mql5.com/ru/docs/event_handlers/onchartevent
Extend the list of constants to the required constants:
Where to get the values for the constants:. Google "C++ key codes" (as I said before). And process it:
Instead of a string with Print, we insert a function which adds a value to the array depending on the key pressed. What is so complicated?
It will be tricky if you need to write a number in the array instead of the code of the pressed key. For example 123. Here, there will be three array cells filled in - each with the values 1, 2 and 3, not one with the value 123.
This means that you have to read the keys separately and end them separately. In other words, let the program know that a number entry has started and let it know that it is finished and you can write the entered number to the array.
At least read what you're answering.
Oh... okay. I'm confused. I have to write a lot. That's why I could be wrong.
But I get the impression that you're the one who doesn't know what to do or how to do it... You could have helpedvladeimirami.
There will be a complication if you need to write a number into the array rather than the code of the key pressed. For example 123. This will fill three cells in the array - each will have values 1, 2 and 3, not one with the value 123.
This means that you have to read the keys separately and end them separately. In other words, let the program know that number entry has started and let it know that it's finished and you can write the entered number to the array.
If the array is uchar then you can useStringToCharArray. Or create your own function that adds a number to each cell in a string. Just the length of the string can be easily obtained and you can loop through it.
Ah... all right. I'm confused. I have to write a lot. So I could be wrong.
But I get the impression that you're the one who doesn't know what to do or how to do it... You could have helpedvladeimirami.
Your pointless trolling is clearly unnecessary here. And those answers that aren't trolling are either wrong or a lie altogether.
All of your responses over the last few pages are either misinforming or bullshit, lying and trolling, I don't understand why you write them, unless you're tweaking the post count, they are of no use, only detrimental.