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
On the other hand, for serialization, it is probably better to explicitly specify text field names, so that you can then freely rename them in code without fear that the stored files will stop working.
I'm asking about the workaround structure, the implementation itself is not a big deal ))))
it's not a problem to name the fields, the problem is to think, what to do afterwards - will json be just a method in each class, or a static class or generally duplicate class fields in the form of text....
;)
ZS:
thought of some well-established bravado - "yes I have code well in general in C++ from MQL ported without change here and there!!!! "
of course this is needed, but in terms of time spent on development of such a code structure, it is quite expensive, and code support will be needed with new wishes
only advantages of the connection C++ (+++ MQL ) are not clear, syntax constructs are 90% same, why duplicated? imho interesting other languages with extended syntax and compiler possibilities of control in IDE while writing the project - it is at least fast and comfortable, not to mention the ready developments in the public domain, the same C# and Python
only the advantages of the C++ bundle (+++ MQL) are not clear
C++ has much more possibilities. Plus a billion different libraries.
C++ has many more features. Plus a billion different libraries.
indisputably
but no matter how hard you try, you won't be able to open any C header file in MQL and use a ready-made C++ solution to connect a million of libraries
I googled it earlier this year and tried to connect TensorFlow to MQL having C++ API.
undoubtedly
But no matter how hard you try, you can't take any C header file, open it in MQL and use a ready-made solution from C++ to connect a million libraries
I googled it earlier this year and tried to connect TensorFlow to MQL having C++ API - you have to write a viper
You asked about the C++ and MQL pairing. I understood that C++ is used in DLL. How else could it be?
You asked about the link between C++ and MQL. I understood that C++ is used in the DLL. How else could it be?
I askedhttps://www.mql5.com/ru/forum/307970/page10#comment_11652222
otherwise, well .... a trick that allows you to open the header file c_api.h (I have it attached) in MQL and then use the TensorFlow docs
now you open the header file in VS, then wrap the calls, model, internal states... ...into your .dll and then you can use it in MQL
all this is time consuming
that's why I'm asking about the workaround structure, the implementation itself is an afterthought )))
maybe it's realistic to serialize simple structures in json using MQL toolshttps://habr.com/ru/post/311262/
at least it's reassuring to know that the material is available on the web
Uh-huh... I'll try asking again:
HELP ME AND NEED AN EXAMPLE! Please!
It's just something I wrote on my knees, just to think about it.
Written on my knees, just to think about it.
Thanks, but it's not working (((
2020.05.20 23:51:43.932 tst____ (EURUSD,H1) s = {
2020.05.20 23:51:43.932 tst____ (EURUSD,H1) ,
2020.05.20 23:51:43.932 tst____ (EURUSD,H1) "A::a1":10
2020.05.20 23:51:43.932 tst____ (EURUSD,H1) }
on top of that, it only wants to work with statics
although it's not so hard to collect a string in one method with defines, in general, you need to think about it
here's askinghttps://www.mql5.com/ru/forum/307970/page10#comment_11652222
otherwise, well .... some trick that allows to open header file c_api.h in MQL and then use TensorFlow docs
now you open the header file in VS, then wrap the calls, model, internal states... ...into your .dll and then you can use it in MQL
all in all it's time consuming
No tricks allowing to compile C++ source with MQL compiler.
TensorFlow library exports a lot of functions. You probably only need a small fraction of them.
Write prototypes of the functions you are using. It won't take long.
Written on my knees, just to think about it.
Finally, something very interesting. Is this the "Steam Train" pattern?
Thanks, but it didn't stick (((
2020.05.20 23:51:43.932 tst____ (EURUSD,H1) s = {
2020.05.20 23:51:43.932 tst____ (EURUSD,H1) ,
2020.05.20 23:51:43.932 tst____ (EURUSD,H1) "A::a1":10
2020.05.20 23:51:43.932 tst____ (EURUSD,H1) }
on top of that, it only wants to work with statics
Although it's not so hard to collect a string in one method with defines, you need to think about it
Somehow you're doing it wrong)
PS Corrected