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

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
This is not a replacement - MB does not work in indicators as it stops the flow until the button is pressed!
I inadvertently advised this, but that's not what the note says at all:
Note
This function is not recommended to use in custom indicators, as the call of MessageBox() stops the execution of indicator thread for the entire time of waiting for user's answer. And since all of the indicators for each symbol are executed in a single thread, all of the charts for all timeframes for this symbol will be stopped.
When working in the strategy tester, the MessageBox() function is not executed.
I am not a programmer, I edit the indicator for my own convenience. I didn't check it in the tester, but in real time.
By the way, there are no telepaths.
If you know which of the indicators available here use this function, please tell me, maybe then I will figure it out myself.
Thanks
We have everything.
You declare a variable with the structure type in the local scope, and it is what you send to the function. In the same local scope.
The point is that when you create a variable for a structure in the field its scope is on the whole fonction and not on a local area. Here is an example.
It turns out that it is no longer possible to work locally.
Trying to read data from a csv file in a script. No luck and I don't understand why at all.
I use a simple procedure to read it:
The file with the data has the following form:
2012.01.02 02:00:02,1.293240,1.293410
2012.01.02 02:00:52,1.293330,1.293500
2012.01.02 02:00:55,1.293810,1.293980
....
And the result of the Print() statements from the procedure is
nBars = 1000 alBars = 1000
Start: 0.0 2020.01.29 01:00:00
End: 0.0 2020.01.29 01:00:00
That is, all the lines are processed in the read loop, but nothing is read. And no error message.
Can someone explain this to me ?
Can someone explain this to me ?
Binary functions read a text file.
We have everything.
You're mean!
You're mean!
I'm pretending.
If you want to understand programming, start trying to figure it out. If you just need to do it, go to the thread where they offer to write it for free, post your indicator there and describe your request.
ps: I checked everything. Alert() for some reason even if placed before PlaySound() does not play the selected sound. Maybe my memory is bad, but not the point.
You can mute Alert() by double-tapping it to get a red cross
and in that case it won't matter what Alert() or PlaySound() is written in front of it
I'm pretending.
and in this case it makes no difference whether it says Alert() or PlaySound() in front
In this case, the alert window does not open.(
You read a text file with binary functions.
It does say aboutFileReadDouble() function that it reads from a binary file.
But it says aboutFileReadDatetime(): "Reads from CSV file a string of one of formats: "YYYY.MM.DD HH:MI:SS", "YYYY.MM.DD" or "HH:MI:SS" - and converts it to datetime value".
Also, the same picture was when I usedFileReadString() and then converted the strings to the correcttype myself.
How do you think I should do it ?
How do you think it should be done ?