excluding weekend and holiday mql4

To add comments, please log in or register
Hamza Ghennami
151
Hamza Ghennami  

hi,

please help me i have probleme with weekend when i draw line after specific time and i want exluding weekend from my range

i have 2 datetime

extern datetime StartTime=D'2018.05.29 15:20';

extern datetime EndingTime =D'2018.07.23 03:45';


i want to calculate time between 2 datetime starting and ending exluding weekend

William Roeder
20208
William Roeder  

No ticks no bars. Find the two time's bar index. Use the difference times duration of the bars.
          "Free-of-Holes" Charts - MQL4 Articles
          No candle if open = close ? - MQL4 and MetaTrader 4 - MQL4 programming forum

As for drawing drawing a (trend) line, just draw it.

To add comments, please log in or register