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
Here's what I dug up:
And what, it's been recording lately.
Are you sure you know or are you fantasising?
That's a little confusing. Let's say the order was partially executed and the executed part received an id. We close the position. Then the remaining part triggers. Since there was no position, we should have a position with a new id. Where will it be written in the history?
The position was closed by another order, and the id of this position was assigned to it.
The position was closed by another order and the position ID was assigned to it.
But a new position was opened by an order that already opened another position, so the ID should be new, but the field for recording is the same. There is a misunderstanding.
The order that closed is not interested at all.
Thank you. Oh, how many wondrous discoveries we have...
DK 0 10:29:26.734 Trades : deal #4522435 sell 1.00 SBPR-9.14 at 5255 done (based on order #4988265)
it is now a partial execution.
DK 0 10:29:26.734 Trades : deal #4522435 sell 1.00 SBPR-9.14 at 5255 done (based on order #4988265)
it is now a partial execution.
I see. So for partially executed orders the position id property would be really useless.
I would like to see a partial execution with different prices/times of execution. Is there such an example?
In this example both the execution time is the same and the execution price is the same.
I would like to see a partial execution with different prices/times of execution. Is there such an example?
In this example both execution time and price are the same.
I think this example is enough, I was searching for it.)
How do you propose to search for similar situations in the history?
I did not find any comments for such situations. I found it by searching the entire history for the same ticket number.
And I have "0", the one that participated in the order.....
You are looking in the wrong part,OrderGetInteger(ORDER_POSITION_ID) - you are trying to look in the part that was not involved in opening/modifying/closing of a position
you need to look like this: HistoryOrderGetInteger(ticket,ORDER_POSITION_ID)