Errors, bugs, questions - page 1052

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 ENUM_PLOT_PROPERTY_INTEGER enumeration for PlotIndexSetInteger() and PlotIndexGetInteger()
can be assigned, can be read
I'm trying to understand OOP.
1) If I make a function, then it can be (a) connected to the code using #include and the file itself (b) or inserted directly in the EA/indicator code. The article " Principles of Object Oriented Programming " in the section "Load a Class" shows the connection through #include . Question - is it possible to write a class for EA/indicator and keep it in the code itself (as for a function)?
2) I understand that with OOP it is possible to use additional capacities, e.g. video cards. If for example there is an Expert Advisor and part of the calculations are placed in the function, all the calculations are forwarded to the CPU, but if instead of the function a class is created, it directs its calculations to the GPU (parallels the calculations)? Have I correctly understood the meaning of accelerating calculations when using OOP?
I am trying to understand the OOP.
1) If I make a function, it can be (a) connected to the code using #include and the file itself (b) or inserted directly in the EA/indicator code. The article " Principles of Object Oriented Programming " in the section "Load a Class" shows the connection through #include . Question - is it possible to write a class for EA/indicator and keep it in the code itself (as for a function)?
2) I understand that with OOP it is possible to use additional capacities, e.g. video cards. If for example there is an Expert Advisor and part of the calculations is implemented in the function, all the calculations are forwarded to the CPU, but if instead of the function a class is created, it directs its calculations to the GPU (parallels the calculations)? Have I correctly understood the meaning of accelerating calculations by using OOP?
1) Yes
2) No.
Regarding MT4 Marketplace: what version should MT4 be, to compile programs for their subsequent uploading to MT4 Marketplace beta?
Programs are not compiled by MT, they are compiled by a compiler. The one that allows you to market products on MT4 is now available in beta testing.
Download zip archive here: https://c.mql5.com/mql4/forum/2013/08/MetaTrader4.Beta.IDE_1.zip
mql4
void PlaySound( string filename)
The function plays an audio file. The file must be located in terminal_directory\sounds or its subdirectory.
Parameters:
filename - path to sound file.
Example:
if(IsDemo()) PlaySound("alert.wav");
Is there anything similar for mql5?
mql4
void PlaySound( string filename)
The function plays the sound file. The file must be located in terminal_directory\sounds or its subdirectory.
Parameters:
filename is the path to the sound file.
Example:
if(IsDemo()) PlaySound("alert.wav");
Is there anything like this for mql5? searching does not give any results.
https://www.mql5.com/ru/docs/common/playsound
Thank you very much.
Strange that the search didn't produce any keyword queries.