HistorySelectByPosition - MetaTrader 5 Script - MT4/MT5 Resources
Select by location using sample history ( get ticket usage samples based on historical transactions ).
The location identifier is set as an input parameter. Next, the script attempts to create the order list and process the specified identifier.
Script operation example:
0 : Transaction # 116488443 in 2017.02 . Entered at 07 12:55:56 to buy 0.03 EUR/USD (Order # 132873637 , Position No. 132873637 ) 1 : Transaction # 116488540 on 2017.02 . Around 07 12:56:38 , selling 0.01 EUR/USD (Order # 132873727 , Position No. 132873637 ) 2 : Transaction # 116488549 in 2017.02 . 07 12:56:42 Exit , sell 0.02 EUR / USD (Order # 132873736 , Position No. 132873637 )
Attachment download
📎 historyselectbyposition.mq5 (8.76 KB)
Source: MQL5 #17572
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •