Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

HistorySelectByPosition - MetaTrader 5 Script - MT4/MT5 Resources

author EAcpu | 2 reads | 0 comments |

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

Verification code Refresh