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
A pointer to an object.
No offence, but it's too early for you with macros like this, you'll get bogged down. First of all, understand why I did it this way:
And what to do with it with this pointer to object inside class where to pass it.
And as for macros, they are much easier to work with.
And what to do with this pointer to an object inside the class, where to pass it to.
As for macros, they are much easier to work with.
You can use it to refer to an object created anywhere. In my example the pointer to the object created globally is passed to the constructor, but this class can itself be nested in another one (in which the object is created).
Here's an example of the use of your macro:
See what it unfolds into, I'm adding parentheses for clarity:
As a result, you've got absolutely valid code for the compiler, but the behaviour of the program is categorically different from what was intended. And now you don't actually notice the error, the code works, and then you'll just stare into the terminal and wonder why the robot logged in with the whole deposit and lost your account? )))))
I'm very good at macros, but that's why and why I dislike them so much (developers, once again please constexpr and SFINAE at the same time). So, my advice to you is don't use them to reduce letters in your code. It's actually, even in a stripped down mql-version, a powerful tool, but requires a very disciplined approach.
Developers, add possibility to use unlimited number of arguments inside macros and functions. I'm tired of this static nonsense. What is 8 arguments for a macro and if you need 108 what then, make it at least 10. And also make it possible to overload macros so you don't have to multiply new names with macros. It would also be cool if you could make
macro#if
But the behaviour of the programme is categorically different from what was intended. And now it's not a fact that you will notice the error, the code works, and then you'll be stupidly looking in the terminal and wondering why the robot entered with the whole deposit and lost the account? )))))
I am very good at macros, but that's why I don't like them so much (developers, once again I ask for constexpr and SFINAE at the same time). So, my advice to you is don't use them to reduce letters in your code. It is, in fact, even in a stripped down mql-version, a powerful tool, but requires a very disciplined approach.
I'm not going to guess anything, I'm doing my job reliably.
What are you doing with the m_data pointer? Are you accessing elementm_data? What do you get out of it? I understand it happens here.
It's just not clear (very complicated) what are you trying to achieve?
What would happen if this line
would be written in public.
Classes are a mystery to me. After 2 years I still don't know how to handle them.
There is a need to write test results statistics to a database table,
The DB is created beforehand, the passes of interest are written by including the sinput variable in the EA settings
DATABASE:
I write to this table with this code:
ENUM_STATISTICS enumeration has an order as in help, script to check:
everything works,BUT the code text is quite voluminous, high probability of a typo, how to get this query to the database in a more reliable way - the main problem is howto getintoStringFormat
There is a need to write test results statistics to a database table,
The DB is created beforehand, the passes of interest are written by including the sinput variable in the EA settings
DATABASE:
I write to this table with this code:
ENUM_STATISTICS enumeration has an order as in help, script to check:
everything works,BUT the code text is quite voluminous, high probability of a typo, how to get this query to the database in a more reliable way - the main problem is howto getintoStringFormat
Define!!! (although a normal overload will do here)
And what's the point of this StringFormat?
It's no faster than a normal add.... (I've done dozens of gigabytes of text files =....) even a normal add-on is faster, that's the way it is...
If you want to do it through this regular function, I don't understand the problem either ))
And what's the point of this string format?
It's never faster than a normal add.... (I've done dozens of gigabytes of text files =....) even a normal add-on is faster, that's the thing...
I don't know.
i read the help and the article and created a database query using the examples
It seems to work, but I suspect that if I use part of this code, I may make some typos
All in all this may look strange, so I'm asking how to make it more compact without screwing up )))
There is a need to write test results statistics to a database table,
The DB is created beforehand, the passes of interest are written by including the sinput variable in the EA settings
DATABASE:
I write to this table with this code:
ENUM_STATISTICS enumeration has an order as in help, script to check:
all works,but the text of the code is quite vast, there is a high probability of a typo, how to get this query to the database in a more reliable way - the main problem is howto get StringFormat
Remember, first, field types are optional in SQLite and you don't have to bother with typing and casting. It is "Lite" for a reason.
a long query may be divided into 3-4-5 parts :-)
BEGIN TRANSACTION
INSERT INTO myTable VALUES (...); --- тут можно получить PrimaryKey
UPDATE myTable .... ; --- обновить по Primary
UPDATE myTable ... ; --- ещё...
COMMIT ; --- это если все запросы удачны.. иначе ROLLBACK
this is from old memory, i.e. you should check with the help
I don't know.
i read the help and the article, created a database query using the examples
It seems to work, but I suspect that if I partially use this code, I may make misprints
I would like to ask how to make it more compact without screwing up ))))
Your task should be solved like this:
Your particular problem should be solved like this:
Shit!
Right! Arrays!
THANK YOU!!!!!