Rosh: Update the help, the typo has already been corrected.
Just downloaded a new one. Before, there was a typo in two places. New version of help has corrected in one place. It still needs to be corrected in the full version of the script.
Good afternoon. How to properly initialize a variable ofENUM_ORDER_TYPE type? If I do it using ZeroMemory(), the variable will become equal to 0, which in turn means ORDER_TYPE_BUY. What is the right way then?
Alex5757000: Good afternoon. How to correctly initialize a variable ofENUM_ORDER_TYPE type? If I do it using ZeroMemory(), the variable will become equal to 0, which in turn means ORDER_TYPE_BUY. What is the correct way to do it then?
To initialize means to set some initial value. Set the value you need. ZeroMemory() is from the other direction.
Alex5757000: Good afternoon. How to properly initialize a variable ofENUM_ORDER_TYPE type? If I do it using ZeroMemory(), the variable will become equal to 0, which in turn means ORDER_TYPE_BUY. What is the right way to do it then?
If you want to "zero" a variable of the enum type, use constant WRONG_VALUE. For example,ENUM_ORDER_TYPE type=WRONG_VALUE. Then there will be no situation when "the variable will become 0, which in turn means ORDER_TYPE_BUY".
Yedelkin: If you need to "zero" a variable of enum type, use the constant WRONG_VALUE. For example,ENUM_ORDER_TYPE type=WRONG_VALUE. Then there will be no situation when "the variable will become 0, which in turn means ORDER_TYPE_BUY".
There is an error in the script in the local version of the Help in the Organising Data Access section:
//---
Replace with SERIES_SYNCHRONIZED.
There is an error in the script in the local version of the Help in the Organising Data Access section:
//---
Replace with SERIES_SYNCHRONIZED.
Update the help, the typo has already been corrected.
Just downloaded a new one. Before, there was a typo in two places. New version of help has corrected in one place. It still needs to be corrected in the full version of the script.
Look at this one: https://www.mql5.com/ru/code/1084
Is this what you want?
Unfortunately, not that again. These tools visualise the account history . I, on the other hand, need to visualise a third-party report.
Unfortunately, not that again. These tools visualise the account history . I, on the other hand, need to visualise a third-party report.
Good afternoon. How to correctly initialize a variable ofENUM_ORDER_TYPE type? If I do it using ZeroMemory(), the variable will become equal to 0, which in turn means ORDER_TYPE_BUY. What is the correct way to do it then?
Good afternoon. How to properly initialize a variable ofENUM_ORDER_TYPE type? If I do it using ZeroMemory(), the variable will become equal to 0, which in turn means ORDER_TYPE_BUY. What is the right way to do it then?
Unfortunately, not that again. These tools visualise the account history . I, on the other hand, need to visualise a third-party report.
If you need to "zero" a variable of enum type, use the constant WRONG_VALUE. For example,ENUM_ORDER_TYPE type=WRONG_VALUE. Then there will be no situation when "the variable will become 0, which in turn means ORDER_TYPE_BUY".