Features of the mql5 language, subtleties and tricks - page 298
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
Do you know how to use it to print any amount of different variables to the logs this way, but without typing PRINT for each variable?
e.g. there are x1, x2, x3, x4, x5 variables
I want to quickly print them all with PRINT, but I don't want to type this:
instead I'd like to type this, which will give me the same result as the above Print:
and I'd like this macro to work with any amount of variables:
nice macro TO_STR
Where can I see this macro?
Where can I see this macro?
ahh, it's that, ok
I only came to solution, when I create multiple macros with different amount of variables:
So if I want to quickly print 5 variables I do:
If I want to print 9 variables I combine:
So I don't know how to create universal macro to print any amount of variables with P(x) macro way so it would be like PR5 for instance.
If there is a code example of how to make an api request, for example, to binance, please share it.
The moderator once wrote that only in the market you can find something working with bybit.(https://www.mql5.com/en/forum/440740)
You can do it yourself, it is done via WebSocket. If someone will post an example (for example me) - all intrigue will stop. In general - it is not difficult, it uses webquest.
https://www.mql5.com/ru/articles/8196
The second option is to take a Python code for bybit, and slightly modify it (DeepSeek and ChatGPT can cope with this) so that it directs the entire stream received from bybit to the socket of the local PC. Where to read it from in the EA is not difficult at all if you use examples from the articles. IMHO
surprisingly this macro works
surprisingly this macro works
ahh, it's that, ok
I only came to solution, when I create multiple macros with different amount of variables:
So if I want to quickly print 5 variables I do:
If I want to print 9 variables I combine:
So I don't know how to create universal macro to print any amount of variables with P(x) macro way so it would be like PR5 for instance.
seems like it's impossible to create such macro to deal with any amount of variables, like Print function does