Download MetaTrader 5

Seconds until end of bar

To add comments, please log in or register
jeex
87
jeex  

How do i calculate the seconds since the beginning of a bar ( or the seconds before ending the bar )?

Keith Watford
Moderator
10544
Keith Watford  
jeex:

How do i calculate the seconds since the beginning of a bar ?


TimeCurrent() - Time[bar index]
jeex
87
jeex  
Thanks GumRai.
whroeder1
16496
whroeder1  
jeex: How do i calculate the seconds since the beginning of a bar ( or the seconds before ending the bar )?
  1. GumRai: TimeCurrent() - Time[bar index]
  2. int ETA=Time[iBar] + PeriodSeconds() - TimeCurrent(); // May go negative if no ticks.
jeex
87
jeex  

Thanks WHRoeder. The game is running now.

Binary Brokers won't like what i've built.

To add comments, please log in or register