Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 4 Expert Advisor | Get Nth Closed Trade from the end in MT4

MetaTrader Experts, Indicators, Scripts and Libraries

This EA will scan all closed trades in the history. And check which trade closed most recently. If we pass 0 , then it will fetch most recently closed trade, if we pass 1 then it will fetch the trade which closed before that and so on. 

We have symbol and magic number filter

49610