Errors, bugs, questions - page 2142

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's been almost 10 years since it was posted https://www.mql5.com/ru/code/8007
market info in mt5 doesn't work ...
Honestly I'm confused....
When the terminal starts it gives 0 and it should give the account number....
0 gives 0 for a few seconds even if the terminal is already connected to the network...
Another question about PlaySound
is used in the indicator.
The melody should play for 3 seconds.
OnTimer is not suitable because 3 seconds is a lot and if less than that, the melody barks
OnChartEvent is not suitable because a mouse or keyboard click is needed
OnCalculyate is not suitable because the melody barks and will not end
Salt of the whole song Sleep can't be used in the turntables ...
Question to connoisseurs, how to make PlaySound play more than 2-3 seconds in the indicator ???
Question for connoisseurs, how to make PlaySound play for more than 2-3 seconds in the indicator ???
Run the script on OBJ_CHART object. This way you can make a whole audio player in the indicator.
Run the script on an OBJ_CHART object. This way you can make a whole audio player in the indicator.
How can I do it ? I don't get it...
Compilation errors
Errors (2) and (4) are not justified at least because of the contradiction between (2) and (5)
and the syntax is the same, so how is OnStart better?
C++ compilers may produce different results
How's that? I don't get it...
Play any audio file of any duration from the indicator.
Script Scripts\PlaySound.mq5
Indicator
PlaySound( NULL ) does not work
Result: 2:4002
and does not stop playback
Play any length of sound file from the indicator.
Script Scripts\PlaySound.mq5
Indicator
Did I understand correctly, you run the script to play the file?
Hi, is this a terminal crash or a meta-editor crash? Under what circumstances did the crash occur?
What is the bit rate/version of the terminal/OS?