HI, want to add interval at time

Questions about MultiCharts and user contributed studies.
turbofib
Posts: 220
Joined: May 11 2013
Has thanked: 69 times
Been thanked: 3 times

Sep 18 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
ABC
Posts: 726
Joined: Dec 16 2006
Location: www.abctradinggroup.com
Has thanked: 125 times
Been thanked: 412 times
Contact:

Sep 19 2022

turbofib,

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.

Regards,

ABC