HI, want to add interval at time

Questions about MultiCharts and user contributed studies.
turbofib
Posts: 213
Joined: 11 May 2013
Has thanked: 67 times
Been thanked: 1 time

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

Re: HI, want to add interval at time

Postby ABC » 19 Sep 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


Return to “MultiCharts”