This forum is in read-only mode now. You may discuss your questions on forums of MQL4.community and MQL5.community

how to add days


Back to topics list
avatar
16
XSFTrader 2009.08.19 18:01 

Hi all,

I am coding trendline:

ObjectCreate("MyTrendLine", OBJ_TREND, 0, Monday, price, Friday, price)

Say today is Monday and I use TimeCurrent() for first "Monday" as parameter, then I want to add 4 days as "Friday" parameter. Is there any function can use to add days from TimeCurrent() please? Thanks.

avatar
16
XSFTrader 2009.08.19 18:06 

Let me eleborate a bit more...

Let say today is Dec 30, 2008 and this is the Monday, then how can I add 4 days and the Friday will be Jan 3, 2009 please? Thanks.

Back to topics list  
Download MetaTrader 5 (450 Kb, web installer) — a new terminal for financial markets