![Documentation on MQL5: Trade Functions / HistorySelectByPosition Documentation on MQL5: Trade Functions / HistorySelectByPosition](https://c.mql5.com/36/83/documentation-on-mql5-trade-functions__2.png)
Documentation on MQL5: Trade Functions / HistorySelectByPosition
- www.mql5.com
Retrieves the history of deals and orders having the specified position identifier. Parameters position_id [in] Position identifier that is...
Yashar Seyyedin #:
1. Get position id of out deal.(DEAL_POSITION_ID)
1. Get position id of out deal.(DEAL_POSITION_ID)
2. Use HistorySelectByPosition to access deal in.
Thank you, truly helpful!
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Hi,
is there an easy way to get the ticket number of a Deal IN knowing a Deal OUT ticket?
Given a Deal OUT ticket, how can I get a Deal IN ticket?
Thanks