[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 541
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
I have these questions:
- is it possible to organise order data into an array (ticket, opening price, lot, SL, TP)?
- How convenient is it to work with orders through an array?
Thanks to everyone who will answer!
It is not convenient to cover with a motorbike, so your question has a similar answer.
If you just need to work with orders - just work with them.
If you need data on the parameters of orders (the order candidates), then the array is handy. It is easier to use a set of one-dimensional arrays of variable size, imho.
Don't skimp on the time of opening, the array will come in handy :).
If you want to use ticket number as an index in arrays, you don't need arrays. Just work with orders - everything else has already been implemented for you with metaquotes.
Professionals, a word of advice. In Delphi there is such a concept as IncHour, etc. The task is to add any period of time to any date variable and not to encounter an error. For example, to the date of position opening + 9 hours 30 minutes, and then check if the time has passed. Is there something like that in mql4?
I have these questions:
- is it possible to organise order data into an array (ticket, opening price, lot, SL, TP)?
- How convenient is it to work with orders through an array?
Thanks to everyone who will answer!
I have these questions:
- is it possible to organise order data into an array (ticket, opening price, lot, SL, TP)?
- How convenient is it to work with orders through an array?
Thanks to everyone who will answer!
It is possible to organise, but why?
If we are to sort out the orders by a trait and then analyze them in the descending order, we cannot do without the array.
And to "just" put the orders into an array, would only complicate the code with useless constructs (to control constantly the relevance of the arrays; to store all the information about the orders, if we don't need all of it during processing).
Hello! Compiling, gives an error. Stuck can't figure out what's wrong.
Hello! Compiling, gives an error. Stuck can't figure out what's wrong.
first declare the array and then use it, not all mush
you have to declare the array first and then use it, not all mush
If you don't know the size of the array, will the size become clear after reading the file?