Seconds in Easy Language

Studies that have been contributed to the community by other users. If you’ve got something useful to share, that’s great!
Posts: 22
Joined: 07 Sep 2006

Seconds in Easy Language

Postby johnchan » 20 Feb 2008

Is it possible to extract time in HH:MM:SS format (ie including seconds) in MultiCharts using easy language code in some way.

User avatar
Posts: 7720
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1032 times
Been thanked: 2216 times

Postby TJ » 30 Mar 2008


Returns a numerical value indicating the closing time, including seconds, of the current bar. The time is indicated in the 24-hour HHmmss format, where 130000 = 1:00:00 PM.




Time_s will return a value of 101525 for 10:15:25 AM
Time_s will return a value of 154500 for 3:45:00 PM

if you need it in string format, simply do a string conversion and add the :

Return to “User Contributed Studies and Indicator Library”