HI, want to add interval at time

Questions about MultiCharts and user contributed studies.
Posts: 218
Joined: 11 May 2013
Has thanked: 68 times
Been thanked: 3 times

HI, want to add interval at time

Postby turbofib » 18 Sep 2022

Example: time interval chart is 5 minutes

TimeInterval= 5 minutes
Start Time =2300

startTime + TimeInterval*15 = 2300 + 5*15(1 hours and 15 minutes) = 00: 15 minutes

User avatar
Posts: 723
Joined: 16 Dec 2006
Location: www.abctradinggroup.com
Has thanked: 125 times
Been thanked: 410 times

Re: HI, want to add interval at time

Postby ABC » 19 Sep 2022


you can not directly add minutes to HHMM times and expect the result to be correct. One way to accomplish what you have in mind could be to use
TimeToMinutes to convert your time to minutes, perform the summation, and convert the result back to a time using MinutesToTime.



Return to “MultiCharts”