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 | Time of an Object

MetaTrader Experts, Indicators, Scripts and Libraries

At times, you need to work with object created on the chart. Depending on the time of the creation of the object you decide whether you need to take a buy action or a sell action.

This code will help in getting the time of an object using which you can decide whether the object has been created recently. Then you can take suitable action in your code to perform the desired trade.

17932