Seconds until end of bar

 

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

 
jeex:

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


TimeCurrent() - Time[bar index]
 
Thanks GumRai.
 
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.
 

Thanks WHRoeder. The game is running now.

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

Reason: