How to get open price for transaction with DEAL_REASON_TP

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
Hello,
I've started programming in MQL5 (as hobby so far), once in college and in my first job I programmed heavily in C ++, but it was over 20 years ago :)
I have such a issue, probably I have no enough knowledge at yet.
After the setup occurs, I place three orders, which let's assume they triggered:
1. Position with SL1 and TP1
2. Position with SL1 and TP2
3. Position with SL1 and without TP (dynamic)
(same SL and three TPs)
After the orders are triggered and the first position on TP1 is closed, I would like to switch SL1 for the remaining positions to the launch price of Position 1.
And I don't have idea how to get "launch" price for Position 1. Here is my code:
... and "transactionOrderPriceOpen" is 0.0 value always.
I checked all the fields in the Transaction Object: https://www.mql5.com/en/docs/constants/structures/mqltradetransaction and any field gives the opening price of the position, I combine with the the Order for particular Transaction but also returns zero, in Deal connected to Transaction I do not see the "Price" field
I am asking for hints, thank you in advance for the guidance.